Skip to content

Commit

Permalink
chore: bump prettier from 2.5.1 to 3.0.3 in /js (cosmos#193)
Browse files Browse the repository at this point in the history
* chore: bump prettier from 2.5.1 to 3.0.3 in /js

Bumps [prettier](https://github.com/prettier/prettier) from 2.5.1 to 3.0.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.5.1...3.0.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* bump eslint-plugin-prettier

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
  • Loading branch information
dependabot[bot] and Carlos Rodriguez authored Nov 3, 2023
1 parent 733ffbf commit 02f5aa5
Show file tree
Hide file tree
Showing 12 changed files with 378 additions and 151 deletions.
4 changes: 2 additions & 2 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"eslint": "^8.8.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"jasmine": "^5.1.0",
"jasmine-console-reporter": "^3.1.0",
"nyc": "^15.1.0",
"prettier": "^2.5.1",
"prettier": "^3.0.3",
"shx": "^0.3.4",
"source-map-support": "^0.5.16",
"typescript": "~5.2"
Expand Down
10 changes: 5 additions & 5 deletions js/src/compress.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ics23 } from "./generated/codecimpl";

export function compress(
proof: ics23.ICommitmentProof
proof: ics23.ICommitmentProof,
): ics23.ICommitmentProof {
if (!proof.batch) {
return proof;
Expand All @@ -10,7 +10,7 @@ export function compress(
}

export function decompress(
proof: ics23.ICommitmentProof
proof: ics23.ICommitmentProof,
): ics23.ICommitmentProof {
if (!proof.compressed) {
return proof;
Expand Down Expand Up @@ -51,7 +51,7 @@ function compressBatch(proof: ics23.IBatchProof): ics23.ICompressedBatchProof {
function compressExist(
exist: ics23.IExistenceProof | null | undefined,
lookup: ics23.IInnerOp[],
registry: Map<Uint8Array, number>
registry: Map<Uint8Array, number>,
): ics23.ICompressedExistenceProof | undefined {
if (!exist) {
return undefined;
Expand All @@ -77,7 +77,7 @@ function compressExist(
}

function decompressBatch(
proof: ics23.ICompressedBatchProof
proof: ics23.ICompressedBatchProof,
): ics23.IBatchProof {
const lookup = proof.lookupInners!;
const entries = proof.entries!.map((comp) => {
Expand All @@ -103,7 +103,7 @@ function decompressBatch(

function decompressExist(
exist: ics23.ICompressedExistenceProof | null | undefined,
lookup: readonly ics23.IInnerOp[]
lookup: readonly ics23.IInnerOp[],
): ics23.IExistenceProof | undefined {
if (!exist) {
return undefined;
Expand Down
Loading

0 comments on commit 02f5aa5

Please sign in to comment.