From 02f5aa596fe38272538b526a92d9ee4960a30382 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Nov 2023 08:33:38 +0100 Subject: [PATCH] chore: bump prettier from 2.5.1 to 3.0.3 in /js (#193) * 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](https://github.com/prettier/prettier/compare/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] * bump eslint-plugin-prettier --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Rodriguez --- js/package.json | 4 +- js/src/compress.ts | 10 +- js/src/generated/codecimpl.d.ts | 144 ++++++++--------- js/src/ics23.ts | 16 +- js/src/ops.spec.ts | 28 ++-- js/src/ops.ts | 10 +- js/src/proofs.spec.ts | 4 +- js/src/proofs.ts | 28 ++-- js/src/specs.ts | 6 +- js/src/testhelpers.spec.ts | 2 +- js/src/testvectors.spec.ts | 14 +- js/yarn.lock | 263 +++++++++++++++++++++++++++++--- 12 files changed, 378 insertions(+), 151 deletions(-) diff --git a/js/package.json b/js/package.json index 7f18fd81..20c52532 100644 --- a/js/package.json +++ b/js/package.json @@ -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" diff --git a/js/src/compress.ts b/js/src/compress.ts index c5123c8b..c15fe30a 100644 --- a/js/src/compress.ts +++ b/js/src/compress.ts @@ -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; @@ -10,7 +10,7 @@ export function compress( } export function decompress( - proof: ics23.ICommitmentProof + proof: ics23.ICommitmentProof, ): ics23.ICommitmentProof { if (!proof.compressed) { return proof; @@ -51,7 +51,7 @@ function compressBatch(proof: ics23.IBatchProof): ics23.ICompressedBatchProof { function compressExist( exist: ics23.IExistenceProof | null | undefined, lookup: ics23.IInnerOp[], - registry: Map + registry: Map, ): ics23.ICompressedExistenceProof | undefined { if (!exist) { return undefined; @@ -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) => { @@ -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; diff --git a/js/src/generated/codecimpl.d.ts b/js/src/generated/codecimpl.d.ts index 1c311c76..49af554a 100644 --- a/js/src/generated/codecimpl.d.ts +++ b/js/src/generated/codecimpl.d.ts @@ -91,7 +91,7 @@ export namespace ics23 { * @returns ExistenceProof instance */ public static create( - properties?: ics23.IExistenceProof + properties?: ics23.IExistenceProof, ): ics23.ExistenceProof; /** @@ -102,7 +102,7 @@ export namespace ics23 { */ public static encode( message: ics23.IExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -113,7 +113,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.IExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -126,7 +126,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.ExistenceProof; /** @@ -137,7 +137,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.ExistenceProof; /** @@ -164,7 +164,7 @@ export namespace ics23 { */ public static toObject( message: ics23.ExistenceProof, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -209,7 +209,7 @@ export namespace ics23 { * @returns NonExistenceProof instance */ public static create( - properties?: ics23.INonExistenceProof + properties?: ics23.INonExistenceProof, ): ics23.NonExistenceProof; /** @@ -220,7 +220,7 @@ export namespace ics23 { */ public static encode( message: ics23.INonExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -231,7 +231,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.INonExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -244,7 +244,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.NonExistenceProof; /** @@ -255,7 +255,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.NonExistenceProof; /** @@ -282,7 +282,7 @@ export namespace ics23 { */ public static toObject( message: ics23.NonExistenceProof, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -336,7 +336,7 @@ export namespace ics23 { * @returns CommitmentProof instance */ public static create( - properties?: ics23.ICommitmentProof + properties?: ics23.ICommitmentProof, ): ics23.CommitmentProof; /** @@ -347,7 +347,7 @@ export namespace ics23 { */ public static encode( message: ics23.ICommitmentProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -358,7 +358,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.ICommitmentProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -371,7 +371,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.CommitmentProof; /** @@ -382,7 +382,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.CommitmentProof; /** @@ -409,7 +409,7 @@ export namespace ics23 { */ public static toObject( message: ics23.CommitmentProof, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -490,7 +490,7 @@ export namespace ics23 { */ public static encode( message: ics23.ILeafOp, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -501,7 +501,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.ILeafOp, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -514,7 +514,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.LeafOp; /** @@ -525,7 +525,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.LeafOp; /** @@ -550,7 +550,7 @@ export namespace ics23 { */ public static toObject( message: ics23.LeafOp, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -620,7 +620,7 @@ export namespace ics23 { */ public static encode( message: ics23.IInnerOp, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -631,7 +631,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.IInnerOp, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -644,7 +644,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.InnerOp; /** @@ -655,7 +655,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.InnerOp; /** @@ -680,7 +680,7 @@ export namespace ics23 { */ public static toObject( message: ics23.InnerOp, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -757,7 +757,7 @@ export namespace ics23 { */ public static encode( message: ics23.IProofSpec, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -768,7 +768,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.IProofSpec, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -781,7 +781,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.ProofSpec; /** @@ -792,7 +792,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.ProofSpec; /** @@ -817,7 +817,7 @@ export namespace ics23 { */ public static toObject( message: ics23.ProofSpec, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -889,7 +889,7 @@ export namespace ics23 { */ public static encode( message: ics23.IInnerSpec, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -900,7 +900,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.IInnerSpec, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -913,7 +913,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.InnerSpec; /** @@ -924,7 +924,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.InnerSpec; /** @@ -949,7 +949,7 @@ export namespace ics23 { */ public static toObject( message: ics23.InnerSpec, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -991,7 +991,7 @@ export namespace ics23 { */ public static encode( message: ics23.IBatchProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1002,7 +1002,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.IBatchProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1015,7 +1015,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.BatchProof; /** @@ -1026,7 +1026,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.BatchProof; /** @@ -1051,7 +1051,7 @@ export namespace ics23 { */ public static toObject( message: ics23.BatchProof, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -1102,7 +1102,7 @@ export namespace ics23 { */ public static encode( message: ics23.IBatchEntry, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1113,7 +1113,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.IBatchEntry, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1126,7 +1126,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.BatchEntry; /** @@ -1137,7 +1137,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.BatchEntry; /** @@ -1162,7 +1162,7 @@ export namespace ics23 { */ public static toObject( message: ics23.BatchEntry, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -1201,7 +1201,7 @@ export namespace ics23 { * @returns CompressedBatchProof instance */ public static create( - properties?: ics23.ICompressedBatchProof + properties?: ics23.ICompressedBatchProof, ): ics23.CompressedBatchProof; /** @@ -1212,7 +1212,7 @@ export namespace ics23 { */ public static encode( message: ics23.ICompressedBatchProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1223,7 +1223,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.ICompressedBatchProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1236,7 +1236,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.CompressedBatchProof; /** @@ -1247,7 +1247,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.CompressedBatchProof; /** @@ -1274,7 +1274,7 @@ export namespace ics23 { */ public static toObject( message: ics23.CompressedBatchProof, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -1316,7 +1316,7 @@ export namespace ics23 { * @returns CompressedBatchEntry instance */ public static create( - properties?: ics23.ICompressedBatchEntry + properties?: ics23.ICompressedBatchEntry, ): ics23.CompressedBatchEntry; /** @@ -1327,7 +1327,7 @@ export namespace ics23 { */ public static encode( message: ics23.ICompressedBatchEntry, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1338,7 +1338,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.ICompressedBatchEntry, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1351,7 +1351,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.CompressedBatchEntry; /** @@ -1362,7 +1362,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.CompressedBatchEntry; /** @@ -1389,7 +1389,7 @@ export namespace ics23 { */ public static toObject( message: ics23.CompressedBatchEntry, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -1440,7 +1440,7 @@ export namespace ics23 { * @returns CompressedExistenceProof instance */ public static create( - properties?: ics23.ICompressedExistenceProof + properties?: ics23.ICompressedExistenceProof, ): ics23.CompressedExistenceProof; /** @@ -1451,7 +1451,7 @@ export namespace ics23 { */ public static encode( message: ics23.ICompressedExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1462,7 +1462,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.ICompressedExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1475,7 +1475,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.CompressedExistenceProof; /** @@ -1486,7 +1486,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.CompressedExistenceProof; /** @@ -1513,7 +1513,7 @@ export namespace ics23 { */ public static toObject( message: ics23.CompressedExistenceProof, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** @@ -1558,7 +1558,7 @@ export namespace ics23 { * @returns CompressedNonExistenceProof instance */ public static create( - properties?: ics23.ICompressedNonExistenceProof + properties?: ics23.ICompressedNonExistenceProof, ): ics23.CompressedNonExistenceProof; /** @@ -1569,7 +1569,7 @@ export namespace ics23 { */ public static encode( message: ics23.ICompressedNonExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1580,7 +1580,7 @@ export namespace ics23 { */ public static encodeDelimited( message: ics23.ICompressedNonExistenceProof, - writer?: $protobuf.Writer + writer?: $protobuf.Writer, ): $protobuf.Writer; /** @@ -1593,7 +1593,7 @@ export namespace ics23 { */ public static decode( reader: $protobuf.Reader | Uint8Array, - length?: number + length?: number, ): ics23.CompressedNonExistenceProof; /** @@ -1604,7 +1604,7 @@ export namespace ics23 { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited( - reader: $protobuf.Reader | Uint8Array + reader: $protobuf.Reader | Uint8Array, ): ics23.CompressedNonExistenceProof; /** @@ -1631,7 +1631,7 @@ export namespace ics23 { */ public static toObject( message: ics23.CompressedNonExistenceProof, - options?: $protobuf.IConversionOptions + options?: $protobuf.IConversionOptions, ): { [k: string]: any }; /** diff --git a/js/src/ics23.ts b/js/src/ics23.ts index 510de566..ea541f85 100644 --- a/js/src/ics23.ts +++ b/js/src/ics23.ts @@ -34,7 +34,7 @@ export function verifyMembership( spec: ics23.IProofSpec, root: CommitmentRoot, key: Uint8Array, - value: Uint8Array + value: Uint8Array, ): boolean { const norm = decompress(proof); const exist = getExistForKey(norm, key); @@ -56,7 +56,7 @@ export function verifyNonMembership( proof: ics23.ICommitmentProof, spec: ics23.IProofSpec, root: CommitmentRoot, - key: Uint8Array + key: Uint8Array, ): boolean { const norm = decompress(proof); const nonexist = getNonExistForKey(spec, norm, key); @@ -78,7 +78,7 @@ export function batchVerifyMembership( proof: ics23.ICommitmentProof, spec: ics23.IProofSpec, root: CommitmentRoot, - items: Map + items: Map, ): boolean { const norm = decompress(proof); for (const [key, value] of items.entries()) { @@ -96,7 +96,7 @@ export function batchVerifyNonMembership( proof: ics23.ICommitmentProof, spec: ics23.IProofSpec, root: CommitmentRoot, - keys: readonly Uint8Array[] + keys: readonly Uint8Array[], ): boolean { const norm = decompress(proof); for (const key of keys) { @@ -109,7 +109,7 @@ export function batchVerifyNonMembership( function getExistForKey( proof: ics23.ICommitmentProof, - key: Uint8Array + key: Uint8Array, ): ics23.IExistenceProof | undefined | null { const match = (p: ics23.IExistenceProof | null | undefined): boolean => !!p && bytesEqual(key, p.key!); @@ -124,7 +124,7 @@ function getExistForKey( function getNonExistForKey( spec: ics23.IProofSpec, proof: ics23.ICommitmentProof, - key: Uint8Array + key: Uint8Array, ): ics23.INonExistenceProof | undefined | null { const match = (p: ics23.INonExistenceProof | null | undefined): boolean => { return ( @@ -132,12 +132,12 @@ function getNonExistForKey( (!p.left || bytesBefore( keyForComparison(spec, p.left.key!), - keyForComparison(spec, key) + keyForComparison(spec, key), )) && (!p.right || bytesBefore( keyForComparison(spec, key), - keyForComparison(spec, p.right.key!) + keyForComparison(spec, p.right.key!), )) ); }; diff --git a/js/src/ops.spec.ts b/js/src/ops.spec.ts index ade73b0a..fc57ee69 100644 --- a/js/src/ops.spec.ts +++ b/js/src/ops.spec.ts @@ -8,8 +8,8 @@ describe("doHash", () => { const hash = doHash(ics23.HashOp.SHA256, toAscii("food")); expect(hash).toEqual( fromHex( - "c1f026582fe6e8cb620d0c85a72fe421ddded756662a8ec00ed4c297ad10676b" - ) + "c1f026582fe6e8cb620d0c85a72fe421ddded756662a8ec00ed4c297ad10676b", + ), ); }); @@ -18,8 +18,8 @@ describe("doHash", () => { const hash = doHash(ics23.HashOp.SHA512, toAscii("food")); expect(hash).toEqual( fromHex( - "c235548cfe84fc87678ff04c9134e060cdcd7512d09ed726192151a995541ed8db9fda5204e72e7ac268214c322c17787c70530513c59faede52b7dd9ce64331" - ) + "c235548cfe84fc87678ff04c9134e060cdcd7512d09ed726192151a995541ed8db9fda5204e72e7ac268214c322c17787c70530513c59faede52b7dd9ce64331", + ), ); }); @@ -43,7 +43,7 @@ describe("applyLeaf", () => { const value = toAscii("bar"); // echo -n foobar | sha256sum const expected = fromHex( - "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2" + "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2", ); expect(applyLeaf(op, key, value)).toEqual(expected); }); @@ -54,7 +54,7 @@ describe("applyLeaf", () => { const value = toAscii("baz"); // echo -n foobaz | sha512sum const expected = fromHex( - "4f79f191298ec7461d60136c60f77c2ae8ddd85dbf6168bb925092d51bfb39b559219b39ae5385ba04946c87f64741385bef90578ea6fe6dac85dbf7ad3f79e1" + "4f79f191298ec7461d60136c60f77c2ae8ddd85dbf6168bb925092d51bfb39b559219b39ae5385ba04946c87f64741385bef90578ea6fe6dac85dbf7ad3f79e1", ); expect(applyLeaf(op, key, value)).toEqual(expected); }); @@ -64,7 +64,7 @@ describe("applyLeaf", () => { const key = toAscii("fo"); const value = toAscii("od"); const expected = fromHex( - "5b3a452a6acbf1fc1e553a40c501585d5bd3cca176d562e0a0e19a3c43804e88" + "5b3a452a6acbf1fc1e553a40c501585d5bd3cca176d562e0a0e19a3c43804e88", ); expect(applyLeaf(op, key, value)).toEqual(expected); }); @@ -75,7 +75,7 @@ describe("applyLeaf", () => { const value = toAscii("oobar"); // echo -n foobar | sha256sum const expected = fromHex( - "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2" + "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2", ); expect(applyLeaf(op, key, value)).toEqual(expected); }); @@ -90,7 +90,7 @@ describe("applyLeaf", () => { const value = toAscii("some longer text"); // 10736f6d65206c6f6e6765722074657874 // echo -n 04666f6f6410736f6d65206c6f6e6765722074657874 | xxd -r -p | sha256sum -b const expected = fromHex( - "b68f5d298e915ae1753dd333da1f9cf605411a5f2e12516be6758f365e6db265" + "b68f5d298e915ae1753dd333da1f9cf605411a5f2e12516be6758f365e6db265", ); expect(applyLeaf(op, key, value)).toEqual(expected); }); @@ -105,7 +105,7 @@ describe("applyLeaf", () => { const value = toAscii("some longer text"); // 10000000736f6d65206c6f6e6765722074657874 // echo -n 04000000666f6f6410000000736f6d65206c6f6e6765722074657874 | xxd -r -p | sha256sum const expected = fromHex( - "c853652437be02501c674744bf2a2b45d92a0a9f29c4b1044010fb3e2d43a949" + "c853652437be02501c674744bf2a2b45d92a0a9f29c4b1044010fb3e2d43a949", ); expect(applyLeaf(op, key, value)).toEqual(expected); }); @@ -121,7 +121,7 @@ describe("applyLeaf", () => { const value = toAscii("yet another long string"); // 20a48c2d4f67b9f80374938535285ed285819d8a5a8fc1fccd1e3244e437cf290d // echo -n 04666f6f6420a48c2d4f67b9f80374938535285ed285819d8a5a8fc1fccd1e3244e437cf290d | xxd -r -p | sha256sum const expected = fromHex( - "87e0483e8fb624aef2e2f7b13f4166cda485baa8e39f437c83d74c94bedb148f" + "87e0483e8fb624aef2e2f7b13f4166cda485baa8e39f437c83d74c94bedb148f", ); expect(applyLeaf(op, key, value)).toEqual(expected); }); @@ -155,7 +155,7 @@ describe("applyInner", () => { const child = fromHex("00cafe00"); // echo -n 012345678900cafe00deadbeef | xxd -r -p | sha256sum const expected = fromHex( - "0339f76086684506a6d42a60da4b5a719febd4d96d8b8d85ae92849e3a849a5e" + "0339f76086684506a6d42a60da4b5a719febd4d96d8b8d85ae92849e3a849a5e", ); expect(applyInner(op, child)).toEqual(expected); }); @@ -177,7 +177,7 @@ describe("applyInner", () => { const child = fromHex("ffccbb997755331100"); // echo -n 00204080a0c0e0ffccbb997755331100 | xxd -r -p | sha256sum const expected = fromHex( - "45bece1678cf2e9f4f2ae033e546fc35a2081b2415edcb13121a0e908dca1927" + "45bece1678cf2e9f4f2ae033e546fc35a2081b2415edcb13121a0e908dca1927", ); expect(applyInner(op, child)).toEqual(expected); }); @@ -190,7 +190,7 @@ describe("applyInner", () => { const child = toAscii("this is a sha256 hash, really...."); // echo -n 'this is a sha256 hash, really.... just kidding!' | sha256sum const expected = fromHex( - "79ef671d27e42a53fba2201c1bbc529a099af578ee8a38df140795db0ae2184b" + "79ef671d27e42a53fba2201c1bbc529a099af578ee8a38df140795db0ae2184b", ); expect(applyInner(op, child)).toEqual(expected); }); diff --git a/js/src/ops.ts b/js/src/ops.ts index 27bb537d..982fa54e 100644 --- a/js/src/ops.ts +++ b/js/src/ops.ts @@ -7,7 +7,7 @@ import { ics23 } from "./generated/codecimpl"; export function applyLeaf( leaf: ics23.ILeafOp, key: Uint8Array, - value: Uint8Array + value: Uint8Array, ): Uint8Array { if (key.length === 0) { throw new Error("Missing key"); @@ -18,12 +18,12 @@ export function applyLeaf( const pkey = prepareLeafData( ensureHash(leaf.prehashKey), ensureLength(leaf.length), - key + key, ); const pvalue = prepareLeafData( ensureHash(leaf.prehashValue), ensureLength(leaf.length), - value + value, ); const data = new Uint8Array([ ...ensureBytes(leaf.prefix), @@ -35,7 +35,7 @@ export function applyLeaf( export function applyInner( inner: ics23.IInnerOp, - child: Uint8Array + child: Uint8Array, ): Uint8Array { if (child.length === 0) { throw new Error("Inner op needs child value"); @@ -62,7 +62,7 @@ const ensureBytes = (b: Uint8Array | null | undefined): Uint8Array => function prepareLeafData( hashOp: ics23.HashOp, lengthOp: ics23.LengthOp, - data: Uint8Array + data: Uint8Array, ): Uint8Array { const h = doHashOrNoop(hashOp, data); return doLengthOp(lengthOp, h); diff --git a/js/src/proofs.spec.ts b/js/src/proofs.spec.ts index e7b727cf..462393ff 100644 --- a/js/src/proofs.spec.ts +++ b/js/src/proofs.spec.ts @@ -20,7 +20,7 @@ describe("calculateExistenceRoot", () => { }, }; const expected = fromHex( - "b68f5d298e915ae1753dd333da1f9cf605411a5f2e12516be6758f365e6db265" + "b68f5d298e915ae1753dd333da1f9cf605411a5f2e12516be6758f365e6db265", ); expect(calculateExistenceRoot(proof)).toEqual(expected); }); @@ -55,7 +55,7 @@ describe("calculateExistenceRoot", () => { ], }; const expected = fromHex( - "836ea236a6902a665c2a004c920364f24cad52ded20b1e4f22c3179bfe25b2a9" + "836ea236a6902a665c2a004c920364f24cad52ded20b1e4f22c3179bfe25b2a9", ); expect(calculateExistenceRoot(proof)).toEqual(expected); }); diff --git a/js/src/proofs.ts b/js/src/proofs.ts index 40b44079..0c668973 100644 --- a/js/src/proofs.ts +++ b/js/src/proofs.ts @@ -67,7 +67,7 @@ export type CommitmentRoot = Uint8Array; export function keyForComparison( spec: ics23.IProofSpec, - key: Uint8Array + key: Uint8Array, ): Uint8Array { if (!spec.prehashKeyBeforeComparison) { return key; @@ -83,7 +83,7 @@ export function verifyExistence( spec: ics23.IProofSpec, root: CommitmentRoot, key: Uint8Array, - value: Uint8Array + value: Uint8Array, ): void { ensureSpec(proof, spec); const calc = calculateExistenceRoot(proof); @@ -99,7 +99,7 @@ export function verifyNonExistence( proof: ics23.INonExistenceProof, spec: ics23.IProofSpec, root: CommitmentRoot, - key: Uint8Array + key: Uint8Array, ): void { let leftKey: Uint8Array | undefined; let rightKey: Uint8Array | undefined; @@ -114,7 +114,7 @@ export function verifyNonExistence( spec, root, proof.right.key!, - proof.right.value! + proof.right.value!, ); rightKey = proof.right.key!; } @@ -126,13 +126,13 @@ export function verifyNonExistence( if (leftKey) { ensureBytesBefore( keyForComparison(spec, leftKey), - keyForComparison(spec, key) + keyForComparison(spec, key), ); } if (rightKey) { ensureBytesBefore( keyForComparison(spec, key), - keyForComparison(spec, rightKey) + keyForComparison(spec, rightKey), ); } @@ -153,7 +153,7 @@ export function verifyNonExistence( // You must validate the result is what you have in a header. // Returns error if the calculations cannot be performed. export function calculateExistenceRoot( - proof: ics23.IExistenceProof + proof: ics23.IExistenceProof, ): CommitmentRoot { if (!proof.key || !proof.value) { throw new Error("Existence proof needs key and value set"); @@ -173,7 +173,7 @@ export function calculateExistenceRoot( // ensureSpec throws an Error if proof doesn't fulfill spec export function ensureSpec( proof: ics23.IExistenceProof, - spec: ics23.IProofSpec + spec: ics23.IProofSpec, ): void { if (!proof.leaf) { throw new Error("Existence proof must start with a leaf operation"); @@ -200,7 +200,7 @@ export function ensureSpec( function ensureLeftMost( spec: ics23.IInnerSpec, - path: readonly ics23.IInnerOp[] + path: readonly ics23.IInnerOp[], ): void { const { minPrefix, maxPrefix, suffix } = getPadding(spec, 0); @@ -214,7 +214,7 @@ function ensureLeftMost( function ensureRightMost( spec: ics23.IInnerSpec, - path: readonly ics23.IInnerOp[] + path: readonly ics23.IInnerOp[], ): void { const len = spec.childOrder!.length - 1; const { minPrefix, maxPrefix, suffix } = getPadding(spec, len); @@ -230,7 +230,7 @@ function ensureRightMost( export function ensureLeftNeighbor( spec: ics23.IInnerSpec, left: readonly ics23.IInnerOp[], - right: readonly ics23.IInnerOp[] + right: readonly ics23.IInnerOp[], ): void { const mutleft: ics23.IInnerOp[] = [...left]; const mutright: ics23.IInnerOp[] = [...right]; @@ -261,7 +261,7 @@ export function ensureLeftNeighbor( function isLeftStep( spec: ics23.IInnerSpec, left: ics23.IInnerOp, - right: ics23.IInnerOp + right: ics23.IInnerOp, ): boolean { const leftidx = orderFromPadding(spec, left); const rightidx = orderFromPadding(spec, right); @@ -270,7 +270,7 @@ function isLeftStep( function orderFromPadding( spec: ics23.IInnerSpec, - inner: ics23.IInnerOp + inner: ics23.IInnerOp, ): number { for (let branch = 0; branch < spec.childOrder!.length; branch++) { const { minPrefix, maxPrefix, suffix } = getPadding(spec, branch); @@ -285,7 +285,7 @@ function hasPadding( op: ics23.IInnerOp, minPrefix: number, maxPrefix: number, - suffix: number + suffix: number, ): boolean { if ((op.prefix || []).length < minPrefix) { return false; diff --git a/js/src/specs.ts b/js/src/specs.ts index ac218e16..fdea0b95 100644 --- a/js/src/specs.ts +++ b/js/src/specs.ts @@ -19,7 +19,7 @@ export function ensureLeaf(leaf: ics23.ILeafOp, spec: ics23.ILeafOp): void { export function ensureInner( inner: ics23.IInnerOp, prefix: Uint8Array | null | undefined, - spec: ics23.IInnerSpec + spec: ics23.IInnerSpec, ): void { if (inner.hash !== spec.hash) { throw new Error(`Unexpected hashOp: ${inner.hash}`); @@ -41,7 +41,7 @@ export function ensureInner( function ensurePrefix( check?: Uint8Array | null, - prefix?: Uint8Array | null + prefix?: Uint8Array | null, ): void { // no prefix supplied, means everything passes if (!prefix || prefix.length === 0) { @@ -79,7 +79,7 @@ export function bytesEqual(a: Uint8Array, b: Uint8Array): boolean { function hasPrefix( check?: Uint8Array | null, - prefix?: Uint8Array | null + prefix?: Uint8Array | null, ): boolean { // no prefix supplied, means everything passes if (!prefix || prefix.length === 0) { diff --git a/js/src/testhelpers.spec.ts b/js/src/testhelpers.spec.ts index 2fed1a11..fab44e8b 100644 --- a/js/src/testhelpers.spec.ts +++ b/js/src/testhelpers.spec.ts @@ -25,7 +25,7 @@ export function toAscii(input: string): Uint8Array { if (charCode < 0x20 || charCode > 0x7e) { throw new Error( "Cannot encode character that is out of printable ASCII range: " + - charCode + charCode, ); } return charCode; diff --git a/js/src/testvectors.spec.ts b/js/src/testvectors.spec.ts index cdc6620c..e00e8748 100644 --- a/js/src/testvectors.spec.ts +++ b/js/src/testvectors.spec.ts @@ -82,37 +82,37 @@ describe("calculateExistenceRoot", () => { it("should parse tendermint left", () => { validateTestVector( "../testdata/tendermint/exist_left.json", - tendermintSpec + tendermintSpec, ); }); it("should parse tendermint right", () => { validateTestVector( "../testdata/tendermint/exist_right.json", - tendermintSpec + tendermintSpec, ); }); it("should parse tendermint middle", () => { validateTestVector( "../testdata/tendermint/exist_middle.json", - tendermintSpec + tendermintSpec, ); }); it("should parse tendermint left - nonexist", () => { validateTestVector( "../testdata/tendermint/nonexist_left.json", - tendermintSpec + tendermintSpec, ); }); it("should parse tendermint right - nonexist", () => { validateTestVector( "../testdata/tendermint/nonexist_right.json", - tendermintSpec + tendermintSpec, ); }); it("should parse tendermint middle - nonexist", () => { validateTestVector( "../testdata/tendermint/nonexist_middle.json", - tendermintSpec + tendermintSpec, ); }); @@ -144,7 +144,7 @@ describe("calculateExistenceRoot", () => { function validateBatch( proof: ics23.ICommitmentProof, spec: ics23.IProofSpec, - data: RefData + data: RefData, ): void { const { root, key, value } = data; if (value) { diff --git a/js/yarn.lock b/js/yarn.lock index ec67c338..8182cbc9 100644 --- a/js/yarn.lock +++ b/js/yarn.lock @@ -336,6 +336,18 @@ resolved "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== +"@pkgr/utils@^2.3.1": + version "2.4.2" + resolved "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz" + integrity sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw== + dependencies: + cross-spawn "^7.0.3" + fast-glob "^3.3.0" + is-glob "^4.0.3" + open "^9.1.0" + picocolors "^1.0.0" + tslib "^2.6.0" + "@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": version "1.1.2" resolved "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz" @@ -642,6 +654,18 @@ balanced-match@^1.0.0: resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== +big-integer@^1.6.44: + version "1.6.51" + resolved "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz" + integrity sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg== + +bplist-parser@^0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz" + integrity sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw== + dependencies: + big-integer "^1.6.44" + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" @@ -679,6 +703,13 @@ buffer-from@^1.0.0: resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== +bundle-name@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz" + integrity sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw== + dependencies: + run-applescript "^5.0.0" + caching-transform@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz" @@ -848,6 +879,24 @@ deep-is@^0.1.3: resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== +default-browser-id@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz" + integrity sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA== + dependencies: + bplist-parser "^0.2.0" + untildify "^4.0.0" + +default-browser@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz" + integrity sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA== + dependencies: + bundle-name "^3.0.0" + default-browser-id "^3.0.0" + execa "^7.1.1" + titleize "^3.0.0" + default-require-extensions@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.1.tgz" @@ -870,6 +919,11 @@ define-data-property@^1.0.1: gopd "^1.0.1" has-property-descriptors "^1.0.0" +define-lazy-prop@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz" + integrity sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg== + define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0: version "1.2.1" resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz" @@ -1072,12 +1126,13 @@ eslint-plugin-import@^2.25.4: resolve "^1.20.0" tsconfig-paths "^3.12.0" -eslint-plugin-prettier@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.0.0.tgz" - integrity sha512-98MqmCJ7vJodoQK359bqQWaxOE0CS8paAz/GgjaZLyex4TTk3g9HugoO89EqWCrFiOqn9EVvcoo7gZzONCWVwQ== +eslint-plugin-prettier@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz" + integrity sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w== dependencies: prettier-linter-helpers "^1.0.0" + synckit "^0.8.5" eslint-plugin-simple-import-sort@^10.0.0: version "10.0.0" @@ -1097,7 +1152,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4 resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -"eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^7.0.0 || ^8.0.0", eslint@^8.8.0, eslint@>=5.0.0, eslint@>=7.0.0, eslint@>=7.28.0: +"eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^6.0.0 || ^7.0.0 || >=8.0.0", "eslint@^7.0.0 || ^8.0.0", eslint@^8.8.0, eslint@>=5.0.0, eslint@>=7.0.0, eslint@>=8.0.0: version "8.50.0" resolved "https://registry.npmjs.org/eslint/-/eslint-8.50.0.tgz" integrity sha512-FOnOGSuFuFLv/Sa+FDVRZl4GGVAAFFi8LecRsI5a1tMO5HIE8nCm4ivAlzt4dT3ol/PaaGC0rJEEXQmHJBGoOg== @@ -1178,6 +1233,36 @@ esutils@^2.0.2: resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +execa@^5.0.0: + version "5.1.1" + resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + +execa@^7.1.1: + version "7.2.0" + resolved "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz" + integrity sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.1" + human-signals "^4.3.0" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^3.0.7" + strip-final-newline "^3.0.0" + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" @@ -1188,10 +1273,10 @@ fast-diff@^1.1.2: resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== -fast-glob@^3.2.9: - version "3.2.11" - resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz" - integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== +fast-glob@^3.2.9, fast-glob@^3.3.0: + version "3.3.1" + resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz" + integrity sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg== dependencies: "@nodelib/fs.stat" "^2.0.2" "@nodelib/fs.walk" "^1.2.3" @@ -1384,6 +1469,11 @@ get-package-type@^0.1.0: resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== +get-stream@^6.0.0, get-stream@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + get-symbol-description@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" @@ -1540,6 +1630,16 @@ html-escaper@^2.0.0: resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +human-signals@^4.3.0: + version "4.3.1" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz" + integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== + ignore@^5.2.0, ignore@^5.2.4: version "5.2.4" resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz" @@ -1648,6 +1748,16 @@ is-date-object@^1.0.1: dependencies: has-tostringtag "^1.0.0" +is-docker@^2.0.0: + version "2.2.1" + resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== + +is-docker@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz" + integrity sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ== + is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" @@ -1665,6 +1775,13 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: dependencies: is-extglob "^2.1.1" +is-inside-container@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz" + integrity sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA== + dependencies: + is-docker "^3.0.0" + is-negative-zero@^2.0.1, is-negative-zero@^2.0.2: version "2.0.2" resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" @@ -1711,6 +1828,11 @@ is-stream@^2.0.0: resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== + is-string@^1.0.5, is-string@^1.0.7: version "1.0.7" resolved "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" @@ -1748,6 +1870,13 @@ is-windows@^1.0.2: resolved "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz" integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== +is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + isarray@^2.0.5: version "2.0.5" resolved "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz" @@ -1988,6 +2117,11 @@ make-dir@^4.0.0: dependencies: semver "^7.5.3" +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + merge2@^1.3.0, merge2@^1.4.1: version "1.4.1" resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" @@ -2006,6 +2140,16 @@ mimic-fn@^1.0.0: resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz" integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== + minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" @@ -2064,6 +2208,20 @@ node-releases@^2.0.13: resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz" integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== +npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +npm-run-path@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz" + integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q== + dependencies: + path-key "^4.0.0" + nyc@^15.1.0: version "15.1.0" resolved "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz" @@ -2153,6 +2311,30 @@ onetime@^2.0.0: dependencies: mimic-fn "^1.0.0" +onetime@^5.1.2: + version "5.1.2" + resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== + dependencies: + mimic-fn "^4.0.0" + +open@^9.1.0: + version "9.1.0" + resolved "https://registry.npmjs.org/open/-/open-9.1.0.tgz" + integrity sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg== + dependencies: + default-browser "^4.0.0" + define-lazy-prop "^3.0.0" + is-inside-container "^1.0.0" + is-wsl "^2.2.0" + optionator@^0.9.3: version "0.9.3" resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz" @@ -2268,11 +2450,16 @@ path-is-absolute@^1.0.0: resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= -path-key@^3.1.0: +path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== + path-parse@^1.0.7: version "1.0.7" resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" @@ -2325,10 +2512,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.5.1, prettier@>=2.0.0: - version "2.5.1" - resolved "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz" - integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== +prettier@^3.0.3, prettier@>=3.0.0: + version "3.0.3" + resolved "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== process-on-spawn@^1.0.0: version "1.0.0" @@ -2436,6 +2623,13 @@ rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" +run-applescript@^5.0.0: + version "5.0.0" + resolved "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz" + integrity sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg== + dependencies: + execa "^5.0.0" + run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" @@ -2533,10 +2727,10 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" - integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= +signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: + version "3.0.7" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== signal-exit@^4.0.1: version "4.1.0" @@ -2683,6 +2877,16 @@ strip-bom@^4.0.0: resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz" integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-final-newline@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz" + integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== + strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" @@ -2707,6 +2911,14 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== +synckit@^0.8.5: + version "0.8.5" + resolved "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz" + integrity sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q== + dependencies: + "@pkgr/utils" "^2.3.1" + tslib "^2.5.0" + test-exclude@^6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" @@ -2721,6 +2933,11 @@ text-table@^0.2.0: resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= +titleize@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz" + integrity sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ== + to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" @@ -2748,6 +2965,11 @@ tsconfig-paths@^3.12.0: minimist "^1.2.0" strip-bom "^3.0.0" +tslib@^2.5.0, tslib@^2.6.0: + version "2.6.2" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" @@ -2831,6 +3053,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +untildify@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz" + integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== + update-browserslist-db@^1.0.13: version "1.0.13" resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz"