From 65e755ca1300fb4ba463bf585133b9f1d5a9d2a4 Mon Sep 17 00:00:00 2001 From: dankelleher Date: Thu, 21 Sep 2023 12:11:41 +0200 Subject: [PATCH 1/6] Allowing the resolver to be passed in. --- .eslintrc | 2 +- README.md | 14 +- .../credentials/VerifiableCredential.test.js | 62 +- __test__/claim/Claim.test.js | 12 +- __test__/creds/VerifiableCredential.test.js | 299 +- .../creds/VerifiableCredentialProxy.test.js | 2002 -- .../proxyFixtures/filteredIdDocument-v2.json | 1 + __test__/isClaimRelated.test.js | 23 +- __test__/isValidGlobalIdentifier.test.js | 19 +- __test__/lib/did.test.js | 2 +- __test__/lib/signerVerifier.test.js | 5 +- __test__/lib/util/did.js | 26 +- __test__/schemaLoader.test.js | 1 - .../services/MiniCryptoManagerImpl.test.js | 6 +- package-lock.json | 27524 ++++++++-------- package.json | 67 +- src/claim/Claim.js | 36 +- src/creds/CvcMerkleProof.js | 4 +- src/creds/VerifiableCredential.js | 47 +- src/creds/VerifiableCredentialProxy.js | 189 - src/index.js | 2 - src/isClaimRelated.js | 4 +- src/lib/crypto.js | 2 +- src/lib/did.js | 65 +- src/lib/signerVerifier.js | 1 + src/lib/stringUtils.js | 4 +- src/schemas/jsonSchema/index.js | 11 +- src/schemas/jsonSchema/loaders/cvc.js | 1 + src/services/DefaultAnchorServiceImpl.js | 4 +- src/services/DummyAnchorServiceImpl.js | 4 +- src/services/__mocks__/httpService.js | 2 +- src/services/anchorService.js | 12 +- 32 files changed, 13637 insertions(+), 16816 deletions(-) delete mode 100644 __test__/creds/VerifiableCredentialProxy.test.js delete mode 100644 src/creds/VerifiableCredentialProxy.js diff --git a/.eslintrc b/.eslintrc index 19f66744..d06d95f8 100644 --- a/.eslintrc +++ b/.eslintrc @@ -10,6 +10,6 @@ "no-only-tests" ], "rules": { - "max-len": ["warn", 120] + "max-len": ["warn", 300] // this is too big - add prettier } } diff --git a/README.md b/README.md index 1227fb33..64798668 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,19 @@ const ccc = new CCC({ ``` -If you are not sure how to get those informations, see the tutorial down below. +If you are not sure how to get this information, see the tutorial down below. + +## NOTE + +This library requires a DID resolver to be passed in as follows: + +```js +const resolver = async (did) => { + const document = // retrieve from the blockchain or other source + return document; +} +VC.setResolver(resolver); +``` ## Features diff --git a/__integrations__/credentials/VerifiableCredential.test.js b/__integrations__/credentials/VerifiableCredential.test.js index e64ff1d0..675f2b38 100644 --- a/__integrations__/credentials/VerifiableCredential.test.js +++ b/__integrations__/credentials/VerifiableCredential.test.js @@ -1,4 +1,4 @@ -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const { Claim } = require('../../src/claim/Claim'); const VC = require('../../src/creds/VerifiableCredential'); const { schemaLoader, CVCSchemaLoader } = require('../../src'); @@ -16,50 +16,50 @@ describe('Integration Tests for Verifiable Credentials', () => { schemaLoader.reset(); }); - it('should request an anchor for Credential and return an temporary attestation', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', - { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }); + it('should request an anchor for Credential and return an temporary attestation', async () => { + const name = await Claim.create( + 'claim-cvc:Identity.name-v1', + { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }, + ); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 20, month: 3, year: 1978 }); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - return cred.requestAnchor().then((updated) => { - expect(updated.proof.anchor.type).toBe('temporary'); - expect(updated.proof.anchor.value).not.toBeDefined(); - expect(updated.proof.anchor).toBeDefined(); - expect(updated.proof.anchor.schema).toBe('dummy-20180201'); - done(); - }); + const updated = await cred.requestAnchor(); + expect(updated.proof.anchor.type).toBe('temporary'); + expect(updated.proof.anchor.value).not.toBeDefined(); + expect(updated.proof.anchor).toBeDefined(); + expect(updated.proof.anchor.schema).toBe('dummy-20180201'); }); - it('should refresh an temporary anchoring with an permanent one', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', - { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }); + it('should refresh an temporary anchoring with an permanent one', async () => { + const name = await Claim.create( + 'claim-cvc:Identity.name-v1', + { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }, + ); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 20, month: 3, year: 1978 }); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - return cred.requestAnchor().then((updated) => { - expect(updated.proof.anchor).toBeDefined(); - return updated.updateAnchor().then((newUpdated) => { - expect(newUpdated.proof.anchor.type).toBe('permanent'); - expect(newUpdated.proof.anchor).toBeDefined(); - expect(newUpdated.proof.anchor.value).toBeDefined(); - done(); - }); - }); + const updated = await cred.requestAnchor(); + expect(updated.proof.anchor).toBeDefined(); + const newUpdated = await updated.updateAnchor(); + expect(newUpdated.proof.anchor.type).toBe('permanent'); + expect(newUpdated.proof.anchor).toBeDefined(); + expect(newUpdated.proof.anchor.value).toBeDefined(); }); - it('should revoke the permanent anchor and succed verification', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', - { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }); + + it('should revoke the permanent anchor and succeed verification', async () => { + const name = await Claim.create( + 'claim-cvc:Identity.name-v1', + { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }, + ); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 20, month: 3, year: 1978 }); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); await cred.requestAnchor(); await cred.updateAnchor(); const validation = await cred.verifyAttestation(); - if (validation) { - const isRevoked = await cred.revokeAttestation(); - expect(isRevoked).toBeTruthy(); - } - done(); + expect(validation).toBeTruthy(); + const isRevoked = await cred.revokeAttestation(); + expect(isRevoked).toBeTruthy(); }); }); diff --git a/__test__/claim/Claim.test.js b/__test__/claim/Claim.test.js index 95b8a2c2..cebb4bbf 100644 --- a/__test__/claim/Claim.test.js +++ b/__test__/claim/Claim.test.js @@ -12,9 +12,11 @@ describe('Claim Constructions tests', () => { schemaLoader.reset(); }); - test('Claim construction should fails', + test( + 'Claim construction should fails', async () => expect(Claim.create('name.first', 'joao')) - .rejects.toThrow(/name.first is not defined/)); + .rejects.toThrow(/name.first is not defined/), + ); test('Claim construction should succeed', async () => { const v = await Claim.create('claim-cvc:Name.givenNames-v1', 'joao'); @@ -47,7 +49,7 @@ describe('Claim Constructions tests', () => { year: 1978, }; - return Claim.create(identifier, value).catch(e => expect(e).toBeDefined()); + return Claim.create(identifier, value).catch((e) => expect(e).toBeDefined()); }); test('Claim dont construct invalid month', async () => { @@ -58,7 +60,7 @@ describe('Claim Constructions tests', () => { year: 1978, }; - return Claim.create(identifier, value).catch(e => expect(e).toBeDefined()); + return Claim.create(identifier, value).catch((e) => expect(e).toBeDefined()); }); test('Claim dont construct invalid year', async () => { @@ -69,7 +71,7 @@ describe('Claim Constructions tests', () => { year: -1, }; - return Claim.create(identifier, value).catch(e => expect(e).toBeDefined()); + return Claim.create(identifier, value).catch((e) => expect(e).toBeDefined()); }); test('cvc:Verify:phoneNumberToken must have type equals String', async () => { diff --git a/__test__/creds/VerifiableCredential.test.js b/__test__/creds/VerifiableCredential.test.js index 3e53f620..eb0879e8 100644 --- a/__test__/creds/VerifiableCredential.test.js +++ b/__test__/creds/VerifiableCredential.test.js @@ -1,6 +1,6 @@ const _ = require('lodash'); const fs = require('fs'); -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const sjcl = require('sjcl'); const { Claim } = require('../../src/claim/Claim'); const VC = require('../../src/creds/VerifiableCredential'); @@ -14,6 +14,7 @@ const { const filteredCredentialJson = require('./fixtures/filteredIdDocument-v3.json'); const invalidEmailJson = require('./fixtures/CredentialEmailInvalid.json'); const signerVerifier = require('../../src/lib/signerVerifier'); +const { stubResolver } = require('../lib/util/did'); const credentialSubject = 'did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V'; @@ -43,7 +44,7 @@ const signAttestationSubject = (subject, xprv, xpub) => { }; }; -const toValueObject = obj => JSON.parse(JSON.stringify(obj)); +const toValueObject = (obj) => JSON.parse(JSON.stringify(obj)); class TestSchemaLoader extends CVCSchemaLoader { // eslint-disable-next-line class-methods-use-this @@ -67,14 +68,14 @@ describe('Unit tests for Verifiable Credentials', () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); - didTestUtil.mockDids(); + VC.setResolver(stubResolver); }); beforeEach(() => { schemaLoader.reset(); }); - test('Dont construct undefined Credentials', async () => { + it('Dont construct undefined Credentials', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); @@ -82,7 +83,7 @@ describe('Unit tests for Verifiable Credentials', () => { .rejects.toThrow(/cvc:cred:Test is not defined/); }); - test('New Defined Credentials', async () => { + it('New Defined Credentials', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -96,8 +97,8 @@ describe('Unit tests for Verifiable Credentials', () => { expect(cred.proof.leaves).toHaveLength(8); }); - test('should validate new defined credentials with the obligatory Meta:expirationDate UCA with' - + ' null value', async () => { + it('should validate new defined credentials with the obligatory Meta:expirationDate UCA with' + + ' null value', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -105,7 +106,7 @@ describe('Unit tests for Verifiable Credentials', () => { expect(cred.expirationDate).toBeNull(); }); - test('New Expirable Credentials', async () => { + it('New Expirable Credentials', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), '-1d', credentialSubject, [name, dob]); @@ -123,27 +124,25 @@ describe('Unit tests for Verifiable Credentials', () => { expect(cred.proof.leaves).toHaveLength(8); }); - test('New Defined Credentials return the incorrect global Credential Identifier', async () => { + it('New Defined Credentials return the incorrect global Credential Identifier', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); expect(cred.getGlobalIdentifier()).toBe('credential-credential-cvc:Identity-v3-3'); }); - it('should request an anchor for Credential and return an temporary attestation', async (done) => { + it('should request an anchor for Credential and return an temporary attestation', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), '-1d', credentialSubject, [name, dob]); - return cred.requestAnchor().then((updated) => { - expect(updated.proof.anchor.type).toBe('temporary'); - expect(updated.proof.anchor.value).not.toBeDefined(); - expect(updated.proof.anchor).toBeDefined(); - expect(updated.proof.anchor.schema).toBe('dummy-20180201'); - done(); - }); + const updated = await cred.requestAnchor(); + expect(updated.proof.anchor.type).toBe('temporary'); + expect(updated.proof.anchor.value).not.toBeDefined(); + expect(updated.proof.anchor).toBeDefined(); + expect(updated.proof.anchor.schema).toBe('dummy-20180201'); }); - it('should refresh an temporary anchoring with an permanent one', async (done) => { + it('should refresh an temporary anchoring with an permanent one', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -155,23 +154,25 @@ describe('Unit tests for Verifiable Credentials', () => { mockedVc.updateAnchor = jest.fn().mockImplementation(async () => mockedVc); return mockedVc; }); - return cred.requestAnchor().then((updated) => { - expect(updated.proof.anchor).toBeDefined(); - return updated.updateAnchor().then((newUpdated) => { - expect(newUpdated.proof.anchor.type).toBe('permanent'); - expect(newUpdated.proof.anchor).toBeDefined(); - expect(newUpdated.proof.anchor.subject).toBeDefined(); - done(); - }); - }); + const updated = await cred.requestAnchor(); + expect(updated.proof.anchor).toBeDefined(); + const newUpdated = await updated.updateAnchor(); + expect(newUpdated.proof.anchor.type).toBe('permanent'); + expect(newUpdated.proof.anchor).toBeDefined(); + expect(newUpdated.proof.anchor.subject).toBeDefined(); }); - test('Filter claims from Identity Name', async () => { + it('Filter claims from Identity Name', async () => { const nameUca = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dobUca = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const simpleIdentity = await VC.create('credential-cvc:Identity-v3', - 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', null, credentialSubject, [nameUca, dobUca]); + const simpleIdentity = await VC.create( + 'credential-cvc:Identity-v3', + 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', + null, + credentialSubject, + [nameUca, dobUca], + ); const filtered = simpleIdentity.filter(['claim-cvc:Name.givenNames-v1']); expect(filtered.credentialSubject.identity.name.givenNames).toBeDefined(); @@ -182,7 +183,8 @@ describe('Unit tests for Verifiable Credentials', () => { expect(emptyFiltered.credentialSubject).toEqual({}); }); - it('Should filter claims for Email asking for claim-cvc:Contact.email-v1 and return them on the filtered VC', + it( + 'Should filter claims for Email asking for claim-cvc:Contact.email-v1 and return them on the filtered VC', async () => { const email = { domain: { @@ -199,9 +201,11 @@ describe('Unit tests for Verifiable Credentials', () => { expect(filtered.credentialSubject.contact.email.domain.tld).toBe('oVaPsceZ4C'); expect(filtered.credentialSubject.contact.email.domain.name).toBe('UTpHKFyaaB'); expect(filtered.credentialSubject.contact.email.username).toBe('ZcMpCBQ0lE'); - }); + }, + ); - it('Should filter claims for Email asking for cvc:Contact:domain and not return the cvc:Contact:address', + it( + 'Should filter claims for Email asking for cvc:Contact:domain and not return the cvc:Contact:address', async () => { const email = { domain: { @@ -212,19 +216,18 @@ describe('Unit tests for Verifiable Credentials', () => { }; const emailUca = await Claim.create('claim-cvc:Contact.email-v1', email, '1'); - const emailCredential = await VC.create( - 'credential-cvc:Email-v3', '', null, credentialSubject, [emailUca], - ); + const emailCredential = await VC.create('credential-cvc:Email-v3', '', null, credentialSubject, [emailUca]); const filtered = emailCredential.filter(['claim-cvc:Email.domain-v1']); expect(filtered.credentialSubject.contact.email.domain).toBeDefined(); expect(filtered.credentialSubject.contact.email.domain.tld).toBe('oVaPsceZ4C'); expect(filtered.credentialSubject.contact.email.domain.name).toBe('UTpHKFyaaB'); expect(filtered.credentialSubject.contact.email.username).toBeUndefined(); - }); + }, + ); it('Should filter claims for Address asking for claim-cvc:Type.address-v1' - + 'and return the claim-cvc:Type.address-v1', async () => { + + 'and return the claim-cvc:Type.address-v1', async () => { const value = { country: 'X2sEB9F9W9', county: 'sDlIM4Rjpo', @@ -236,9 +239,7 @@ describe('Unit tests for Verifiable Credentials', () => { }; const uca = await Claim.create('claim-cvc:Identity.address-v1', value, '1'); - const credential = await VC.create( - 'credential-cvc:Address-v3', '', null, credentialSubject, [uca], - ); + const credential = await VC.create('credential-cvc:Address-v3', '', null, credentialSubject, [uca]); const filtered = credential.filter(['claim-cvc:Identity.address-v1']); expect(filtered.credentialSubject.identity.address).toBeDefined(); @@ -251,7 +252,8 @@ describe('Unit tests for Verifiable Credentials', () => { expect(filtered.credentialSubject.identity.address.postalCode).toBe('5JhmWkXBAg'); }); - it('Should filter claims for PhoneNumber asking for credential-cvc:PhoneNumber-v3 and return the full claim', + it( + 'Should filter claims for PhoneNumber asking for credential-cvc:PhoneNumber-v3 and return the full claim', async () => { const value = { country: '1ApYikRwDl', @@ -262,9 +264,7 @@ describe('Unit tests for Verifiable Credentials', () => { }; const uca = await Claim.create('claim-cvc:Contact.phoneNumber-v1', value, '1'); - const credential = await VC.create( - 'credential-cvc:PhoneNumber-v3', '', null, credentialSubject, [uca], - ); + const credential = await VC.create('credential-cvc:PhoneNumber-v3', '', null, credentialSubject, [uca]); const filtered = credential.filter(['claim-cvc:Contact.phoneNumber-v1']); expect(filtered.credentialSubject.contact.phoneNumber).toBeDefined(); @@ -273,9 +273,11 @@ describe('Unit tests for Verifiable Credentials', () => { expect(filtered.credentialSubject.contact.phoneNumber.extension).toBe('sXZpZJTe4R'); expect(filtered.credentialSubject.contact.phoneNumber.lineType).toBe('OaguqgUaR7'); expect(filtered.credentialSubject.contact.phoneNumber.number).toBe('kCTGifTdom'); - }); + }, + ); - it('Should filter claims for GenericDocumentId asking for claim-cvc:Identity.dateOfBirth-v1 and return nothing', + it( + 'Should filter claims for GenericDocumentId asking for claim-cvc:Identity.dateOfBirth-v1 and return nothing', async () => { const typeValue = 'passport'; const type = await Claim.create('claim-cvc:Document.type-v1', typeValue, '1'); @@ -333,17 +335,16 @@ describe('Unit tests for Verifiable Credentials', () => { backMD5: '0yr9zkdApo', }; const image = await Claim.create('cvc:Document:image', imageValue, '1'); - const credential = await VC.create( - 'credential-cvc:GenericDocumentId-v3', '', null, credentialSubject, [type, number, name, gender, issueAuthority, - issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth], - ); + const credential = await VC.create('credential-cvc:GenericDocumentId-v3', '', null, credentialSubject, [type, number, name, gender, issueAuthority, + issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth]); const filtered = credential.filter(['claim-cvc:Identity.dateOfBirth-v1']); expect(filtered.credentialSubject.document).toBeUndefined(); - }); + }, + ); it('Should filter claims for PhoneNumber asking for cvc:Phone:countryCode and return only the' - + ' claim for country code', async () => { + + ' claim for country code', async () => { const value = { country: '1ApYikRwDl', countryCode: 'U4drpB96Hk', @@ -401,10 +402,8 @@ describe('Unit tests for Verifiable Credentials', () => { }; const evidences = await Claim.create('claim-cvc:Document.evidences-v1', evidencesValue, '1'); - const credential = await VC.create( - 'credential-cvc:IdDocument-v3', '', null, credentialSubject, [type, number, name, gender, - issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality, evidences], - ); + const credential = await VC.create('credential-cvc:IdDocument-v3', '', null, credentialSubject, [type, number, name, gender, + issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality, evidences]); expect(credential).toBeDefined(); const filtered = credential.filter(['claim-cvc:Document.dateOfBirth-v1']); expect(filtered).toBeDefined(); @@ -437,9 +436,7 @@ describe('Unit tests for Verifiable Credentials', () => { }; const address = await Claim.create('claim-cvc:Document.address-v1', addressValue, '1'); - const credential = await VC.create( - 'credential-alt:Identity-v3', '', null, credentialSubject, [name, dateOfBirth, address], - ); + const credential = await VC.create('credential-alt:Identity-v3', '', null, credentialSubject, [name, dateOfBirth, address]); expect(credential).toBeDefined(); }); @@ -539,14 +536,13 @@ describe('Unit tests for Verifiable Credentials', () => { }; const covidClaim = await Claim.create('claim-cvc:Medical.covid19-v1', covidDetails); - const credential = await VC.create( - 'credential-cvc:Covid19-v3', '', null, credentialSubject, [covidClaim], - ); + const credential = await VC.create('credential-cvc:Covid19-v3', '', null, credentialSubject, [covidClaim]); expect(credential).toBeDefined(); expect(credential.verifyProofs()).toBeTruthy(); }); - it('Should filter claims for GenericDocumentId asking for cvc:Document:Type and return only that claim', + it( + 'Should filter claims for GenericDocumentId asking for cvc:Document:Type and return only that claim', async () => { const typeValue = 'passport'; const type = await Claim.create('claim-cvc:Document.type-v1', typeValue, '1'); @@ -604,15 +600,14 @@ describe('Unit tests for Verifiable Credentials', () => { backMD5: '0yr9zkdApo', }; const image = await Claim.create('cvc:Document:image', imageValue, '1'); - const credential = await VC.create( - 'credential-cvc:GenericDocumentId-v3', '', null, credentialSubject, [type, number, name, gender, issueAuthority, - issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth], - ); + const credential = await VC.create('credential-cvc:GenericDocumentId-v3', '', null, credentialSubject, [type, number, name, gender, issueAuthority, + issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth]); const filtered = credential.filter(['claim-cvc:Document.type-v1']); expect(filtered.credentialSubject.document.type).toBe('passport'); - }); + }, + ); it('Should verify an VC of type Email', async () => { const credJSon = require('./fixtures/Email.json'); // eslint-disable-line @@ -683,10 +678,9 @@ describe('Unit tests for Verifiable Credentials', () => { expect(await cred.verifyProofs()).toBeTruthy(); }); - // This breaks VC.verify - verify has been deprecated test.skip('cred.verify(): with a valid cred without expirationDate, should return at least' - + ' VERIFY_LEVELS.PROOFS level', async () => { + + ' VERIFY_LEVELS.PROOFS level', async () => { const credJSon = require('./fixtures/Cred1.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); @@ -714,10 +708,12 @@ describe('Unit tests for Verifiable Credentials', () => { expect(isValid).toBeTruthy(); }); - it('Should fail verification of a VC with invalid cryptographic security', - async () => expect(VC.cryptographicallySecureVerify(invalidEmailJson)).resolves.toBeFalsy()); + it( + 'Should fail verification of a VC with invalid cryptographic security', + async () => expect(VC.cryptographicallySecureVerify(invalidEmailJson)).resolves.toBeFalsy(), + ); - it('Should verify an VC with cryptographic security', async (done) => { + it('Should verify an VC with cryptographic security', async () => { const credJSon = require('./fixtures/PhoneNumber.json'); // eslint-disable-line const credential = await VC.fromJSON(credJSon); @@ -731,11 +727,9 @@ describe('Unit tests for Verifiable Credentials', () => { const verifySignatureFunc = () => true; isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc, verifySignatureFunc); expect(isValid).toBeTruthy(); - - done(); }); - it('Should return false if attestation or signature check fail on cryptographic verification', async (done) => { + it('Should return false if attestation or signature check fail on cryptographic verification', async () => { const credJSon = require('./fixtures/PhoneNumber.json'); // eslint-disable-line const credential = await VC.fromJSON(credJSon); @@ -747,11 +741,9 @@ describe('Unit tests for Verifiable Credentials', () => { const verifySignatureFunc = () => false; isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc, verifySignatureFunc); expect(isValid).toBeFalsy(); - - done(); }); - test('cred.verify(): VERIFY_LEVELS.PROOFS without expirationDate INVALID', async () => { + it('cred.verify(): VERIFY_LEVELS.PROOFS without expirationDate INVALID', async () => { const credJSon = require('./fixtures/Cred1.json'); // eslint-disable-line // messing up with the targetHash: credJSon.proof.leaves[0].targetHash = credJSon.proof.leaves[0].targetHash.replace('a', 'b'); @@ -769,14 +761,14 @@ describe('Unit tests for Verifiable Credentials', () => { expect(await cred.verifyProofs()).toBeFalsy(); }); - test('cred.verifyProofs(): with a valid cred with expirationDate, should return TRUE', async () => { + it('cred.verifyProofs(): with a valid cred with expirationDate, should return TRUE', async () => { const credJSon = require('./fixtures/CredWithFutureExpiry.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(cred.verifyProofs()).toBeTruthy(); }); - test('cred.verifyProofs(): with a valid cred but expired, should return FALSE', async () => { + it('cred.verifyProofs(): with a valid cred but expired, should return FALSE', async () => { const credJSon = require('./fixtures/CredExpired.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); @@ -790,37 +782,34 @@ describe('Unit tests for Verifiable Credentials', () => { expect(await cred.verifyProofs()).not.toBeTruthy(); }); - it('should check that signature matches for the root of the Merkle Tree', async (done) => { + it('should check that signature matches for the root of the Merkle Tree', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); expect(cred.proof.anchor).toBeDefined(); expect(await cred.verifyAnchorSignature()).toBeTruthy(); - done(); }); - it('should check that signature matches for the root of the Merkle Tree using a pinned key', async (done) => { + it('should check that signature matches for the root of the Merkle Tree using a pinned key', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); expect(cred.proof.anchor).toBeDefined(); expect(await cred.verifyAnchorSignature(XPUB1)).toBeTruthy(); - done(); }); - it('should fail to check that signature using a bad pinned key', async (done) => { + it('should fail to check that signature using a bad pinned key', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); expect(cred.proof.anchor).toBeDefined(); expect(() => cred.verifyAnchorSignature(XPUB1.replace('9', '6'))).toThrow(); - done(); }); - it('should tamper the root of Merkle and the signature should not match', async (done) => { + it('should tamper the root of Merkle and the signature should not match', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); @@ -829,31 +818,26 @@ describe('Unit tests for Verifiable Credentials', () => { expect(cred).toBeDefined(); expect(cred.proof.anchor).toBeDefined(); expect(await cred.verifyAnchorSignature()).toBeFalsy(); - done(); }); - it('should have a empty "granted" field just after construct a VC', async (done) => { + it('should have a empty "granted" field just after construct a VC', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); expect(cred).toBeDefined(); expect(cred.proof.granted).toBeNull(); - - done(); }); - it('should have a empty "granted" field just after construct a VC from a JSON', async (done) => { + it('should have a empty "granted" field just after construct a VC from a JSON', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); expect(cred.proof.granted).toBeNull(); - - done(); }); - it('should throw exception id ".grantUsageFor()" request without proper ".requestAnchor()" first', async (done) => { + it('should throw exception id ".grantUsageFor()" request without proper ".requestAnchor()" first', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -863,15 +847,13 @@ describe('Unit tests for Verifiable Credentials', () => { const requestorId = 'REQUESTOR_ID_12345'; const requestId = new Date().getTime(); // simulate an nonce ID - try { - cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - } catch (err) { - expect(err.message).toEqual('Invalid credential attestation/anchor'); - done(); - } + + const shouldFail = () => cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); + + expect(shouldFail).toThrow('Invalid credential attestation/anchor'); }); - it('should have a filled "granted" field after ".grantUsageFor()" request', async (done) => { + it('should have a filled "granted" field after ".grantUsageFor()" request', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -883,10 +865,9 @@ describe('Unit tests for Verifiable Credentials', () => { const requestId = new Date().getTime(); // simulate an nonce ID cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); expect(cred.proof.granted).not.toBeNull(); - done(); }); - it('should have a filled "granted" field after ".grantUsageFor()" request (fromJSON test)', async (done) => { + it('should have a filled "granted" field after ".grantUsageFor()" request (fromJSON test)', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); @@ -897,10 +878,9 @@ describe('Unit tests for Verifiable Credentials', () => { const requestId = new Date().getTime(); // simulate an nonce ID cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); expect(cred.proof.granted).not.toBeNull(); - done(); }); - it('should verifyGrant() accordingly', async (done) => { + it('should verifyGrant() accordingly', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -925,11 +905,9 @@ describe('Unit tests for Verifiable Credentials', () => { const verifyGrant = await receivedCred.verifyGrant(requestorId, requestId); expect(verifyGrant).toEqual(true); - - done(); }); - it('should fail verifyGrant() with a invalid "granted" token', async (done) => { + it('should fail verifyGrant() with a invalid "granted" token', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -958,11 +936,9 @@ describe('Unit tests for Verifiable Credentials', () => { const verifyGrant = await receivedCred.verifyGrant(requestorId, requestId); expect(verifyGrant).toEqual(false); - - done(); }); - it('should verify a granted credential json with requesterGrantVerify', async (done) => { + it('should verify a granted credential json with requesterGrantVerify', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -986,11 +962,9 @@ describe('Unit tests for Verifiable Credentials', () => { const verifyGrant = await VC.requesterGrantVerify(credentialObj, requestorId, requestId); expect(verifyGrant).toEqual(true); - - done(); }); - it('should fail to verify a credential json with invalid granted token with requesterGrantVerify', async (done) => { + it('should fail to verify a credential json with invalid granted token with requesterGrantVerify', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -1018,11 +992,9 @@ describe('Unit tests for Verifiable Credentials', () => { const verifyGrant = await VC.requesterGrantVerify(credentialObj, requestorId, requestId); expect(verifyGrant).toEqual(false); - - done(); }); - it('should verify() with maximum level of GRANTED', async (done) => { + it('should verify() with maximum level of GRANTED', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -1050,11 +1022,9 @@ describe('Unit tests for Verifiable Credentials', () => { requestId, }); expect(verifyLevel).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.GRANTED); - - done(); }); - it('should fail verify() with maximum level of GRANTED if granted is invalid', async (done) => { + it('should fail verify() with maximum level of GRANTED if granted is invalid', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -1086,11 +1056,9 @@ describe('Unit tests for Verifiable Credentials', () => { requestId, }); expect(verifyLevel).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.ANCHOR); // Should be at least one level lower - - done(); }); - it('should check that the anchor exists on the chain', async (done) => { + it('should check that the anchor exists on the chain', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); @@ -1098,12 +1066,11 @@ describe('Unit tests for Verifiable Credentials', () => { expect(cred.proof.anchor).toBeDefined(); const validation = await cred.verifyAttestation(); expect(validation).toBeTruthy(); - done(); }); // TODO skiing this test to release a hotfix // We need to mock the "online" verification in this unit test to get it working - it.skip('should fail the check that the anchor exists on the chain', async (done) => { + it.skip('should fail the check that the anchor exists on the chain', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCTempAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); @@ -1112,7 +1079,6 @@ describe('Unit tests for Verifiable Credentials', () => { const validation = await cred.verifyAttestation(); expect(validation).toBeFalsy(); - done(); }); it('should fail the check with temporary attestations faked as permanent', async () => { @@ -1126,7 +1092,7 @@ describe('Unit tests for Verifiable Credentials', () => { await expect(shouldFail).rejects.toThrow(/Error: Invalid URI/); }); - it('should revoke the permanent anchor and succeed verification', async (done) => { + it('should revoke the permanent anchor and succeed verification', async () => { const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); @@ -1137,10 +1103,9 @@ describe('Unit tests for Verifiable Credentials', () => { const isRevoked = await cred.revokeAttestation(); expect(isRevoked).toBeTruthy(); } - done(); }); - it('should check an unrevoked attestation and validate that is not revoked', async (done) => { + it('should check an unrevoked attestation and validate that is not revoked', async () => { const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); @@ -1148,7 +1113,6 @@ describe('Unit tests for Verifiable Credentials', () => { expect(cred.proof.anchor).toBeDefined(); const isRevoked = await cred.isRevoked(); expect(isRevoked).toBeFalsy(); - done(); }); it('Should match with one constraint', async () => { @@ -1483,8 +1447,10 @@ describe('Unit tests for Verifiable Credentials', () => { }); it('Should construct a VC with no evidence provided', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', - { givenNames: 'Neymar', otherNames: 'Jr', familyNames: 'Mustermann' }); + const name = await Claim.create( + 'claim-cvc:Identity.name-v1', + { givenNames: 'Neymar', otherNames: 'Jr', familyNames: 'Mustermann' }, + ); const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 5, month: 2, year: 1992 }); const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); expect(cred).toBeDefined(); @@ -1509,9 +1475,7 @@ describe('Unit tests for Verifiable Credentials', () => { month: 2, year: 1992, }); - const cred = await VC.create( - 'credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence, - ); + const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); expect(cred.evidence).toBeDefined(); expect(cred.evidence).toEqual([evidence]); }); @@ -1545,9 +1509,7 @@ describe('Unit tests for Verifiable Credentials', () => { month: 2, year: 1992, }); - const cred = await VC.create( - 'credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence, - ); + const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); expect(cred.evidence).toBeDefined(); expect(cred.evidence).toEqual(evidence); }); @@ -1574,9 +1536,7 @@ describe('Unit tests for Verifiable Credentials', () => { month: 2, year: 1992, }); - const cred = await VC.create( - 'credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence, - ); + const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); expect(cred.evidence).toBeDefined(); expect(cred.evidence.other).not.toBeDefined(); }); @@ -1601,9 +1561,7 @@ describe('Unit tests for Verifiable Credentials', () => { month: 2, year: 1992, }); - const cred = await VC.create( - 'credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence, - ); + const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); expect(cred.evidence).toBeDefined(); expect(cred.evidence).toEqual(evidence); }); @@ -1630,9 +1588,7 @@ describe('Unit tests for Verifiable Credentials', () => { year: 1992, }); - return expect(VC.create( - 'credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence, - )).rejects.toThrow(/Evidence type is required/); + return expect(VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence)).rejects.toThrow(/Evidence type is required/); }); it('Should throw exception if evidence id is NOT a valid url', async () => { @@ -1658,9 +1614,7 @@ describe('Unit tests for Verifiable Credentials', () => { year: 1992, }); - return expect(VC.create( - 'credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence, - )).rejects.toThrow(/Evidence id is not a valid URL/); + return expect(VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence)).rejects.toThrow(/Evidence id is not a valid URL/); }); it('Should throw exception if evidence type is not an array', async () => { @@ -1686,9 +1640,7 @@ describe('Unit tests for Verifiable Credentials', () => { year: 1992, }); - return expect(VC.create( - 'credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence, - )).rejects.toThrow(/Evidence type is not an Array object/); + return expect(VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence)).rejects.toThrow(/Evidence type is not an Array object/); }); it('Should create credential if all claims are provided', async () => { @@ -1728,7 +1680,8 @@ describe('Unit tests for Verifiable Credentials', () => { const ucas = [ type, number, name, gender, issueCountry, placeOfBirth, dateOfBirth, nationality, dateOfExpiry, evidences, ]; - const credential = await VC.create('credential-cvc:IdDocument-v3', + const credential = await VC.create( + 'credential-cvc:IdDocument-v3', didTestUtil.DID_CONTROLLER, null, credentialSubject, @@ -1737,7 +1690,8 @@ describe('Unit tests for Verifiable Credentials', () => { { verificationMethod, keypair, - }); + }, + ); expect(credential).toBeDefined(); expect(await credential.verifyMerkletreeSignature()).toBe(true); }); @@ -1847,14 +1801,14 @@ describe('Signed Verifiable Credentials', () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); - didTestUtil.mockDids(); + VC.setResolver(stubResolver); }); beforeEach(() => { schemaLoader.reset(); }); - test('Should create a verifiable credential instance', async () => { + it('Should create a verifiable credential instance', async () => { const verificationMethod = `${didTestUtil.DID_SPARSE}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_SPARSE); @@ -1881,8 +1835,7 @@ describe('Signed Verifiable Credentials', () => { expect(await cred.verifyMerkletreeSignature()).toBe(true); }); - - test('Should fail to verify a signature if the issuer didn\'t sign', async () => { + it('Should fail to verify a signature if the issuer didn\'t sign', async () => { const verificationMethod = `${didTestUtil.DID_SPARSE}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_SPARSE); @@ -1912,7 +1865,7 @@ describe('Signed Verifiable Credentials', () => { expect(await cred.verifyMerkletreeSignature()).toBe(false); }); - test('Should not be able to sign with a removed key', async () => { + it('Should not be able to sign with a removed key', async () => { const verificationMethod = `${didTestUtil.DID_WITH_NO_DEFAULT}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_WITH_NO_DEFAULT); @@ -1937,7 +1890,7 @@ describe('Signed Verifiable Credentials', () => { ); }); - test('Should be able to sign as a controller of the issuer did', async () => { + it('Should be able to sign as a controller of the issuer did', async () => { const verificationMethod = `${didTestUtil.DID_CONTROLLER}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_CONTROLLER); @@ -1964,7 +1917,7 @@ describe('Signed Verifiable Credentials', () => { expect(await cred.verifyMerkletreeSignature()).toBe(true); }); - test('Should verify credential(data only) signature', async () => { + it('Should verify credential(data only) signature', async () => { const verificationMethod = `${didTestUtil.DID_SPARSE}#default`; const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); @@ -1995,9 +1948,11 @@ describe('Referenced Schemas for Verifiable Credentials', () => { beforeAll(() => { schemaLoader.addLoader(new TestSchemaLoader()); schemaLoader.addLoader(new CVCSchemaLoader()); + + VC.setResolver(stubResolver); }); - test('Loads a schema the contains a reference', async () => { + it('Loads a schema the contains a reference', async () => { const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); const number = await Claim.create('claim-cvc:Document.number-v1', 'FP12345', '1'); const nameValue = { @@ -2035,23 +1990,19 @@ describe('Referenced Schemas for Verifiable Credentials', () => { }; const evidences = await Claim.create('claim-cvc:Document.evidences-v1', evidencesValue, '1'); - const credential = await VC.create( - 'credential-test:IdDocument-v1', '', null, credentialSubject, [type, number, name, gender, - issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality, evidences], - ); + const credential = await VC.create('credential-test:IdDocument-v1', '', null, credentialSubject, [type, number, name, gender, + issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality, evidences]); expect(credential).toBeDefined(); const filtered = credential.filter(['claim-cvc:Document.dateOfBirth-v1']); expect(filtered).toBeDefined(); }); - test('Validates a schema the contains a reference', async () => { + it('Validates a schema the contains a reference', async () => { const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); const number = await Claim.create('claim-cvc:Document.number-v1', 'FP12345', '1'); - const createCredential = VC.create( - 'credential-test:IdDocument-v1', '', null, credentialSubject, [type, number], - ); + const createCredential = VC.create('credential-test:IdDocument-v1', '', null, credentialSubject, [type, number]); return expect(createCredential).rejects.toThrow('Missing required fields to credential-test:IdDocument-v1'); }); diff --git a/__test__/creds/VerifiableCredentialProxy.test.js b/__test__/creds/VerifiableCredentialProxy.test.js deleted file mode 100644 index fff99d8b..00000000 --- a/__test__/creds/VerifiableCredentialProxy.test.js +++ /dev/null @@ -1,2002 +0,0 @@ -const _ = require('lodash'); -const fs = require('fs'); -const uuidv4 = require('uuid/v4'); -const sjcl = require('sjcl'); -const { Claim } = require('../../src/claim/Claim'); -const VC = require('../../src/creds/VerifiableCredentialProxy'); -const MiniCryptoManagerImpl = require('../../src/services/MiniCryptoManagerImpl'); -const CredentialSignerVerifier = require('../../src/creds/CredentialSignerVerifier'); -const { - schemaLoader, - CVCSchemaLoader, -} = require('../../src'); -const filteredCredentialJson = require('./proxyFixtures/filteredIdDocument-v2.json'); -const invalidEmailJson = require('./proxyFixtures/CredentialEmailInvalid.json'); - -// eslint-disable-next-line max-len -const prvBase58 = 'xprv9s21ZrQH143K4aBUwUW6GVec7Y6oUEBqrt2WWaXyxjh2pjofNc1of44BLufn4p1t7Jq4EPzm5C9sRxCuBYJdHu62jhgfyPm544sNjtH7x8S'; -// eslint-disable-next-line max-len -const pubBase58 = 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD'; - - -jest.setTimeout(150000); - -const XPVT1 = 'xprvA1yULd2DFYnQRVbLiAKrFdftVLsANiC3rqLvp8iiCbnchcWqd6kJPoaV3sy7R6CjHM8RbpoNdWVgiPZLVa1EmneRLtwiitNpWgwyVmjvay7'; // eslint-disable-line -const XPUB1 = 'xpub6Expk8Z75vLhdyfopBrrcmcd3NhenAuuE4GXcX8KkwKbaQqzAe4Ywbtxu9F95hRHj79PvdtYEJcoR6gesbZ79fS4bLi1PQtm81rjxAHeLL9'; // eslint-disable-line - -const identityName = { givenNames: 'Max', otherNames: 'Abc', familyNames: 'Mustermann' }; -const identityDateOfBirth = { day: 20, month: 3, year: 1978 }; - -const miniCryptoManager = new MiniCryptoManagerImpl(); -const signAttestationSubject = (subject, xprv, xpub) => { - const { label } = subject; - const { data } = subject; - const tupleToHash = JSON.stringify({ xpub, label, data }); - const hashToSignHex = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(tupleToHash)); - const keyName = `TEMP_KEY_${new Date().getTime()}`; - miniCryptoManager.installKey(keyName, xprv); - const signature = miniCryptoManager.sign(keyName, hashToSignHex); - - return { - pub: xpub, - label, - data, - signature, - }; -}; - -describe('Unit tests for Verifiable Credential Proxy', () => { - beforeAll(() => { - schemaLoader.addLoader(new CVCSchemaLoader()); - }); - - beforeEach(() => { - schemaLoader.reset(); - }); - - test('Dont construct undefined Credentials', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - - return expect(VC.create('cvc:cred:Test', uuidv4(), null, [name, dob], '1')) - .rejects.toThrow(/cvc:cred:Test is not defined/); - }); - - test('New Defined Credentials', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred).toBeDefined(); - expect(cred.claim.identity.name.givenNames).toBe('Max'); - expect(cred.claim.identity.name.otherNames).toBe('Abc'); - expect(cred.claim.identity.name.familyNames).toBe('Mustermann'); - expect(cred.claim.identity.dateOfBirth.day).toBe(20); - expect(cred.claim.identity.dateOfBirth.month).toBe(3); - expect(cred.claim.identity.dateOfBirth.year).toBe(1978); - expect(cred.proof.leaves).toHaveLength(8); - }); - - test('should validate new defined credentials with the obligatory Meta:expirationDate UCA with' - + ' null value', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred).toBeDefined(); - expect(cred.expirationDate).toBeNull(); - }); - - test('New Expirable Credentials', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), '-1d', [name, dob], '1'); - expect(cred).toBeDefined(); - expect(cred.claim.identity.name.givenNames).toBe('Max'); - expect(cred.claim.identity.name.otherNames).toBe('Abc'); - expect(cred.claim.identity.name.familyNames).toBe('Mustermann'); - expect(cred.claim.identity.dateOfBirth.day).toBe(20); - expect(cred.claim.identity.dateOfBirth.month).toBe(3); - expect(cred.claim.identity.dateOfBirth.year).toBe(1978); - expect(_.find(cred.proof.leaves, { identifier: 'cvc:Meta:issuer' })).toBeDefined(); - expect(_.find(cred.proof.leaves, { identifier: 'cvc:Meta:issuanceDate' })).toBeDefined(); - expect(cred.expirationDate).toBeDefined(); - expect(_.find(cred.proof.leaves, { identifier: 'cvc:Meta:expirationDate' })).toBeDefined(); - expect(cred.proof.leaves).toHaveLength(8); - }); - - test('New Defined Credentials return the incorrect global Credential Identifier', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.getGlobalIdentifier()).toBe('credential-credential-cvc:Identity-v1-1'); - }); - - it('should request an anchor for Credential and return an temporary attestation', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), '-1d', [name, dob], '1'); - return cred.requestAnchor().then((updated) => { - expect(updated.proof.anchor.type).toBe('temporary'); - expect(updated.proof.anchor.value).not.toBeDefined(); - expect(updated.proof.anchor).toBeDefined(); - expect(updated.proof.anchor.schema).toBe('dummy-20180201'); - done(); - }); - }); - - it('should refresh an temporary anchoring with an permanent one', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - - cred.requestAnchor = jest.fn().mockImplementation(async () => { - // mock the function or otherwise it would call the server - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const mockedVc = await VC.fromJSON(JSON.parse(credentialContents)); - mockedVc.updateAnchor = jest.fn().mockImplementation(async () => mockedVc); - return mockedVc; - }); - return cred.requestAnchor().then((updated) => { - expect(updated.proof.anchor).toBeDefined(); - return updated.updateAnchor().then((newUpdated) => { - expect(newUpdated.proof.anchor.type).toBe('permanent'); - expect(newUpdated.proof.anchor).toBeDefined(); - expect(newUpdated.proof.anchor.subject).toBeDefined(); - done(); - }); - }); - }); - - test('Filter claims from Identity Name', async () => { - const nameUca = await Claim.create('claim-cvc:Identity.name-v1', identityName); - - const dobUca = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const simpleIdentity = await VC.create('credential-cvc:Identity-v1', - 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', null, [nameUca, dobUca], '1'); - - const filtered = simpleIdentity.filter(['claim-cvc:Name.givenNames-v1']); - expect(filtered.claim.identity.name.givenNames).toBeDefined(); - expect(filtered.claim.identity.name.otherNames).not.toBeDefined(); - expect(filtered.claim.identity.name.familyNames).not.toBeDefined(); - - const emptyFiltered = simpleIdentity.filter([]); - expect(emptyFiltered.credentialSubject).toEqual({}); - }); - - it('Should filter claims for Email asking for claim-cvc:Contact.email-v1 and return them on the filtered VC', - async () => { - const email = { - domain: { - tld: 'oVaPsceZ4C', - name: 'UTpHKFyaaB', - }, - username: 'ZcMpCBQ0lE', - }; - - const emailUca = await Claim.create('claim-cvc:Contact.email-v1', email, '1'); - const emailCredential = await VC.create('credential-cvc:Email-v1', '', null, [emailUca], '1'); - const filtered = emailCredential.filter(['claim-cvc:Contact.email-v1']); - expect(filtered.claim.contact.email.domain).toBeDefined(); - expect(filtered.claim.contact.email.domain.tld).toBe('oVaPsceZ4C'); - expect(filtered.claim.contact.email.domain.name).toBe('UTpHKFyaaB'); - expect(filtered.claim.contact.email.username).toBe('ZcMpCBQ0lE'); - }); - - it('Should filter claims for Email asking for cvc:Contact:domain and not return the cvc:Contact:address', - async () => { - const email = { - domain: { - tld: 'oVaPsceZ4C', - name: 'UTpHKFyaaB', - }, - username: 'ZcMpCBQ0lE', - }; - - const emailUca = await Claim.create('claim-cvc:Contact.email-v1', email, '1'); - const emailCredential = await VC.create( - 'credential-cvc:Email-v1', '', null, [emailUca], '1', - ); - const filtered = emailCredential.filter(['claim-cvc:Email.domain-v1']); - - expect(filtered.claim.contact.email.domain).toBeDefined(); - expect(filtered.claim.contact.email.domain.tld).toBe('oVaPsceZ4C'); - expect(filtered.claim.contact.email.domain.name).toBe('UTpHKFyaaB'); - expect(filtered.claim.contact.email.username).toBeUndefined(); - }); - - it('Should filter claims for Address asking for claim-cvc:Type.address-v1' - + 'and return the claim-cvc:Type.address-v1', async () => { - const value = { - country: 'X2sEB9F9W9', - county: 'sDlIM4Rjpo', - state: 'ZZEOrbenrM', - street: 'JkHgN5gdZ2', - unit: 'fo9OmPSZNe', - city: 'LVkRGsKqIf', - postalCode: '5JhmWkXBAg', - }; - - const uca = await Claim.create('claim-cvc:Identity.address-v1', value, '1'); - const credential = await VC.create( - 'credential-cvc:Address-v1', '', null, [uca], '1', - ); - const filtered = credential.filter(['claim-cvc:Identity.address-v1']); - - expect(filtered.claim.identity.address).toBeDefined(); - expect(filtered.claim.identity.address.country).toBe('X2sEB9F9W9'); - expect(filtered.claim.identity.address.county).toBe('sDlIM4Rjpo'); - expect(filtered.claim.identity.address.state).toBe('ZZEOrbenrM'); - expect(filtered.claim.identity.address.street).toBe('JkHgN5gdZ2'); - expect(filtered.claim.identity.address.unit).toBe('fo9OmPSZNe'); - expect(filtered.claim.identity.address.city).toBe('LVkRGsKqIf'); - expect(filtered.claim.identity.address.postalCode).toBe('5JhmWkXBAg'); - }); - - it('Should filter claims for PhoneNumber asking for credential-cvc:PhoneNumber-v1 and return the full claim', - async () => { - const value = { - country: '1ApYikRwDl', - countryCode: 'U4drpB96Hk', - number: 'kCTGifTdom', - extension: 'sXZpZJTe4R', - lineType: 'OaguqgUaR7', - }; - - const uca = await Claim.create('claim-cvc:Contact.phoneNumber-v1', value, '1'); - const credential = await VC.create( - 'credential-cvc:PhoneNumber-v1', '', null, [uca], '1', - ); - const filtered = credential.filter(['claim-cvc:Contact.phoneNumber-v1']); - - expect(filtered.claim.contact.phoneNumber).toBeDefined(); - expect(filtered.claim.contact.phoneNumber.country).toBe('1ApYikRwDl'); - expect(filtered.claim.contact.phoneNumber.countryCode).toBe('U4drpB96Hk'); - expect(filtered.claim.contact.phoneNumber.extension).toBe('sXZpZJTe4R'); - expect(filtered.claim.contact.phoneNumber.lineType).toBe('OaguqgUaR7'); - expect(filtered.claim.contact.phoneNumber.number).toBe('kCTGifTdom'); - }); - - it('Should filter claims for GenericDocumentId asking for claim-cvc:Identity.dateOfBirth-v1 and return nothing', - async () => { - const typeValue = 'passport'; - const type = await Claim.create('claim-cvc:Document.type-v1', typeValue, '1'); - const numberValue = '3bj1LUg9yG'; - const number = await Claim.create('claim-cvc:Document.number-v1', numberValue, '1'); - const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: '4h8sLtEfav', - otherNames: 'bDTn4stMpX', - }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const genderValue = 'jFtCBFceQI'; - const gender = await Claim.create('claim-cvc:Document.gender-v1', genderValue, '1'); - const issueLocationValue = 'OZbhzBU8ng'; - const issueLocation = await Claim.create('claim-cvc:Document.issueLocation-v1', issueLocationValue, '1'); - const issueAuthorityValue = 'BO2xblNSVK'; - const issueAuthority = await Claim.create('claim-cvc:Document.issueAuthority-v1', issueAuthorityValue, '1'); - const issueCountryValue = 'p4dNUeAKtI'; - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', issueCountryValue, '1'); - const placeOfBirthValue = 'r4hIHbyLru'; - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', placeOfBirthValue, '1'); - const dateOfBirthValue = { - day: 23, - month: 2, - year: 1973, - }; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const addressValue = { - country: 'IH4aiXuEoo', - county: 'akKjaQehNK', - state: 'IQB7oLhSnS', - street: '52Os5zJgkh', - unit: '3dGDkhEHxW', - city: 'WU9GJ0R9be', - postalCode: 'ci1DMuz16W', - }; - const address = await Claim.create('claim-cvc:Document.address-v1', addressValue, '1'); - const propertiesValue = { - dateOfIssue: { - day: 18, - month: 6, - year: 1928, - }, - dateOfExpiry: { - day: 8, - month: 1, - year: 1957, - }, - }; - const properties = await Claim.create('claim-cvc:Document.properties-v1', propertiesValue, '1'); - const imageValue = { - front: '9NMgeFErNd', - frontMD5: 'zgOvmWXruS', - back: 'uPrJKO3cbq', - backMD5: '0yr9zkdApo', - }; - const image = await Claim.create('cvc:Document:image', imageValue, '1'); - const credential = await VC.create( - 'credential-cvc:GenericDocumentId-v1', '', null, [type, number, name, gender, issueAuthority, - issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth], '1', - ); - const filtered = credential.filter(['claim-cvc:Identity.dateOfBirth-v1']); - - expect(filtered.claim.document).toBeUndefined(); - }); - - it('Should filter claims for PhoneNumber asking for cvc:Phone:countryCode and return only the' - + ' claim for country code', async () => { - const value = { - country: '1ApYikRwDl', - countryCode: 'U4drpB96Hk', - number: 'kCTGifTdom', - extension: 'sXZpZJTe4R', - lineType: 'OaguqgUaR7', - }; - const uca = await Claim.create('claim-cvc:Contact.phoneNumber-v1', value, '1'); - const credential = await VC.create('credential-cvc:PhoneNumber-v1', '', null, [uca], '1'); - const filtered = credential.filter(['claim-cvc:PhoneNumber.countryCode-v1']); - - expect(filtered.claim.contact.phoneNumber).toBeDefined(); - expect(filtered.claim.contact.phoneNumber.country).toBeUndefined(); - expect(filtered.claim.contact.phoneNumber.countryCode).toBe('U4drpB96Hk'); - expect(filtered.claim.contact.phoneNumber.extension).toBeUndefined(); - expect(filtered.claim.contact.phoneNumber.lineType).toBeUndefined(); - expect(filtered.claim.contact.phoneNumber.number).toBeUndefined(); - }); - - it('Should create IdDocument-v1 credential', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const number = await Claim.create('claim-cvc:Document.number-v1', 'FP12345', '1'); - const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: 'e8qak1', - otherNames: 'qhs4I', - }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const gender = await Claim.create('claim-cvc:Document.gender-v1', 'M', '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', 'Belo Horizonte', '1'); - const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const dateOfExpiryValue = { - day: 12, - month: 2, - year: 2025, - }; - const dateOfExpiry = await Claim.create('claim-cvc:Document.dateOfExpiry-v1', dateOfExpiryValue, '1'); - const nationality = await Claim.create('claim-cvc:Document.nationality-v1', 'Brazilian', '1'); - - const credential = await VC.create( - 'credential-cvc:IdDocument-v1', '', null, [type, number, name, gender, - issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality], '1', - ); - expect(credential).toBeDefined(); - }); - - it('Should create IdDocument-v2 credential', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const number = await Claim.create('claim-cvc:Document.number-v1', 'FP12345', '1'); - const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: 'e8qak1', - otherNames: 'qhs4I', - }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const gender = await Claim.create('claim-cvc:Document.gender-v1', 'M', '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', 'Belo Horizonte', '1'); - const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const dateOfExpiryValue = { - day: 12, - month: 2, - year: 2025, - }; - const dateOfExpiry = await Claim.create('claim-cvc:Document.dateOfExpiry-v1', dateOfExpiryValue, '1'); - const nationality = await Claim.create('claim-cvc:Document.nationality-v1', 'Brazilian', '1'); - - const evidencesValue = { - idDocumentFront: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - idDocumentBack: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - selfie: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - }; - const evidences = await Claim.create('claim-cvc:Document.evidences-v1', evidencesValue, '1'); - - const credential = await VC.create( - 'credential-cvc:IdDocument-v2', '', null, [type, number, name, gender, - issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality, evidences], '1', - ); - expect(credential).toBeDefined(); - const filtered = credential.filter(['claim-cvc:Document.dateOfBirth-v1']); - expect(filtered).toBeDefined(); - }); - - it('Should hydrate a partial presentation', async () => { - const presentation = await VC.fromJSON(filteredCredentialJson, true); - expect(presentation).toBeDefined(); - - return expect(VC.fromJSON(filteredCredentialJson)).rejects.toThrow(); - }); - - it('Should create alt:Identity-v1 credential', async () => { - const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: 'e8qak1', - otherNames: 'qhs4I', - }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const addressValue = { - country: 'IH4aiXuEoo', - county: 'akKjaQehNK', - state: 'IQB7oLhSnS', - street: '52Os5zJgkh', - unit: '3dGDkhEHxW', - city: 'WU9GJ0R9be', - postalCode: 'ci1DMuz16W', - }; - const address = await Claim.create('claim-cvc:Document.address-v1', addressValue, '1'); - - const credential = await VC.create( - 'credential-alt:Identity-v1', '', null, [name, dateOfBirth, address], '1', - ); - expect(credential).toBeDefined(); - }); - - it.skip('Should create and verify a credential with an array of clains ', async () => { - const covidDetails = { - patient: { - fullName: 'Patient Name', - dateOfBirth: { - day: 2, - month: 2, - year: 1945, - }, - }, - vaccinations: [ - { - vaccinationId: 'vID-123', - dateOfAdministration: '150000001', - name: 'Pfizer', - manufacturer: { - name: 'Pfizer', - code: { - name: 'codeName', - code: 'codeCode', - codeSystem: 'codeCodeSystem', - codeSystemName: 'codeCodeSystemName', - }, - }, - detail: { - createdAt: { - day: 2, - month: 2, - year: 1945, - }, - updatedAt: { - day: 2, - month: 2, - year: 1945, - }, - }, - organization: { - name: 'CVS', - }, - codes: [ - { - name: 'codeName1', - code: 'codeCode1', - codeSystem: 'codeCodeSystem1', - codeSystemName: 'codeCodeSystemName1', - }, - { - name: 'codeName2', - code: 'codeCode2', - codeSystem: 'codeCodeSystem3', - codeSystemName: 'codeCodeSystemName3', - }, - ], - }, - { - vaccinationId: 'vID-124', - dateOfAdministration: '150000002', - name: 'Pfizer', - organization: { - name: 'CVS', - }, - }, - ], - tests: [ - { - testId: 'tID-23', - testDate: '150000008', - resultDate: '150000010', - type: 'testType', - result: 'negative', - codes: [ - { - name: 'codeName21', - code: 'codeCode21', - codeSystem: 'codeCodeSystem21', - codeSystemName: 'codeCodeSystemName21', - }, - { - name: 'codeName22', - code: 'codeCode22', - codeSystem: 'codeCodeSystem23', - codeSystemName: 'codeCodeSystemName23', - }, - ], - }, - { - testId: 'tID-25', - testDate: '150000028', - resultDate: '150000020', - type: 'testType', - result: 'negative', - }, - ], - }; - const covidClaim = await Claim.create('claim-cvc:Medical.covid19-v1', covidDetails); - - const credential = await VC.create( - 'credential-cvc:Covid19-v1', '', null, [covidClaim], '1', - ); - expect(credential).toBeDefined(); - expect(credential.verifyProofs()).toBeTruthy(); - }); - - it('Should filter claims for GenericDocumentId asking for cvc:Document:Type and return only that claim', - async () => { - const typeValue = 'passport'; - const type = await Claim.create('claim-cvc:Document.type-v1', typeValue, '1'); - const numberValue = '3bj1LUg9yG'; - const number = await Claim.create('claim-cvc:Document.number-v1', numberValue, '1'); - const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: '4h8sLtEfav', - otherNames: 'bDTn4stMpX', - }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const genderValue = 'jFtCBFceQI'; - const gender = await Claim.create('claim-cvc:Document.gender-v1', genderValue, '1'); - const issueLocationValue = 'OZbhzBU8ng'; - const issueLocation = await Claim.create('claim-cvc:Document.issueLocation-v1', issueLocationValue, '1'); - const issueAuthorityValue = 'BO2xblNSVK'; - const issueAuthority = await Claim.create('claim-cvc:Document.issueAuthority-v1', issueAuthorityValue, '1'); - const issueCountryValue = 'p4dNUeAKtI'; - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', issueCountryValue, '1'); - const placeOfBirthValue = 'r4hIHbyLru'; - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', placeOfBirthValue, '1'); - const dateOfBirthValue = { - day: 23, - month: 2, - year: 1973, - }; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const addressValue = { - country: 'IH4aiXuEoo', - county: 'akKjaQehNK', - state: 'IQB7oLhSnS', - street: '52Os5zJgkh', - unit: '3dGDkhEHxW', - city: 'WU9GJ0R9be', - postalCode: 'ci1DMuz16W', - }; - const address = await Claim.create('claim-cvc:Document.address-v1', addressValue, '1'); - const propertiesValue = { - dateOfIssue: { - day: 18, - month: 6, - year: 1928, - }, - dateOfExpiry: { - day: 8, - month: 1, - year: 1957, - }, - }; - const properties = await Claim.create('claim-cvc:Document.properties-v1', propertiesValue, '1'); - const imageValue = { - front: '9NMgeFErNd', - frontMD5: 'zgOvmWXruS', - back: 'uPrJKO3cbq', - backMD5: '0yr9zkdApo', - }; - const image = await Claim.create('cvc:Document:image', imageValue, '1'); - const credential = await VC.create( - 'credential-cvc:GenericDocumentId-v1', '', null, [type, number, name, gender, issueAuthority, - issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth], '1', - ); - const filtered = credential.filter(['claim-cvc:Document.type-v1']); - - expect(filtered.claim.document.type).toBe('passport'); - }); - - it('Should verify an VC of type Email', async () => { - const credJSon = require('./proxyFixtures/Email.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(cred.verifyProofs()).toBeTruthy(); - }); - - it('Should not verify an VC of with tampered domain Email', async () => { - const credJSon = require('./proxyFixtures/Email.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - cred.claim.contact.email.domain.name = 'civic'; - expect(await cred.verifyProofs()).toBeFalsy(); - }); - - it('Should not verify an VC of with tampered username Email', async () => { - const credJSon = require('./proxyFixtures/Email.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - cred.claim.contact.email.username = 'jpMustermann'; - expect(await cred.verifyProofs()).toBeFalsy(); - }); - - it('Should verify an VC of type Address', async () => { - const credJSon = require('./proxyFixtures/Address.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(cred.verifyProofs()).toBeTruthy(); - }); - - it('Should not verify an VC of tampered Address', async () => { - const credJSon = require('./proxyFixtures/Address.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - cred.claim.identity.address.city = 'Rio de Janeiro'; - expect(await cred.verifyProofs()).toBeFalsy(); - }); - - it('Should verify an VC of type Identity', async () => { - const credJSon = require('./proxyFixtures/Identity.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(cred.verifyProofs()).toBeTruthy(); - }); - - it('Should verify an VC of type GenericDocumentId and doing await VC.fromJSON', async () => { - const credJSon = require('./proxyFixtures/GenericDocumentId.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(cred.verifyProofs()).toBeTruthy(); - }); - - it('Should not verify an VC of tampered GenericDocumentId', async () => { - const credJSon = require('./proxyFixtures/GenericDocumentId.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - cred.claim.document.dateOfBirth.day = 20; - cred.claim.document.dateOfBirth.year = 1900; - - expect(await cred.verifyProofs()).toBeFalsy(); - }); - - it('Should verify an VC of type PhoneNumber', async () => { - const credJSon = require('./proxyFixtures/PhoneNumber.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(await cred.verifyProofs()).toBeTruthy(); - }); - - - // This breaks VC.verify - verify has been deprecated - test.skip('cred.verify(): with a valid cred without expirationDate, should return at least' - + ' VERIFY_LEVELS.PROOFS level', async () => { - const credJSon = require('./proxyFixtures/Cred1.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(await cred.verify()).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.PROOFS); - }); - - it('Should verify an credential json with no cryptographic security', async () => { - const credential = require('./proxyFixtures/PhoneNumber.json'); // eslint-disable-line - const isValid = await VC.nonCryptographicallySecureVerify(credential); - expect(isValid).toBeTruthy(); - }); - - it('Should verify a not anchored VC with non cryptographic verify', async () => { - const value = { - country: '1ApYikRwDl', - countryCode: 'U4drpB96Hk', - number: 'kCTGifTdom', - extension: 'sXZpZJTe4R', - lineType: 'OaguqgUaR7', - }; - - const uca = await Claim.create('claim-cvc:Contact.phoneNumber-v1', value, '1'); - const credential = await VC.create('credential-cvc:PhoneNumber-v1', '', null, [uca], '1'); - const isValid = await VC.nonCryptographicallySecureVerify(credential); - expect(isValid).toBeTruthy(); - }); - - it('Should fail verification of a VC with invalid cryptographic security', - async () => expect(VC.cryptographicallySecureVerify(invalidEmailJson)).resolves.toBeFalsy()); - - it('Should verify an VC with cryptographic security', async (done) => { - const credJSon = require('./proxyFixtures/PhoneNumber.json'); // eslint-disable-line - const credential = await VC.fromJSON(credJSon); - - let isValid = await VC.cryptographicallySecureVerify(credential); - expect(isValid).toBeTruthy(); - - const verifyAttestationFunc = () => true; - isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc); - expect(isValid).toBeTruthy(); - - const verifySignatureFunc = () => true; - isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc, verifySignatureFunc); - expect(isValid).toBeTruthy(); - - done(); - }); - - it('Should return false if attestation or signature check fail on cryptographic verification', async (done) => { - const credJSon = require('./proxyFixtures/PhoneNumber.json'); // eslint-disable-line - const credential = await VC.fromJSON(credJSon); - - let verifyAttestationFunc = () => false; - let isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc); - expect(isValid).toBeFalsy(); - - verifyAttestationFunc = () => true; - const verifySignatureFunc = () => false; - isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc, verifySignatureFunc); - expect(isValid).toBeFalsy(); - - done(); - }); - - test('cred.verify(): VERIFY_LEVELS.PROOFS without expirationDate INVALID', async () => { - const credJSon = require('./proxyFixtures/Cred1.json'); // eslint-disable-line - // messing up with the targetHash: - credJSon.proof.leaves[0].targetHash = credJSon.proof.leaves[0].targetHash.replace('a', 'b'); - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(await cred.verify()).toEqual(VC.VERIFY_LEVELS.INVALID); - }); - - it('should fail verification since it doesn\'t have an Meta:expirationDate UCA', async () => { - const credJSon = require('./proxyFixtures/Cred1.json'); // eslint-disable-line - // messing up with the targetHash: - credJSon.proof.leaves[0].targetHash = credJSon.proof.leaves[0].targetHash.replace('a', 'b'); - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(await cred.verifyProofs()).toBeFalsy(); - }); - - test('cred.verifyProofs(): with a valid cred with expirationDate, should return TRUE', async () => { - const credJSon = require('./proxyFixtures/CredWithFutureExpiry.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(cred.verifyProofs()).toBeTruthy(); - }); - - test('cred.verifyProofs(): with a valid cred but expired, should return FALSE', async () => { - const credJSon = require('./proxyFixtures/CredExpired.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(await cred.verifyProofs()).not.toBeTruthy(); - }); - - it('should fail verification since the leaf value is tampered', async () => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCWithTamperedLeafValue.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(await cred.verifyProofs()).not.toBeTruthy(); - }); - - it('should check that signature matches for the root of the Merkle Tree', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(cred).toBeDefined(); - expect(cred.proof.anchor).toBeDefined(); - expect(await cred.verifyAnchorSignature()).toBeTruthy(); - done(); - }); - - it('should check that signature matches for the root of the Merkle Tree using a pinned key', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(cred).toBeDefined(); - expect(cred.proof.anchor).toBeDefined(); - expect(await cred.verifyAnchorSignature(XPUB1)).toBeTruthy(); - done(); - }); - - it('should fail to check that signature using a bad pinned key', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(cred).toBeDefined(); - expect(cred.proof.anchor).toBeDefined(); - expect(() => cred.verifyAnchorSignature(XPUB1.replace('9', '6'))).toThrow(); - done(); - }); - - it('should tamper the root of Merkle and the signature should not match', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - // tamper merkle root - cred.proof.merkleRoot = 'gfdagfagfda'; - expect(cred).toBeDefined(); - expect(cred.proof.anchor).toBeDefined(); - expect(await cred.verifyAnchorSignature()).toBeFalsy(); - done(); - }); - - it('should have a empty "granted" field just after construct a VC', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - - expect(cred).toBeDefined(); - expect(cred.granted).toBeNull(); - - done(); - }); - - it('should have a empty "granted" field just after construct a VC from a JSON', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(cred).toBeDefined(); - expect(cred.granted).toBeNull(); - - done(); - }); - - it('should throw exception id ".grantUsageFor()" request without proper ".requestAnchor()" first', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - - expect(cred).toBeDefined(); - expect(cred.granted).toBeNull(); - - const requestorId = 'REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - try { - cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - } catch (err) { - expect(err.message).toEqual('Invalid credential attestation/anchor'); - done(); - } - }); - - it('should have a filled "granted" field after ".grantUsageFor()" request', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - await cred.requestAnchor(); - expect(cred).toBeDefined(); - expect(cred.granted).toBeNull(); - cred.proof.anchor.subject = signAttestationSubject(cred.proof.anchor.subject, XPVT1, XPUB1); - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - expect(cred.granted).not.toBeNull(); - done(); - }); - - it('should have a filled "granted" field after ".grantUsageFor()" request (fromJSON test)', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(cred).toBeDefined(); - // expect(cred.granted).toBeNull(); - cred.proof.anchor.subject = signAttestationSubject(cred.proof.anchor.subject, XPVT1, XPUB1); - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - expect(cred.granted).not.toBeNull(); - done(); - }); - - it('should verifyGrant() accordingly', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - const anchoredCred = await cred.requestAnchor(); - expect(anchoredCred).toBeDefined(); - expect(anchoredCred.granted).toBeNull(); - - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(_.merge({}, anchoredCred, { proof: { anchor: { subject } } })); - - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - - // simulate a wire transmission - const transmittedCred = JSON.stringify(signedCred, null, 2); - expect(transmittedCred).toBeDefined(); - - // - const receivedCred = await VC.fromJSON(JSON.parse(transmittedCred)); - expect(receivedCred.granted).not.toBeNull(); - - const verifyGrant = await receivedCred.verifyGrant(requestorId, requestId); - expect(verifyGrant).toEqual(true); - - done(); - }); - - it('should fail verifyGrant() with a invalid "granted" token', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - const anchoredCred = await cred.requestAnchor(); - expect(anchoredCred).toBeDefined(); - expect(anchoredCred.granted).toBeNull(); - - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(_.merge({}, anchoredCred, { proof: { anchor: { subject } } })); - - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - - // simulate a wire transmission - const transmittedCred = JSON.stringify(signedCred, null, 2); - expect(transmittedCred).toBeDefined(); - - // - const receivedCred = await VC.fromJSON(JSON.parse(transmittedCred)); - expect(receivedCred.granted).not.toBeNull(); - - // Simulate a invalid granted token - one not based on the same nonce - // eslint-disable-next-line - receivedCred.granted = '304502210085f6baceefcddefff535416df0eda6c9b8a01dcba592c599ec2c83cce7171dd802204473f5a15b3904dbf0fc309fe812fbf449948714938fb4871196d338ef38f1d1'; - - const verifyGrant = await receivedCred.verifyGrant(requestorId, requestId); - expect(verifyGrant).toEqual(false); - - done(); - }); - - it('should verify a granted credential json with requesterGrantVerify', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - const anchoredCred = await cred.requestAnchor(); - expect(anchoredCred).toBeDefined(); - expect(anchoredCred.granted).toBeNull(); - - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(_.merge({}, anchoredCred, { proof: { anchor: { subject } } })); - - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - - // simulate a wire transmission - const transmittedCred = JSON.stringify(signedCred, null, 2); - expect(transmittedCred).toBeDefined(); - expect(transmittedCred.granted).not.toBeNull(); - - const credentialObj = JSON.parse(transmittedCred); - - const verifyGrant = await VC.requesterGrantVerify(credentialObj, requestorId, requestId); - expect(verifyGrant).toEqual(true); - - done(); - }); - - it('should fail to verify a credential json with invalid granted token with requesterGrantVerify', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - const anchoredCred = await cred.requestAnchor(); - expect(anchoredCred).toBeDefined(); - expect(anchoredCred.granted).toBeNull(); - - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(_.merge({}, anchoredCred, { proof: { anchor: { subject } } })); - - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - - // simulate a wire transmission - const transmittedCred = JSON.stringify(signedCred, null, 2); - expect(transmittedCred).toBeDefined(); - expect(transmittedCred.granted).not.toBeNull(); - - const credentialObj = JSON.parse(transmittedCred); - - // Simulate a invalid granted token - one not based on the same nonce - // eslint-disable-next-line max-len - credentialObj.proof.granted = '304502210085f6baceefcddefff535416df0eda6c9b8a01dcba592c599ec2c83cce7171dd802204473f5a15b3904dbf0fc309fe812fbf449948714938fb4871196d338ef38f1d1'; - - const verifyGrant = await VC.requesterGrantVerify(credentialObj, requestorId, requestId); - expect(verifyGrant).toEqual(false); - - done(); - }); - - it('should verify() with maximum level of GRANTED', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - const anchoredCred = await cred.requestAnchor(); - expect(anchoredCred).toBeDefined(); - expect(anchoredCred.granted).toBeNull(); - - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const anchorCredJSON = anchoredCred.toJSON(); - anchorCredJSON.proof.anchor.subject = subject; - - const signedCred = await VC.fromJSON(anchorCredJSON); - - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - - // simulate a wire transmission - const transmittedCred = JSON.stringify(signedCred, null, 2); - expect(transmittedCred).toBeDefined(); - - // - const receivedCred = await VC.fromJSON(JSON.parse(transmittedCred)); - expect(receivedCred.granted).not.toBeNull(); - - const verifyLevel = await receivedCred.verify(VC.VERIFY_LEVELS.GRANTED, { - requestorId, - requestId, - }); - expect(verifyLevel).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.GRANTED); - - done(); - }); - - it('should fail verify() with maximum level of GRANTED if granted is invalid', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - const anchoredCred = await cred.requestAnchor(); - expect(anchoredCred).toBeDefined(); - expect(anchoredCred.granted).toBeNull(); - - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const anchoredCredJSON = anchoredCred.toJSON(); - anchoredCredJSON.proof.anchor.subject = subject; - const signedCred = await VC.fromJSON(anchoredCredJSON); - - const requestorId = 'ANY_REQUESTOR_ID_12345'; - const requestId = new Date().getTime(); // simulate an nonce ID - signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - - // simulate a wire transmission - const transmittedCred = JSON.stringify(signedCred, null, 2); - expect(transmittedCred).toBeDefined(); - - // - const receivedCred = await VC.fromJSON(JSON.parse(transmittedCred)); - expect(receivedCred.granted).not.toBeNull(); - - // Simulate a invalid granted token - one not based on the same nonce - // eslint-disable-next-line - receivedCred.granted = '304502210085f6baceefcddefff535416df0eda6c9b8a01dcba592c599ec2c83cce7171dd802204473f5a15b3904dbf0fc309fe812fbf449948714938fb4871196d338ef38f1d1'; - - const verifyLevel = await receivedCred.verify(VC.VERIFY_LEVELS.GRANTED, { - requestorId, - requestId, - }); - expect(verifyLevel).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.ANCHOR); // Should be at least one level lower - - done(); - }); - - it('should check that the anchor exists on the chain', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(cred).toBeDefined(); - expect(cred.proof.anchor).toBeDefined(); - const validation = await cred.verifyAttestation(); - expect(validation).toBeTruthy(); - done(); - }); - - // TODO skiing this test to release a hotfix - // We need to mock the "online" verification in this unit test to get it working - it.skip('should fail the check that the anchor exists on the chain', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCTempAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - - cred.proof.anchor.network = 'mainnet'; - - const validation = await cred.verifyAttestation(); - expect(validation).toBeFalsy(); - done(); - }); - - it('should fail the check with temporary attestations faked as permanent', async () => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/CredentialAttestationFaked.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - - cred.proof.anchor.network = 'mainnet'; - - const shouldFail = cred.verifyAttestation(); - await expect(shouldFail).rejects.toThrow(/Error: Invalid URI/); - }); - - it('should revoke the permanent anchor and succeed verification', async (done) => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - await cred.requestAnchor(); - await cred.updateAnchor(); - const validation = await cred.verifyAttestation(); - if (validation) { - const isRevoked = await cred.revokeAttestation(); - expect(isRevoked).toBeTruthy(); - } - done(); - }); - - it('should check an unrevoked attestation and validate that is not revoked', async (done) => { - const credentialContents = fs.readFileSync('__test__/creds/proxyFixtures/VCPermanentAnchor.json', 'utf8'); - const credentialJson = JSON.parse(credentialContents); - const cred = await VC.fromJSON(credentialJson); - expect(cred).toBeDefined(); - expect(cred.proof.anchor).toBeDefined(); - const isRevoked = await cred.isRevoked(); - expect(isRevoked).toBeFalsy(); - done(); - }); - - it('Should match with one constraint', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.givenNames', is: { $eq: 'Max' } }, - ], - })).toBeTruthy(); - }); - - it('Should match with two constraints', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.givenNames', is: { $eq: 'Max' } }, - { path: 'identity.name.otherNames', is: { $eq: 'Abc' } }, - ], - })).toBeTruthy(); - }); - - it('Should fail with two constraints if one of them fails', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.givenNames', is: { $eq: 'NOT MAX' } }, - { path: 'identity.name.otherNames', is: { $eq: 'Abc' } }, - ], - })).toBeFalsy(); - }); - - it('Should match with gt constraint', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.isMatch({ - claims: [ - { path: 'identity.dateOfBirth.year', is: { $gt: 1900 } }, - ], - })).toBeTruthy(); - }); - - it('Should match constraints targeting the parent properties of dates', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.isMatch({ - claims: [ - { path: 'identity.dateOfBirth', is: { $lt: 1554377905342 } }, // 4-4-2019 - ], - })).toBeTruthy(); - }); - - const getExactYearsAgo = (yearDelta) => { - const exactYearsAgo = new Date(); - exactYearsAgo.setFullYear(new Date().getFullYear() - yearDelta); - return exactYearsAgo; - }; - - const dateToDOBClaim = async (date) => { - const dobClaim = { day: date.getDate(), month: date.getMonth() + 1, year: date.getFullYear() }; - return Claim.create('claim-cvc:Identity.dateOfBirth-v1', dobClaim); - }; - - it('Should match constraints targeting the parent properties and string deltas', async () => { - const exactlyFortyYearsAgo = getExactYearsAgo(40); - const dob = await dateToDOBClaim(exactlyFortyYearsAgo); - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.isMatch({ - claims: [ - { path: 'identity.dateOfBirth', is: { $lte: '-40y' } }, - ], - })).toBeTruthy(); - }); - - it('Should not match', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.first', is: { $eq: 'Maxime' } }, - ], - })).toBeFalsy(); - }); - - it('Should match credential on constraints.meta', () => { - const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v1', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v1', - ], - }; - - const constraints = { - meta: { - credential: 'credential-cvc:Email-v1', - }, - }; - - expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeTruthy(); - }); - - it('Should match credential on constraints.meta with issuer', () => { - const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v1', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v1', - ], - }; - - const constraints = { - meta: { - credential: 'credential-cvc:Email-v1', - issuer: { - is: { - $eq: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - }, - }, - }, - }; - - expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeTruthy(); - }); - - it('Should not match credential on constraints.meta with wrong issuer', () => { - const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v1', - issuer: 'did:ethr:0x00000', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v1', - ], - }; - - const constraints = { - meta: { - credential: 'credential-cvc:Email-v1', - issuer: { - is: { - $eq: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - }, - }, - }, - }; - - expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeFalsy(); - }); - - it('Should match credential on constraints.meta with multiple fields', () => { - const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v1', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v1', - ], - }; - - const constraints = { - meta: { - credential: 'credential-cvc:Email-v1', - issuer: { - is: { - $eq: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - }, - }, - id: { - is: { - $eq: '123456789', - }, - }, - }, - }; - - expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeTruthy(); - }); - - it('Should not match credential on constraints.meta with invalid field', () => { - const vcMeta = { - id: '123456789', - identifier: 'civ:Credential:CivicBasic', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'civ:Credential:CivicBasic', - ], - }; - - const constraints = { - meta: { - credential: 'credential-civ:Credential:CivicBasic-1', - issuer: { - is: { - $eq: 'did:ethr:NOT_MATCH', - }, - }, - id: { - is: { - $eq: '123456789', - }, - }, - }, - }; - - expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeFalsy(); - }); - - it('Should not match credential if constraints.meta are invalid or empty', () => { - const vcMeta = { - id: '123456789', - identifier: 'civ:Credential:CivicBasic', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'civ:Credential:CivicBasic', - ], - }; - - const constraint = {}; - expect(VC.isMatchCredentialMeta(vcMeta, constraint)).toBeFalsy(); - }); - - it('Should return all Credential properties for credential-cvc:GenericDocumentId-v1', async () => { - const properties = await VC.getAllProperties('credential-cvc:GenericDocumentId-v1'); - expect(properties).toHaveLength(30); - expect(properties).toContain('document.type'); - expect(properties).toContain('document.number'); - expect(properties).toContain('document.gender'); - expect(properties).toContain('document.issueLocation'); - expect(properties).toContain('document.issueAuthority'); - expect(properties).toContain('document.issueCountry'); - expect(properties).toContain('document.placeOfBirth'); - expect(properties).toContain('document.name.givenNames'); - expect(properties).toContain('document.name.familyNames'); - expect(properties).toContain('document.name.otherNames'); - expect(properties).toContain('document.dateOfBirth.day'); - expect(properties).toContain('document.dateOfBirth.month'); - expect(properties).toContain('document.dateOfBirth.year'); - expect(properties).toContain('document.address.country'); - expect(properties).toContain('document.address.county'); - expect(properties).toContain('document.address.state'); - expect(properties).toContain('document.address.street'); - expect(properties).toContain('document.address.unit'); - expect(properties).toContain('document.address.city'); - expect(properties).toContain('document.address.postalCode'); - expect(properties).toContain('document.properties.dateOfIssue.day'); - expect(properties).toContain('document.properties.dateOfIssue.month'); - expect(properties).toContain('document.properties.dateOfIssue.year'); - expect(properties).toContain('document.properties.dateOfExpiry.day'); - expect(properties).toContain('document.properties.dateOfExpiry.month'); - expect(properties).toContain('document.properties.dateOfExpiry.year'); - expect(properties).toContain('document.image.front'); - expect(properties).toContain('document.image.frontMD5'); - expect(properties).toContain('document.image.back'); - expect(properties).toContain('document.image.backMD5'); - }); - - it('Should return all Credential properties for credential-cvc:Identity-v1', async () => { - const properties = await VC.getAllProperties('credential-cvc:Identity-v1'); - expect(properties).toHaveLength(6); - expect(properties).toContain('identity.name.givenNames'); - expect(properties).toContain('identity.name.familyNames'); - expect(properties).toContain('identity.name.otherNames'); - expect(properties).toContain('identity.dateOfBirth.day'); - expect(properties).toContain('identity.dateOfBirth.month'); - expect(properties).toContain('identity.dateOfBirth.year'); - }); - - it('Should return all Credential properties for credential-cvc:Address-v1', async () => { - const properties = await VC.getAllProperties('credential-cvc:Address-v1'); - expect(properties).toHaveLength(7); - expect(properties).toContain('identity.address.country'); - expect(properties).toContain('identity.address.county'); - expect(properties).toContain('identity.address.state'); - expect(properties).toContain('identity.address.street'); - expect(properties).toContain('identity.address.unit'); - expect(properties).toContain('identity.address.city'); - expect(properties).toContain('identity.address.postalCode'); - }); - - it('Should return all Credential properties for credential-cvc:PhoneNumber-v1', async () => { - const properties = await VC.getAllProperties('credential-cvc:PhoneNumber-v1'); - expect(properties).toHaveLength(5); - expect(properties).toContain('contact.phoneNumber.country'); - expect(properties).toContain('contact.phoneNumber.countryCode'); - expect(properties).toContain('contact.phoneNumber.number'); - expect(properties).toContain('contact.phoneNumber.extension'); - expect(properties).toContain('contact.phoneNumber.lineType'); - }); - - it('Should return all Credential properties for credential-cvc:Email-v1', async () => { - const properties = await VC.getAllProperties('credential-cvc:Email-v1'); - expect(properties).toHaveLength(3); - expect(properties).toContain('contact.email.username'); - expect(properties).toContain('contact.email.domain.name'); - expect(properties).toContain('contact.email.domain.tld'); - }); - - it('Should construct a VC with no evidence provided', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', - { givenNames: 'Neymar', otherNames: 'Jr', familyNames: 'Mustermann' }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 5, month: 2, year: 1992 }); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1'); - expect(cred).toBeDefined(); - }); - - it('Should construct a VC with the provided evidence', async () => { - const evidence = { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - }; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', - }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { - day: 5, - month: 2, - year: 1992, - }); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', evidence); - expect(cred.evidence).toBeDefined(); - expect(cred.evidence).toEqual([evidence]); - }); - - it('Should construct a VC with multiple evidence items', async () => { - const evidence = [ - { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - }, - { - id: 'https://idv.civic.com/evidence/a1adcc52-ac1d-31ff-1cd3-0123591dcadal', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - }, - ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', - }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { - day: 5, - month: 2, - year: 1992, - }); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', evidence); - expect(cred.evidence).toBeDefined(); - expect(cred.evidence).toEqual(evidence); - }); - - it('Should include only the evidence properties in the credential', async () => { - const evidence = [ - { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - other: 'other', - }, - ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', - }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { - day: 5, - month: 2, - year: 1992, - }); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', evidence); - expect(cred.evidence).toBeDefined(); - expect(cred.evidence.other).not.toBeDefined(); - }); - - it('Should construct a credential with an evidence without id', async () => { - const evidence = [ - { - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - }, - ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', - }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { - day: 5, - month: 2, - year: 1992, - }); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', evidence); - expect(cred.evidence).toBeDefined(); - expect(cred.evidence).toEqual(evidence); - }); - - it('Should throw exception if a evidence required property is missing', async () => { - const evidence = [ - { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - }, - ]; - - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', - }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { - day: 5, - month: 2, - year: 1992, - }); - - return expect(VC.create( - 'credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', evidence, - )).rejects.toThrow(/Evidence type is required/); - }); - - it('Should throw exception if evidence id is NOT a valid url', async () => { - const evidence = [ - { - id: 'not an URL', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - }, - ]; - - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', - }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { - day: 5, - month: 2, - year: 1992, - }); - - return expect(VC.create( - 'credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', evidence, - )).rejects.toThrow(/Evidence id is not a valid URL/); - }); - - it('Should throw exception if evidence type is not an array', async () => { - const evidence = [ - { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: 'DocumentVerification', - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - }, - ]; - - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', - }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { - day: 5, - month: 2, - year: 1992, - }); - - return expect(VC.create( - 'credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', evidence, - )).rejects.toThrow(/Evidence type is not an Array object/); - }); - - it('Should create credential if all claims are provided', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const number = await Claim.create('claim-cvc:Document.number-v1', '123', '1'); - const name = await Claim.create('claim-cvc:Document.name-v1', { givenNames: 'Maxime' }, '1'); - const gender = await Claim.create('claim-cvc:Document.gender-v1', 'M', '1'); - const nationality = await Claim.create('claim-cvc:Document.nationality-v1', 'Brazilian', '1'); - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', 'Brazil', '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - const dateOfExpiryValue = { - day: 20, - month: 3, - year: 2020, - }; - const dateOfExpiry = await Claim.create('claim-cvc:Document.dateOfExpiry-v1', dateOfExpiryValue, '1'); - const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const evidences = await Claim.create('claim-cvc:Document.evidences-v1', { - idDocumentFront: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - idDocumentBack: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - selfie: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - }, '1'); - - const ucas = [ - type, number, name, gender, issueCountry, placeOfBirth, dateOfBirth, nationality, dateOfExpiry, evidences, - ]; - const credential = await VC.create('credential-cvc:IdDocument-v1', '', null, ucas, '1'); - expect(credential).toBeDefined(); - }); - - it('Should create credential if non-required claims are missing', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const name = await Claim.create('claim-cvc:Document.name-v1', { givenNames: 'Maxime' }, '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - - const ucas = [type, name, issueCountry, dateOfBirth]; - const credential = await VC.create('credential-cvc:IdDocument-v1', '', null, ucas, '1'); - expect(credential).toBeDefined(); - }); - - it('Should throw exception on credential creation if required uca is missing', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const name = await Claim.create('claim-cvc:Document.name-v1', { givenNames: 'Maxime' }, '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - - const ucas = [type, name, issueCountry]; - - return expect(VC.create('credential-cvc:IdDocument-v2', '', null, ucas, '1')).rejects - .toThrow(/Missing required claim\(s\): claim-cvc:Document.dateOfBirth-v1, claim-cvc:Document.evidences-v1/); - }); - - it('Should throw exception on credential creation if required uca is missing', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const name = await Claim.create('claim-cvc:Document.name-v1', { givenNames: 'Maxime' }, '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - - const ucas = [type, name, issueCountry]; - - return expect(VC.create('credential-cvc:IdDocument-v1', '', null, ucas, '1')) - .rejects.toThrow(/Missing required claim\(s\): claim-cvc:Document.dateOfBirth-v1/); - }); - - it('Should verify a VC without non-required claims', async () => { - const credJSon = require('./proxyFixtures/IdDocumentWithoutNonRequiredClaims.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(cred.verifyProofs()).toBeTruthy(); - }); - - it('Should throw exception when creating a VC from json without required claims', async () => { - const credJSon = require('./proxyFixtures/IdDocumentWithoutRequiredClaims.json'); // eslint-disable-line - - return expect(VC.fromJSON(credJSon)) - .rejects.toThrow(); - }); -}); - -describe('Transient Credential Tests', () => { - beforeAll(() => { - schemaLoader.addLoader(new CVCSchemaLoader()); - }); - - beforeEach(() => { - schemaLoader.reset(); - }); - - it('Should create an US Address Transient Credential', async () => { - const value = { - country: 'US', - county: 'Melo Park', - state: 'California', - street: 'Oak', - unit: '12', - city: 'Palo Alto', - postalCode: '94555', - }; - - const uca = await Claim.create('claim-cvc:Identity.address-v1', value, '1'); - const credential = await VC.create('credential-cvc:UnverifiedAddress-v1', '', null, [uca], '1'); - - expect(credential).toBeDefined(); - expect(credential.transient).toBeTruthy(); - - credential.requestAnchor(); - - expect(credential.proof.anchor).toBeDefined(); - expect(credential.proof.anchor.type).toBe('transient'); - - const verified = await credential.verifyAttestation(); - expect(verified).toBeTruthy(); - - const proved = credential.verifyProofs(); - expect(proved).toBeTruthy(); - }); - - it('Should create an US SSN Transient Credential', async () => { - const value = { - areaNumber: '111', - groupNumber: '11', - serialNumber: '1111', - }; - - const uca = await Claim.create('claim-cvc:SocialSecurity.number-v1', value, '1'); - const credential = await VC.create('credential-cvc:UnverifiedSsn-v1', '', null, [uca], '1'); - - expect(credential).toBeDefined(); - expect(credential.transient).toBeTruthy(); - - credential.requestAnchor(); - - expect(credential.proof.anchor).toBeDefined(); - expect(credential.proof.anchor.type).toBe('transient'); - - const verified = await credential.verifyAttestation(); - expect(verified).toBeTruthy(); - - const proved = credential.verifyProofs(); - expect(proved).toBeTruthy(); - }); -}); - -describe('Signned Verifiable Credentials', () => { - beforeAll(() => { - schemaLoader.addLoader(new CVCSchemaLoader()); - }); - - beforeEach(() => { - schemaLoader.reset(); - }); - - test('Should create a verifiable credential instance', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', null, - new CredentialSignerVerifier({ prvBase58 })); - expect(cred).toBeDefined(); - expect(cred.proof.merkleRootSignature).toBeDefined(); - expect(cred.verifyMerkletreeSignature(pubBase58)).toBeTruthy(); - }); - - test('Should verify credential(data only) signature', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const signerVerifier = new CredentialSignerVerifier({ prvBase58 }); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob], '1', null, - signerVerifier); - expect(cred).toBeDefined(); - expect(cred.proof.merkleRootSignature).toBeDefined(); - - const dataOnlyCredential = JSON.parse(JSON.stringify(cred)); - expect(signerVerifier.isSignatureValid(dataOnlyCredential)).toBeTruthy(); - }); - - test('should return a new credential via the proxy', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, [name, dob], '3'); - - expect(cred.credentialSubject).toBeDefined(); - }); - - it('Should verify an old schema signature', async () => { - const credJSon = require('./fixtures/emailCredentialOld.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - - expect(await cred.verifyMerkletreeSignature( - 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD', - )).toBe(true); - }); -}); - -describe('Verifiable Credential JSON serialization', () => { - // eslint-disable-next-line global-require - const idCredOld = require('./proxyFixtures/Identity.json'); - // eslint-disable-next-line global-require - const idCredNew = require('./fixtures/Identity.json'); - - beforeAll(() => { - schemaLoader.addLoader(new CVCSchemaLoader()); - }); - - it('serializes an "old" format VC to JSON', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v1', uuidv4(), null, [name, dob]); - - // serialize the credential to JSON, then back to an object to be tested against - const credJSON = JSON.parse(JSON.stringify(cred)); - - expect(credJSON).toEqual(expect.objectContaining({ - id: cred.id, - identifier: 'credential-cvc:Identity-v1', - issuer: cred.issuer, - issuanceDate: cred.issuanceDate, - type: ['Credential', 'credential-cvc:Identity-v1'], - claim: { - identity: { - name: { - familyNames: identityName.familyNames, - givenNames: identityName.givenNames, - otherNames: identityName.otherNames, - }, - dateOfBirth: { - day: identityDateOfBirth.day, - month: identityDateOfBirth.month, - year: identityDateOfBirth.year, - }, - }, - }, - })); - }); - - it('serializes a VC to W3C JSON', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, [name, dob], null); - - // serialize the credential to JSON, then back to an object to be tested against - const credJSON = JSON.parse(JSON.stringify(cred)); - - expect(credJSON).toEqual(expect.objectContaining({ - '@context': ['https://www.w3.org/2018/credentials/v1', 'https://www.identity.com/credentials/v3'], - id: cred.id, - issuer: cred.issuer, - issuanceDate: cred.issuanceDate, - type: ['VerifiableCredential', 'IdentityCredential'], - credentialSubject: { - id: '', - identity: { - name: { - familyNames: identityName.familyNames, - givenNames: identityName.givenNames, - otherNames: identityName.otherNames, - }, - dateOfBirth: { - day: identityDateOfBirth.day, - month: identityDateOfBirth.month, - year: identityDateOfBirth.year, - }, - }, - }, - })); - }); - - it('deserializes and re-serializes an "old" VC format via the proxy class', async () => { - const cred = await VC.fromJSON(idCredOld); - - const credJSON = JSON.parse(JSON.stringify(cred)); - - expect(credJSON).toEqual(expect.objectContaining({ - id: idCredOld.id, - identifier: idCredOld.identifier, - issuer: idCredOld.issuer, - issuanceDate: idCredOld.issuanceDate, - type: idCredOld.type, - claim: idCredOld.claim, - })); - }); - - it('deserializes and re-serializes a W3C VC format via the proxy class', async () => { - const cred = await VC.fromJSON(idCredNew); - - const credJSON = JSON.parse(JSON.stringify(cred)); - - expect(credJSON).toEqual(expect.objectContaining({ - '@context': idCredNew['@context'], - id: idCredNew.id, - issuer: idCredNew.issuer, - issuanceDate: idCredNew.issuanceDate, - type: idCredNew.type, - credentialSubject: idCredNew.credentialSubject, - })); - }); -}); diff --git a/__test__/creds/proxyFixtures/filteredIdDocument-v2.json b/__test__/creds/proxyFixtures/filteredIdDocument-v2.json index fa556492..3359a515 100644 --- a/__test__/creds/proxyFixtures/filteredIdDocument-v2.json +++ b/__test__/creds/proxyFixtures/filteredIdDocument-v2.json @@ -12,6 +12,7 @@ "transient": false, "claim": { "document": { + "type": "passport", "dateOfBirth": { "day": 20, "month": 3, diff --git a/__test__/isClaimRelated.test.js b/__test__/isClaimRelated.test.js index 101c9fd9..b9ecfe4b 100644 --- a/__test__/isClaimRelated.test.js +++ b/__test__/isClaimRelated.test.js @@ -13,36 +13,29 @@ describe('isClaimRelated Tests', () => { }); it('Should validate a claim path against UCA definitions ' - + 'and VC definitions and succeed', async (done) => { + + 'and VC definitions and succeed', async () => { const uca = 'claim-claim-cvc:Document.name-v1-1'; const claim = 'document.name.givenNames'; const credential = 'credential-cvc:GenericDocumentId-v1'; const validation = await isClaimRelated(claim, uca, credential); expect(validation).toBeTruthy(); - done(); }); it('Should validate a claim path against UCA definitions and VC definitions and ' - + 'succeed returning false for an non existent dependency', async (done) => { + + 'succeed returning false for an non existent dependency', async () => { const uca = 'claim-claim-cvc:Contact.phoneNumber-v1-1'; const claim = 'contact.phoneNumber.number'; const credential = 'credential-cvc:GenericDocumentId-v1'; const validation = await isClaimRelated(claim, uca, credential); expect(validation).toBeFalsy(); - done(); }); - it('Should fail validation of a wrong defined uca global identifier', () => expect(isClaimRelated( - 'document.name.givenNames', 'claim-civ:Identity:error-1', 'credential-cvc:GenericDocumentId-v1', - )).rejects.toThrow(/UCA identifier does not exist/)); + it('Should fail validation of a wrong defined uca global identifier', () => expect(isClaimRelated('document.name.givenNames', 'claim-civ:Identity:error-1', 'credential-cvc:GenericDocumentId-v1')).rejects.toThrow(/UCA identifier does not exist/)); + it('Should fail validation of a wrong defined claim path identifier', () => expect(isClaimRelated('name.error', 'claim-claim-cvc:Document.name-v1-1', 'credential-cvc:GenericDocumentId-v1')).rejects.toThrow(/Claim property path does not exist on UCA definitions/)); - it('Should fail validation of a wrong defined claim path identifier', () => expect(isClaimRelated( - 'name.error', 'claim-claim-cvc:Document.name-v1-1', 'credential-cvc:GenericDocumentId-v1', - )).rejects.toThrow(/Claim property path does not exist on UCA definitions/)); - - it('Should fail validation of a wrong defined credential parent identifier', - () => expect(isClaimRelated( - 'document.name.givenNames', 'claim-claim-cvc:Document.name-v1-1', 'civ:Credential:Generic', - )).rejects.toThrow(/Credential identifier does not exist/)); + it( + 'Should fail validation of a wrong defined credential parent identifier', + () => expect(isClaimRelated('document.name.givenNames', 'claim-claim-cvc:Document.name-v1-1', 'civ:Credential:Generic')).rejects.toThrow(/Credential identifier does not exist/), + ); }); diff --git a/__test__/isValidGlobalIdentifier.test.js b/__test__/isValidGlobalIdentifier.test.js index daa98710..f2dc90ef 100644 --- a/__test__/isValidGlobalIdentifier.test.js +++ b/__test__/isValidGlobalIdentifier.test.js @@ -1,7 +1,6 @@ const isGlobalIdentifier = require('../src/isValidGlobalIdentifier'); const { schemaLoader, CVCSchemaLoader } = require('../src'); - describe('isGlobalIdentifier Tests', () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); @@ -14,17 +13,23 @@ describe('isGlobalIdentifier Tests', () => { test('name-v1 is malformed', () => expect(isGlobalIdentifier('name-v1')) .rejects.toThrow(/Malformed Global Identifier/)); - test('credentialItem-civ:Identity:firstName-1 has invalid prefix', + test( + 'credentialItem-civ:Identity:firstName-1 has invalid prefix', () => expect(isGlobalIdentifier('credentialItem-civ:Identity:firstName-1')) - .rejects.toThrow(/Invalid Global Identifier Prefix/)); + .rejects.toThrow(/Invalid Global Identifier Prefix/), + ); - test('claim-civ:Identity:firstNome-1 is invalid', + test( + 'claim-civ:Identity:firstNome-1 is invalid', () => expect(isGlobalIdentifier('claim-civ:Identity:firstNome-1')) - .rejects.toThrow(/claim-civ:Identity:firstNome-1 is not valid/)); + .rejects.toThrow(/claim-civ:Identity:firstNome-1 is not valid/), + ); - test('credential-civ:Credential:CivicBasico-1 is invalid', + test( + 'credential-civ:Credential:CivicBasico-1 is invalid', () => expect(isGlobalIdentifier('credential-civ:Credential:CivicBasico-1')) - .rejects.toThrow(/credential-civ:Credential:CivicBasico-1 is not valid/)); + .rejects.toThrow(/credential-civ:Credential:CivicBasico-1 is not valid/), + ); test('claim-cvc:Name.givenNames-v1 is valid', async () => { expect(await isGlobalIdentifier('claim-cvc:Name.givenNames-v1')).toBeTruthy(); diff --git a/__test__/lib/did.test.js b/__test__/lib/did.test.js index 07f1a780..1e6da90a 100644 --- a/__test__/lib/did.test.js +++ b/__test__/lib/did.test.js @@ -8,7 +8,7 @@ const { const didUtil = require('../../src/lib/did'); describe('DIDs', () => { - beforeAll(mockDids); + beforeAll(() => mockDids(didUtil)); it('resolves a did:sol document', async () => { const document = await didUtil.resolve(DID_SPARSE); diff --git a/__test__/lib/signerVerifier.test.js b/__test__/lib/signerVerifier.test.js index 729d6236..42d1d2cb 100644 --- a/__test__/lib/signerVerifier.test.js +++ b/__test__/lib/signerVerifier.test.js @@ -6,11 +6,14 @@ const { privateKeyBase58, keyPair, } = require('./util/did'); +const didUtil = require('../../src/lib/did'); const DUMMY_MERKLE_ROOT = 'aa4149dda8fd2fac435898372f1de399140f6c50dbc3d40585c913701ce902c4'; describe('signerVerifier', () => { - beforeAll(mockDids); + beforeAll(() => { + mockDids(didUtil); + }); it('creates a signer from a private key', async () => { const privateKey = privateKeyBase58(DID_SPARSE); diff --git a/__test__/lib/util/did.js b/__test__/lib/util/did.js index be7710b4..c857dc52 100644 --- a/__test__/lib/util/did.js +++ b/__test__/lib/util/did.js @@ -1,6 +1,5 @@ const nacl = require('tweetnacl'); const bs58 = require('bs58'); -const didUtil = require('../../../src/lib/did'); // A default sparse DID document const DID_SPARSE = 'did:sol:localnet:6ffRJDKb3Ve83A9SsJmjyYk5Ef3LXcRkZAT6hXhBBrHf'; @@ -30,18 +29,18 @@ DOCUMENTS[DID_CONTROLLED] = [ '4shZPR61QMm4mCyS9EDMmKtPN7K4pZfysKXZ5YX7QDoHFRrHXmU7pECq7VxeQgGm8ih6jrVjynHy6EJx7b5MfZZK', ]; -// mocks didUtil.resolve to return local fixtures instead of looking it up -const mockDids = () => { - didUtil.resolve = jest.fn() - .mockImplementation((did) => { - if (!DOCUMENTS[did]) { - return null; - } +const stubResolver = (did) => { + if (!DOCUMENTS[did]) { + return null; + } + + // eslint-disable-next-line global-require,import/no-dynamic-require + return require(`../fixtures/${DOCUMENTS[did][0]}`); +}; - // eslint-disable-next-line global-require,import/no-dynamic-require - return require(`../fixtures/${DOCUMENTS[did][0]}`); - }) - .bind(didUtil); +// mocks didUtil.resolve to return local fixtures instead of looking it up +const mockDids = (didUtil) => { + didUtil.setResolver(stubResolver); return didUtil; }; @@ -60,7 +59,7 @@ const keyPair = (did) => { /** * Returns the base58 encoded private key for one of the above DIDs */ -const privateKeyBase58 = did => DOCUMENTS[did][1]; +const privateKeyBase58 = (did) => DOCUMENTS[did][1]; module.exports = { DID_WITH_NO_DEFAULT, @@ -70,4 +69,5 @@ module.exports = { mockDids, keyPair, privateKeyBase58, + stubResolver, }; diff --git a/__test__/schemaLoader.test.js b/__test__/schemaLoader.test.js index 051a9f1f..bc4d45fa 100644 --- a/__test__/schemaLoader.test.js +++ b/__test__/schemaLoader.test.js @@ -84,7 +84,6 @@ describe('schema loading tests', () => { ])); }); - it('test vc', async () => { await Claim.create('cvc:Contact:phoneNumber', { country: 'BR', diff --git a/__test__/services/MiniCryptoManagerImpl.test.js b/__test__/services/MiniCryptoManagerImpl.test.js index b84df8f4..3924fd47 100644 --- a/__test__/services/MiniCryptoManagerImpl.test.js +++ b/__test__/services/MiniCryptoManagerImpl.test.js @@ -7,12 +7,11 @@ const XPUB = 'xpub6Expk8Z75vLhdyfopBrrcmcd3NhenAuuE4GXcX8KkwKbaQqzAe4Ywbtxu9F95h describe('Unit tests for MiniCryptoManager', () => { let cryptoManagerImpl; - beforeAll(async (done) => { + beforeAll(() => { cryptoManagerImpl = new MiniCryptoManagerImpl(); - done(); }); - test('Should sign with XPVT key and verify with XPUB pair', async (done) => { + test('Should sign with XPVT key and verify with XPUB pair', async () => { const nonce = new Date().getTime(); const stringWithNonce = `SomeStringWithNonce${nonce}`; const hexHashNonce = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(stringWithNonce)); @@ -31,6 +30,5 @@ describe('Unit tests for MiniCryptoManager', () => { const verify = cryptoManagerImpl.verify(keyNameVerify, hexHashNonceToVerify, hexSignature); expect(verify).toEqual(true); - done(); }); }); diff --git a/package-lock.json b/package-lock.json index e0daac9a..9d6fe1b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,1068 +1,1733 @@ { "name": "@identity.com/credential-commons", "version": "3.0.2", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "@babel/cli": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.16.8.tgz", - "integrity": "sha512-FTKBbxyk5TclXOGmwYyqelqP5IF6hMxaeJskd85jbR5jBfYlwqgwAbJwnixi1ZBbTqKfFuAA95mdmUFeSRwyJA==", - "dev": true, - "requires": { - "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", - "chokidar": "^3.4.0", - "commander": "^4.0.1", - "convert-source-map": "^1.1.0", - "fs-readdir-recursive": "^1.1.0", - "glob": "^7.0.0", - "make-dir": "^2.1.0", - "slash": "^2.0.0", - "source-map": "^0.5.0" - }, + "packages": { + "": { + "name": "@identity.com/credential-commons", + "version": "3.0.2", + "license": "MIT", "dependencies": { - "commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "dev": true - } - } - }, - "@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", + "@identity.com/uca": "github:identity-com/uca#v1.0.30", + "ajv": "^8.12.0", + "ajv-formats": "^2.1.1", + "babel-runtime": "^6.26.0", + "bitcoinjs-lib": "https://github.com/dabura667/bitcoinjs-lib.git#bcash330", + "bottlejs": "^2.0.1", + "bs58": "^5.0.0", + "dotenv": "^16.3.1", + "flat": "^4.1.0", + "json-schema-traverse": "^1.0.0", + "lodash": "^4.17.21", + "merkle-tools": "^1.4.1", + "moment-mini": "^2.29.4", + "randexp": "^0.5.3", + "randomstring": "^1.3.0", + "request": "^2.88.2", + "request-promise-native": "^1.0.9", + "sift": "^17.0.1", + "sjcl": "github:civicteam/sjcl#v1.0.8-ecc", + "tweetnacl": "^1.0.3", + "type-of-is": "^3.5.1", + "unix-timestamp": "^1.0.3", + "uuid": "^9.0.1", + "valid-url": "^1.0.9" + }, + "devDependencies": { + "@babel/cli": "^7.22.15", + "@babel/core": "^7.22.20", + "@babel/plugin-transform-runtime": "^7.22.15", + "@babel/preset-env": "^7.22.20", + "audit-ci": "^6.6.1", + "babel-jest": "^29.7.0", + "babel-minify": "^0.5.2", + "clear": "^0.1.0", + "cross-env": "^7.0.3", + "eslint": "^8.49.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-no-only-tests": "^3.1.0", + "eslint-plugin-react": "^7.33.2", + "figlet": "^1.6.0", + "husky": "^8.0.3", + "inquirer": "^9.2.11", + "jest": "^29.7.0", + "jest-html-reporter": "^3.10.2", + "npm": "^10.1.0", + "request-debug": "^0.2.0", + "rimraf": "^5.0.1", + "shelljs": "^0.8.5" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", "dev": true, - "requires": { - "@babel/highlight": "^7.16.7" + "engines": { + "node": ">=0.10.0" } }, - "@babel/compat-data": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.8.tgz", - "integrity": "sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q==", - "dev": true - }, - "@babel/core": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.7.tgz", - "integrity": "sha512-aeLaqcqThRNZYmbMqtulsetOQZ/5gbR/dWruUCJcpas4Qoyy+QeagfDsPdMrqwsPRDNxJvBlRiZxxX7THO7qtA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.16.7", - "@babel/helper-compilation-targets": "^7.16.7", - "@babel/helper-module-transforms": "^7.16.7", - "@babel/helpers": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.1.2", - "semver": "^6.3.0", - "source-map": "^0.5.0" - }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" } }, - "@babel/generator": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz", - "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==", + "node_modules/@babel/cli": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.22.15.tgz", + "integrity": "sha512-prtg5f6zCERIaECeTZzd2fMtVjlfjhUcO+fBLQ6DXXdq5FljN+excVitJ2nogsusdf31LeqkjAfXZ7Xq+HmN8g==", "dev": true, - "requires": { - "@babel/types": "^7.16.8", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "commander": "^4.0.1", + "convert-source-map": "^1.1.0", + "fs-readdir-recursive": "^1.1.0", + "glob": "^7.2.0", + "make-dir": "^2.1.0", + "slash": "^2.0.0" + }, + "bin": { + "babel": "bin/babel.js", + "babel-external-helpers": "bin/babel-external-helpers.js" + }, + "engines": { + "node": ">=6.9.0" + }, + "optionalDependencies": { + "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", + "chokidar": "^3.4.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/helper-annotate-as-pure": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.16.7.tgz", - "integrity": "sha512-s6t2w/IPQVTAET1HitoowRGXooX8mCgtuP5195wD/QJPV6wYjpujCGF7JuMODVX2ZAJOf1GT6DT9MHEZvLOFSw==", + "node_modules/@babel/cli/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "engines": { + "node": ">= 6" } }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.16.7.tgz", - "integrity": "sha512-C6FdbRaxYjwVu/geKW4ZeQ0Q31AftgRcdSnZ5/jsH6BzCJbtvXvhpfkbkThYSuutZA7nCXpPR6AD9zd1dprMkA==", + "node_modules/@babel/code-frame": { + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "dev": true, - "requires": { - "@babel/helper-explode-assignable-expression": "^7.16.7", - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-compilation-targets": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", - "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", + "node_modules/@babel/compat-data": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz", + "integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==", "dev": true, - "requires": { - "@babel/compat-data": "^7.16.4", - "@babel/helper-validator-option": "^7.16.7", - "browserslist": "^4.17.5", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-create-class-features-plugin": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.16.7.tgz", - "integrity": "sha512-kIFozAvVfK05DM4EVQYKK+zteWvY85BFdGBRQBytRyY3y+6PX0DkDOn/CZ3lEuczCfrCxEzwt0YtP/87YPTWSw==", + "node_modules/@babel/core": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.20.tgz", + "integrity": "sha512-Y6jd1ahLubuYweD/zJH+vvOY141v4f9igNQAQ+MBgq9JlHS2iTsZKn1aMsb3vGccZsXI16VzTBw52Xx0DWmtnA==", "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.16.7", - "@babel/helper-member-expression-to-functions": "^7.16.7", - "@babel/helper-optimise-call-expression": "^7.16.7", - "@babel/helper-replace-supers": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7" + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.22.15", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-module-transforms": "^7.22.20", + "@babel/helpers": "^7.22.15", + "@babel/parser": "^7.22.16", + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.22.20", + "@babel/types": "^7.22.19", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" } }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.16.7.tgz", - "integrity": "sha512-fk5A6ymfp+O5+p2yCkXAu5Kyj6v0xh0RBeNcAkYUMDvvAAoxvSKXn+Jb37t/yWFiQVDFK1ELpUTD8/aLhCPu+g==", + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "regexpu-core": "^4.7.1" + "bin": { + "semver": "bin/semver.js" } }, - "@babel/helper-define-polyfill-provider": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.0.tgz", - "integrity": "sha512-7hfT8lUljl/tM3h+izTX/pO3W3frz2ok6Pk+gzys8iJqDfZrZy2pXjRTZAvG2YmfHun1X4q8/UZRLatMfqc5Tg==", + "node_modules/@babel/generator": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.15.tgz", + "integrity": "sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==", "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.13.0", - "@babel/helper-module-imports": "^7.12.13", - "@babel/helper-plugin-utils": "^7.13.0", - "@babel/traverse": "^7.13.0", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - }, "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@babel/types": "^7.22.15", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-environment-visitor": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", - "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-explode-assignable-expression": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.16.7.tgz", - "integrity": "sha512-KyUenhWMC8VrxzkGP0Jizjo4/Zx+1nNZhgocs+gLzyZyB8SHidhoq9KK/8Ato4anhwsivfkBLftky7gvzbZMtQ==", + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", + "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-function-name": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", - "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-get-function-arity": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", - "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "dependencies": { + "yallist": "^3.0.2" } }, - "@babel/helper-hoist-variables": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "bin": { + "semver": "bin/semver.js" } }, - "@babel/helper-member-expression-to-functions": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.16.7.tgz", - "integrity": "sha512-VtJ/65tYiU/6AbMTDwyoXGPKHgTsfRarivm+YbB5uAzKUyuPjgZSgAFeG87FCigc7KNHu2Pegh1XIT3lXjvz3Q==", - "dev": true, - "requires": { - "@babel/types": "^7.16.7" - } + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true }, - "@babel/helper-module-imports": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz", + "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-module-transforms": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz", - "integrity": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==", + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-simple-access": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/helper-validator-identifier": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" + "bin": { + "semver": "bin/semver.js" } }, - "@babel/helper-optimise-call-expression": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.16.7.tgz", - "integrity": "sha512-EtgBhg7rd/JcnpZFXpBy0ze1YRfdm7BnBX4uKMBd3ixa3RGAE002JZB66FJyNH7g0F38U05pXmA5P8cBh7z+1w==", + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", + "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", - "dev": true - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.16.8.tgz", - "integrity": "sha512-fm0gH7Flb8H51LqJHy3HJ3wnE1+qtYR2A99K06ahwrawLdOFsCEWjZOrYricXJHoPSudNKxrMBUPEIPxiIIvBw==", + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-wrap-function": "^7.16.8", - "@babel/types": "^7.16.8" + "bin": { + "semver": "bin/semver.js" } }, - "@babel/helper-replace-supers": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.16.7.tgz", - "integrity": "sha512-y9vsWilTNaVnVh6xiJfABzsNpgDPKev9HnAgz6Gb1p6UUwf9NepdlsV7VXGCftJM+jqD5f7JIEubcpLjZj5dBw==", + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.2.tgz", + "integrity": "sha512-k0qnnOqHn5dK9pZpfD5XXZ9SojAITdCKRn2Lp6rnDGzIbaP0rHyMPk/4wsSxVBVz4RfN0q6VpXWP2pDGIoQ7hw==", "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-member-expression-to-functions": "^7.16.7", - "@babel/helper-optimise-call-expression": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "@babel/helper-simple-access": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", - "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.16.0.tgz", - "integrity": "sha512-+il1gTy0oHwUsBQZyJvukbB4vPMdcYBrFHa0Uc4AizLxbq6BOYC51Rv4tWocX9BLBDLZ4kc6qUFpQ6HRgL+3zw==", + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", "dev": true, - "requires": { - "@babel/types": "^7.16.0" + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-split-export-declaration": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, - "requires": { - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", - "dev": true - }, - "@babel/helper-validator-option": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", - "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", - "dev": true - }, - "@babel/helper-wrap-function": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.16.8.tgz", - "integrity": "sha512-8RpyRVIAW1RcDDGTA+GpPAwV22wXCfKOoM9bet6TLkGIFTkRQSkH1nMQ5Yet4MpoXe1ZwHPVtNasc2w0uZMqnw==", + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.15.tgz", + "integrity": "sha512-qLNsZbgrNh0fDQBCPocSL8guki1hcPvltGDv/NxvUoABwFq7GkKSu1nRXeJkVZc+wJvne2E0RKQz+2SQrz6eAA==", "dev": true, - "requires": { - "@babel/helper-function-name": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.8", - "@babel/types": "^7.16.8" + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/helpers": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.7.tgz", - "integrity": "sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw==", + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", "dev": true, - "requires": { - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/highlight": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.7.tgz", - "integrity": "sha512-aKpPMfLvGO3Q97V0qhw/V2SWNWlwfJknuwAunU7wZLSfrM4xTBvg7E5opUVi1kJTBKihE38CPg4nBiqX83PWYw==", + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.20.tgz", + "integrity": "sha512-dLT7JVWIUUxKOs1UnJUBR3S70YK+pKX6AbJgB2vMIvEkZkrfJDbYDJesnPshtKV4LhDOR3Oc5YULeDizRek+5A==", "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/parser": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.8.tgz", - "integrity": "sha512-i7jDUfrVBWc+7OKcBzEe5n7fbv3i2fWtxKzzCvOjnzSxMfWMigAhtfJ7qzZNGFNMsCCd67+uz553dYKWXPvCKw==", - "dev": true - }, - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.16.7.tgz", - "integrity": "sha512-anv/DObl7waiGEnC24O9zqL0pSuI9hljihqiDuFHC8d7/bjr/4RLGPWuc8rYOff/QPzbEPSkzG8wGG9aDuhHRg==", + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", + "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.16.7.tgz", - "integrity": "sha512-di8vUHRdf+4aJ7ltXhaDbPoszdkh59AQtJM5soLsuHpQJdFQZOA4uGj0V2u/CZ8bJ/u8ULDL5yq6FO/bCXnKHw==", + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0", - "@babel/plugin-proposal-optional-chaining": "^7.16.7" + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-async-generator-functions": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.16.8.tgz", - "integrity": "sha512-71YHIvMuiuqWJQkebWJtdhQTfd4Q4mF76q2IX37uZPkG9+olBxsX+rH1vkhFto4UeJZ9dPY2s+mDvhDm1u2BGQ==", + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", + "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-remap-async-to-generator": "^7.16.8", - "@babel/plugin-syntax-async-generators": "^7.8.4" + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-wrap-function": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/plugin-proposal-class-properties": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.16.7.tgz", - "integrity": "sha512-IobU0Xme31ewjYOShSIqd/ZGM/r/cuOz2z0MDbNrhF5FW+ZVgi0f2lyeoj9KFPDOAqsYxmLWZte1WOwlvY9aww==", + "node_modules/@babel/helper-replace-supers": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", + "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/plugin-proposal-class-static-block": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.16.7.tgz", - "integrity": "sha512-dgqJJrcZoG/4CkMopzhPJjGxsIe9A8RlkQLnL/Vhhx8AA9ZuaRwGSlscSh42hazc7WSrya/IK7mTeoF0DP9tEw==", + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-class-static-block": "^7.14.5" + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-dynamic-import": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.16.7.tgz", - "integrity": "sha512-I8SW9Ho3/8DRSdmDdH3gORdyUuYnk1m4cMxUAdu5oy4n3OfN8flDEH+d60iG7dUfi0KkYwSvoalHzzdRzpWHTg==", + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", + "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-export-namespace-from": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.16.7.tgz", - "integrity": "sha512-ZxdtqDXLRGBL64ocZcs7ovt71L3jhC1RGSyR996svrCi3PYqHNkb3SwPJCs8RIzD86s+WPpt2S73+EHCGO+NUA==", + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-json-strings": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.16.7.tgz", - "integrity": "sha512-lNZ3EEggsGY78JavgbHsK9u5P3pQaW7k4axlgFLYkMd7UBsiNahCITShLjNQschPyjtO6dADrL24757IdhBrsQ==", + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-json-strings": "^7.8.3" + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.16.7.tgz", - "integrity": "sha512-K3XzyZJGQCr00+EtYtrDjmwX7o7PLK6U9bi1nCwkQioRFVUv6dJoxbQjtWVtP+bCPy82bONBKG8NPyQ4+i6yjg==", + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.16.7.tgz", - "integrity": "sha512-aUOrYU3EVtjf62jQrCj63pYZ7k6vns2h/DQvHPWGmsJRYzWXZ6/AsfgpiRy6XiuIDADhJzP2Q9MwSMKauBQ+UQ==", + "node_modules/@babel/helper-validator-option": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", + "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-numeric-separator": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.16.7.tgz", - "integrity": "sha512-vQgPMknOIgiuVqbokToyXbkY/OmmjAzr/0lhSIbG/KmnzXPGwW/AdhdKpi+O4X/VkWiWjnkKOBiqJrTaC98VKw==", + "node_modules/@babel/helper-wrap-function": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", + "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" + "dependencies": { + "@babel/helper-function-name": "^7.22.5", + "@babel/template": "^7.22.15", + "@babel/types": "^7.22.19" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.16.7.tgz", - "integrity": "sha512-3O0Y4+dw94HA86qSg9IHfyPktgR7q3gpNVAeiKQd+8jBKFaU5NQS1Yatgo4wY+UFNuLjvxcSmzcsHqrhgTyBUA==", + "node_modules/@babel/helpers": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.15.tgz", + "integrity": "sha512-7pAjK0aSdxOwR+CcYAqgWOGy5dcfvzsTIfFTb2odQqW47MDfv14UaJDY6eng8ylM2EaeKXdxaSWESbkmaQHTmw==", "dev": true, - "requires": { - "@babel/compat-data": "^7.16.4", - "@babel/helper-compilation-targets": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.16.7" + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/traverse": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.16.7.tgz", - "integrity": "sha512-eMOH/L4OvWSZAE1VkHbr1vckLG1WUcHGJSLqqQwl2GaUqG6QjddvrOaTUMNYiv77H5IKPMZ9U9P7EaHwvAShfA==", + "node_modules/@babel/highlight": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/plugin-proposal-optional-chaining": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.16.7.tgz", - "integrity": "sha512-eC3xy+ZrUcBtP7x+sq62Q/HYd674pPTb/77XZMb5wbDPGWIdUbSr4Agr052+zaUPSb+gGRnjxXfKFvx5iMJ+DA==", + "node_modules/@babel/parser": { + "version": "7.22.16", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", + "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" } }, - "@babel/plugin-proposal-private-methods": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.16.7.tgz", - "integrity": "sha512-7twV3pzhrRxSwHeIvFE6coPgvo+exNDOiGUMg39o2LiLo1Y+4aKpfkcLGcg1UHonzorCt7SNXnoMyCnnIOA8Sw==", + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.15.tgz", + "integrity": "sha512-FB9iYlz7rURmRJyXRKEnalYPPdn87H5no108cyuQQyMwlpJ2SJtpIUBI27kdTin956pz+LPypkPVPUTlxOmrsg==", "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/plugin-proposal-private-property-in-object": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.16.7.tgz", - "integrity": "sha512-rMQkjcOFbm+ufe3bTZLyOfsOUOxyvLXZJCTARhJr+8UMSoZmqTe1K1BgkFcrW37rAchWg57yI69ORxiWvUINuQ==", + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.15.tgz", + "integrity": "sha512-Hyph9LseGvAeeXzikV88bczhsrLrIZqDPxO+sSmAunMPaGrBGhfMWzCPYTtiW9t+HzSE2wtV8e5cc5P6r1xMDQ==", "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-create-class-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-transform-optional-chaining": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" } }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.16.7.tgz", - "integrity": "sha512-QRK0YI/40VLhNVGIjRNAAQkEHws0cswSdFFjpFyt943YmJIU1da9uW63Iu6NFV6CxTZW5eTDCrwZUstBWgp/Rg==", + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-async-generators": { + "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-bigint": { + "node_modules/@babel/plugin-syntax-bigint": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-class-properties": { + "node_modules/@babel/plugin-syntax-class-properties": { "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-class-static-block": { + "node_modules/@babel/plugin-syntax-class-static-block": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-dynamic-import": { + "node_modules/@babel/plugin-syntax-dynamic-import": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-export-namespace-from": { + "node_modules/@babel/plugin-syntax-export-namespace-from": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz", + "integrity": "sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz", + "integrity": "sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-import-meta": { + "node_modules/@babel/plugin-syntax-import-meta": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-json-strings": { + "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-logical-assignment-operators": { + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", + "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-nullish-coalescing-operator": { + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-numeric-separator": { + "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-object-rest-spread": { + "node_modules/@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-optional-catch-binding": { + "node_modules/@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-optional-chaining": { + "node_modules/@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-private-property-in-object": { + "node_modules/@babel/plugin-syntax-private-property-in-object": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-syntax-top-level-await": { + "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.16.7.tgz", - "integrity": "sha512-9ffkFFMbvzTvv+7dTp/66xvZAWASuPD5Tl9LK3Z9vhOmANo6j94rik+5YMBt4CwHVMWLWpMsriIc2zsa3WW3xQ==", + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", + "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.16.8.tgz", - "integrity": "sha512-MtmUmTJQHCnyJVrScNzNlofQJ3dLFuobYn3mwOTKHnSCMtbNsqvF71GQmJfFjdrXSsAA7iysFmYWw4bXZ20hOg==", + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-remap-async-to-generator": "^7.16.8" + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.16.7.tgz", - "integrity": "sha512-JUuzlzmF40Z9cXyytcbZEZKckgrQzChbQJw/5PuEHYeqzCsvebDx0K0jWnIIVcmmDOAVctCgnYs0pMcrYj2zJg==", + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz", + "integrity": "sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-block-scoping": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.16.7.tgz", - "integrity": "sha512-ObZev2nxVAYA4bhyusELdo9hb3H+A56bxH3FZMbEImZFiEDYVHXQSJ1hQKFlDnlt8G9bBrCZ5ZpURZUrV4G5qQ==", + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.15.tgz", + "integrity": "sha512-jBm1Es25Y+tVoTi5rfd5t1KLmL8ogLKpXszboWOTTtGFGz2RKnQe2yn7HbZ+kb/B8N0FVSGQo874NSlOU1T4+w==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-classes": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.16.7.tgz", - "integrity": "sha512-WY7og38SFAGYRe64BrjKf8OrE6ulEHtr5jEYaZMwox9KebgqPi67Zqz8K53EKk1fFEJgm96r32rkKZ3qA2nCWQ==", + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz", + "integrity": "sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ==", "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.16.7", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.16.7", - "@babel/helper-optimise-call-expression": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-replace-supers": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "globals": "^11.1.0" + "dependencies": { + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-computed-properties": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.16.7.tgz", - "integrity": "sha512-gN72G9bcmenVILj//sv1zLNaPyYcOzUho2lIJBMh/iakJ9ygCo/hEF9cpGb61SCMEDxbbyBoVQxrt+bWKu5KGw==", + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz", + "integrity": "sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-destructuring": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.16.7.tgz", - "integrity": "sha512-VqAwhTHBnu5xBVDCvrvqJbtLUa++qZaWC0Fgr2mqokBlulZARGyIvZDoqbPlPaKImQ9dKAcCzbv+ul//uqu70A==", + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.22.15.tgz", + "integrity": "sha512-G1czpdJBZCtngoK1sJgloLiOHUnkb/bLZwqVZD8kXmq0ZnVfTTWUcs9OWtp0mBtYJ+4LQY1fllqBkOIPhXmFmw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.16.7.tgz", - "integrity": "sha512-Lyttaao2SjZF6Pf4vk1dVKv8YypMpomAbygW+mU5cYP3S5cWTfCJjG8xV6CFdzGFlfWK81IjL9viiTvpb6G7gQ==", + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz", + "integrity": "sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ==", "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.16.7.tgz", - "integrity": "sha512-03DvpbRfvWIXyK0/6QiR1KMTWeT6OcQ7tbhjrXyFS02kjuX/mu5Bvnh5SDSWHxyawit2g5aWhKwI86EE7GUnTw==", + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.11.tgz", + "integrity": "sha512-GMM8gGmqI7guS/llMFk1bJDkKfn3v3C4KHK9Yg1ey5qcHcOlKb0QvcMrgzvxo+T03/4szNh5lghY+fEC98Kq9g==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.11", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" } }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.16.7.tgz", - "integrity": "sha512-8UYLSlyLgRixQvlYH3J2ekXFHDFLQutdy7FfFAMm3CPZ6q9wHCwnUyiXpQCe3gVVnQlHc5nsuiEVziteRNTXEA==", + "node_modules/@babel/plugin-transform-classes": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.15.tgz", + "integrity": "sha512-VbbC3PGjBdE0wAWDdHM9G8Gm977pnYI0XpqMd6LrKISj8/DJXEsWqgRuTYaNE9Bv0JGhTZUzHDlMk18IpOuoqw==", "dev": true, - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-split-export-declaration": "^7.22.6", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-for-of": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.16.7.tgz", - "integrity": "sha512-/QZm9W92Ptpw7sjI9Nx1mbcsWz33+l8kuMIQnDwgQBG5s3fAfQvkRjQ7NqXhtNcKOnPkdICmUHyCaWW06HCsqg==", + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz", + "integrity": "sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-function-name": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.16.7.tgz", - "integrity": "sha512-SU/C68YVwTRxqWj5kgsbKINakGag0KTgq9f2iZEXdStoAbOzLHEBRYzImmA6yFo8YZhJVflvXmIHUO7GWHmxxA==", + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.22.15.tgz", + "integrity": "sha512-HzG8sFl1ZVGTme74Nw+X01XsUTqERVQ6/RLHo3XjGRzm7XD6QTtfS3NJotVgCGy8BzkDqRjRBD8dAyJn5TuvSQ==", "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.16.7", - "@babel/helper-function-name": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-literals": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.16.7.tgz", - "integrity": "sha512-6tH8RTpTWI0s2sV6uq3e/C9wPo4PTqqZps4uF0kzQ9/xPLFQtipynvmT1g/dOfEJ+0EQsHhkQ/zyRId8J2b8zQ==", + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz", + "integrity": "sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.16.7.tgz", - "integrity": "sha512-mBruRMbktKQwbxaJof32LT9KLy2f3gH+27a5XSuXo6h7R3vqltl0PgZ80C8ZMKw98Bf8bqt6BEVi3svOh2PzMw==", + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz", + "integrity": "sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-amd": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.16.7.tgz", - "integrity": "sha512-KaaEtgBL7FKYwjJ/teH63oAmE3lP34N3kshz8mm4VMAw7U3PxjVwwUmxEFksbgsNUaO3wId9R2AVQYSEGRa2+g==", + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.11.tgz", + "integrity": "sha512-g/21plo58sfteWjaO0ZNVb+uEOkJNjAaHhbejrnBmu011l/eNDScmkbjCC3l4FKb10ViaGU4aOkFznSu2zRHgA==", "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "babel-plugin-dynamic-import-node": "^2.3.3" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.16.8.tgz", - "integrity": "sha512-oflKPvsLT2+uKQopesJt3ApiaIS2HW+hzHFcwRNtyDGieAeC/dIHZX8buJQ2J2X1rxGPy4eRcUijm3qcSPjYcA==", + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz", + "integrity": "sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g==", "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-simple-access": "^7.16.7", - "babel-plugin-dynamic-import-node": "^2.3.3" + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.16.7.tgz", - "integrity": "sha512-DuK5E3k+QQmnOqBR9UkusByy5WZWGRxfzV529s9nPra1GE7olmxfqO2FHobEOYSPIjPBTr4p66YDcjQnt8cBmw==", + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.11.tgz", + "integrity": "sha512-xa7aad7q7OiT8oNZ1mU7NrISjlSkVdMbNxn9IuLZyL9AJEhs1Apba3I+u5riX1dIkdptP5EKDG5XDPByWxtehw==", "dev": true, - "requires": { - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-module-transforms": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-validator-identifier": "^7.16.7", - "babel-plugin-dynamic-import-node": "^2.3.3" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-modules-umd": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.16.7.tgz", - "integrity": "sha512-EMh7uolsC8O4xhudF2F6wedbSHm1HHZ0C6aJ7K67zcDNidMzVcxWdGr+htW9n21klm+bOn+Rx4CBsAntZd3rEQ==", + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.15.tgz", + "integrity": "sha512-me6VGeHsx30+xh9fbDLLPi0J1HzmeIIyenoOQHuw2D4m2SAU3NrspX5XxJLBpqn5yrLzrlw2Iy3RA//Bx27iOA==", "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.16.8.tgz", - "integrity": "sha512-j3Jw+n5PvpmhRR+mrgIh04puSANCk/T/UA3m3P1MjJkhlK906+ApHhDIqBQDdOgL/r1UYpz4GNclTXxyZrYGSw==", + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz", + "integrity": "sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg==", "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.16.7" + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-new-target": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.16.7.tgz", - "integrity": "sha512-xiLDzWNMfKoGOpc6t3U+etCE2yRnn3SM09BXqWPIZOBpL2gvVrBWUKnsJx0K/ADi5F5YC5f8APFfWrz25TdlGg==", + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.11.tgz", + "integrity": "sha512-CxT5tCqpA9/jXFlme9xIBCc5RPtdDq3JpkkhgHQqtDdiTnTI0jtZ0QzXhr5DILeYifDPp2wvY2ad+7+hLMW5Pw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" - } + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } }, - "@babel/plugin-transform-object-super": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.16.7.tgz", - "integrity": "sha512-14J1feiQVWaGvRxj2WjyMuXS2jsBkgB3MdSN5HuC2G5nRspa5RK9COcs82Pwy5BuGcjb+fYaUj94mYcOj7rCvw==", + "node_modules/@babel/plugin-transform-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz", + "integrity": "sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-replace-supers": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-parameters": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.16.7.tgz", - "integrity": "sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw==", + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.11.tgz", + "integrity": "sha512-qQwRTP4+6xFCDV5k7gZBF3C31K34ut0tbEcTKxlX/0KXxm9GLcO14p570aWxFvVzx6QAfPgq7gaeIHXJC8LswQ==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-property-literals": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.16.7.tgz", - "integrity": "sha512-z4FGr9NMGdoIl1RqavCqGG+ZuYjfZ/hkCIeuH6Do7tXmSm0ls11nYVSJqFEUOSJbDab5wC6lRE/w6YjVcr6Hqw==", + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz", + "integrity": "sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-regenerator": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.16.7.tgz", - "integrity": "sha512-mF7jOgGYCkSJagJ6XCujSQg+6xC1M77/03K2oBmVJWoFGNUtnVJO4WHKJk3dnPC8HCcj4xBQP1Egm8DWh3Pb3Q==", + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.22.5.tgz", + "integrity": "sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ==", "dev": true, - "requires": { - "regenerator-transform": "^0.14.2" + "dependencies": { + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-reserved-words": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.16.7.tgz", - "integrity": "sha512-KQzzDnZ9hWQBjwi5lpY5v9shmm6IVG0U9pB18zvMu2i4H90xpT4gmqwPYsn8rObiadYe2M0gmgsiOIF5A/2rtg==", + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.22.15.tgz", + "integrity": "sha512-jWL4eh90w0HQOTKP2MoXXUpVxilxsB2Vl4ji69rSjS3EcZ/v4sBmn+A3NpepuJzBhOaEBbR7udonlHHn5DWidg==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-module-transforms": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-runtime": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.16.8.tgz", - "integrity": "sha512-6Kg2XHPFnIarNweZxmzbgYnnWsXxkx9WQUVk2sksBRL80lBC1RAQV3wQagWxdCHiYHqPN+oenwNIuttlYgIbQQ==", + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.11.tgz", + "integrity": "sha512-rIqHmHoMEOhI3VkVf5jQ15l539KrwhzqcBO6wdCNWPWc/JWt9ILNYNUssbRpeq0qWns8svuw8LnMNCvWBIJ8wA==", "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "babel-plugin-polyfill-corejs2": "^0.3.0", - "babel-plugin-polyfill-corejs3": "^0.5.0", - "babel-plugin-polyfill-regenerator": "^0.3.0", - "semver": "^6.3.0" + "dependencies": { + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz", + "integrity": "sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ==", + "dev": true, "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", + "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz", + "integrity": "sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.11.tgz", + "integrity": "sha512-YZWOw4HxXrotb5xsjMJUDlLgcDXSfO9eCmdl1bgW4+/lAGdkjaEvOnQ4p5WKKdUgSzO39dgPl0pTnfxm0OAXcg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.11.tgz", + "integrity": "sha512-3dzU4QGPsILdJbASKhF/V2TVP+gJya1PsueQCxIPCEcerqF21oEcrob4mzjsp2Py/1nLfF5m+xYNMDpmA8vffg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.15.tgz", + "integrity": "sha512-fEB+I1+gAmfAyxZcX1+ZUwLeAuuf8VIg67CTznZE0MqVFumWkh8xWtn58I4dxdVf080wn7gzWoF8vndOViJe9Q==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz", + "integrity": "sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.11.tgz", + "integrity": "sha512-rli0WxesXUeCJnMYhzAglEjLWVDF6ahb45HuprcmQuLidBJFWjNnOzssk2kuc6e33FlLaiZhG/kUIzUMWdBKaQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.15.tgz", + "integrity": "sha512-ngQ2tBhq5vvSJw2Q2Z9i7ealNkpDMU0rGWnHPKqRZO0tzZ5tlaoz4hDvhXioOoaE0X2vfNss1djwg0DXlfu30A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.15.tgz", + "integrity": "sha512-hjk7qKIqhyzhhUvRT683TYQOFa/4cQKwQy7ALvTpODswN40MljzNDa0YldevS6tGbxwaEKVn502JmY0dP7qEtQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz", + "integrity": "sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.22.11", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.11.tgz", + "integrity": "sha512-sSCbqZDBKHetvjSwpyWzhuHkmW5RummxJBVbYLkGkaiTOWGxml7SXt0iWa03bzxFIx7wOj3g/ILRd0RcJKBeSQ==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.11", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz", + "integrity": "sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.10.tgz", + "integrity": "sha512-F28b1mDt8KcT5bUyJc/U9nwzw6cV+UmTeRlXYIl2TNqMMJif0Jeey9/RQ3C4NOd2zp0/TRsDns9ttj2L523rsw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "regenerator-transform": "^0.15.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz", + "integrity": "sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.15.tgz", + "integrity": "sha512-tEVLhk8NRZSmwQ0DJtxxhTrCht1HVo8VaMzYT4w6lwyKBuHsgoioAUA7/6eT2fRfc5/23fuGdlwIxXhRVgWr4g==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "babel-plugin-polyfill-corejs2": "^0.4.5", + "babel-plugin-polyfill-corejs3": "^0.8.3", + "babel-plugin-polyfill-regenerator": "^0.5.2", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz", + "integrity": "sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz", + "integrity": "sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.16.7.tgz", - "integrity": "sha512-hah2+FEnoRoATdIb05IOXf+4GzXYTq75TVhIn1PewihbpyrNWUt2JbudKQOETWw6QpLe+AIUpJ5MVLYTQbeeUg==", + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz", + "integrity": "sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-spread": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.16.7.tgz", - "integrity": "sha512-+pjJpgAngb53L0iaA5gU/1MLXJIfXcYepLgXB3esVRf4fqmj8f2cxM3/FKaHsZms08hFQJkFccEWuIpm429TXg==", + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz", + "integrity": "sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.16.7.tgz", - "integrity": "sha512-NJa0Bd/87QV5NZZzTuZG5BPJjLYadeSZ9fO6oOUoL4iQx+9EEuw/eEM92SrsT19Yc2jgB1u1hsjqDtH02c3Drw==", + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz", + "integrity": "sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-template-literals": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.16.7.tgz", - "integrity": "sha512-VwbkDDUeenlIjmfNeDX/V0aWrQH2QiVyJtwymVQSzItFDTpxfyJh3EVaQiS0rIN/CqbLGr0VcGmuwyTdZtdIsA==", + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.22.10", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.10.tgz", + "integrity": "sha512-lRfaRKGZCBqDlRU3UIFovdp9c9mEvlylmpod0/OatICsSfuQ9YFthRo1tpTkGsklEefZdqlEFdY4A2dwTb6ohg==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.16.7.tgz", - "integrity": "sha512-p2rOixCKRJzpg9JB4gjnG4gjWkWa89ZoYUnl9snJ1cWIcTH/hvxZqfO+WjG6T8DRBpctEol5jw1O5rA8gkCokQ==", + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz", + "integrity": "sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-unicode-escapes": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.16.7.tgz", - "integrity": "sha512-TAV5IGahIz3yZ9/Hfv35TV2xEm+kaBDaZQCn2S/hG9/CZ0DktxJv9eKfPc7yYCvOYR4JGx1h8C+jcSOvgaaI/Q==", + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz", + "integrity": "sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.16.7.tgz", - "integrity": "sha512-oC5tYYKw56HO75KZVLQ+R/Nl3Hro9kf8iG0hXoaHP7tjAyCpvqBiSNe6vGrZni1Z6MggmUOC6A7VP7AVmw225Q==", + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz", + "integrity": "sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg==", "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7" + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "@babel/preset-env": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.16.8.tgz", - "integrity": "sha512-9rNKgVCdwHb3z1IlbMyft6yIXIeP3xz6vWvGaLHrJThuEIqWfHb0DNBH9VuTgnDfdbUDhkmkvMZS/YMCtP7Elg==", + "node_modules/@babel/preset-env": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.20.tgz", + "integrity": "sha512-11MY04gGC4kSzlPHRfvVkNAZhUxOvm7DCJ37hPDnUENwe06npjIRAfInEMTGSb4LZK5ZgDFkv5hw0lGebHeTyg==", "dev": true, - "requires": { - "@babel/compat-data": "^7.16.8", - "@babel/helper-compilation-targets": "^7.16.7", - "@babel/helper-plugin-utils": "^7.16.7", - "@babel/helper-validator-option": "^7.16.7", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.7", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.16.7", - "@babel/plugin-proposal-async-generator-functions": "^7.16.8", - "@babel/plugin-proposal-class-properties": "^7.16.7", - "@babel/plugin-proposal-class-static-block": "^7.16.7", - "@babel/plugin-proposal-dynamic-import": "^7.16.7", - "@babel/plugin-proposal-export-namespace-from": "^7.16.7", - "@babel/plugin-proposal-json-strings": "^7.16.7", - "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7", - "@babel/plugin-proposal-numeric-separator": "^7.16.7", - "@babel/plugin-proposal-object-rest-spread": "^7.16.7", - "@babel/plugin-proposal-optional-catch-binding": "^7.16.7", - "@babel/plugin-proposal-optional-chaining": "^7.16.7", - "@babel/plugin-proposal-private-methods": "^7.16.7", - "@babel/plugin-proposal-private-property-in-object": "^7.16.7", - "@babel/plugin-proposal-unicode-property-regex": "^7.16.7", + "dependencies": { + "@babel/compat-data": "^7.22.20", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.15", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.15", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.15", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-class-properties": "^7.12.13", "@babel/plugin-syntax-class-static-block": "^7.14.5", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.22.5", + "@babel/plugin-syntax-import-attributes": "^7.22.5", + "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-syntax-json-strings": "^7.8.3", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", @@ -1072,321 +1737,334 @@ "@babel/plugin-syntax-optional-chaining": "^7.8.3", "@babel/plugin-syntax-private-property-in-object": "^7.14.5", "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-transform-arrow-functions": "^7.16.7", - "@babel/plugin-transform-async-to-generator": "^7.16.8", - "@babel/plugin-transform-block-scoped-functions": "^7.16.7", - "@babel/plugin-transform-block-scoping": "^7.16.7", - "@babel/plugin-transform-classes": "^7.16.7", - "@babel/plugin-transform-computed-properties": "^7.16.7", - "@babel/plugin-transform-destructuring": "^7.16.7", - "@babel/plugin-transform-dotall-regex": "^7.16.7", - "@babel/plugin-transform-duplicate-keys": "^7.16.7", - "@babel/plugin-transform-exponentiation-operator": "^7.16.7", - "@babel/plugin-transform-for-of": "^7.16.7", - "@babel/plugin-transform-function-name": "^7.16.7", - "@babel/plugin-transform-literals": "^7.16.7", - "@babel/plugin-transform-member-expression-literals": "^7.16.7", - "@babel/plugin-transform-modules-amd": "^7.16.7", - "@babel/plugin-transform-modules-commonjs": "^7.16.8", - "@babel/plugin-transform-modules-systemjs": "^7.16.7", - "@babel/plugin-transform-modules-umd": "^7.16.7", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.16.8", - "@babel/plugin-transform-new-target": "^7.16.7", - "@babel/plugin-transform-object-super": "^7.16.7", - "@babel/plugin-transform-parameters": "^7.16.7", - "@babel/plugin-transform-property-literals": "^7.16.7", - "@babel/plugin-transform-regenerator": "^7.16.7", - "@babel/plugin-transform-reserved-words": "^7.16.7", - "@babel/plugin-transform-shorthand-properties": "^7.16.7", - "@babel/plugin-transform-spread": "^7.16.7", - "@babel/plugin-transform-sticky-regex": "^7.16.7", - "@babel/plugin-transform-template-literals": "^7.16.7", - "@babel/plugin-transform-typeof-symbol": "^7.16.7", - "@babel/plugin-transform-unicode-escapes": "^7.16.7", - "@babel/plugin-transform-unicode-regex": "^7.16.7", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.16.8", - "babel-plugin-polyfill-corejs2": "^0.3.0", - "babel-plugin-polyfill-corejs3": "^0.5.0", - "babel-plugin-polyfill-regenerator": "^0.3.0", - "core-js-compat": "^3.20.2", - "semver": "^6.3.0" + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.22.5", + "@babel/plugin-transform-async-generator-functions": "^7.22.15", + "@babel/plugin-transform-async-to-generator": "^7.22.5", + "@babel/plugin-transform-block-scoped-functions": "^7.22.5", + "@babel/plugin-transform-block-scoping": "^7.22.15", + "@babel/plugin-transform-class-properties": "^7.22.5", + "@babel/plugin-transform-class-static-block": "^7.22.11", + "@babel/plugin-transform-classes": "^7.22.15", + "@babel/plugin-transform-computed-properties": "^7.22.5", + "@babel/plugin-transform-destructuring": "^7.22.15", + "@babel/plugin-transform-dotall-regex": "^7.22.5", + "@babel/plugin-transform-duplicate-keys": "^7.22.5", + "@babel/plugin-transform-dynamic-import": "^7.22.11", + "@babel/plugin-transform-exponentiation-operator": "^7.22.5", + "@babel/plugin-transform-export-namespace-from": "^7.22.11", + "@babel/plugin-transform-for-of": "^7.22.15", + "@babel/plugin-transform-function-name": "^7.22.5", + "@babel/plugin-transform-json-strings": "^7.22.11", + "@babel/plugin-transform-literals": "^7.22.5", + "@babel/plugin-transform-logical-assignment-operators": "^7.22.11", + "@babel/plugin-transform-member-expression-literals": "^7.22.5", + "@babel/plugin-transform-modules-amd": "^7.22.5", + "@babel/plugin-transform-modules-commonjs": "^7.22.15", + "@babel/plugin-transform-modules-systemjs": "^7.22.11", + "@babel/plugin-transform-modules-umd": "^7.22.5", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", + "@babel/plugin-transform-new-target": "^7.22.5", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11", + "@babel/plugin-transform-numeric-separator": "^7.22.11", + "@babel/plugin-transform-object-rest-spread": "^7.22.15", + "@babel/plugin-transform-object-super": "^7.22.5", + "@babel/plugin-transform-optional-catch-binding": "^7.22.11", + "@babel/plugin-transform-optional-chaining": "^7.22.15", + "@babel/plugin-transform-parameters": "^7.22.15", + "@babel/plugin-transform-private-methods": "^7.22.5", + "@babel/plugin-transform-private-property-in-object": "^7.22.11", + "@babel/plugin-transform-property-literals": "^7.22.5", + "@babel/plugin-transform-regenerator": "^7.22.10", + "@babel/plugin-transform-reserved-words": "^7.22.5", + "@babel/plugin-transform-shorthand-properties": "^7.22.5", + "@babel/plugin-transform-spread": "^7.22.5", + "@babel/plugin-transform-sticky-regex": "^7.22.5", + "@babel/plugin-transform-template-literals": "^7.22.5", + "@babel/plugin-transform-typeof-symbol": "^7.22.5", + "@babel/plugin-transform-unicode-escapes": "^7.22.10", + "@babel/plugin-transform-unicode-property-regex": "^7.22.5", + "@babel/plugin-transform-unicode-regex": "^7.22.5", + "@babel/plugin-transform-unicode-sets-regex": "^7.22.5", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "@babel/types": "^7.22.19", + "babel-plugin-polyfill-corejs2": "^0.4.5", + "babel-plugin-polyfill-corejs3": "^0.8.3", + "babel-plugin-polyfill-regenerator": "^0.5.2", + "core-js-compat": "^3.31.0", + "semver": "^6.3.1" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", "dev": true, - "requires": { + "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", "@babel/types": "^7.4.4", "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" } }, - "@babel/runtime": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.7.tgz", - "integrity": "sha512-9E9FJowqAsytyOY6LG+1KuueckRL+aQW+mKvXRXnuFGyRAyepJPmEo9vgMfXUA6O9u3IeEdv9MAkppFcaQwogQ==", - "requires": { - "regenerator-runtime": "^0.13.4" - } + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", + "dev": true }, - "@babel/runtime-corejs3": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.16.8.tgz", - "integrity": "sha512-3fKhuICS1lMz0plI5ktOE/yEtBRMVxplzRkdn6mJQ197XiY0JnrzYV0+Mxozq3JZ8SBV9Ecurmw1XsGbwOf+Sg==", + "node_modules/@babel/runtime": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.15.tgz", + "integrity": "sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==", "dev": true, - "requires": { - "core-js-pure": "^3.20.2", - "regenerator-runtime": "^0.13.4" + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "node_modules/@babel/template": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dev": true, - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/traverse": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.8.tgz", - "integrity": "sha512-xe+H7JlvKsDQwXRsBhSnq1/+9c+LlQcCK3Tn/l5sbx02HYns/cn7ibp9+RV1sIUqu7hKg91NWsgHurO9dowITQ==", + "node_modules/@babel/traverse": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.20.tgz", + "integrity": "sha512-eU260mPZbU7mZ0N+X10pxXhQFMGTeLb9eFS0mxehS8HZp9o1uSnFeWQuG1UPrlxgA7QoUzFhOnilHDp0AXCyHw==", "dev": true, - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.16.8", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.16.7", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.16.8", - "@babel/types": "^7.16.8", + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.16", + "@babel/types": "^7.22.19", "debug": "^4.1.0", "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@babel/types": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", - "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "node_modules/@babel/types": { + "version": "7.22.19", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.19.tgz", + "integrity": "sha512-P7LAw/LbojPzkgp5oznjE6tQEIWbp4PkkfrZDINTro9zgBRtI324/EYsiSI7lhPbpIQ+DCeR2NNmMWANGGfZsg==", "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.19", "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "@bcoe/v8-coverage": { + "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "@cnakazawa/watch": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", - "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", - "dev": true, - "requires": { - "exec-sh": "^0.3.2", - "minimist": "^1.2.0" - } - }, - "@colors/colors": { + "node_modules/@colors/colors": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz", - "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==" + "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", + "engines": { + "node": ">=0.1.90" + } }, - "@dabh/diagnostics": { + "node_modules/@dabh/diagnostics": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz", "integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA==", - "requires": { + "dependencies": { "colorspace": "1.1.x", "enabled": "2.0.x", "kuler": "^2.0.0" } }, - "@digitalbazaar/did-io": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@digitalbazaar/did-io/-/did-io-1.1.0.tgz", - "integrity": "sha512-XrM0HIukrRY6rtEM2osMbAEzXfXM6SXSKRJ2iZqTkkSdqrI1iiA3Y87CMYfqVwpwyd6WcWdzKR5SpLkbIh1+WQ==", - "requires": { - "@digitalbazaar/lru-memoize": "^2.0.0", - "esm": "^3.2.25" - } - }, - "@digitalbazaar/ed25519-verification-key-2018": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@digitalbazaar/ed25519-verification-key-2018/-/ed25519-verification-key-2018-3.1.1.tgz", - "integrity": "sha512-4dtWUNIs30xAv8PZts+Xo5gPM5KEFKg2rw6OpDlo/gy20ViT9CtVqTDcuNG+3hiuKRBs/pTF/NuBeLTtagPvKA==", - "requires": { - "@stablelib/ed25519": "^1.0.1", - "base58-universal": "^1.0.0", - "crypto-ld": "^5.0.0", - "esm": "^3.2.25" + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "@digitalbazaar/lru-memoize": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@digitalbazaar/lru-memoize/-/lru-memoize-2.1.0.tgz", - "integrity": "sha512-0M/olrKC+FQzN6ltu+JJD0YbN4oMCTDpiV9A91QYpilU0vxWCBJMx41XT9YteB8yCtFQZWd3Ky33ILVWy2/LFA==", - "requires": { - "esm": "^3.2.25", - "lru-cache": "^6.0.0" + "node_modules/@eslint-community/regexpp": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.8.1.tgz", + "integrity": "sha512-PWiOzLIUAjN/w5K17PoF4n6sKBw0gqLHPhywmYHP4t1VFQQVYeb1yWsJwnMVEMl3tUHME7X/SJPZLmtG7XBDxQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "@eslint/eslintrc": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", - "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "node_modules/@eslint/eslintrc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz", + "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==", "dev": true, - "requires": { + "dependencies": { "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^13.9.0", - "ignore": "^4.0.6", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "globals": { - "version": "13.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.15.0.tgz", - "integrity": "sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "@ethersproject/bytes": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.5.0.tgz", - "integrity": "sha512-ABvc7BHWhZU9PNM/tANm/Qx4ostPGadAuQzWTr3doklZOhDlmcBqclrQe/ZXUIj3K8wC28oYeuRa+A37tX9kog==", - "requires": { - "@ethersproject/logger": "^5.5.0" + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.21.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", + "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "@ethersproject/logger": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.5.0.tgz", - "integrity": "sha512-rIY/6WPm7T8n3qS2vuHTUBPdXHl+rGxWxW5okDfo9J4Z0+gRRZT0msvUdIJkE4/HS29GUMziwGaaKO2bWONBrg==" + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } }, - "@ethersproject/sha2": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.5.0.tgz", - "integrity": "sha512-B5UBoglbCiHamRVPLA110J+2uqsifpZaTmid2/7W5rbtYVz6gus6/hSDieIU/6gaKIDcOj12WnOdiymEUHIAOA==", - "requires": { - "@ethersproject/bytes": "^5.5.0", - "@ethersproject/logger": "^5.5.0", - "hash.js": "1.1.7" + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/@eslint/js": { + "version": "8.49.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.49.0.tgz", + "integrity": "sha512-1S8uAY/MTJqVx0SC4epBq+N2yhuwtNwLbJYNZyhL2pO1ZVKn5HFXav5T41Ryzy9K9V7ZId2JB2oy/W4aCd9/2w==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "@humanwhocodes/config-array": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", - "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz", + "integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==", "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", - "minimatch": "^3.0.4" + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "@humanwhocodes/object-schema": { + "node_modules/@humanwhocodes/object-schema": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, - "@identity.com/did-io-driver-sol": { - "version": "1.0.0-beta.0", - "resolved": "https://registry.npmjs.org/@identity.com/did-io-driver-sol/-/did-io-driver-sol-1.0.0-beta.0.tgz", - "integrity": "sha512-X3f0wea2iFr9I3c0rnSnYhgdssVMOh6b4VXuTOaNU42vzL0jq0QOniiou4Zg90WHRshJTkDEEWUXJzYlrCTO3A==", - "requires": { - "@digitalbazaar/did-io": "^1.1.0", - "@digitalbazaar/ed25519-verification-key-2018": "^3.1.1", - "@identity.com/sol-did-client": "^1.0.0-beta", - "@solana/web3.js": "^1.21.0" - } - }, - "@identity.com/sol-did-client": { - "version": "1.0.0-beta", - "resolved": "https://registry.npmjs.org/@identity.com/sol-did-client/-/sol-did-client-1.0.0-beta.tgz", - "integrity": "sha512-uzIo8B5ScUTnr4SAJrxruLb+yu8EtJUvNHaftYBfoJ5RYKZ0e+5kjpVuVlR66yoycOacjNF1o4c/MVzvGMG86g==", - "requires": { - "@solana/web3.js": "^1.21.0", - "bn.js": "^4.12.0", - "borsh": "^0.3.1", - "bs58": "^4.0.1", - "did-resolver": "^3.0.1", - "ramda": "^0.27.1" - } - }, - "@identity.com/uca": { - "version": "git+ssh://git@github.com/identity-com/uca.git#7996a9a2b6d3080c416568a7be9db2abf3413350", - "from": "@identity.com/uca@github:identity-com/uca#v1.0.30", - "requires": { + "node_modules/@identity.com/uca": { + "version": "1.0.30", + "resolved": "git+ssh://git@github.com/identity-com/uca.git#7996a9a2b6d3080c416568a7be9db2abf3413350", + "integrity": "sha512-vSxVbD/PnqHkS0WiMD6bO11KuieY8+5LrwgMW7yUu1uB0B/gHe68d0rNXGVYaiZ2QXGANE2UKhe2Dp3jZPqTjg==", + "license": "MIT", + "dependencies": { "flat": "^4.1.0", "lodash": "^4.17.11", "unix-timestamp": "^0.2.0", @@ -1394,13216 +2072,11711 @@ "winston": "^3.1.0" } }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - } + "node_modules/@identity.com/uca/node_modules/unix-timestamp": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/unix-timestamp/-/unix-timestamp-0.2.0.tgz", + "integrity": "sha512-AkBd5UJZQ0ROtOwlxYD/SSGnzTTMLgfw7Qikvq4J8JiIX95xv9CMem7rY6WMEIP4FZVEx32ji/g+3dkj8+2c7g==" }, - "@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true + "node_modules/@identity.com/uca/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" + } }, - "@jest/console": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-25.5.0.tgz", - "integrity": "sha512-T48kZa6MK1Y6k4b89sexwmSF4YLeZS/Udqg3Jj3jG/cHH+N/sLFCEoXEDMOKugJQ9FxPN1osxIknvKkxt6MKyw==", + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "jest-message-util": "^25.5.0", - "jest-util": "^25.5.0", - "slash": "^3.0.0" - }, "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" } }, - "@jest/core": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-25.5.4.tgz", - "integrity": "sha512-3uSo7laYxF00Dg/DMgbn4xMJKmDdWvZnf89n8Xj/5/AeQ2dOQmn6b6Hkj/MleyzZWXpwv+WSdYWl4cLsy2JsoA==", + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", "dev": true, - "requires": { - "@jest/console": "^25.5.0", - "@jest/reporters": "^25.5.1", - "@jest/test-result": "^25.5.0", - "@jest/transform": "^25.5.1", - "@jest/types": "^25.5.0", - "ansi-escapes": "^4.2.1", - "chalk": "^3.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-changed-files": "^25.5.0", - "jest-config": "^25.5.4", - "jest-haste-map": "^25.5.1", - "jest-message-util": "^25.5.0", - "jest-regex-util": "^25.2.6", - "jest-resolve": "^25.5.1", - "jest-resolve-dependencies": "^25.5.4", - "jest-runner": "^25.5.4", - "jest-runtime": "^25.5.4", - "jest-snapshot": "^25.5.1", - "jest-util": "^25.5.0", - "jest-validate": "^25.5.0", - "jest-watcher": "^25.5.0", - "micromatch": "^4.0.2", - "p-each-series": "^2.1.0", - "realpath-native": "^2.0.0", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" + "engines": { + "node": ">=12" }, - "dependencies": { - "@jest/transform": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-25.5.1.tgz", - "integrity": "sha512-Y8CEoVwXb4QwA6Y/9uDkn0Xfz0finGkieuV0xkdF9UtZGJeLukD5nLkaVrVsODB1ojRWlaoD0AJZpVHCSnJEvg==", - "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^25.5.0", - "babel-plugin-istanbul": "^6.0.0", - "chalk": "^3.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^25.5.1", - "jest-regex-util": "^25.2.6", - "jest-util": "^25.5.0", - "micromatch": "^4.0.2", - "pirates": "^4.0.1", - "realpath-native": "^2.0.0", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - } - }, - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-haste-map": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.5.1.tgz", - "integrity": "sha512-dddgh9UZjV7SCDQUrQ+5t9yy8iEgKc1AKqZR9YDww8xsVOtzPQSMVLDChc21+g29oTRexb9/B0bIlZL+sWmvAQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "@types/graceful-fs": "^4.1.2", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.1.2", - "graceful-fs": "^4.2.4", - "jest-serializer": "^25.5.0", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7", - "which": "^2.0.2" - } - }, - "jest-regex-util": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz", - "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==", - "dev": true - }, - "jest-serializer": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.5.0.tgz", - "integrity": "sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4" - } - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "jest-worker": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", - "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", - "dev": true, - "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/environment": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-25.5.0.tgz", - "integrity": "sha512-U2VXPEqL07E/V7pSZMSQCvV5Ea4lqOlT+0ZFijl/i316cRMHvZ4qC+jBdryd+lmRetjQo0YIQr6cVPNxxK87mA==", - "dev": true, - "requires": { - "@jest/fake-timers": "^25.5.0", - "@jest/types": "^25.5.0", - "jest-mock": "^25.5.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, - "@jest/fake-timers": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-25.5.0.tgz", - "integrity": "sha512-9y2+uGnESw/oyOI3eww9yaxdZyHq7XvprfP/eeoCsjqKYts2yRlsHS/SgjPDV8FyMfn2nbMy8YzUk6nyvdLOpQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "jest-message-util": "^25.5.0", - "jest-mock": "^25.5.0", - "jest-util": "^25.5.0", - "lolex": "^5.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "@jest/globals": { - "version": "25.5.2", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-25.5.2.tgz", - "integrity": "sha512-AgAS/Ny7Q2RCIj5kZ+0MuKM1wbF0WMLxbCVl/GOMoCNbODRdJ541IxJ98xnZdVSZXivKpJlNPIWa3QmY0l4CXA==", - "dev": true, - "requires": { - "@jest/environment": "^25.5.0", - "@jest/types": "^25.5.0", - "expect": "^25.5.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true }, - "@jest/reporters": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-25.5.1.tgz", - "integrity": "sha512-3jbd8pPDTuhYJ7vqiHXbSwTJQNavczPs+f1kRprRDxETeE3u6srJ+f0NPuwvOmk+lmunZzPkYWIFZDLHQPkviw==", + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, - "requires": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^25.5.0", - "@jest/test-result": "^25.5.0", - "@jest/transform": "^25.5.1", - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.4", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "jest-haste-map": "^25.5.1", - "jest-resolve": "^25.5.1", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "node-notifier": "^6.0.0", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^3.1.0", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^4.1.3" - }, - "dependencies": { - "@jest/transform": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-25.5.1.tgz", - "integrity": "sha512-Y8CEoVwXb4QwA6Y/9uDkn0Xfz0finGkieuV0xkdF9UtZGJeLukD5nLkaVrVsODB1ojRWlaoD0AJZpVHCSnJEvg==", - "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^25.5.0", - "babel-plugin-istanbul": "^6.0.0", - "chalk": "^3.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^25.5.1", - "jest-regex-util": "^25.2.6", - "jest-util": "^25.5.0", - "micromatch": "^4.0.2", - "pirates": "^4.0.1", - "realpath-native": "^2.0.0", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - } - }, - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", - "dev": true, - "requires": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" - } - }, - "jest-haste-map": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.5.1.tgz", - "integrity": "sha512-dddgh9UZjV7SCDQUrQ+5t9yy8iEgKc1AKqZR9YDww8xsVOtzPQSMVLDChc21+g29oTRexb9/B0bIlZL+sWmvAQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "@types/graceful-fs": "^4.1.2", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.1.2", - "graceful-fs": "^4.2.4", - "jest-serializer": "^25.5.0", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7", - "which": "^2.0.2" - } - }, - "jest-regex-util": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz", - "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==", - "dev": true - }, - "jest-serializer": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.5.0.tgz", - "integrity": "sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4" - } - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "jest-worker": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", - "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", - "dev": true, - "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "@jest/source-map": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-25.5.0.tgz", - "integrity": "sha512-eIGx0xN12yVpMcPaVpjXPnn3N30QGJCJQSkEDUt9x1fI1Gdvb07Ml6K5iN2hG7NmMP6FDmtPEssE3z6doOYUwQ==", + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, - "requires": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.4", - "source-map": "^0.6.0" - }, "dependencies": { - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "@jest/test-result": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-25.5.0.tgz", - "integrity": "sha512-oV+hPJgXN7IQf/fHWkcS99y0smKLU2czLBJ9WA0jHITLst58HpQMtzSYxzaBvYc6U5U6jfoMthqsUlUlbRXs0A==", + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, - "requires": { - "@jest/console": "^25.5.0", - "@jest/types": "^25.5.0", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "@jest/test-sequencer": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-25.5.4.tgz", - "integrity": "sha512-pTJGEkSeg1EkCO2YWq6hbFvKNXk8ejqlxiOg1jBNLnWrgXOkdY6UmqZpwGFXNnRt9B8nO1uWMzLLZ4eCmhkPNA==", - "dev": true, - "requires": { - "@jest/test-result": "^25.5.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^25.5.1", - "jest-runner": "^25.5.4", - "jest-runtime": "^25.5.4" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-haste-map": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.5.1.tgz", - "integrity": "sha512-dddgh9UZjV7SCDQUrQ+5t9yy8iEgKc1AKqZR9YDww8xsVOtzPQSMVLDChc21+g29oTRexb9/B0bIlZL+sWmvAQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "@types/graceful-fs": "^4.1.2", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.1.2", - "graceful-fs": "^4.2.4", - "jest-serializer": "^25.5.0", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7", - "which": "^2.0.2" - } - }, - "jest-serializer": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.5.0.tgz", - "integrity": "sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4" - } - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "jest-worker": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", - "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", - "dev": true, - "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "@jest/transform": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.4.6.tgz", - "integrity": "sha512-9MsufmJC8t5JTpWEQJ0OcOOAXaH5ioaIX6uHVBLBMoCZPfKKQF+EqP8kACAvCZ0Y1h2Zr3uOccg8re+Dr5jxyw==", + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.4.2", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-util": "^27.4.2", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=8" } }, - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", + "dependencies": { + "@jest/types": "^29.6.3", "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "@nicolo-ribaudo/chokidar-2": { - "version": "2.1.8-no-fsevents.3", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", - "integrity": "sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==", + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "optional": true + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } }, - "@sinonjs/commons": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", - "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "requires": { - "type-detect": "4.0.8" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "@solana/buffer-layout": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@solana/buffer-layout/-/buffer-layout-3.0.0.tgz", - "integrity": "sha512-MVdgAKKL39tEs0l8je0hKaXLQFb7Rdfb0Xg2LjFZd8Lfdazkg6xiS98uAZrEKvaoF3i4M95ei9RydkGIDMeo3w==", - "requires": { - "buffer": "~6.0.3" - }, - "dependencies": { - "buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - } + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "@solana/web3.js": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/@solana/web3.js/-/web3.js-1.32.0.tgz", - "integrity": "sha512-jquZ/VBvM3zXAaTJvdWd9mlP0WiZaZqjji0vw5UAsb5IKIossrLhHtyUqMfo41Qkdwu1aVwf7YWG748i4XIJnw==", - "requires": { - "@babel/runtime": "^7.12.5", - "@ethersproject/sha2": "^5.5.0", - "@solana/buffer-layout": "^3.0.0", - "bn.js": "^5.0.0", - "borsh": "^0.4.0", - "bs58": "^4.0.1", - "buffer": "6.0.1", - "cross-fetch": "^3.1.4", - "jayson": "^3.4.4", - "js-sha3": "^0.8.0", - "rpc-websockets": "^7.4.2", - "secp256k1": "^4.0.2", - "superstruct": "^0.14.2", - "tweetnacl": "^1.0.0" - }, - "dependencies": { - "bn.js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", - "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" - }, - "borsh": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/borsh/-/borsh-0.4.0.tgz", - "integrity": "sha512-aX6qtLya3K0AkT66CmYWCCDr77qsE9arV05OmdFpmat9qu8Pg9J5tBUPDztAW5fNh/d/MyVG/OYziP52Ndzx1g==", - "requires": { - "@types/bn.js": "^4.11.5", - "bn.js": "^5.0.0", - "bs58": "^4.0.0", - "text-encoding-utf-8": "^1.0.2" - } - } - } + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "@stablelib/binary": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz", - "integrity": "sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==", - "requires": { - "@stablelib/int": "^1.0.1" + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" } }, - "@stablelib/ed25519": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.2.tgz", - "integrity": "sha512-FtnvUwvKbp6l1dNcg4CswMAVFVu/nzLK3oC7/PRtjYyHbWsIkD8j+5cjXHmwcCpdCpRCaTGACkEhhMQ1RcdSOQ==", - "requires": { - "@stablelib/random": "^1.0.1", - "@stablelib/sha512": "^1.0.1", - "@stablelib/wipe": "^1.0.1" + "node_modules/@jest/console/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" } }, - "@stablelib/hash": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz", - "integrity": "sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg==" - }, - "@stablelib/int": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz", - "integrity": "sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==" - }, - "@stablelib/random": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/random/-/random-1.0.1.tgz", - "integrity": "sha512-zOh+JHX3XG9MSfIB0LZl/YwPP9w3o6WBiJkZvjPoKKu5LKFW4OLV71vMxWp9qG5T43NaWyn0QQTWgqCdO+yOBQ==", - "requires": { - "@stablelib/binary": "^1.0.1", - "@stablelib/wipe": "^1.0.1" + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "@stablelib/sha512": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.1.tgz", - "integrity": "sha512-13gl/iawHV9zvDKciLo1fQ8Bgn2Pvf7OV6amaRVKiq3pjQ3UmEpXxWiAfV8tYjUpeZroBxtyrwtdooQT/i3hzw==", - "requires": { - "@stablelib/binary": "^1.0.1", - "@stablelib/hash": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "@stablelib/wipe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz", - "integrity": "sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==" + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } }, - "@types/babel__core": { - "version": "7.1.18", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz", - "integrity": "sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ==", + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "requires": { - "@babel/types": "^7.0.0" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "@types/babel__traverse": { - "version": "7.14.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.14.2.tgz", - "integrity": "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==", + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "requires": { - "@babel/types": "^7.3.0" + "engines": { + "node": ">=8" } }, - "@types/bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==", - "requires": { - "@types/node": "*" + "node_modules/@jest/core/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" } }, - "@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "requires": { - "@types/node": "*" + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "@types/express-serve-static-core": { - "version": "4.17.28", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.28.tgz", - "integrity": "sha512-P1BJAEAW3E2DJUlkgq4tOL3RyMunoWXqbSCygWo5ZIWTjUgN1YnaXWW4VWl/oc8vs/XoYibEGBKP0uZyF4AHig==", - "requires": { + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*" + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "@types/graceful-fs": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, - "requires": { - "@types/node": "*" + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*" + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", - "dev": true - }, - "@types/lodash": { - "version": "4.14.178", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.178.tgz", - "integrity": "sha512-0d5Wd09ItQWH1qFbEyQ7oTQ3GZrMfth5JkbN3EvTKLXcHLRDSXeLnlvlOn0wvxVIwK5o2M8JzP/OWz7T3NRsbw==" - }, - "@types/node": { - "version": "17.0.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.8.tgz", - "integrity": "sha512-YofkM6fGv4gDJq78g4j0mMuGMkZVxZDgtU0JRdx6FgiJDG+0fY0GKVolOV8WqVmEhLCXkQRjwDdKyPxJp/uucg==" - }, - "@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", - "dev": true - }, - "@types/prettier": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-1.19.1.tgz", - "integrity": "sha512-5qOlnZscTn4xxM5MeGXAMOsIOIKIbh9e85zJWfBRVPlRMEVawzoPhINYbRGkBZCI8LxvBe7tJCdWiarA99OZfQ==", - "dev": true - }, - "@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" - }, - "@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" - }, - "@types/stack-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", - "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==", - "dev": true + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } }, - "@types/ws": { - "version": "7.4.7", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.4.7.tgz", - "integrity": "sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==", - "requires": { - "@types/node": "*" + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "requires": { - "@types/yargs-parser": "*" + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "@types/yargs-parser": { - "version": "20.2.1", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.1.tgz", - "integrity": "sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw==", - "dev": true + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } }, - "JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "abab": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", - "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "acorn-globals": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz", - "integrity": "sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A==", + "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.0.tgz", + "integrity": "sha512-x58orMzEVfzPUKqlbLd1hXCnySCxKdDKa6Rjg97CwuLLRI4g3FHTdnExu1OqffVFay6zeMW+T6/DowFLndWnIw==", "dev": true, - "requires": { - "acorn": "^6.0.1", - "acorn-walk": "^6.0.1" - }, "dependencies": { - "acorn": { - "version": "6.4.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz", - "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", - "dev": true - } + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" } }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true + "node_modules/@jest/reporters/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } }, - "acorn-walk": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.2.0.tgz", - "integrity": "sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==", - "dev": true + "node_modules/@jest/reporters/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "ajv": { - "version": "7.2.4", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz", - "integrity": "sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "ajv-formats": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-1.6.1.tgz", - "integrity": "sha512-4CjkH20If1lhR5CGtqkrVg3bbOtFEG80X9v6jDOIUhbzzbB+UzPBGy8GQhUNVZ0yvMHdMpawCOcy5ydGMsagGQ==", - "requires": { - "ajv": "^7.0.0" + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "ansi-colors": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.2.tgz", - "integrity": "sha512-cEG18jjLG0O74o/33eEfnmtXYDEY196ZjL0eQEISULF+Imi7vr25l6ntGYmqS5lIrQIEeze+CqUtPVItywE7ZQ==", - "dev": true + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, - "requires": { - "color-convert": "^1.9.0" + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "node_modules/@jest/test-sequencer/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" + "engines": { + "node": ">=8" } }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, - "requires": { - "sprintf-js": "~1.0.2" + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "aria-query": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "requires": { - "@babel/runtime": "^7.10.2", - "@babel/runtime-corejs3": "^7.10.2" + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "array-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", - "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", + "node_modules/@jest/transform/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true }, - "array-includes": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.4.tgz", - "integrity": "sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw==", + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1", - "get-intrinsic": "^1.1.1", - "is-string": "^1.0.7" + "engines": { + "node": ">=8" } }, - "array-uniq": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.2.tgz", - "integrity": "sha512-GVYjmpL05al4dNlKJm53mKE4w9OOLiuVHWorsIA3YVz+Hu0hcn6PtE3Ydl0EqU7v+7ABC4mjjWsnLUxbpno+CA==" - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true - }, - "array.prototype.flat": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz", - "integrity": "sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg==", + "node_modules/@jest/transform/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0" + "engines": { + "node": ">=8" } }, - "array.prototype.flatmap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.5.tgz", - "integrity": "sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA==", + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0" + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true - }, - "ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=", - "dev": true - }, - "astral-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", - "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", - "dev": true - }, - "async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true - }, - "audit-ci": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/audit-ci/-/audit-ci-3.2.0.tgz", - "integrity": "sha512-kRFfl/AdmyCrnuc/M4T3l/G/Hy8U4JsgnyRJgGq1532bCwh62ZGeL5rEk2Snk8Umyd3CRgY4V+mVI/LzQoN/Rg==", + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, - "requires": { - "JSONStream": "^1.3.5", - "cross-spawn": "^7.0.3", - "event-stream": "4.0.1", - "readline-transform": "1.0.0", - "semver": "^7.0.0", - "yargs": "^15.0.0" - }, "dependencies": { - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" - }, - "aws4": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", - "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" - }, - "axe-core": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.3.5.tgz", - "integrity": "sha512-WKTW1+xAzhMS5dJsxWkliixlO/PqC4VhmO9T4juNYcaTg9jzWiJsou6m5pxWYGfigWbwzJWeFY6z47a+4neRXA==", - "dev": true - }, - "axobject-query": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", - "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", - "dev": true - }, - "babel-helper-evaluate-path": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.5.0.tgz", - "integrity": "sha512-mUh0UhS607bGh5wUMAQfOpt2JX2ThXMtppHRdRU1kL7ZLRWIXxoV2UIV1r2cAeeNeU1M5SB5/RSUgUxrK8yOkA==", - "dev": true - }, - "babel-helper-flip-expressions": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.4.3.tgz", - "integrity": "sha1-NpZzahKKwYvCUlS19AoizrPB0/0=", - "dev": true - }, - "babel-helper-is-nodes-equiv": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/babel-helper-is-nodes-equiv/-/babel-helper-is-nodes-equiv-0.0.1.tgz", - "integrity": "sha1-NOmzALFHnd2Y7HfqC76TQt/jloQ=", - "dev": true - }, - "babel-helper-is-void-0": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-helper-is-void-0/-/babel-helper-is-void-0-0.4.3.tgz", - "integrity": "sha1-fZwBtFYee5Xb2g9u7kj1tg5nMT4=", - "dev": true + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } }, - "babel-helper-mark-eval-scopes": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.4.3.tgz", - "integrity": "sha1-0kSjvvmESHJgP/tG4izorN9VFWI=", - "dev": true + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } }, - "babel-helper-remove-or-void": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-helper-remove-or-void/-/babel-helper-remove-or-void-0.4.3.tgz", - "integrity": "sha1-pPA7QAd6D/6I5F0HAQ3uJB/1rmA=", - "dev": true + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } }, - "babel-helper-to-multiple-sequence-expressions": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-helper-to-multiple-sequence-expressions/-/babel-helper-to-multiple-sequence-expressions-0.5.0.tgz", - "integrity": "sha512-m2CvfDW4+1qfDdsrtf4dwOslQC3yhbgyBFptncp4wvtdrDHqueW7slsYv4gArie056phvQFhT2nRcGS4bnm6mA==", + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "babel-jest": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.4.6.tgz", - "integrity": "sha512-qZL0JT0HS1L+lOuH+xC2DVASR3nunZi/ozGhpgauJHgmI7f8rudxf6hUjEHympdQ/J64CdKmPkgfJ+A3U6QCrg==", + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "requires": { - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.4.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=8" } }, - "babel-minify": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/babel-minify/-/babel-minify-0.5.1.tgz", - "integrity": "sha512-ftEYu5OCDXEqaX/eINIaekPgkCaVPJNwFHzXKKARnRLggK8g4a9dEOflLKDgRNYOwhcLVoicUchZG6FYyOpqSA==", + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "babel-preset-minify": "^0.5.1", - "fs-readdir-recursive": "^1.1.0", - "lodash": "^4.17.11", - "mkdirp": "^0.5.1", - "util.promisify": "^1.0.0", - "yargs-parser": "^10.0.0" - }, "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "babel-plugin-dynamic-import-node": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", - "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==", + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, - "requires": { - "object.assign": "^4.1.0" + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" } }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" + "engines": { + "node": ">=6.0.0" } }, - "babel-plugin-jest-hoist": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.4.0.tgz", - "integrity": "sha512-Jcu7qS4OX5kTWBc45Hz7BMmgXuJqRnhatqpUhnzGC3OBYpOmf2tv6jFNwZpwM7wU7MUuv2r9IPS/ZlYOuburVw==", + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true, - "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" + "engines": { + "node": ">=6.0.0" } }, - "babel-plugin-minify-builtins": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-builtins/-/babel-plugin-minify-builtins-0.5.0.tgz", - "integrity": "sha512-wpqbN7Ov5hsNwGdzuzvFcjgRlzbIeVv1gMIlICbPj0xkexnfoIDe7q+AZHMkQmAE/F9R5jkrB6TLfTegImlXag==", + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", "dev": true }, - "babel-plugin-minify-constant-folding": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.5.0.tgz", - "integrity": "sha512-Vj97CTn/lE9hR1D+jKUeHfNy+m1baNiJ1wJvoGyOBUx7F7kJqDZxr9nCHjO/Ad+irbR3HzR6jABpSSA29QsrXQ==", + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", + "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", "dev": true, - "requires": { - "babel-helper-evaluate-path": "^0.5.0" + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "babel-plugin-minify-dead-code-elimination": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.5.1.tgz", - "integrity": "sha512-x8OJOZIrRmQBcSqxBcLbMIK8uPmTvNWPXH2bh5MDCW1latEqYiRMuUkPImKcfpo59pTUB2FT7HfcgtG8ZlR5Qg==", + "node_modules/@ljharb/through": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/@ljharb/through/-/through-2.3.9.tgz", + "integrity": "sha512-yN599ZBuMPPK4tdoToLlvgJB4CLK8fGl7ntfy0Wn7U6ttNvHYurd81bfUiK/6sMkiIwm65R6ck4L6+Y3DfVbNQ==", "dev": true, - "requires": { - "babel-helper-evaluate-path": "^0.5.0", - "babel-helper-mark-eval-scopes": "^0.4.3", - "babel-helper-remove-or-void": "^0.4.3", - "lodash": "^4.17.11" + "engines": { + "node": ">= 0.4" } }, - "babel-plugin-minify-flip-comparisons": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-flip-comparisons/-/babel-plugin-minify-flip-comparisons-0.4.3.tgz", - "integrity": "sha1-AMqHDLjxO0XAOLPB68DyJyk8llo=", + "node_modules/@nicolo-ribaudo/chokidar-2": { + "version": "2.1.8-no-fsevents.3", + "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", + "integrity": "sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==", "dev": true, - "requires": { - "babel-helper-is-void-0": "^0.4.3" - } + "optional": true }, - "babel-plugin-minify-guarded-expressions": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-guarded-expressions/-/babel-plugin-minify-guarded-expressions-0.4.4.tgz", - "integrity": "sha512-RMv0tM72YuPPfLT9QLr3ix9nwUIq+sHT6z8Iu3sLbqldzC1Dls8DPCywzUIzkTx9Zh1hWX4q/m9BPoPed9GOfA==", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "requires": { - "babel-helper-evaluate-path": "^0.5.0", - "babel-helper-flip-expressions": "^0.4.3" + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" } }, - "babel-plugin-minify-infinity": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-infinity/-/babel-plugin-minify-infinity-0.4.3.tgz", - "integrity": "sha1-37h2obCKBldjhO8/kuZTumB7Oco=", - "dev": true + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } }, - "babel-plugin-minify-mangle-names": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-mangle-names/-/babel-plugin-minify-mangle-names-0.5.0.tgz", - "integrity": "sha512-3jdNv6hCAw6fsX1p2wBGPfWuK69sfOjfd3zjUXkbq8McbohWy23tpXfy5RnToYWggvqzuMOwlId1PhyHOfgnGw==", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "requires": { - "babel-helper-mark-eval-scopes": "^0.4.3" + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" } }, - "babel-plugin-minify-numeric-literals": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-numeric-literals/-/babel-plugin-minify-numeric-literals-0.4.3.tgz", - "integrity": "sha1-jk/VYcefeAEob/YOjF/Z3u6TwLw=", - "dev": true + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } }, - "babel-plugin-minify-replace": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.5.0.tgz", - "integrity": "sha512-aXZiaqWDNUbyNNNpWs/8NyST+oU7QTpK7J9zFEFSA0eOmtUNMU3fczlTTTlnCxHmq/jYNFEmkkSG3DDBtW3Y4Q==", + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true }, - "babel-plugin-minify-simplify": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.1.tgz", - "integrity": "sha512-OSYDSnoCxP2cYDMk9gxNAed6uJDiDz65zgL6h8d3tm8qXIagWGMLWhqysT6DY3Vs7Fgq7YUDcjOomhVUb+xX6A==", + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", "dev": true, - "requires": { - "babel-helper-evaluate-path": "^0.5.0", - "babel-helper-flip-expressions": "^0.4.3", - "babel-helper-is-nodes-equiv": "^0.0.1", - "babel-helper-to-multiple-sequence-expressions": "^0.5.0" + "dependencies": { + "type-detect": "4.0.8" } }, - "babel-plugin-minify-type-constructors": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-minify-type-constructors/-/babel-plugin-minify-type-constructors-0.4.3.tgz", - "integrity": "sha1-G8bxW4f3qxCF1CszC3F2V6IVZQA=", + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, - "requires": { - "babel-helper-is-void-0": "^0.4.3" + "dependencies": { + "@sinonjs/commons": "^3.0.0" } }, - "babel-plugin-polyfill-corejs2": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.0.tgz", - "integrity": "sha512-wMDoBJ6uG4u4PNFh72Ty6t3EgfA91puCuAwKIazbQlci+ENb/UU9A3xG5lutjUIiXCIn1CY5L15r9LimiJyrSA==", + "node_modules/@types/babel__core": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.2.tgz", + "integrity": "sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==", "dev": true, - "requires": { - "@babel/compat-data": "^7.13.11", - "@babel/helper-define-polyfill-provider": "^0.3.0", - "semver": "^6.1.1" - }, "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "babel-plugin-polyfill-corejs3": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.0.tgz", - "integrity": "sha512-Hcrgnmkf+4JTj73GbK3bBhlVPiLL47owUAnoJIf69Hakl3q+KfodbDXiZWGMM7iqCZTxCG3Z2VRfPNYES4rXqQ==", + "node_modules/@types/babel__generator": { + "version": "7.6.5", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.5.tgz", + "integrity": "sha512-h9yIuWbJKdOPLJTbmSpPzkF67e659PbQDba7ifWm5BJ8xTv+sDmS7rFmywkWOvXedGTivCdeGSIIX8WLcRTz8w==", "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.3.0", - "core-js-compat": "^3.20.0" + "dependencies": { + "@babel/types": "^7.0.0" } }, - "babel-plugin-polyfill-regenerator": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.3.0.tgz", - "integrity": "sha512-dhAPTDLGoMW5/84wkgwiLRwMnio2i1fUe53EuvtKMv0pn2p3S8OCoV1xAzfJPl0KOX7IB89s2ib85vbYiea3jg==", + "node_modules/@types/babel__template": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.2.tgz", + "integrity": "sha512-/AVzPICMhMOMYoSx9MoKpGDKdBRsIXMNByh1PXSZoa+v6ZoLa8xxtsT/uLQ/NJm0XVAWl/BvId4MlDeXJaeIZQ==", "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.3.0" + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "babel-plugin-transform-inline-consecutive-adds": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.4.3.tgz", - "integrity": "sha1-Mj1Ho+pjqDp6w8gRro5pQfrysNE=", - "dev": true + "node_modules/@types/babel__traverse": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.2.tgz", + "integrity": "sha512-ojlGK1Hsfce93J0+kn3H5R73elidKUaZonirN33GSmgTUMpzI/MIFfSpF3haANe3G1bEBS9/9/QEqwTzwqFsKw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } }, - "babel-plugin-transform-member-expression-literals": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.9.4.tgz", - "integrity": "sha1-NwOcmgwzE6OUlfqsL/OmtbnQOL8=", - "dev": true + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } }, - "babel-plugin-transform-merge-sibling-variables": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.9.4.tgz", - "integrity": "sha1-hbQi/DN3tEnJ0c3kQIcgNTJAHa4=", + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", "dev": true }, - "babel-plugin-transform-minify-booleans": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-minify-booleans/-/babel-plugin-transform-minify-booleans-6.9.4.tgz", - "integrity": "sha1-rLs+VqNVXdI5KOS1gtKFFi3SsZg=", - "dev": true + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } }, - "babel-plugin-transform-property-literals": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.9.4.tgz", - "integrity": "sha1-mMHSHiVXNlc/k+zlRFn2ziSYXTk=", + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, - "requires": { - "esutils": "^2.0.2" + "dependencies": { + "@types/istanbul-lib-report": "*" } }, - "babel-plugin-transform-regexp-constructors": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.4.3.tgz", - "integrity": "sha1-WLd3W2OvzzMyj66aX4j71PsLSWU=", + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "babel-plugin-transform-remove-console": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz", - "integrity": "sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=", + "node_modules/@types/node": { + "version": "12.20.55", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", "dev": true }, - "babel-plugin-transform-remove-debugger": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.9.4.tgz", - "integrity": "sha1-QrcnYxyXl44estGZp67IShgznvI=", + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, - "babel-plugin-transform-remove-undefined": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.5.0.tgz", - "integrity": "sha512-+M7fJYFaEE/M9CXa0/IRkDbiV3wRELzA1kKQFCJ4ifhrzLKn/9VCCgj9OFmYWwBd8IB48YdgPkHYtbYq+4vtHQ==", - "dev": true, - "requires": { - "babel-helper-evaluate-path": "^0.5.0" - } + "node_modules/@types/triple-beam": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.3.tgz", + "integrity": "sha512-6tOUG+nVHn0cJbVp25JFayS5UE6+xlbcNF9Lo9mU7U0zk3zeUShZied4YEQZjy1JBF043FSkdXw8YkUJuVtB5g==" }, - "babel-plugin-transform-simplify-comparison-operators": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.9.4.tgz", - "integrity": "sha1-9ir+CWyrDh9ootdT/fKDiIRxzrk=", - "dev": true - }, - "babel-plugin-transform-undefined-to-void": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.9.4.tgz", - "integrity": "sha1-viQcqBQEAwZ4t0hxcyK4nQyP4oA=", - "dev": true - }, - "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", "dev": true, - "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" + "dependencies": { + "@types/yargs-parser": "*" } }, - "babel-preset-jest": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.4.0.tgz", - "integrity": "sha512-NK4jGYpnBvNxcGo7/ZpZJr51jCGT+3bwwpVIDY2oNfTxJJldRtB4VAcYdgp1loDE50ODuTu+yBjpMAswv5tlpg==", + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", "dev": true, - "requires": { - "babel-plugin-jest-hoist": "^27.4.0", - "babel-preset-current-node-syntax": "^1.0.0" + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" } }, - "babel-preset-minify": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-minify/-/babel-preset-minify-0.5.1.tgz", - "integrity": "sha512-1IajDumYOAPYImkHbrKeiN5AKKP9iOmRoO2IPbIuVp0j2iuCcj0n7P260z38siKMZZ+85d3mJZdtW8IgOv+Tzg==", + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, - "requires": { - "babel-plugin-minify-builtins": "^0.5.0", - "babel-plugin-minify-constant-folding": "^0.5.0", - "babel-plugin-minify-dead-code-elimination": "^0.5.1", - "babel-plugin-minify-flip-comparisons": "^0.4.3", - "babel-plugin-minify-guarded-expressions": "^0.4.4", - "babel-plugin-minify-infinity": "^0.4.3", - "babel-plugin-minify-mangle-names": "^0.5.0", - "babel-plugin-minify-numeric-literals": "^0.4.3", - "babel-plugin-minify-replace": "^0.5.0", - "babel-plugin-minify-simplify": "^0.5.1", - "babel-plugin-minify-type-constructors": "^0.4.3", - "babel-plugin-transform-inline-consecutive-adds": "^0.4.3", - "babel-plugin-transform-member-expression-literals": "^6.9.4", - "babel-plugin-transform-merge-sibling-variables": "^6.9.4", - "babel-plugin-transform-minify-booleans": "^6.9.4", - "babel-plugin-transform-property-literals": "^6.9.4", - "babel-plugin-transform-regexp-constructors": "^0.4.3", - "babel-plugin-transform-remove-console": "^6.9.4", - "babel-plugin-transform-remove-debugger": "^6.9.4", - "babel-plugin-transform-remove-undefined": "^0.5.0", - "babel-plugin-transform-simplify-comparison-operators": "^6.9.4", - "babel-plugin-transform-undefined-to-void": "^6.9.4", - "lodash": "^4.17.11" + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - }, + "node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", "dependencies": { - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" - } + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true } } }, - "base-x": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", - "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "base58-universal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/base58-universal/-/base58-universal-1.0.0.tgz", - "integrity": "sha512-v0Ja4jwaQP8gBZPNXpfaXlLht2ed/Gp3AsVUZXtlZgY1qbKS0CjxvYs43U0Gh00zbVc1neMe+q/ULJ7ubVyB+w==", - "requires": { - "esm": "^3.2.25" + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "requires": { - "tweetnacl": "^0.14.3" + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" - } + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "bech32": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/bech32/-/bech32-0.0.3.tgz", - "integrity": "sha512-O+K1w8P/aAOLcYwwQ4sbiPYZ51ZIW95lnS4/6nE8Aib/z+OOddQIIPdu2qi94qGDp4HhYy/wJotttXKkak1lXg==" - }, - "big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "dev": true - }, - "bigi": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz", - "integrity": "sha512-ddkU+dFIuEIW8lE7ZwdIAf2UPoM90eaprg5m3YXAVVTmKlqV/9BX4A2M8BOK2yOq6/VgZFVhK6QAxJebhlbhzw==" - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "optional": true - }, - "bip66": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz", - "integrity": "sha512-nemMHz95EmS38a26XbbdxIYj5csHd3RMP3H5bwQknX0WYHF01qhpufP42mLOwVICuH2JmhIhXiWs89MfUGL7Xw==", - "requires": { - "safe-buffer": "^5.0.1" + "engines": { + "node": ">=8" } }, - "bitcoin-ops": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/bitcoin-ops/-/bitcoin-ops-1.4.1.tgz", - "integrity": "sha512-pef6gxZFztEhaE9RY9HmWVmiIHqCb2OyS4HPKkpc6CIiiOa3Qmuoylxc5P2EkU3w+5eTSifI9SEZC88idAIGow==" - }, - "bitcoinjs-lib": { - "version": "git+ssh://git@github.com/dabura667/bitcoinjs-lib.git#92c602567bd62dd1b41b717cc7d977c015104f1c", - "from": "bitcoinjs-lib@https://github.com/dabura667/bitcoinjs-lib.git#bcash330", - "requires": { - "bech32": "0.0.3", - "bigi": "^1.4.0", - "bip66": "^1.1.0", - "bitcoin-ops": "^1.3.0", - "bs58check": "^2.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.3", - "ecurve": "^1.0.0", - "merkle-lib": "^2.0.10", - "pushdata-bitcoin": "^1.0.1", - "randombytes": "^2.0.1", - "safe-buffer": "^5.0.1", - "typeforce": "^1.11.3", - "varuint-bitcoin": "^1.0.4", - "wif": "^2.0.1" + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "borsh": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/borsh/-/borsh-0.3.1.tgz", - "integrity": "sha512-gJoSTnhwLxN/i2+15Y7uprU8h3CKI+Co4YKZKvrGYUy0FwHWM20x5Sx7eU8Xv4HQqV+7rb4r3P7K1cBIQe3q8A==", - "requires": { - "@types/bn.js": "^4.11.5", - "bn.js": "^5.0.0", - "bs58": "^4.0.0", - "text-encoding-utf-8": "^1.0.2" - }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, "dependencies": { - "bn.js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", - "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" - } + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" } }, - "bottlejs": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/bottlejs/-/bottlejs-1.7.2.tgz", - "integrity": "sha512-voMPQ+g8/4GBiDE5lp43fgfoBn7Q5fZI7k3ye8ErrPoHzuuRS0Gff9lZYeyalh86uz5P304iZ14wNAM+3TZguQ==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "dependencies": { + "sprintf-js": "~1.0.2" } }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, - "requires": { - "fill-range": "^7.0.1" + "dependencies": { + "dequal": "^2.0.3" } }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" - }, - "browser-process-hrtime": { + "node_modules/array-buffer-byte-length": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, - "browser-resolve": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", "dev": true, - "requires": { - "resolve": "1.1.7" - }, "dependencies": { - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - } + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "browserslist": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz", - "integrity": "sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A==", + "node_modules/array-includes": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", + "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001286", - "electron-to-chromium": "^1.4.17", - "escalade": "^3.1.1", - "node-releases": "^2.0.1", - "picocolors": "^1.0.0" + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "^3.0.2" + "node_modules/array.prototype.findlastindex": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", + "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "bs58check": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", - "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", - "requires": { - "bs58": "^4.0.0", - "create-hash": "^1.1.0", - "safe-buffer": "^5.1.2" + "node_modules/array.prototype.flat": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", + "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "node_modules/array.prototype.flatmap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", + "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", "dev": true, - "requires": { - "node-int64": "^0.4.0" + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "buffer": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.1.tgz", - "integrity": "sha512-rVAXBwEcEoYtxnHSO5iWyhzV/O1WMtkUYWlfdLS7FjU4PnSJJHEfHXi/uHPI5EwltmOA794gN3bm3/pzuctWjQ==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" + "node_modules/array.prototype.reduce": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.6.tgz", + "integrity": "sha512-UW+Mz8LG/sPSU8jRDCjVr6J/ZKAGpHfwrZ6kWTG5qCxIEiXdVshqGnu5vEZA8S1y6X4aCSbQZ0/EEsfvEvBiSg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "buffer-from": { + "node_modules/array.prototype.tosorted": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "bufferutil": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.6.tgz", - "integrity": "sha512-jduaYOYtnio4aIAyc6UbvPCVcgq7nYpVnucyxr6eCYg/Woad9Hf/oxxBRDnGGjPfjUm6j5O/uBWhIu4iLebFaw==", - "optional": true, - "requires": { - "node-gyp-build": "^4.3.0" - } - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.2.tgz", + "integrity": "sha512-HuQCHOlk1Weat5jzStICBCd83NxiIMwqDg/dHEsoefabn/hJRj5pVdWcPUSpRrwhwxZOsQassMpgN/xRYFBMIg==", "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.2.1" } }, - "caller-callsite": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", - "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", + "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", "dev": true, - "requires": { - "callsites": "^2.0.0" - }, "dependencies": { - "callsites": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", - "dev": true - } + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "is-array-buffer": "^3.0.2", + "is-shared-array-buffer": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "dependencies": { + "safer-buffer": "~2.1.0" + } }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "engines": { + "node": ">=0.8" + } }, - "caniuse-lite": { - "version": "1.0.30001299", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001299.tgz", - "integrity": "sha512-iujN4+x7QzqA2NCSrS5VUy+4gLmRd4xv6vbBBsmfVqTx8bLAD8097euLqQgKxSVLvxjSDcvF1T/i9ocgnUFexw==", + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, - "capture-exit": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", - "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" + }, + "node_modules/asynciterator.prototype": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/asynciterator.prototype/-/asynciterator.prototype-1.0.0.tgz", + "integrity": "sha512-wwHYEIS0Q80f5mosx3L/dfG5t5rjEa9Ft51GTaNt862EnpyGHpgz2RkZvLPp1oF5TnAiTohkEKVEu8pQPJI7Vg==", "dev": true, - "requires": { - "rsvp": "^4.8.4" + "dependencies": { + "has-symbols": "^1.0.3" } }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "node_modules/audit-ci": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/audit-ci/-/audit-ci-6.6.1.tgz", + "integrity": "sha512-zqZEoYfEC4QwX5yBkDNa0h7YhZC63HWtKtP19BVq+RS0dxRBInfmHogxe4VUeOzoADQjuTLZUI7zp3Pjyl+a5g==", "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "dependencies": { + "cross-spawn": "^7.0.3", + "escape-string-regexp": "^4.0.0", + "event-stream": "4.0.1", + "jju": "^1.4.0", + "JSONStream": "^1.3.5", + "readline-transform": "1.0.0", + "semver": "^7.0.0", + "yargs": "^17.0.0" + }, + "bin": { + "audit-ci": "dist/bin.js" + }, + "engines": { + "node": ">=12.9.0" } }, - "chokidar": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", - "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", + "node_modules/audit-ci/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, - "optional": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "ci-info": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", - "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", - "dev": true - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "circular-json": { - "version": "0.5.9", - "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.9.tgz", - "integrity": "sha512-4ivwqHpIFJZBuhN3g/pEcdbnGUywkBblloGbkglyloVjjR3uT6tieI89MVOfbP2tHX5sgb01FuLgAOzebNlJNQ==" - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "node_modules/audit-ci/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "clear": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/clear/-/clear-0.1.0.tgz", - "integrity": "sha512-qMjRnoL+JDPJHeLePZJuao6+8orzHMGP04A8CdwCNsKhRbOnKRjefxONR7bwILT3MHecxKBjHkKL/tkZ8r4Uzw==", - "dev": true - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "engines": { + "node": "*" + } }, - "collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", - "dev": true + "node_modules/aws4": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "node_modules/axe-core": { + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.8.1.tgz", + "integrity": "sha512-9l850jDDPnKq48nbad8SiEelCv4OrUWrKab/cPj0GScVg6cb6NbCCt/Ulk26QEq5jP9NnGr04Bit1BHyV6r5CQ==", "dev": true, - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" + "engines": { + "node": ">=4" } }, - "color": { + "node_modules/axobject-query": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", - "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", - "requires": { - "color-convert": "^1.9.3", - "color-string": "^1.6.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" - }, - "color-string": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", - "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", - "requires": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", + "dev": true, + "dependencies": { + "dequal": "^2.0.3" } }, - "colorspace": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", - "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", - "requires": { - "color": "^3.1.3", - "text-hex": "1.0.x" - } + "node_modules/babel-helper-evaluate-path": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.5.0.tgz", + "integrity": "sha512-mUh0UhS607bGh5wUMAQfOpt2JX2ThXMtppHRdRU1kL7ZLRWIXxoV2UIV1r2cAeeNeU1M5SB5/RSUgUxrK8yOkA==", + "dev": true }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } + "node_modules/babel-helper-flip-expressions": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.4.3.tgz", + "integrity": "sha512-rSrkRW4YQ2ETCWww9gbsWk4N0x1BOtln349Tk0dlCS90oT68WMLyGR7WvaMp3eAnsVrCqdUtC19lo1avyGPejA==", + "dev": true }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "node_modules/babel-helper-is-nodes-equiv": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/babel-helper-is-nodes-equiv/-/babel-helper-is-nodes-equiv-0.0.1.tgz", + "integrity": "sha512-ri/nsMFVRqXn7IyT5qW4/hIAGQxuYUFHa3qsxmPtbk6spZQcYlyDogfVpNm2XYOslH/ULS4VEJGUqQX5u7ACQw==", + "dev": true }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "node_modules/babel-helper-is-void-0": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-helper-is-void-0/-/babel-helper-is-void-0-0.4.3.tgz", + "integrity": "sha512-07rBV0xPRM3TM5NVJEOQEkECX3qnHDjaIbFvWYPv+T1ajpUiVLiqTfC+MmiZxY5KOL/Ec08vJdJD9kZiP9UkUg==", "dev": true }, - "component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==", + "node_modules/babel-helper-mark-eval-scopes": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.4.3.tgz", + "integrity": "sha512-+d/mXPP33bhgHkdVOiPkmYoeXJ+rXRWi7OdhwpyseIqOS8CmzHQXHUp/+/Qr8baXsT0kjGpMHHofHs6C3cskdA==", "dev": true }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "node_modules/babel-helper-remove-or-void": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-helper-remove-or-void/-/babel-helper-remove-or-void-0.4.3.tgz", + "integrity": "sha512-eYNceYtcGKpifHDir62gHJadVXdg9fAhuZEXiRQnJJ4Yi4oUTpqpNY//1pM4nVyjjDMPYaC2xSf0I+9IqVzwdA==", "dev": true }, - "confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", + "node_modules/babel-helper-to-multiple-sequence-expressions": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-helper-to-multiple-sequence-expressions/-/babel-helper-to-multiple-sequence-expressions-0.5.0.tgz", + "integrity": "sha512-m2CvfDW4+1qfDdsrtf4dwOslQC3yhbgyBFptncp4wvtdrDHqueW7slsYv4gArie056phvQFhT2nRcGS4bnm6mA==", "dev": true }, - "convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - }, "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - } + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" } }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true - }, - "core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" - }, - "core-js-compat": { - "version": "3.20.2", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.20.2.tgz", - "integrity": "sha512-qZEzVQ+5Qh6cROaTPFLNS4lkvQ6mBzE3R6A6EEpssj7Zr2egMHgsy4XapdifqJDGC9CBiNv7s+ejI96rLNQFdg==", + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "requires": { - "browserslist": "^4.19.1", - "semver": "7.0.0" - }, "dependencies": { - "semver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", - "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", - "dev": true - } + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "core-js-pure": { - "version": "3.20.2", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.20.2.tgz", - "integrity": "sha512-CmWHvSKn2vNL6p6StNp1EmMIfVY/pqn3JLAjfZQ8WZGPOlGoO92EkX9/Mk81i6GxvoPXjUqEQnpM3rJ5QxxIOg==", - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "cosmiconfig": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", - "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "requires": { - "import-fresh": "^2.0.0", - "is-directory": "^0.3.1", - "js-yaml": "^3.13.1", - "parse-json": "^4.0.0" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "cross-env": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "requires": { - "cross-spawn": "^7.0.1" - } - }, - "cross-fetch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", - "requires": { - "node-fetch": "2.6.7" + "engines": { + "node": ">=8" } }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/babel-jest/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "engines": { + "node": ">=8" } }, - "crypto-ld": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/crypto-ld/-/crypto-ld-5.1.0.tgz", - "integrity": "sha512-Dy1QoQzj+2K6UlGZ9l34cPp+g/YHOd+r3/DXXQTnnz5btGb0vqDlkZBn+icYmwntEmW0bvGVwFWvcwZSbk1EEQ==" - }, - "cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "requires": { - "cssom": "~0.3.6" - }, "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - } + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "requires": { - "assert-plus": "^1.0.0" + "node_modules/babel-minify": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/babel-minify/-/babel-minify-0.5.2.tgz", + "integrity": "sha512-H1ExfmvTxKWQZYcty1My6XRhoZm04/5MNb2DdZsC08r7y/rowipC0s9sszKA7jgW9mYYDdFnU68XohB+zP35qQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "babel-preset-minify": "^0.5.2", + "fs-readdir-recursive": "^1.1.0", + "lodash": "^4.17.11", + "mkdirp": "^0.5.1", + "util.promisify": "^1.0.0", + "yargs-parser": "^10.0.0" + }, + "bin": { + "babel-minify": "bin/minify.js", + "minify": "bin/minify.js" } }, - "data-urls": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", - "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", + "node_modules/babel-minify/node_modules/camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==", "dev": true, - "requires": { - "abab": "^2.0.0", - "whatwg-mimetype": "^2.2.0", - "whatwg-url": "^7.0.0" + "engines": { + "node": ">=4" } }, - "dateformat": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.2.tgz", - "integrity": "sha1-mk30v/FYrC80vGN6vbFUcWB+Flk=", - "dev": true - }, - "debug": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", - "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", + "node_modules/babel-minify/node_modules/yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", "dev": true, - "requires": { - "ms": "2.1.2" - }, "dependencies": { - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } + "camelcase": "^4.1.0" } }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", - "dev": true - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", - "dev": true - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "requires": { - "object-keys": "^1.0.12" + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" } }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "delay": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/delay/-/delay-5.0.0.tgz", - "integrity": "sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==" - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, - "detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true - }, - "did-resolver": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/did-resolver/-/did-resolver-3.1.5.tgz", - "integrity": "sha512-/4lM1vK5osnWVZ2oN9QhlWV5xOwssuLSL1MvueBc8LQWotbD5kM9XQMe7h4GydYpbh3JaWMFkOWwc9jvSZ+qgg==" - }, - "diff-sequences": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-25.2.6.tgz", - "integrity": "sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg==", + "node_modules/babel-plugin-minify-builtins": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-builtins/-/babel-plugin-minify-builtins-0.5.0.tgz", + "integrity": "sha512-wpqbN7Ov5hsNwGdzuzvFcjgRlzbIeVv1gMIlICbPj0xkexnfoIDe7q+AZHMkQmAE/F9R5jkrB6TLfTegImlXag==", "dev": true }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "node_modules/babel-plugin-minify-constant-folding": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.5.0.tgz", + "integrity": "sha512-Vj97CTn/lE9hR1D+jKUeHfNy+m1baNiJ1wJvoGyOBUx7F7kJqDZxr9nCHjO/Ad+irbR3HzR6jABpSSA29QsrXQ==", "dev": true, - "requires": { - "esutils": "^2.0.2" + "dependencies": { + "babel-helper-evaluate-path": "^0.5.0" } }, - "domexception": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", - "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", + "node_modules/babel-plugin-minify-dead-code-elimination": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.5.2.tgz", + "integrity": "sha512-krq9Lwi0QIzyAlcNBXTL4usqUvevB4BzktdEsb8srcXC1AaYqRJiAQw6vdKdJSaXbz6snBvziGr6ch/aoRCfpA==", "dev": true, - "requires": { - "webidl-conversions": "^4.0.2" + "dependencies": { + "babel-helper-evaluate-path": "^0.5.0", + "babel-helper-mark-eval-scopes": "^0.4.3", + "babel-helper-remove-or-void": "^0.4.3", + "lodash": "^4.17.11" } }, - "dotenv": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.6.0.tgz", - "integrity": "sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==" - }, - "drange": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/drange/-/drange-1.1.1.tgz", - "integrity": "sha512-pYxfDYpued//QpnLIm4Avk7rsNtAtQkUES2cwAYSvD/wd2pKD71gN2Ebj3e7klzXwjocvE8c5vx/1fxwpqmSxA==" - }, - "duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" + "node_modules/babel-plugin-minify-flip-comparisons": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-flip-comparisons/-/babel-plugin-minify-flip-comparisons-0.4.3.tgz", + "integrity": "sha512-8hNwgLVeJzpeLVOVArag2DfTkbKodzOHU7+gAZ8mGBFGPQHK6uXVpg3jh5I/F6gfi5Q5usWU2OKcstn1YbAV7A==", + "dev": true, + "dependencies": { + "babel-helper-is-void-0": "^0.4.3" } }, - "ecurve": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/ecurve/-/ecurve-1.0.6.tgz", - "integrity": "sha512-/BzEjNfiSuB7jIWKcS/z8FK9jNjmEWvUV2YZ4RLSmcDtP7Lq0m6FvDuSnJpBlDpGRpfRQeTLGLBI8H+kEv0r+w==", - "requires": { - "bigi": "^1.1.0", - "safe-buffer": "^5.0.1" + "node_modules/babel-plugin-minify-guarded-expressions": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-guarded-expressions/-/babel-plugin-minify-guarded-expressions-0.4.4.tgz", + "integrity": "sha512-RMv0tM72YuPPfLT9QLr3ix9nwUIq+sHT6z8Iu3sLbqldzC1Dls8DPCywzUIzkTx9Zh1hWX4q/m9BPoPed9GOfA==", + "dev": true, + "dependencies": { + "babel-helper-evaluate-path": "^0.5.0", + "babel-helper-flip-expressions": "^0.4.3" } }, - "electron-to-chromium": { - "version": "1.4.45", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.45.tgz", - "integrity": "sha512-czF9eYVuOmlY/vxyMQz2rGlNSjZpxNQYBe1gmQv7al171qOIhgyO9k7D5AKlgeTCSPKk+LHhj5ZyIdmEub9oNg==", + "node_modules/babel-plugin-minify-infinity": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-infinity/-/babel-plugin-minify-infinity-0.4.3.tgz", + "integrity": "sha512-X0ictxCk8y+NvIf+bZ1HJPbVZKMlPku3lgYxPmIp62Dp8wdtbMLSekczty3MzvUOlrk5xzWYpBpQprXUjDRyMA==", "dev": true }, - "elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" + "node_modules/babel-plugin-minify-mangle-names": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-mangle-names/-/babel-plugin-minify-mangle-names-0.5.1.tgz", + "integrity": "sha512-8KMichAOae2FHlipjNDTo2wz97MdEb2Q0jrn4NIRXzHH7SJ3c5TaNNBkeTHbk9WUsMnqpNUx949ugM9NFWewzw==", + "dev": true, + "dependencies": { + "babel-helper-mark-eval-scopes": "^0.4.3" } }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/babel-plugin-minify-numeric-literals": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-numeric-literals/-/babel-plugin-minify-numeric-literals-0.4.3.tgz", + "integrity": "sha512-5D54hvs9YVuCknfWywq0eaYDt7qYxlNwCqW9Ipm/kYeS9gYhJd0Rr/Pm2WhHKJ8DC6aIlDdqSBODSthabLSX3A==", "dev": true }, - "emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "node_modules/babel-plugin-minify-replace": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.5.0.tgz", + "integrity": "sha512-aXZiaqWDNUbyNNNpWs/8NyST+oU7QTpK7J9zFEFSA0eOmtUNMU3fczlTTTlnCxHmq/jYNFEmkkSG3DDBtW3Y4Q==", "dev": true }, - "enabled": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", - "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "node_modules/babel-plugin-minify-simplify": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.5.1.tgz", + "integrity": "sha512-OSYDSnoCxP2cYDMk9gxNAed6uJDiDz65zgL6h8d3tm8qXIagWGMLWhqysT6DY3Vs7Fgq7YUDcjOomhVUb+xX6A==", "dev": true, - "requires": { - "once": "^1.4.0" + "dependencies": { + "babel-helper-evaluate-path": "^0.5.0", + "babel-helper-flip-expressions": "^0.4.3", + "babel-helper-is-nodes-equiv": "^0.0.1", + "babel-helper-to-multiple-sequence-expressions": "^0.5.0" } }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "node_modules/babel-plugin-minify-type-constructors": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-type-constructors/-/babel-plugin-minify-type-constructors-0.4.3.tgz", + "integrity": "sha512-4ADB0irJ/6BeXWHubjCJmrPbzhxDgjphBMjIjxCc25n4NGJ00NsYqwYt+F/OvE9RXx8KaSW7cJvp+iZX436tnQ==", "dev": true, - "requires": { - "ansi-colors": "^4.1.1" + "dependencies": { + "babel-helper-is-void-0": "^0.4.3" } }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.5.tgz", + "integrity": "sha512-19hwUH5FKl49JEsvyTcoHakh6BE0wgXLLptIyKZ3PijHc/Ci521wygORCUCCred+E/twuqRyAkE02BAWPmsHOg==", "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - }, "dependencies": { - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - } + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.4.2", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "es-abstract": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.19.1.tgz", - "integrity": "sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w==", + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.1.1", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-symbols": "^1.0.2", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.4", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.1", - "is-string": "^1.0.7", - "is-weakref": "^1.0.1", - "object-inspect": "^1.11.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" + "bin": { + "semver": "bin/semver.js" } }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.3.tgz", + "integrity": "sha512-z41XaniZL26WLrvjy7soabMXrfPWARN25PZoriDEiLMxAp50AUW3t35BGQUMg5xK3UrpVTtagIDklxYa+MhiNA==", "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.2", + "core-js-compat": "^3.31.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "es6-promise": { - "version": "4.2.8", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", - "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" - }, - "es6-promisify": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", - "requires": { - "es6-promise": "^4.0.3" + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.2.tgz", + "integrity": "sha512-tAlOptU0Xj34V1Y2PNTL4Y0FOJMDB6bZmoW39FeCQIhigGLkqu3Fj6uiXpxIf6Ij274ENdYx64y6Au+ZKlb1IA==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "node_modules/babel-plugin-transform-inline-consecutive-adds": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.4.3.tgz", + "integrity": "sha512-8D104wbzzI5RlxeVPYeQb9QsUyepiH1rAO5hpPpQ6NPRgQLpIVwkS/Nbx944pm4K8Z+rx7CgjPsFACz/VCBN0Q==", "dev": true }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "node_modules/babel-plugin-transform-member-expression-literals": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.9.4.tgz", + "integrity": "sha512-Xq9/Rarpj+bjOZSl1nBbZYETsNEDDJSrb6Plb1sS3/36FukWFLLRysgecva5KZECjUJTrJoQqjJgtWToaflk5Q==", + "dev": true + }, + "node_modules/babel-plugin-transform-merge-sibling-variables": { + "version": "6.9.5", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.9.5.tgz", + "integrity": "sha512-xj/KrWi6/uP+DrD844h66Qh2cZN++iugEIgH8QcIxhmZZPNP6VpOE9b4gP2FFW39xDAY43kCmYMM6U0QNKN8fw==", + "dev": true + }, + "node_modules/babel-plugin-transform-minify-booleans": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-minify-booleans/-/babel-plugin-transform-minify-booleans-6.9.4.tgz", + "integrity": "sha512-9pW9ePng6DZpzGPalcrULuhSCcauGAbn8AeU3bE34HcDkGm8Ldt0ysjGkyb64f0K3T5ilV4mriayOVv5fg0ASA==", "dev": true }, - "escodegen": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", - "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "node_modules/babel-plugin-transform-property-literals": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.9.4.tgz", + "integrity": "sha512-Pf8JHTjTPxecqVyL6KSwD/hxGpoTZjiEgV7nCx0KFQsJYM0nuuoCajbg09KRmZWeZbJ5NGTySABYv8b/hY1eEA==", "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } + "esutils": "^2.0.2" } }, - "eslint": { - "version": "7.32.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", - "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", - "dev": true, - "requires": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.3", - "@humanwhocodes/config-array": "^0.5.0", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.1.2", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "globals": { - "version": "13.15.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.15.0.tgz", - "integrity": "sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } + "node_modules/babel-plugin-transform-regexp-constructors": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.4.3.tgz", + "integrity": "sha512-JjymDyEyRNhAoNFp09y/xGwYVYzT2nWTGrBrWaL6eCg2m+B24qH2jR0AA8V8GzKJTgC8NW6joJmc6nabvWBD/g==", + "dev": true }, - "eslint-config-airbnb": { - "version": "17.1.1", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-17.1.1.tgz", - "integrity": "sha512-xCu//8a/aWqagKljt+1/qAM62BYZeNq04HmdevG5yUGWpja0I/xhqd6GdLRch5oetEGFiJAnvtGuTEAese53Qg==", - "dev": true, - "requires": { - "eslint-config-airbnb-base": "^13.2.0", - "object.assign": "^4.1.0", - "object.entries": "^1.1.0" - } + "node_modules/babel-plugin-transform-remove-console": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz", + "integrity": "sha512-88blrUrMX3SPiGkT1GnvVY8E/7A+k6oj3MNvUtTIxJflFzXTw1bHkuJ/y039ouhFMp2prRn5cQGzokViYi1dsg==", + "dev": true }, - "eslint-config-airbnb-base": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.2.0.tgz", - "integrity": "sha512-1mg/7eoB4AUeB0X1c/ho4vb2gYkNH8Trr/EgCT/aGmKhhG+F6vF5s8+iRBlWAzFIAphxIdp3YfEKgEl0f9Xg+w==", - "dev": true, - "requires": { - "confusing-browser-globals": "^1.0.5", - "object.assign": "^4.1.0", - "object.entries": "^1.1.0" - } + "node_modules/babel-plugin-transform-remove-debugger": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.9.4.tgz", + "integrity": "sha512-Kd+eTBYlXfwoFzisburVwrngsrz4xh9I0ppoJnU/qlLysxVBRgI4Pj+dk3X8F5tDiehp3hhP8oarRMT9v2Z3lw==", + "dev": true }, - "eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "node_modules/babel-plugin-transform-remove-undefined": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.5.0.tgz", + "integrity": "sha512-+M7fJYFaEE/M9CXa0/IRkDbiV3wRELzA1kKQFCJ4ifhrzLKn/9VCCgj9OFmYWwBd8IB48YdgPkHYtbYq+4vtHQ==", "dev": true, - "requires": { - "debug": "^3.2.7", - "resolve": "^1.20.0" - }, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } + "babel-helper-evaluate-path": "^0.5.0" } }, - "eslint-loader": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/eslint-loader/-/eslint-loader-2.2.1.tgz", - "integrity": "sha512-RLgV9hoCVsMLvOxCuNjdqOrUqIj9oJg8hF44vzJaYqsAHuY9G2YAeN3joQ9nxP0p5Th9iFSIpKo+SD8KISxXRg==", - "dev": true, - "requires": { - "loader-fs-cache": "^1.0.0", - "loader-utils": "^1.0.2", - "object-assign": "^4.0.1", - "object-hash": "^1.1.4", - "rimraf": "^2.6.1" - } + "node_modules/babel-plugin-transform-simplify-comparison-operators": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.9.4.tgz", + "integrity": "sha512-GLInxhGAQWJ9YIdjwF6dAFlmh4U+kN8pL6Big7nkDzHoZcaDQOtBm28atEhQJq6m9GpAovbiGEShKqXv4BSp0A==", + "dev": true + }, + "node_modules/babel-plugin-transform-undefined-to-void": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.9.4.tgz", + "integrity": "sha512-D2UbwxawEY1xVc9svYAUZQM2xarwSNXue2qDIx6CeV2EuMGaes/0su78zlIDIAgE7BvnMw4UpmSo9fDy+znghg==", + "dev": true }, - "eslint-module-utils": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.2.tgz", - "integrity": "sha512-zquepFnWCY2ISMFwD/DqzaM++H+7PDzOpUvotJWm/y1BAFt5R4oeULgdrTejKqLkz7MA/tgstsUMNYc7wNdTrg==", + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, - "requires": { - "debug": "^3.2.7", - "find-up": "^2.1.0" - }, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - } + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "eslint-plugin-import": { - "version": "2.25.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz", - "integrity": "sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA==", + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.2", - "has": "^1.0.3", - "is-core-module": "^2.8.0", - "is-glob": "^4.0.3", - "minimatch": "^3.0.4", - "object.values": "^1.1.5", - "resolve": "^1.20.0", - "tsconfig-paths": "^3.12.0" - }, "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "eslint-plugin-jsx-a11y": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz", - "integrity": "sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g==", + "node_modules/babel-preset-minify": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/babel-preset-minify/-/babel-preset-minify-0.5.2.tgz", + "integrity": "sha512-v4GL+kk0TfovbRIKZnC3HPbu2cAGmPAby7BsOmuPdMJfHV+4FVdsGXTH/OOGQRKYdjemBuL1+MsE6mobobhe9w==", "dev": true, - "requires": { - "@babel/runtime": "^7.16.3", - "aria-query": "^4.2.2", - "array-includes": "^3.1.4", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.3.5", - "axobject-query": "^2.2.0", - "damerau-levenshtein": "^1.0.7", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.2.1", - "language-tags": "^1.0.5", - "minimatch": "^3.0.4" - }, "dependencies": { - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - } + "babel-plugin-minify-builtins": "^0.5.0", + "babel-plugin-minify-constant-folding": "^0.5.0", + "babel-plugin-minify-dead-code-elimination": "^0.5.2", + "babel-plugin-minify-flip-comparisons": "^0.4.3", + "babel-plugin-minify-guarded-expressions": "^0.4.4", + "babel-plugin-minify-infinity": "^0.4.3", + "babel-plugin-minify-mangle-names": "^0.5.1", + "babel-plugin-minify-numeric-literals": "^0.4.3", + "babel-plugin-minify-replace": "^0.5.0", + "babel-plugin-minify-simplify": "^0.5.1", + "babel-plugin-minify-type-constructors": "^0.4.3", + "babel-plugin-transform-inline-consecutive-adds": "^0.4.3", + "babel-plugin-transform-member-expression-literals": "^6.9.4", + "babel-plugin-transform-merge-sibling-variables": "^6.9.5", + "babel-plugin-transform-minify-booleans": "^6.9.4", + "babel-plugin-transform-property-literals": "^6.9.4", + "babel-plugin-transform-regexp-constructors": "^0.4.3", + "babel-plugin-transform-remove-console": "^6.9.4", + "babel-plugin-transform-remove-debugger": "^6.9.4", + "babel-plugin-transform-remove-undefined": "^0.5.0", + "babel-plugin-transform-simplify-comparison-operators": "^6.9.4", + "babel-plugin-transform-undefined-to-void": "^6.9.4", + "lodash": "^4.17.11" + } + }, + "node_modules/babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", + "dependencies": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" } }, - "eslint-plugin-no-only-tests": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz", - "integrity": "sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==", + "node_modules/babel-runtime/node_modules/regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, - "eslint-plugin-react": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.28.0.tgz", - "integrity": "sha512-IOlFIRHzWfEQQKcAD4iyYDndHwTQiCMcJVJjxempf203jnNLUnW34AXLrV33+nEXoifJE2ZEGmcjKPL8957eSw==", + "node_modules/base-x": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz", + "integrity": "sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flatmap": "^1.2.5", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.0.4", - "object.entries": "^1.1.5", - "object.fromentries": "^2.0.5", - "object.hasown": "^1.1.0", - "object.values": "^1.1.5", - "prop-types": "^15.7.2", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.6" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "resolve": { - "version": "2.0.0-next.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz", - "integrity": "sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==", - "dev": true, - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - } + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true + { + "type": "consulting", + "url": "https://feross.org/support" } + ] + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "dependencies": { + "tweetnacl": "^0.14.3" } }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/bcrypt-pbkdf/node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" + }, + "node_modules/bech32": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/bech32/-/bech32-0.0.3.tgz", + "integrity": "sha512-O+K1w8P/aAOLcYwwQ4sbiPYZ51ZIW95lnS4/6nE8Aib/z+OOddQIIPdu2qi94qGDp4HhYy/wJotttXKkak1lXg==" + }, + "node_modules/bigi": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz", + "integrity": "sha512-ddkU+dFIuEIW8lE7ZwdIAf2UPoM90eaprg5m3YXAVVTmKlqV/9BX4A2M8BOK2yOq6/VgZFVhK6QAxJebhlbhzw==" + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "optional": true, + "engines": { + "node": ">=8" } }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" - }, + "node_modules/bip66": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz", + "integrity": "sha512-nemMHz95EmS38a26XbbdxIYj5csHd3RMP3H5bwQknX0WYHF01qhpufP42mLOwVICuH2JmhIhXiWs89MfUGL7Xw==", "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } + "safe-buffer": "^5.0.1" } }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true + "node_modules/bitcoin-ops": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/bitcoin-ops/-/bitcoin-ops-1.4.1.tgz", + "integrity": "sha512-pef6gxZFztEhaE9RY9HmWVmiIHqCb2OyS4HPKkpc6CIiiOa3Qmuoylxc5P2EkU3w+5eTSifI9SEZC88idAIGow==" }, - "esm": { - "version": "3.2.25", - "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", - "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==" + "node_modules/bitcoinjs-lib": { + "version": "3.3.0", + "resolved": "git+ssh://git@github.com/dabura667/bitcoinjs-lib.git#92c602567bd62dd1b41b717cc7d977c015104f1c", + "integrity": "sha512-fRzQLLvnkaLnkmk+Y7KUPCOT/DFZpkgOTxsitH8Y5Oo20rZQvRnxtjsMrHng/zOVKoOWCQfVl3TCc5xvQ+ecRA==", + "license": "MIT", + "dependencies": { + "bech32": "0.0.3", + "bigi": "^1.4.0", + "bip66": "^1.1.0", + "bitcoin-ops": "^1.3.0", + "bs58check": "^2.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.3", + "ecurve": "^1.0.0", + "merkle-lib": "^2.0.10", + "pushdata-bitcoin": "^1.0.1", + "randombytes": "^2.0.1", + "safe-buffer": "^5.0.1", + "typeforce": "^1.11.3", + "varuint-bitcoin": "^1.0.4", + "wif": "^2.0.1" + }, + "engines": { + "node": ">=4.0.0" + } }, - "espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, - "requires": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" - }, "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bl/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "node_modules/bottlejs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/bottlejs/-/bottlejs-2.0.1.tgz", + "integrity": "sha512-50T0bzqeAqZ+//kgjdDxNu7UP8Je04isNPyHPwwOOPoeZmtVESkuF9nwkWEqSEd9Sw1yJ1oaoHBAMxe/wG4Zzg==" }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, - "requires": { - "estraverse": "^5.1.0" - }, "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "requires": { - "estraverse": "^5.2.0" - }, "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.21.10", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz", + "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001517", + "electron-to-chromium": "^1.4.477", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "node_modules/bs58": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", + "dependencies": { + "base-x": "^4.0.0" + } }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "node_modules/bs58/node_modules/base-x": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" + }, + "node_modules/bs58check": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", + "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", + "dependencies": { + "bs58": "^4.0.0", + "create-hash": "^1.1.0", + "safe-buffer": "^5.1.2" + } }, - "event-stream": { + "node_modules/bs58check/node_modules/bs58": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-4.0.1.tgz", - "integrity": "sha512-qACXdu/9VHPBzcyhdOWR5/IahhGMf0roTeZJfzz077GwylcDd90yOHLouhmv7GJ5XzPi6ekaQWd8AvPP2nOvpA==", - "dev": true, - "requires": { - "duplexer": "^0.1.1", - "from": "^0.1.7", - "map-stream": "0.0.7", - "pause-stream": "^0.0.11", - "split": "^1.0.1", - "stream-combiner": "^0.2.2", - "through": "^2.3.8" + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "dependencies": { + "base-x": "^3.0.2" } }, - "eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } }, - "exec-sh": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", - "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==", + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", - "dev": true + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" } }, - "expect": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-25.5.0.tgz", - "integrity": "sha512-w7KAXo0+6qqZZhovCaBVPSIqQp7/UTcx4M9uKt2m6pd2VB1voyC8JizLRqeEqud3AAVP02g+hbErDu5gu64tlA==", + "node_modules/caniuse-lite": { + "version": "1.0.30001538", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001538.tgz", + "integrity": "sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==", "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "ansi-styles": "^4.0.0", - "jest-get-type": "^25.2.6", - "jest-matcher-utils": "^25.5.0", - "jest-message-util": "^25.5.0", - "jest-regex-util": "^25.2.6" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" }, - "jest-regex-util": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz", - "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } + { + "type": "github", + "url": "https://github.com/sponsors/ai" } - } + ] }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" } }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" } }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" - }, - "eyes": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", - "integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=" - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "fb-watchman": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", + "node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", "dev": true, - "requires": { - "bser": "2.1.1" + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "optional": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, - "fecha": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", - "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" + "node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } }, - "figlet": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.5.2.tgz", - "integrity": "sha512-WOn21V8AhyE1QqVfPIVxe3tupJacq1xGkPTB4iagT6o+P2cAgEOOwIxMftr4+ZCTI6d551ij9j61DFr0nsP2uQ==", + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", "dev": true }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/clear": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/clear/-/clear-0.1.0.tgz", + "integrity": "sha512-qMjRnoL+JDPJHeLePZJuao6+8orzHMGP04A8CdwCNsKhRbOnKRjefxONR7bwILT3MHecxKBjHkKL/tkZ8r4Uzw==", "dev": true, - "requires": { - "flat-cache": "^3.0.4" + "engines": { + "node": "*" } }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "node_modules/cli-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", + "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", "dev": true, - "requires": { - "to-regex-range": "^5.0.1" + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "engines": { + "node": ">=8" } }, - "find-cache-dir": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz", - "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", + "node_modules/cli-spinners": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.1.tgz", + "integrity": "sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==", "dev": true, - "requires": { - "commondir": "^1.0.1", - "mkdirp": "^0.5.1", - "pkg-dir": "^1.0.0" + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "find-up": { + "node_modules/cli-width": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "flat": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", - "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", - "requires": { - "is-buffer": "~2.0.3" + "engines": { + "node": ">= 12" } }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, "dependencies": { - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - } + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" } }, - "flatted": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.5.tgz", - "integrity": "sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==", - "dev": true - }, - "fn.name": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", - "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "dev": true, + "engines": { + "node": ">=0.8" + } }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, - "requires": { - "is-callable": "^1.1.3" + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" } }, - "for-in": { + "node_modules/collect-v8-coverage": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", "dev": true }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" - }, - "form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" + "node_modules/color": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", + "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", + "dependencies": { + "color-convert": "^1.9.3", + "color-string": "^1.6.0" } }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "requires": { - "map-cache": "^0.2.2" + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" } }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" }, - "fs-readdir-recursive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", - "dev": true + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "node_modules/colorspace": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", + "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", + "dependencies": { + "color": "^3.1.3", + "text-hex": "1.0.x" + } }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "dev": true }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", + "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", "dev": true }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", "dev": true }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true + "node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "hasInstallScript": true }, - "get-intrinsic": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", - "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "node_modules/core-js-compat": { + "version": "3.32.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.32.2.tgz", + "integrity": "sha512-+GjlguTDINOijtVRUxrQOv3kfu9rl+qPNdX2LTbJ/ZyVTuxK+ksVSAGX1nHstu4hrv1En/uPTtWgq2gI5wt4AQ==", "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1" + "dependencies": { + "browserslist": "^4.21.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" } }, - "get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" }, - "get-stdin": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz", - "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==", - "dev": true + "node_modules/create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" + "node_modules/create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "requires": { - "assert-plus": "^1.0.0" + "node_modules/create-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "node_modules/create-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/create-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "requires": { - "is-glob": "^4.0.1" + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "graceful-fs": { - "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", + "node_modules/create-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "growly": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "node_modules/create-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "optional": true - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + "engines": { + "node": ">=8" + } }, - "har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "requires": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, + "node_modules/create-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - } + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "dev": true, - "requires": { - "function-bind": "^1.1.1" + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" } }, - "has-bigints": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.1.tgz", - "integrity": "sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } }, - "has-symbols": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "dev": true }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" } }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "node_modules/dateformat": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.2.tgz", + "integrity": "sha512-EelsCzH0gMC2YmXuMeaZ3c6md1sUJQxyb1XXc4xaisi/K6qKukqZhKPrEQyRkdNIncgYyLoDTReq0nNyuKerTg==", "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" + "engines": { + "node": "*" } }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, "dependencies": { - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true } } }, - "hash-base": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", - "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "html-encoding-sniffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", - "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", + "node_modules/dedent": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", + "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", "dev": true, - "requires": { - "whatwg-encoding": "^1.0.1" + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } } }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", - "dev": true - }, - "husky": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/husky/-/husky-1.3.1.tgz", - "integrity": "sha512-86U6sVVVf4b5NYSZ0yvv88dRgBSSXXmHaiq5pP4KDj5JVzdwKgBjEtUPOm8hcoytezFwbU+7gotXNhpHdystlg==", - "dev": true, - "requires": { - "cosmiconfig": "^5.0.7", - "execa": "^1.0.0", - "find-up": "^3.0.0", - "get-stdin": "^6.0.0", - "is-ci": "^2.0.0", - "pkg-dir": "^3.0.0", - "please-upgrade-node": "^3.1.1", - "read-pkg": "^4.0.1", - "run-node": "^1.0.0", - "slash": "^2.0.0" - }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "dev": true, "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - } + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "node_modules/define-data-property": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.0.tgz", + "integrity": "sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==", "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" + "dependencies": { + "get-intrinsic": "^1.2.1", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" } }, - "ieee754": { + "node_modules/define-properties": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } }, - "import-fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", - "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", - "dev": true, - "requires": { - "caller-path": "^2.0.0", - "resolve-from": "^3.0.0" - }, - "dependencies": { - "caller-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", - "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", - "dev": true, - "requires": { - "caller-callsite": "^2.0.0" - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - } + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "engines": { + "node": ">=6" } }, - "import-local": { + "node_modules/detect-newline": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "dependencies": { - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - } + "engines": { + "node": ">=8" } }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "inquirer": { - "version": "7.3.3", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz", - "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==", + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.19", - "mute-stream": "0.0.8", - "run-async": "^2.4.0", - "rxjs": "^6.6.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6" - }, "dependencies": { - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" - } - }, - "cli-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "requires": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - } - }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" } }, - "internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" } }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "node_modules/drange": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/drange/-/drange-1.1.1.tgz", + "integrity": "sha512-pYxfDYpued//QpnLIm4Avk7rsNtAtQkUES2cwAYSvD/wd2pKD71gN2Ebj3e7klzXwjocvE8c5vx/1fxwpqmSxA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", "dev": true }, - "ip-regex": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", - "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", "dependencies": { - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" } }, - "is-arrayish": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", - "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" + "node_modules/ecurve": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/ecurve/-/ecurve-1.0.6.tgz", + "integrity": "sha512-/BzEjNfiSuB7jIWKcS/z8FK9jNjmEWvUV2YZ4RLSmcDtP7Lq0m6FvDuSnJpBlDpGRpfRQeTLGLBI8H+kEv0r+w==", + "dependencies": { + "bigi": "^1.1.0", + "safe-buffer": "^5.0.1" } }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "node_modules/electron-to-chromium": { + "version": "1.4.525", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.525.tgz", + "integrity": "sha512-GIZ620hDK4YmIqAWkscG4W6RwY6gOx1y5J6f4JUQwctiJrqH2oxZYU4mXHi35oV32tr630UcepBzSBGJ/WYcZA==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, - "optional": true, - "requires": { - "binary-extensions": "^2.0.0" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" } }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-buffer": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", - "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==" - }, - "is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "is-ci": { + "node_modules/enabled": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", + "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "requires": { - "ci-info": "^2.0.0" - }, "dependencies": { - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - } + "is-arrayish": "^0.2.1" } }, - "is-core-module": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", + "node_modules/error-ex/node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/es-abstract": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.2.tgz", + "integrity": "sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA==", "dev": true, - "requires": { - "has": "^1.0.3" + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "arraybuffer.prototype.slice": "^1.0.2", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.6", + "get-intrinsic": "^1.2.1", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.12", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "safe-array-concat": "^1.0.1", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.8", + "string.prototype.trimend": "^1.0.7", + "string.prototype.trimstart": "^1.0.7", + "typed-array-buffer": "^1.0.0", + "typed-array-byte-length": "^1.0.0", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "node_modules/es-array-method-boxes-properly": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz", + "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", + "dev": true + }, + "node_modules/es-iterator-helpers": { + "version": "1.0.15", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.15.tgz", + "integrity": "sha512-GhoY8uYqd6iwUl2kgjTm4CZAf6oo5mHK7BPqx3rKgx893YSsy0LGHV6gfqqQvZt/8xM8xeOnfXBCfqclMKkJ5g==", "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, "dependencies": { - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "asynciterator.prototype": "^1.0.0", + "call-bind": "^1.0.2", + "define-properties": "^1.2.1", + "es-abstract": "^1.22.1", + "es-set-tostringtag": "^2.0.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "iterator.prototype": "^1.1.2", + "safe-array-concat": "^1.0.1" } }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", "dev": true, - "requires": { + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" } }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true - } + "has": "^1.0.3" } }, - "is-directory": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", - "dev": true - }, - "is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "dev": true, - "optional": true - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true, - "requires": { - "is-extglob": "^2.1.1" + "engines": { + "node": ">=6" } }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-number-object": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.6.tgz", - "integrity": "sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g==", + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" + "engines": { + "node": ">=0.8.0" } }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "node_modules/eslint": { + "version": "8.49.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.49.0.tgz", + "integrity": "sha512-jw03ENfm6VJI0jA9U+8H5zfl5b+FvuU3YYvZRdZHOlU2ggJkxrlkJH4HcDrZpj6YwD8kuYqvQM8LyesoazrSOQ==", "dev": true, - "requires": { - "isobject": "^3.0.1" + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.2", + "@eslint/js": "8.49.0", + "@humanwhocodes/config-array": "^0.11.11", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "node_modules/eslint-config-airbnb": { + "version": "19.0.4", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", + "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "dependencies": { + "eslint-config-airbnb-base": "^15.0.0", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5" + }, + "engines": { + "node": "^10.12.0 || ^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.28.0", + "eslint-plugin-react-hooks": "^4.3.0" } }, - "is-shared-array-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", - "integrity": "sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA==", - "dev": true - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "node_modules/eslint-config-airbnb-base": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", + "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" + "dependencies": { + "confusing-browser-globals": "^1.0.10", + "object.assign": "^4.1.2", + "object.entries": "^1.1.5", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "peerDependencies": { + "eslint": "^7.32.0 || ^8.2.0", + "eslint-plugin-import": "^2.25.2" } }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "node_modules/eslint-config-airbnb-base/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "has-symbols": "^1.0.2" + "bin": { + "semver": "bin/semver.js" } }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", "dev": true, - "requires": { - "call-bind": "^1.0.2" + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" } }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "optional": true, - "requires": { - "is-docker": "^2.0.0" + "dependencies": { + "ms": "^2.1.1" } }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - }, - "isomorphic-ws": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz", - "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==" - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" - }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz", - "integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==", + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true } } }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "ms": "^2.1.1" } }, - "istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "node_modules/eslint-plugin-import": { + "version": "2.28.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz", + "integrity": "sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==", "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "array-includes": "^3.1.6", + "array.prototype.findlastindex": "^1.2.2", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.8.0", + "has": "^1.0.3", + "is-core-module": "^2.13.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.6", + "object.groupby": "^1.0.0", + "object.values": "^1.1.6", + "semver": "^6.3.1", + "tsconfig-paths": "^3.14.2" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" } }, - "istanbul-reports": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.3.tgz", - "integrity": "sha512-x9LtDVtfm/t1GFiLl3NffC7hz+I1ragvgX1P/Lg1NlIagifZDKUkuuaAxH/qpwj2IuEfD8G2Bs/UKp+sZ/pKkg==", + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" + "dependencies": { + "ms": "^2.1.1" } }, - "jayson": { - "version": "3.6.6", - "resolved": "https://registry.npmjs.org/jayson/-/jayson-3.6.6.tgz", - "integrity": "sha512-f71uvrAWTtrwoww6MKcl9phQTC+56AopLyEenWvKVAIMz+q0oVGj6tenLZ7Z6UiPBkJtKLj4kt0tACllFQruGQ==", - "requires": { - "@types/connect": "^3.4.33", - "@types/express-serve-static-core": "^4.17.9", - "@types/lodash": "^4.14.159", - "@types/node": "^12.12.54", - "@types/ws": "^7.4.4", - "JSONStream": "^1.3.5", - "commander": "^2.20.3", - "delay": "^5.0.0", - "es6-promisify": "^5.0.0", - "eyes": "^0.1.8", - "isomorphic-ws": "^4.0.1", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.20", - "uuid": "^8.3.2", - "ws": "^7.4.5" - }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, "dependencies": { - "@types/node": { - "version": "12.20.42", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.42.tgz", - "integrity": "sha512-aI3/oo5DzyiI5R/xAhxxRzfZlWlsbbqdgxfTPkqu/Zt+23GXiJvMCyPJT4+xKSXOnLqoL8jJYMLTwvK2M3a5hw==" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - } + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" } }, - "jest": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/jest/-/jest-25.5.4.tgz", - "integrity": "sha512-hHFJROBTqZahnO+X+PMtT6G2/ztqAZJveGqz//FnWWHurizkD05PQGzRZOhF3XP6z7SJmL+5tCfW8qV06JypwQ==", + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "@jest/core": "^25.5.4", - "import-local": "^3.0.2", - "jest-cli": "^25.5.4" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-cli": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-25.5.4.tgz", - "integrity": "sha512-rG8uJkIiOUpnREh1768/N3n27Cm+xPFkSNFO91tgg+8o2rXeVLStz+vkXkGr4UtzH6t1SNbjwoiswd7p4AhHTw==", - "dev": true, - "requires": { - "@jest/core": "^25.5.4", - "@jest/test-result": "^25.5.0", - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "import-local": "^3.0.2", - "is-ci": "^2.0.0", - "jest-config": "^25.5.4", - "jest-util": "^25.5.0", - "jest-validate": "^25.5.0", - "prompts": "^2.0.1", - "realpath-native": "^2.0.0", - "yargs": "^15.3.1" - } - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "bin": { + "semver": "bin/semver.js" } }, - "jest-changed-files": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-25.5.0.tgz", - "integrity": "sha512-EOw9QEqapsDT7mKF162m8HFzRPbmP8qJQny6ldVOdOVBz3ACgPm/1nAn5fPQ/NDaYhX/AHkrGwwkCncpAVSXcw==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "execa": "^3.2.0", - "throat": "^5.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "execa": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-3.4.0.tgz", - "integrity": "sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "p-finally": "^2.0.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - } - }, - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "p-finally": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz", - "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "jest-config": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-25.5.4.tgz", - "integrity": "sha512-SZwR91SwcdK6bz7Gco8qL7YY2sx8tFJYzvg216DLihTWf+LKY/DoJXpM9nTzYakSyfblbqeU48p/p7Jzy05Atg==", + "node_modules/eslint-plugin-jsx-a11y/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/test-sequencer": "^25.5.4", - "@jest/types": "^25.5.0", - "babel-jest": "^25.5.1", - "chalk": "^3.0.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.4", - "jest-environment-jsdom": "^25.5.0", - "jest-environment-node": "^25.5.0", - "jest-get-type": "^25.2.6", - "jest-jasmine2": "^25.5.4", - "jest-regex-util": "^25.2.6", - "jest-resolve": "^25.5.1", - "jest-util": "^25.5.0", - "jest-validate": "^25.5.0", - "micromatch": "^4.0.2", - "pretty-format": "^25.5.0", - "realpath-native": "^2.0.0" - }, - "dependencies": { - "@jest/transform": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-25.5.1.tgz", - "integrity": "sha512-Y8CEoVwXb4QwA6Y/9uDkn0Xfz0finGkieuV0xkdF9UtZGJeLukD5nLkaVrVsODB1ojRWlaoD0AJZpVHCSnJEvg==", - "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^25.5.0", - "babel-plugin-istanbul": "^6.0.0", - "chalk": "^3.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^25.5.1", - "jest-regex-util": "^25.2.6", - "jest-util": "^25.5.0", - "micromatch": "^4.0.2", - "pirates": "^4.0.1", - "realpath-native": "^2.0.0", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - } - }, - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "babel-jest": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-25.5.1.tgz", - "integrity": "sha512-9dA9+GmMjIzgPnYtkhBg73gOo/RHqPmLruP3BaGL4KEX3Dwz6pI8auSN8G8+iuEG90+GSswyKvslN+JYSaacaQ==", - "dev": true, - "requires": { - "@jest/transform": "^25.5.1", - "@jest/types": "^25.5.0", - "@types/babel__core": "^7.1.7", - "babel-plugin-istanbul": "^6.0.0", - "babel-preset-jest": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "slash": "^3.0.0" - } - }, - "babel-plugin-jest-hoist": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-25.5.0.tgz", - "integrity": "sha512-u+/W+WAjMlvoocYGTwthAiQSxDcJAyHpQ6oWlHdFZaaN+Rlk8Q7iiwDPg2lN/FyJtAYnKjFxbn7xus4HCFkg5g==", - "dev": true, - "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__traverse": "^7.0.6" - } - }, - "babel-preset-current-node-syntax": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.4.tgz", - "integrity": "sha512-5/INNCYhUGqw7VbVjT/hb3ucjgkVHKXY7lX3ZjlN4gm565VyFmJUrJ/h+h16ECVB38R/9SF6aACydpKMLZ/c9w==", - "dev": true, - "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - } - }, - "babel-preset-jest": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-25.5.0.tgz", - "integrity": "sha512-8ZczygctQkBU+63DtSOKGh7tFL0CeCuz+1ieud9lJ1WPQ9O6A1a/r+LGn6Y705PA6whHQ3T1XuB/PmpfNYf8Fw==", - "dev": true, - "requires": { - "babel-plugin-jest-hoist": "^25.5.0", - "babel-preset-current-node-syntax": "^0.1.2" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-haste-map": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.5.1.tgz", - "integrity": "sha512-dddgh9UZjV7SCDQUrQ+5t9yy8iEgKc1AKqZR9YDww8xsVOtzPQSMVLDChc21+g29oTRexb9/B0bIlZL+sWmvAQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "@types/graceful-fs": "^4.1.2", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.1.2", - "graceful-fs": "^4.2.4", - "jest-serializer": "^25.5.0", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7", - "which": "^2.0.2" - } - }, - "jest-regex-util": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz", - "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==", - "dev": true - }, - "jest-serializer": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.5.0.tgz", - "integrity": "sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4" - } - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "jest-worker": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", - "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", - "dev": true, - "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-no-only-tests": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", + "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", + "dev": true, + "engines": { + "node": ">=5.0.0" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.33.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", + "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.0.12", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "jest-diff": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-25.5.0.tgz", - "integrity": "sha512-z1kygetuPiREYdNIumRpAHY6RXiGmp70YHptjdaxTWGmA085W3iCnXNx0DhflK3vwrKmrRWyY1wUpkPMVxMK7A==", + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", + "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", "dev": true, - "requires": { - "chalk": "^3.0.0", - "diff-sequences": "^25.2.6", - "jest-get-type": "^25.2.6", - "pretty-format": "^25.5.0" + "peer": true, + "engines": { + "node": ">=10" }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" } }, - "jest-docblock": { - "version": "25.3.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-25.3.0.tgz", - "integrity": "sha512-aktF0kCar8+zxRHxQZwxMy70stc9R1mOmrLsT5VO3pIT0uzGRSDAXxSlz4NqQWpuLjPpuMhPRl7H+5FRsvIQAg==", + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", + "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", "dev": true, - "requires": { - "detect-newline": "^3.0.0" + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "jest-each": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-25.5.0.tgz", - "integrity": "sha512-QBogUxna3D8vtiItvn54xXde7+vuzqRrEeaw8r1s+1TG9eZLVJE5ZkKoSUlqFwRjnlaA4hyKGiu9OlkFIuKnjA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "jest-get-type": "^25.2.6", - "jest-util": "^25.5.0", - "pretty-format": "^25.5.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" } }, - "jest-environment-jsdom": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-25.5.0.tgz", - "integrity": "sha512-7Jr02ydaq4jaWMZLY+Skn8wL5nVIYpWvmeatOHL3tOcV3Zw8sjnPpx+ZdeBfc457p8jCR9J6YCc+Lga0oIy62A==", - "dev": true, - "requires": { - "@jest/environment": "^25.5.0", - "@jest/fake-timers": "^25.5.0", - "@jest/types": "^25.5.0", - "jest-mock": "^25.5.0", - "jest-util": "^25.5.0", - "jsdom": "^15.2.1" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "jest-environment-node": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-25.5.0.tgz", - "integrity": "sha512-iuxK6rQR2En9EID+2k+IBs5fCFd919gVVK5BeND82fYeLWPqvRcFNPKu9+gxTwfB5XwBGBvZ0HFQa+cHtIoslA==", + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, - "requires": { - "@jest/environment": "^25.5.0", - "@jest/fake-timers": "^25.5.0", - "@jest/types": "^25.5.0", - "jest-mock": "^25.5.0", - "jest-util": "^25.5.0", - "semver": "^6.3.0" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "jest-get-type": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-25.2.6.tgz", - "integrity": "sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig==", + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "jest-haste-map": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.4.6.tgz", - "integrity": "sha512-0tNpgxg7BKurZeFkIOvGCkbmOHbLFf4LUQOxrQSMjvrQaQe3l6E8x6jYC1NuWkGo5WDdbr8FEzUxV2+LWNawKQ==", + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "requires": { - "@jest/types": "^27.4.2", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.4", - "jest-regex-util": "^27.4.0", - "jest-serializer": "^27.4.0", - "jest-util": "^27.4.2", - "jest-worker": "^27.4.6", - "micromatch": "^4.0.4", - "walker": "^1.0.7" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "jest-html-reporter": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/jest-html-reporter/-/jest-html-reporter-2.8.2.tgz", - "integrity": "sha512-zepJsVjqplRFrNRtRZsD3yYVRJOrNiUPOoOJA1oSL7ypYxr4YHlvVz1CPmc762BkSd3fp+kRd6mGCZz29xXFEQ==", + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "requires": { - "dateformat": "3.0.2", - "mkdirp": "0.5.3", - "strip-ansi": "3.0.1", - "xmlbuilder": "13.0.2" - }, "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true - }, - "mkdirp": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.3.tgz", - "integrity": "sha512-P+2gwrFqx8lhew375MQHHeTlY8AuOJSrGf0R5ddkEndUkmwpgUob/vQuBD1V22/Cw1/lJr4x+EjllSezBThzBg==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "jest-jasmine2": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-25.5.4.tgz", - "integrity": "sha512-9acbWEfbmS8UpdcfqnDO+uBUgKa/9hcRh983IHdM+pKmJPL77G0sWAAK0V0kr5LK3a8cSBfkFSoncXwQlRZfkQ==", + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, - "requires": { - "@babel/traverse": "^7.1.0", - "@jest/environment": "^25.5.0", - "@jest/source-map": "^25.5.0", - "@jest/test-result": "^25.5.0", - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "co": "^4.6.0", - "expect": "^25.5.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^25.5.0", - "jest-matcher-utils": "^25.5.0", - "jest-message-util": "^25.5.0", - "jest-runtime": "^25.5.4", - "jest-snapshot": "^25.5.1", - "jest-util": "^25.5.0", - "pretty-format": "^25.5.0", - "throat": "^5.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "jest-leak-detector": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-25.5.0.tgz", - "integrity": "sha512-rV7JdLsanS8OkdDpZtgBf61L5xZ4NnYLBq72r6ldxahJWWczZjXawRsoHyXzibM5ed7C2QRjpp6ypgwGdKyoVA==", + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "requires": { - "jest-get-type": "^25.2.6", - "pretty-format": "^25.5.0" + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "jest-matcher-utils": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-25.5.0.tgz", - "integrity": "sha512-VWI269+9JS5cpndnpCwm7dy7JtGQT30UHfrnM3mXl22gHGt/b7NkjBqXfbhZ8V4B7ANUsjK18PlSBmG0YH7gjw==", + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, - "requires": { - "chalk": "^3.0.0", - "jest-diff": "^25.5.0", - "jest-get-type": "^25.2.6", - "pretty-format": "^25.5.0" + "dependencies": { + "is-glob": "^4.0.3" }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.21.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz", + "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "jest-message-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-25.5.0.tgz", - "integrity": "sha512-ezddz3YCT/LT0SKAmylVyWWIGYoKHOFOFXx3/nA4m794lfVUskMcwhip6vTgdVrOtYdjeQeis2ypzes9mZb4EA==", + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@jest/types": "^25.5.0", - "@types/stack-utils": "^1.0.1", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "micromatch": "^4.0.2", - "slash": "^3.0.0", - "stack-utils": "^1.0.1" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=8" } }, - "jest-mock": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-25.5.0.tgz", - "integrity": "sha512-eXWuTV8mKzp/ovHc5+3USJMYsTBhyQ+5A1Mak35dey/RG8GlM4YWVylZuGgVXinaW6tpvk/RSecmF37FKUlpXA==", + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, - "requires": { - "@jest/types": "^25.5.0" - }, "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "jest-pnp-resolver": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", - "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", - "dev": true - }, - "jest-regex-util": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.4.0.tgz", - "integrity": "sha512-WeCpMpNnqJYMQoOjm1nTtsgbR4XHAk1u00qDoNBQoykM280+/TmgA5Qh5giC1ecy6a5d4hbSsHzpBtu5yvlbEg==", + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "jest-resolve": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-25.5.1.tgz", - "integrity": "sha512-Hc09hYch5aWdtejsUZhA+vSzcotf7fajSlPA6EZPE1RmPBAD39XtJhvHWFStid58iit4IPDLI/Da4cwdDmAHiQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "browser-resolve": "^1.11.3", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "jest-pnp-resolver": "^1.2.1", - "read-pkg-up": "^7.0.1", - "realpath-native": "^2.0.0", - "resolve": "^1.17.0", - "slash": "^3.0.0" + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "jest-resolve-dependencies": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-25.5.4.tgz", - "integrity": "sha512-yFmbPd+DAQjJQg88HveObcGBA32nqNZ02fjYmtL16t1xw9bAttSn5UGRRhzMHIQbsep7znWvAvnD4kDqOFM0Uw==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "jest-regex-util": "^25.2.6", - "jest-snapshot": "^25.5.1" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-regex-util": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz", - "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "jest-runner": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-25.5.4.tgz", - "integrity": "sha512-V/2R7fKZo6blP8E9BL9vJ8aTU4TH2beuqGNxHbxi6t14XzTb+x90B3FRgdvuHm41GY8ch4xxvf0ATH4hdpjTqg==", + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "requires": { - "@jest/console": "^25.5.0", - "@jest/environment": "^25.5.0", - "@jest/test-result": "^25.5.0", - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-config": "^25.5.4", - "jest-docblock": "^25.3.0", - "jest-haste-map": "^25.5.1", - "jest-jasmine2": "^25.5.4", - "jest-leak-detector": "^25.5.0", - "jest-message-util": "^25.5.0", - "jest-resolve": "^25.5.1", - "jest-runtime": "^25.5.4", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "source-map-support": "^0.5.6", - "throat": "^5.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-haste-map": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.5.1.tgz", - "integrity": "sha512-dddgh9UZjV7SCDQUrQ+5t9yy8iEgKc1AKqZR9YDww8xsVOtzPQSMVLDChc21+g29oTRexb9/B0bIlZL+sWmvAQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "@types/graceful-fs": "^4.1.2", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.1.2", - "graceful-fs": "^4.2.4", - "jest-serializer": "^25.5.0", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7", - "which": "^2.0.2" - } - }, - "jest-serializer": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.5.0.tgz", - "integrity": "sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4" - } - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "jest-worker": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", - "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", - "dev": true, - "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "jest-runtime": { - "version": "25.5.4", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-25.5.4.tgz", - "integrity": "sha512-RWTt8LeWh3GvjYtASH2eezkc8AehVoWKK20udV6n3/gC87wlTbE1kIA+opCvNWyyPeBs6ptYsc6nyHUb1GlUVQ==", - "dev": true, - "requires": { - "@jest/console": "^25.5.0", - "@jest/environment": "^25.5.0", - "@jest/globals": "^25.5.2", - "@jest/source-map": "^25.5.0", - "@jest/test-result": "^25.5.0", - "@jest/transform": "^25.5.1", - "@jest/types": "^25.5.0", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.4", - "jest-config": "^25.5.4", - "jest-haste-map": "^25.5.1", - "jest-message-util": "^25.5.0", - "jest-mock": "^25.5.0", - "jest-regex-util": "^25.2.6", - "jest-resolve": "^25.5.1", - "jest-snapshot": "^25.5.1", - "jest-util": "^25.5.0", - "jest-validate": "^25.5.0", - "realpath-native": "^2.0.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0", - "yargs": "^15.3.1" - }, - "dependencies": { - "@jest/transform": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-25.5.1.tgz", - "integrity": "sha512-Y8CEoVwXb4QwA6Y/9uDkn0Xfz0finGkieuV0xkdF9UtZGJeLukD5nLkaVrVsODB1ojRWlaoD0AJZpVHCSnJEvg==", - "dev": true, - "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^25.5.0", - "babel-plugin-istanbul": "^6.0.0", - "chalk": "^3.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^25.5.1", - "jest-regex-util": "^25.2.6", - "jest-util": "^25.5.0", - "micromatch": "^4.0.2", - "pirates": "^4.0.1", - "realpath-native": "^2.0.0", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - } - }, - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-haste-map": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.5.1.tgz", - "integrity": "sha512-dddgh9UZjV7SCDQUrQ+5t9yy8iEgKc1AKqZR9YDww8xsVOtzPQSMVLDChc21+g29oTRexb9/B0bIlZL+sWmvAQ==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "@types/graceful-fs": "^4.1.2", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.1.2", - "graceful-fs": "^4.2.4", - "jest-serializer": "^25.5.0", - "jest-util": "^25.5.0", - "jest-worker": "^25.5.0", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7", - "which": "^2.0.2" - } - }, - "jest-regex-util": { - "version": "25.2.6", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz", - "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==", - "dev": true - }, - "jest-serializer": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.5.0.tgz", - "integrity": "sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4" - } - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "jest-worker": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz", - "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==", - "dev": true, - "requires": { - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "jest-serializer": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.4.0.tgz", - "integrity": "sha512-RDhpcn5f1JYTX2pvJAGDcnsNTnsV9bjYPU8xcV+xPwOXnUPOQwf4ZEuiU6G9H1UztH+OapMgu/ckEVwO87PwnQ==", + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, - "requires": { - "@types/node": "*", - "graceful-fs": "^4.2.4" - } - }, - "jest-snapshot": { - "version": "25.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-25.5.1.tgz", - "integrity": "sha512-C02JE1TUe64p2v1auUJ2ze5vcuv32tkv9PyhEb318e8XOKF7MOyXdJ7kdjbvrp3ChPLU2usI7Rjxs97Dj5P0uQ==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0", - "@jest/types": "^25.5.0", - "@types/prettier": "^1.19.0", - "chalk": "^3.0.0", - "expect": "^25.5.0", - "graceful-fs": "^4.2.4", - "jest-diff": "^25.5.0", - "jest-get-type": "^25.2.6", - "jest-matcher-utils": "^25.5.0", - "jest-message-util": "^25.5.0", - "jest-resolve": "^25.5.1", - "make-dir": "^3.0.0", - "natural-compare": "^1.4.0", - "pretty-format": "^25.5.0", - "semver": "^6.3.0" + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=4" } }, - "jest-util": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.4.2.tgz", - "integrity": "sha512-YuxxpXU6nlMan9qyLuxHaMMOzXAl5aGZWCSzben5DhLHemYQxCc4YK+4L3ZrCutT8GPQ+ui9k5D8rUJoDioMnA==", + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, - "requires": { - "@jest/types": "^27.4.2", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.4", - "picomatch": "^2.2.3" + "dependencies": { + "estraverse": "^5.1.0" }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" } }, - "jest-validate": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-25.5.0.tgz", - "integrity": "sha512-okUFKqhZIpo3jDdtUXUZ2LxGUZJIlfdYBvZb1aczzxrlyMlqdnnws9MOxezoLGhSaFc2XYaHNReNQfj5zPIWyQ==", + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "camelcase": "^5.3.1", - "chalk": "^3.0.0", - "jest-get-type": "^25.2.6", - "leven": "^3.1.0", - "pretty-format": "^25.5.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=4.0" } }, - "jest-watcher": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-25.5.0.tgz", - "integrity": "sha512-XrSfJnVASEl+5+bb51V0Q7WQx65dTSk7NL4yDdVjPnRNpM0hG+ncFmDYJo9O8jaSRcAitVbuVawyXCRoxGrT5Q==", + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, - "requires": { - "@jest/test-result": "^25.5.0", - "@jest/types": "^25.5.0", - "ansi-escapes": "^4.2.1", - "chalk": "^3.0.0", - "jest-util": "^25.5.0", - "string-length": "^3.1.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-util": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz", - "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==", - "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "chalk": "^3.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "make-dir": "^3.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=0.10.0" } }, - "jest-worker": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.4.6.tgz", - "integrity": "sha512-gHWJF/6Xi5CTG5QCvROr6GcmpIqNYpDJyc8A1h/DyXqH1tD6SnRCM0d3U5msV31D2LB/U+E0M+W4oyvKV44oNw==", + "node_modules/event-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-4.0.1.tgz", + "integrity": "sha512-qACXdu/9VHPBzcyhdOWR5/IahhGMf0roTeZJfzz077GwylcDd90yOHLouhmv7GJ5XzPi6ekaQWd8AvPP2nOvpA==", "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "duplexer": "^0.1.1", + "from": "^0.1.7", + "map-stream": "0.0.7", + "pause-stream": "^0.0.11", + "split": "^1.0.1", + "stream-combiner": "^0.2.2", + "through": "^2.3.8" } }, - "js-sha3": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "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" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "engines": { + "node": ">= 0.8.0" } }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" - }, - "jsdom": { - "version": "15.2.1", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-15.2.1.tgz", - "integrity": "sha512-fAl1W0/7T2G5vURSyxBzrJ1LSdQn6Tr5UX/xD4PXDx/PDgwygedfW6El/KIj3xJ7FU61TTYnc/l/B7P49Eqt6g==", - "dev": true, - "requires": { - "abab": "^2.0.0", - "acorn": "^7.1.0", - "acorn-globals": "^4.3.2", - "array-equal": "^1.0.0", - "cssom": "^0.4.1", - "cssstyle": "^2.0.0", - "data-urls": "^1.1.0", - "domexception": "^1.0.1", - "escodegen": "^1.11.1", - "html-encoding-sniffer": "^1.0.2", - "nwsapi": "^2.2.0", - "parse5": "5.1.0", - "pn": "^1.1.0", - "request": "^2.88.0", - "request-promise-native": "^1.0.7", - "saxes": "^3.1.9", - "symbol-tree": "^3.2.2", - "tough-cookie": "^3.0.1", - "w3c-hr-time": "^1.0.1", - "w3c-xmlserializer": "^1.1.2", - "webidl-conversions": "^4.0.2", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^7.0.0", - "ws": "^7.0.0", - "xml-name-validator": "^3.0.0" - }, - "dependencies": { - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - }, - "tough-cookie": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz", - "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==", - "dev": true, - "requires": { - "ip-regex": "^2.1.0", - "psl": "^1.1.28", - "punycode": "^2.1.1" - } - } + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true + "node_modules/external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "dev": true, + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "engines": [ + "node >=0.6.0" + ] }, - "json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } }, - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } }, - "jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=" + "node_modules/fecha": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", + "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==" }, - "jsprim": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", - "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" + "node_modules/figlet": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.6.0.tgz", + "integrity": "sha512-31EQGhCEITv6+hi2ORRPyn3bulaV9Fl4xOdR169cBzH/n1UqcxsiSB/noo6SJdD7Kfb1Ljit+IgR1USvF/XbdA==", + "dev": true, + "bin": { + "figlet": "bin/index.js" + }, + "engines": { + "node": ">= 0.4.0" } }, - "jsx-ast-utils": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz", - "integrity": "sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA==", + "node_modules/figures": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz", + "integrity": "sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==", "dev": true, - "requires": { - "array-includes": "^3.1.3", - "object.assign": "^4.1.2" + "dependencies": { + "escape-string-regexp": "^5.0.0", + "is-unicode-supported": "^1.2.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true - }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true + "node_modules/figures/node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "kuler": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", - "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } }, - "language-subtag-registry": { - "version": "0.3.21", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz", - "integrity": "sha512-L0IqwlIXjilBVVYKFT37X9Ih11Um5NEl9cbJIuU/SwP/zEEAbBPOnEeeuxVMf45ydWQRDQN3Nqc96OgbH1K+Pg==", - "dev": true + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } }, - "language-tags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha1-0yHbxNowuovzAk4ED6XBRmH5GTo=", + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "requires": { - "language-subtag-registry": "~0.3.2" + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz", + "integrity": "sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA==", + "dependencies": { + "is-buffer": "~2.0.3" + }, + "bin": { + "flat": "cli.js" } }, - "leven": { + "node_modules/flat-cache": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz", + "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==", + "dev": true, + "dependencies": { + "flatted": "^3.2.7", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=12.0.0" + } }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "node_modules/flat-cache/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "node_modules/flatted": { + "version": "3.2.9", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", + "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", "dev": true }, - "loader-fs-cache": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/loader-fs-cache/-/loader-fs-cache-1.0.3.tgz", - "integrity": "sha512-ldcgZpjNJj71n+2Mf6yetz+c9bM4xpKtNds4LbqXzU/PTdeAX0g3ytnU1AJMEcTk2Lex4Smpe3Q/eCTsvUBxbA==", + "node_modules/fn.name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", + "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "dev": true, - "requires": { - "find-cache-dir": "^0.1.1", - "mkdirp": "^0.5.1" + "dependencies": { + "is-callable": "^1.1.3" } }, - "loader-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", - "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", - "dev": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^1.0.1" - }, - "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - } + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "requires": { - "p-locate": "^4.1.0" + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "engines": { + "node": "*" + } }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", - "dev": true + "node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "node_modules/from": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", + "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==", "dev": true }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "node_modules/fs-readdir-recursive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", "dev": true }, - "lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "logform": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/logform/-/logform-2.4.2.tgz", - "integrity": "sha512-W4c9himeAwXEdZ05dQNerhFz2XG80P9Oj0loPUMV23VC2it0orMHQhJm4hdnnor3rd1HsGf6a2lPwBM1zeXHGw==", - "requires": { - "@colors/colors": "1.5.0", - "fecha": "^4.2.0", - "ms": "^2.1.1", - "safe-stable-stringify": "^2.3.1", - "triple-beam": "^1.3.0" + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "lolex": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", - "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/function.prototype.name": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", + "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", "dev": true, - "requires": { - "@sinonjs/commons": "^1.7.0" + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" } }, - "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" + "engines": { + "node": "6.* || 8.* || >= 10.*" } }, - "makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "dev": true, - "requires": { - "tmpl": "1.0.5" + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true - }, - "map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=", - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "requires": { - "object-visit": "^1.0.0" + "engines": { + "node": ">=8.0.0" } }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "merkle-lib": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/merkle-lib/-/merkle-lib-2.0.10.tgz", - "integrity": "sha512-XrNQvUbn1DL5hKNe46Ccs+Tu3/PYOlrcZILuGUhb95oKBPjc/nmIC8D462PQkipVDGKRvwhn+QFg2cCdIvmDJA==" + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "merkle-tools": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merkle-tools/-/merkle-tools-1.4.1.tgz", - "integrity": "sha512-QhO1/eDvAnyn0oXgRWlydVWYVMrVJwrdNICYvQXYhBU1Bjj1LoxsQxdAKJ5ttN3L6pkKhjcK6O4k927kgTMdqw==", - "requires": { - "js-sha3": "^0.8.0" + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "dependencies": { + "assert-plus": "^1.0.0" } }, - "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==" - }, - "mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "requires": { - "mime-db": "1.51.0" + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "optional": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" } }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "requires": { - "brace-expansion": "^1.1.7" + "engines": { + "node": ">=4" } }, - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true - }, - "mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", "dev": true, - "requires": { - "minimist": "^1.2.5" + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "moment-mini": { - "version": "2.24.0", - "resolved": "https://registry.npmjs.org/moment-mini/-/moment-mini-2.24.0.tgz", - "integrity": "sha512-9ARkWHBs+6YJIvrIp0Ik5tyTTtP9PoV0Ssu2Ocq5y9v8+NOOpWiRshAp8c4rZVWTOe+157on/5G+zj5pwIQFEQ==" - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - } - }, - "natural-compare": { + "node_modules/graphemer": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true + "node_modules/har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/har-validator/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/har-validator/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hash-base": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "engines": { + "node": ">=4" + } }, - "node-addon-api": { + "node_modules/html-escaper": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", - "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" + "node_modules/husky": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", + "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=14" }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, "dependencies": { - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } + { + "type": "consulting", + "url": "https://feross.org/support" } + ] + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" } }, - "node-gyp-build": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.3.0.tgz", - "integrity": "sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==" + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", - "dev": true + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "node-notifier": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-6.0.0.tgz", - "integrity": "sha512-SVfQ/wMw+DesunOm5cKqr6yDcvUTDl/yc97ybGHMrteNEY6oekXpNpS3lZwgLlwz0FLgHoiW28ZpmBHUDg37cw==", + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, - "optional": true, - "requires": { - "growly": "^1.3.0", - "is-wsl": "^2.1.1", - "semver": "^6.3.0", - "shellwords": "^0.1.1", - "which": "^1.3.1" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "optional": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "optional": true, - "requires": { - "isexe": "^2.0.0" - } - } + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local/node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/inquirer": { + "version": "9.2.11", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-9.2.11.tgz", + "integrity": "sha512-B2LafrnnhbRzCWfAdOXisUzL89Kg8cVJlYmhqoi3flSiV/TveO+nsXwgKr9h9PIo+J1hz7nBSk6gegRIMBBf7g==", + "dev": true, + "dependencies": { + "@ljharb/through": "^2.3.9", + "ansi-escapes": "^4.3.2", + "chalk": "^5.3.0", + "cli-cursor": "^3.1.0", + "cli-width": "^4.1.0", + "external-editor": "^3.1.0", + "figures": "^5.0.0", + "lodash": "^4.17.21", + "mute-stream": "1.0.0", + "ora": "^5.4.1", + "run-async": "^3.0.0", + "rxjs": "^7.8.1", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^6.2.0" + }, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/inquirer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/inquirer/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "dev": true, + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node-releases": { + "node_modules/inquirer/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", - "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/inquirer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "node_modules/inquirer/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" } }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } }, - "npm": { - "version": "6.14.15", - "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.15.tgz", - "integrity": "sha512-dkcQc4n+DiJAMYG2haNAMyJbmuvevjXz+WC9dCUzodw8EovwTIc6CATSsTEplCY6c0jG4OshxFGFJsrnKJguWA==", + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", "dev": true, - "requires": { - "JSONStream": "^1.3.5", - "abbrev": "~1.1.1", - "ansicolors": "~0.3.2", - "ansistyles": "~0.1.3", - "aproba": "^2.0.0", - "archy": "~1.0.0", - "bin-links": "^1.1.8", - "bluebird": "^3.5.5", - "byte-size": "^5.0.1", - "cacache": "^12.0.3", - "call-limit": "^1.1.1", - "chownr": "^1.1.4", - "ci-info": "^2.0.0", - "cli-columns": "^3.1.2", - "cli-table3": "^0.5.1", - "cmd-shim": "^3.0.3", - "columnify": "~1.5.4", - "config-chain": "^1.1.12", - "debuglog": "*", - "detect-indent": "~5.0.0", - "detect-newline": "^2.1.0", - "dezalgo": "~1.0.3", - "editor": "~1.0.0", - "figgy-pudding": "^3.5.1", - "find-npm-prefix": "^1.0.2", - "fs-vacuum": "~1.2.10", - "fs-write-stream-atomic": "~1.0.10", - "gentle-fs": "^2.3.1", - "glob": "^7.1.6", - "graceful-fs": "^4.2.4", - "has-unicode": "~2.0.1", - "hosted-git-info": "^2.8.9", - "iferr": "^1.0.2", - "imurmurhash": "*", - "infer-owner": "^1.0.4", - "inflight": "~1.0.6", - "inherits": "^2.0.4", - "ini": "^1.3.8", - "init-package-json": "^1.10.3", - "is-cidr": "^3.0.0", - "json-parse-better-errors": "^1.0.2", - "lazy-property": "~1.0.0", - "libcipm": "^4.0.8", - "libnpm": "^3.0.1", - "libnpmaccess": "^3.0.2", - "libnpmhook": "^5.0.3", - "libnpmorg": "^1.0.1", - "libnpmsearch": "^2.0.2", - "libnpmteam": "^1.0.2", - "libnpx": "^10.2.4", - "lock-verify": "^2.1.0", - "lockfile": "^1.0.4", - "lodash._baseindexof": "*", - "lodash._baseuniq": "~4.6.0", - "lodash._bindcallback": "*", - "lodash._cacheindexof": "*", - "lodash._createcache": "*", - "lodash._getnative": "*", - "lodash.clonedeep": "~4.5.0", - "lodash.restparam": "*", - "lodash.union": "~4.6.0", - "lodash.uniq": "~4.5.0", - "lodash.without": "~4.4.0", - "lru-cache": "^5.1.1", - "meant": "^1.0.2", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.5", - "move-concurrently": "^1.0.1", - "node-gyp": "^5.1.0", - "nopt": "^4.0.3", - "normalize-package-data": "^2.5.0", - "npm-audit-report": "^1.3.3", - "npm-cache-filename": "~1.0.2", - "npm-install-checks": "^3.0.2", - "npm-lifecycle": "^3.1.5", - "npm-package-arg": "^6.1.1", - "npm-packlist": "^1.4.8", - "npm-pick-manifest": "^3.0.2", - "npm-profile": "^4.0.4", - "npm-registry-fetch": "^4.0.7", - "npm-user-validate": "^1.0.1", - "npmlog": "~4.1.2", - "once": "~1.4.0", - "opener": "^1.5.2", - "osenv": "^0.1.5", - "pacote": "^9.5.12", - "path-is-inside": "~1.0.2", - "promise-inflight": "~1.0.1", - "qrcode-terminal": "^0.12.0", - "query-string": "^6.8.2", - "qw": "~1.0.1", - "read": "~1.0.7", - "read-cmd-shim": "^1.0.5", - "read-installed": "~4.0.3", - "read-package-json": "^2.1.1", - "read-package-tree": "^5.3.1", - "readable-stream": "^3.6.0", - "readdir-scoped-modules": "^1.1.0", - "request": "^2.88.0", - "retry": "^0.12.0", - "rimraf": "^2.7.1", - "safe-buffer": "^5.1.2", - "semver": "^5.7.1", - "sha": "^3.0.0", - "slide": "~1.1.6", - "sorted-object": "~2.0.1", - "sorted-union-stream": "~2.1.3", - "ssri": "^6.0.2", - "stringify-package": "^1.0.1", - "tar": "^4.4.19", - "text-table": "~0.2.0", - "tiny-relative-date": "^1.3.0", - "uid-number": "0.0.6", - "umask": "~1.1.0", - "unique-filename": "^1.1.1", - "unpipe": "~1.0.0", - "update-notifier": "^2.5.0", - "uuid": "^3.3.3", - "validate-npm-package-license": "^3.0.4", - "validate-npm-package-name": "~3.0.0", - "which": "^1.3.1", - "worker-farm": "^1.7.0", - "write-file-atomic": "^2.4.3" - }, - "dependencies": { - "JSONStream": { - "version": "1.3.5", - "bundled": true, - "dev": true, - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - } - }, - "abbrev": { - "version": "1.1.1", - "bundled": true, - "dev": true - }, - "agent-base": { - "version": "4.3.0", - "bundled": true, - "dev": true, - "requires": { - "es6-promisify": "^5.0.0" - } - }, - "agentkeepalive": { - "version": "3.5.2", - "bundled": true, - "dev": true, - "requires": { - "humanize-ms": "^1.2.1" - } - }, - "ansi-align": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^2.0.0" - } - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "bundled": true, - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "ansicolors": { - "version": "0.3.2", - "bundled": true, - "dev": true - }, - "ansistyles": { - "version": "0.1.3", - "bundled": true, - "dev": true - }, - "aproba": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "archy": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "are-we-there-yet": { - "version": "1.1.4", - "bundled": true, - "dev": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "asap": { - "version": "2.0.6", - "bundled": true, - "dev": true - }, - "asn1": { - "version": "0.2.4", - "bundled": true, - "dev": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "bundled": true, - "dev": true - }, - "aws-sign2": { - "version": "0.7.0", - "bundled": true, - "dev": true - }, - "aws4": { - "version": "1.8.0", - "bundled": true, - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "bin-links": { - "version": "1.1.8", - "bundled": true, - "dev": true, - "requires": { - "bluebird": "^3.5.3", - "cmd-shim": "^3.0.0", - "gentle-fs": "^2.3.0", - "graceful-fs": "^4.1.15", - "npm-normalize-package-bin": "^1.0.0", - "write-file-atomic": "^2.3.0" - } - }, - "bluebird": { - "version": "3.5.5", - "bundled": true, - "dev": true - }, - "boxen": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-align": "^2.0.0", - "camelcase": "^4.0.0", - "chalk": "^2.0.1", - "cli-boxes": "^1.0.0", - "string-width": "^2.0.0", - "term-size": "^1.2.0", - "widest-line": "^2.0.0" - } - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "buffer-from": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "builtins": { - "version": "1.0.3", - "bundled": true, - "dev": true - }, - "byline": { - "version": "5.0.0", - "bundled": true, - "dev": true - }, - "byte-size": { - "version": "5.0.1", - "bundled": true, - "dev": true - }, - "cacache": { - "version": "12.0.3", - "bundled": true, - "dev": true, - "requires": { - "bluebird": "^3.5.5", - "chownr": "^1.1.1", - "figgy-pudding": "^3.5.1", - "glob": "^7.1.4", - "graceful-fs": "^4.1.15", - "infer-owner": "^1.0.3", - "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.1", - "move-concurrently": "^1.0.1", - "promise-inflight": "^1.0.1", - "rimraf": "^2.6.3", - "ssri": "^6.0.1", - "unique-filename": "^1.1.1", - "y18n": "^4.0.0" - } - }, - "call-limit": { - "version": "1.1.1", - "bundled": true, - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "bundled": true, - "dev": true - }, - "capture-stack-trace": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "caseless": { - "version": "0.12.0", - "bundled": true, - "dev": true - }, - "chalk": { - "version": "2.4.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "chownr": { - "version": "1.1.4", - "bundled": true, - "dev": true - }, - "ci-info": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "cidr-regex": { - "version": "2.0.10", - "bundled": true, - "dev": true, - "requires": { - "ip-regex": "^2.1.0" - } - }, - "cli-boxes": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "cli-columns": { - "version": "3.1.2", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^2.0.0", - "strip-ansi": "^3.0.1" - } - }, - "cli-table3": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "colors": "^1.1.2", - "object-assign": "^4.1.0", - "string-width": "^2.1.1" - } - }, - "cliui": { - "version": "5.0.0", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "bundled": true, - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "string-width": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "clone": { - "version": "1.0.4", - "bundled": true, - "dev": true - }, - "cmd-shim": { - "version": "3.0.3", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "mkdirp": "~0.5.0" - } - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "color-convert": { - "version": "1.9.1", - "bundled": true, - "dev": true, - "requires": { - "color-name": "^1.1.1" - } - }, - "color-name": { - "version": "1.1.3", - "bundled": true, - "dev": true - }, - "colors": { - "version": "1.3.3", - "bundled": true, - "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + }, + "node_modules/is-async-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.0.0.tgz", + "integrity": "sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dev": true, + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "optional": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-buffer": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz", + "integrity": "sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "engines": { + "node": ">=4" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", + "integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.0.2.tgz", + "integrity": "sha512-0by5vtUJs8iFQb5TYUHHPudOR+qXYIMKtiUzvLIZITZUjknFmziyBJuLhVRc+Ds0dREFlskDNJKYIdIzu/9pfw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-interactive": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", + "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dev": true, + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dev": true, + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", + "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", + "dev": true, + "dependencies": { + "which-typed-array": "^1.1.11" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "node_modules/is-unicode-supported": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", + "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/istanbul-lib-report/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", + "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/iterator.prototype": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.2.tgz", + "integrity": "sha512-DR33HMMr8EzwuRL8Y9D3u2BMj8+RqSE850jfGu59kS7tbmPLzGkZmVSfyCFSDxuZiEY6Rzt3T2NA/qU+NwVj1w==", + "dev": true, + "dependencies": { + "define-properties": "^1.2.1", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "reflect.getprototypeof": "^1.0.4", + "set-function-name": "^2.0.1" + } + }, + "node_modules/jackspeak": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.3.tgz", + "integrity": "sha512-R2bUw+kVZFS/h1AZqBKrSgDmdmjApzgY0AlCPumopFiAlbUxE2gf+SCuBzQ0cP5hHmUmFYF5yw55T97Th5Kstg==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-changed-files/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-circus/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { "optional": true }, - "columnify": { - "version": "1.5.4", - "bundled": true, - "dev": true, - "requires": { - "strip-ansi": "^3.0.0", - "wcwidth": "^1.0.0" - } - }, - "combined-stream": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "concat-stream": { - "version": "1.6.2", - "bundled": true, - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "config-chain": { - "version": "1.1.12", - "bundled": true, - "dev": true, - "requires": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" - } - }, - "configstore": { - "version": "3.1.5", - "bundled": true, - "dev": true, - "requires": { - "dot-prop": "^4.2.1", - "graceful-fs": "^4.1.2", - "make-dir": "^1.0.0", - "unique-string": "^1.0.0", - "write-file-atomic": "^2.0.0", - "xdg-basedir": "^3.0.0" - } - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "copy-concurrently": { - "version": "1.0.5", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^1.1.1", - "fs-write-stream-atomic": "^1.0.8", - "iferr": "^0.1.5", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.0" - }, - "dependencies": { - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "iferr": { - "version": "0.1.5", - "bundled": true, - "dev": true - } - } - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "create-error-class": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "capture-stack-trace": "^1.0.0" - } - }, - "cross-spawn": { - "version": "5.1.0", - "bundled": true, - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "dependencies": { - "lru-cache": { - "version": "4.1.5", - "bundled": true, - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "yallist": { - "version": "2.1.2", - "bundled": true, - "dev": true - } - } - }, - "crypto-random-string": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "cyclist": { - "version": "0.2.2", - "bundled": true, - "dev": true - }, - "dashdash": { - "version": "1.14.1", - "bundled": true, - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "debug": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "bundled": true, - "dev": true - } - } - }, - "debuglog": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "decamelize": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "decode-uri-component": { - "version": "0.2.0", - "bundled": true, - "dev": true - }, - "deep-extend": { - "version": "0.6.0", - "bundled": true, - "dev": true - }, - "defaults": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "clone": "^1.0.2" - } - }, - "define-properties": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "requires": { - "object-keys": "^1.0.12" - } - }, - "delayed-stream": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "detect-indent": { - "version": "5.0.0", - "bundled": true, - "dev": true - }, - "detect-newline": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "dezalgo": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "asap": "^2.0.0", - "wrappy": "1" - } - }, - "dot-prop": { - "version": "4.2.1", - "bundled": true, - "dev": true, - "requires": { - "is-obj": "^1.0.0" - } - }, - "dotenv": { - "version": "5.0.1", - "bundled": true, - "dev": true - }, - "duplexer3": { - "version": "0.1.4", - "bundled": true, - "dev": true - }, - "duplexify": { - "version": "3.6.0", - "bundled": true, - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "ecc-jsbn": { - "version": "0.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "editor": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "emoji-regex": { - "version": "7.0.3", - "bundled": true, - "dev": true - }, - "encoding": { - "version": "0.1.12", - "bundled": true, - "dev": true, - "requires": { - "iconv-lite": "~0.4.13" - } - }, - "end-of-stream": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "env-paths": { - "version": "2.2.0", - "bundled": true, - "dev": true - }, - "err-code": { - "version": "1.1.2", - "bundled": true, - "dev": true - }, - "errno": { - "version": "0.1.7", - "bundled": true, - "dev": true, - "requires": { - "prr": "~1.0.1" - } - }, - "es-abstract": { - "version": "1.12.0", - "bundled": true, - "dev": true, - "requires": { - "es-to-primitive": "^1.1.1", - "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" - } - }, - "es-to-primitive": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "es6-promise": { - "version": "4.2.8", - "bundled": true, - "dev": true - }, - "es6-promisify": { - "version": "5.0.0", - "bundled": true, - "dev": true, - "requires": { - "es6-promise": "^4.0.3" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "bundled": true, - "dev": true - }, - "execa": { - "version": "0.7.0", - "bundled": true, - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "dependencies": { - "get-stream": { - "version": "3.0.0", - "bundled": true, - "dev": true - } - } - }, - "extend": { - "version": "3.0.2", - "bundled": true, - "dev": true - }, - "extsprintf": { - "version": "1.3.0", - "bundled": true, - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "figgy-pudding": { - "version": "3.5.1", - "bundled": true, - "dev": true - }, - "find-npm-prefix": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "flush-write-stream": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.4" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "forever-agent": { - "version": "0.6.1", - "bundled": true, - "dev": true - }, - "form-data": { - "version": "2.3.2", - "bundled": true, - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "1.0.6", - "mime-types": "^2.1.12" - } - }, - "from2": { - "version": "2.3.0", - "bundled": true, - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "fs-minipass": { - "version": "1.2.7", - "bundled": true, - "dev": true, - "requires": { - "minipass": "^2.6.0" - }, - "dependencies": { - "minipass": { - "version": "2.9.0", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - } - } - }, - "fs-vacuum": { - "version": "1.2.10", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "path-is-inside": "^1.0.1", - "rimraf": "^2.5.2" - } - }, - "fs-write-stream-atomic": { - "version": "1.0.10", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "iferr": "^0.1.5", - "imurmurhash": "^0.1.4", - "readable-stream": "1 || 2" - }, - "dependencies": { - "iferr": { - "version": "0.1.5", - "bundled": true, - "dev": true - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "function-bind": { - "version": "1.1.1", - "bundled": true, - "dev": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - }, - "dependencies": { - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - } - } - }, - "genfun": { - "version": "5.0.0", - "bundled": true, - "dev": true - }, - "gentle-fs": { - "version": "2.3.1", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^1.1.2", - "chownr": "^1.1.2", - "cmd-shim": "^3.0.3", - "fs-vacuum": "^1.2.10", - "graceful-fs": "^4.1.11", - "iferr": "^0.1.5", - "infer-owner": "^1.0.4", - "mkdirp": "^0.5.1", - "path-is-inside": "^1.0.2", - "read-cmd-shim": "^1.0.1", - "slide": "^1.1.6" - }, - "dependencies": { - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "iferr": { - "version": "0.1.5", - "bundled": true, - "dev": true - } - } - }, - "get-caller-file": { - "version": "2.0.5", - "bundled": true, - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "bundled": true, - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "getpass": { - "version": "0.1.7", - "bundled": true, - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "glob": { - "version": "7.1.6", - "bundled": true, - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "global-dirs": { - "version": "0.1.1", - "bundled": true, - "dev": true, - "requires": { - "ini": "^1.3.4" - } - }, - "got": { - "version": "6.7.1", - "bundled": true, - "dev": true, - "requires": { - "create-error-class": "^3.0.0", - "duplexer3": "^0.1.4", - "get-stream": "^3.0.0", - "is-redirect": "^1.0.0", - "is-retry-allowed": "^1.0.0", - "is-stream": "^1.0.0", - "lowercase-keys": "^1.0.0", - "safe-buffer": "^5.0.1", - "timed-out": "^4.0.0", - "unzip-response": "^2.0.1", - "url-parse-lax": "^1.0.0" - }, - "dependencies": { - "get-stream": { - "version": "3.0.0", - "bundled": true, - "dev": true - } - } - }, - "graceful-fs": { - "version": "4.2.4", - "bundled": true, - "dev": true - }, - "har-schema": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "har-validator": { - "version": "5.1.5", - "bundled": true, - "dev": true, - "requires": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "bundled": true, - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "fast-deep-equal": { - "version": "3.1.3", - "bundled": true, - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "bundled": true, - "dev": true - } - } - }, - "has": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "has-symbols": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, - "hosted-git-info": { - "version": "2.8.9", - "bundled": true, - "dev": true - }, - "http-cache-semantics": { - "version": "3.8.1", - "bundled": true, - "dev": true - }, - "http-proxy-agent": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "agent-base": "4", - "debug": "3.1.0" - } - }, - "http-signature": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "https-proxy-agent": { - "version": "2.2.4", - "bundled": true, - "dev": true, - "requires": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" - } - }, - "humanize-ms": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "requires": { - "ms": "^2.0.0" - } - }, - "iconv-lite": { - "version": "0.4.23", - "bundled": true, - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "iferr": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "ignore-walk": { - "version": "3.0.3", - "bundled": true, - "dev": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "import-lazy": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "imurmurhash": { - "version": "0.1.4", - "bundled": true, - "dev": true - }, - "infer-owner": { - "version": "1.0.4", - "bundled": true, - "dev": true - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "bundled": true, - "dev": true - }, - "ini": { - "version": "1.3.8", - "bundled": true, - "dev": true - }, - "init-package-json": { - "version": "1.10.3", - "bundled": true, - "dev": true, - "requires": { - "glob": "^7.1.1", - "npm-package-arg": "^4.0.0 || ^5.0.0 || ^6.0.0", - "promzard": "^0.3.0", - "read": "~1.0.1", - "read-package-json": "1 || 2", - "semver": "2.x || 3.x || 4 || 5", - "validate-npm-package-license": "^3.0.1", - "validate-npm-package-name": "^3.0.0" - } - }, - "ip": { - "version": "1.1.5", - "bundled": true, - "dev": true - }, - "ip-regex": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "is-callable": { - "version": "1.1.4", - "bundled": true, - "dev": true - }, - "is-ci": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "requires": { - "ci-info": "^1.5.0" - }, - "dependencies": { - "ci-info": { - "version": "1.6.0", - "bundled": true, - "dev": true - } - } - }, - "is-cidr": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "cidr-regex": "^2.0.10" - } - }, - "is-date-object": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-installed-globally": { - "version": "0.1.0", - "bundled": true, - "dev": true, - "requires": { - "global-dirs": "^0.1.0", - "is-path-inside": "^1.0.0" - } - }, - "is-npm": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "is-obj": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "is-path-inside": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "path-is-inside": "^1.0.1" - } - }, - "is-redirect": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "is-regex": { - "version": "1.0.4", - "bundled": true, - "dev": true, - "requires": { - "has": "^1.0.1" - } - }, - "is-retry-allowed": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "is-stream": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "is-symbol": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "has-symbols": "^1.0.0" - } - }, - "is-typedarray": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "isexe": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "isstream": { - "version": "0.1.2", - "bundled": true, - "dev": true - }, - "jsbn": { - "version": "0.1.1", - "bundled": true, - "dev": true, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-html-reporter": { + "version": "3.10.2", + "resolved": "https://registry.npmjs.org/jest-html-reporter/-/jest-html-reporter-3.10.2.tgz", + "integrity": "sha512-XRBa5ylHPUQoo8aJXEEdKsTruieTdlPbRktMx9WG9evMTxzJEKGFMaw5x+sQxJuClWdNR72GGwbOaz+6HIlksA==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.0.2", + "@jest/types": "^29.0.2", + "dateformat": "3.0.2", + "mkdirp": "^1.0.3", + "strip-ansi": "6.0.1", + "xmlbuilder": "15.0.0" + }, + "engines": { + "node": ">=4.8.3" + }, + "peerDependencies": { + "jest": "19.x - 29.x", + "typescript": "^3.7.x || ^4.3.x || ^5.x" + } + }, + "node_modules/jest-html-reporter/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest/node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==", + "dev": true + }, + "node_modules/js-sha3": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "dev": true, + "engines": [ + "node >= 0.2.0" + ] + }, + "node_modules/JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "dependencies": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + }, + "bin": { + "JSONStream": "bin.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jsprim": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keyv": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz", + "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==", + "dev": true, + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/kuler": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", + "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true + }, + "node_modules/language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/log-symbols": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/log-symbols/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/log-symbols/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/log-symbols/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/log-symbols/node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/log-symbols/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/logform": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/logform/-/logform-2.5.1.tgz", + "integrity": "sha512-9FyqAm9o9NKKfiAKfZoYo9bGXXuwMkxQiQttkT4YjjVtQVIQtK6LmVtlxmCaFswo6N4AfEkHqZTV0taDtPotNg==", + "dependencies": { + "@colors/colors": "1.5.0", + "@types/triple-beam": "^1.3.2", + "fecha": "^4.2.0", + "ms": "^2.1.1", + "safe-stable-stringify": "^2.3.1", + "triple-beam": "^1.3.0" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha512-C0X0KQmGm3N2ftbTGBhSyuydQ+vV1LC3f3zPvT3RXHXNZrvfPZcoXp/N5DOa8vedX/rTMm2CjTtivFg2STJMRQ==", + "dev": true + }, + "node_modules/md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merkle-lib": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/merkle-lib/-/merkle-lib-2.0.10.tgz", + "integrity": "sha512-XrNQvUbn1DL5hKNe46Ccs+Tu3/PYOlrcZILuGUhb95oKBPjc/nmIC8D462PQkipVDGKRvwhn+QFg2cCdIvmDJA==" + }, + "node_modules/merkle-tools": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merkle-tools/-/merkle-tools-1.4.1.tgz", + "integrity": "sha512-QhO1/eDvAnyn0oXgRWlydVWYVMrVJwrdNICYvQXYhBU1Bjj1LoxsQxdAKJ5ttN3L6pkKhjcK6O4k927kgTMdqw==", + "dependencies": { + "js-sha3": "^0.8.0" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.3.tgz", + "integrity": "sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/moment-mini": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment-mini/-/moment-mini-2.29.4.tgz", + "integrity": "sha512-uhXpYwHFeiTbY9KSgPPRoo1nt8OxNVdMVoTBYHfSEKeRkIkwGpO+gERmhuhBtzfaeOyTkykSrm2+noJBgqt3Hg==" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/mute-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", + "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", + "dev": true, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/npm/-/npm-10.1.0.tgz", + "integrity": "sha512-pZ2xybXzNGbJFZEKNbPoEXsE38Xou9VTnxxBk+B3pz0ndsGCs7iWHoUCPSsISU2hjmkWfDkJo3bYKE8RDOg4eg==", + "bundleDependencies": [ + "@isaacs/string-locale-compare", + "@npmcli/arborist", + "@npmcli/config", + "@npmcli/fs", + "@npmcli/map-workspaces", + "@npmcli/package-json", + "@npmcli/promise-spawn", + "@npmcli/run-script", + "@sigstore/tuf", + "abbrev", + "archy", + "cacache", + "chalk", + "ci-info", + "cli-columns", + "cli-table3", + "columnify", + "fastest-levenshtein", + "fs-minipass", + "glob", + "graceful-fs", + "hosted-git-info", + "ini", + "init-package-json", + "is-cidr", + "json-parse-even-better-errors", + "libnpmaccess", + "libnpmdiff", + "libnpmexec", + "libnpmfund", + "libnpmhook", + "libnpmorg", + "libnpmpack", + "libnpmpublish", + "libnpmsearch", + "libnpmteam", + "libnpmversion", + "make-fetch-happen", + "minimatch", + "minipass", + "minipass-pipeline", + "ms", + "node-gyp", + "nopt", + "npm-audit-report", + "npm-install-checks", + "npm-package-arg", + "npm-pick-manifest", + "npm-profile", + "npm-registry-fetch", + "npm-user-validate", + "npmlog", + "p-map", + "pacote", + "parse-conflict-json", + "proc-log", + "qrcode-terminal", + "read", + "semver", + "ssri", + "supports-color", + "tar", + "text-table", + "tiny-relative-date", + "treeverse", + "validate-npm-package-name", + "which", + "write-file-atomic" + ], + "dev": true, + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/arborist": "^7.1.0", + "@npmcli/config": "^7.2.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/map-workspaces": "^3.0.4", + "@npmcli/package-json": "^5.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.1", + "@sigstore/tuf": "^2.1.0", + "abbrev": "^2.0.0", + "archy": "~1.0.0", + "cacache": "^18.0.0", + "chalk": "^5.3.0", + "ci-info": "^3.8.0", + "cli-columns": "^4.0.0", + "cli-table3": "^0.6.3", + "columnify": "^1.6.0", + "fastest-levenshtein": "^1.0.16", + "fs-minipass": "^3.0.3", + "glob": "^10.3.3", + "graceful-fs": "^4.2.11", + "hosted-git-info": "^7.0.0", + "ini": "^4.1.1", + "init-package-json": "^6.0.0", + "is-cidr": "^4.0.2", + "json-parse-even-better-errors": "^3.0.0", + "libnpmaccess": "^8.0.0", + "libnpmdiff": "^6.0.1", + "libnpmexec": "^7.0.1", + "libnpmfund": "^4.1.1", + "libnpmhook": "^10.0.0", + "libnpmorg": "^6.0.0", + "libnpmpack": "^6.0.1", + "libnpmpublish": "^9.0.0", + "libnpmsearch": "^7.0.0", + "libnpmteam": "^6.0.0", + "libnpmversion": "^5.0.0", + "make-fetch-happen": "^13.0.0", + "minimatch": "^9.0.3", + "minipass": "^7.0.3", + "minipass-pipeline": "^1.2.4", + "ms": "^2.1.2", + "node-gyp": "^9.4.0", + "nopt": "^7.2.0", + "npm-audit-report": "^5.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-profile": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npm-user-validate": "^2.0.0", + "npmlog": "^7.0.1", + "p-map": "^4.0.0", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.1", + "proc-log": "^3.0.0", + "qrcode-terminal": "^0.12.0", + "read": "^2.1.0", + "semver": "^7.5.4", + "ssri": "^10.0.5", + "supports-color": "^9.4.0", + "tar": "^6.1.15", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "treeverse": "^3.0.0", + "validate-npm-package-name": "^5.0.0", + "which": "^4.0.0", + "write-file-atomic": "^5.0.1" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/@colors/colors": { + "version": "1.5.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui": { + "version": "8.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/agent": { + "version": "2.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "lru-cache": "^10.0.1", + "socks-proxy-agent": "^8.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/agent-base": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/http-proxy-agent": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/https-proxy-agent": { + "version": "7.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/socks-proxy-agent": { + "version": "8.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.1", + "debug": "^4.3.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/arborist": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/installed-package-contents": "^2.0.2", + "@npmcli/map-workspaces": "^3.0.2", + "@npmcli/metavuln-calculator": "^7.0.0", + "@npmcli/name-from-folder": "^2.0.0", + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/package-json": "^5.0.0", + "@npmcli/query": "^3.0.0", + "@npmcli/run-script": "^7.0.1", + "bin-links": "^4.0.1", + "cacache": "^18.0.0", + "common-ancestor-path": "^1.0.1", + "hosted-git-info": "^7.0.0", + "json-parse-even-better-errors": "^3.0.0", + "json-stringify-nice": "^1.1.4", + "minimatch": "^9.0.0", + "nopt": "^7.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.0", + "proc-log": "^3.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^1.0.2", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "ssri": "^10.0.5", + "treeverse": "^3.0.0", + "walk-up-path": "^3.0.1" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/config": { + "version": "7.2.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/map-workspaces": "^3.0.2", + "ci-info": "^3.8.0", + "ini": "^4.1.0", + "nopt": "^7.0.0", + "proc-log": "^3.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.5", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/disparity-colors": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ansi-styles": "^4.3.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/fs": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/git": { + "version": "5.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^7.0.0", + "lru-cache": "^10.0.1", + "npm-pick-manifest": "^9.0.0", + "proc-log": "^3.0.0", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/installed-package-contents": { + "version": "2.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "bin": { + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/map-workspaces": { + "version": "3.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^2.0.0", + "glob": "^10.2.2", + "minimatch": "^9.0.0", + "read-package-json-fast": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cacache": "^18.0.0", + "json-parse-even-better-errors": "^3.0.0", + "pacote": "^17.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/name-from-folder": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/node-gyp": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/package-json": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.0", + "glob": "^10.2.2", + "hosted-git-info": "^7.0.0", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "proc-log": "^3.0.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/promise-spawn": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/query": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/run-script": { + "version": "7.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/npm/node_modules/@sigstore/bundle": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/protobuf-specs": { + "version": "0.2.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/sign": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "make-fetch-happen": "^13.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/tuf": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.1", + "tuf-js": "^2.1.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tootallnate/once": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/@tufjs/canonical-json": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tufjs/models": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^9.0.3" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abort-controller": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/npm/node_modules/agent-base": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/npm/node_modules/agentkeepalive": { + "version": "4.5.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/npm/node_modules/aggregate-error": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/are-we-there-yet": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^4.1.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/base64-js": { + "version": "1.5.1", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "json-parse-better-errors": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "bundled": true, - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "bundled": true, - "dev": true - }, - "jsonparse": { - "version": "1.3.1", - "bundled": true, - "dev": true - }, - "jsprim": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "latest-version": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "package-json": "^4.0.0" - } - }, - "lazy-property": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "libcipm": { - "version": "4.0.8", - "bundled": true, - "dev": true, - "requires": { - "bin-links": "^1.1.2", - "bluebird": "^3.5.1", - "figgy-pudding": "^3.5.1", - "find-npm-prefix": "^1.0.2", - "graceful-fs": "^4.1.11", - "ini": "^1.3.5", - "lock-verify": "^2.1.0", - "mkdirp": "^0.5.1", - "npm-lifecycle": "^3.0.0", - "npm-logical-tree": "^1.2.1", - "npm-package-arg": "^6.1.0", - "pacote": "^9.1.0", - "read-package-json": "^2.0.13", - "rimraf": "^2.6.2", - "worker-farm": "^1.6.0" - } - }, - "libnpm": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "bin-links": "^1.1.2", - "bluebird": "^3.5.3", - "find-npm-prefix": "^1.0.2", - "libnpmaccess": "^3.0.2", - "libnpmconfig": "^1.2.1", - "libnpmhook": "^5.0.3", - "libnpmorg": "^1.0.1", - "libnpmpublish": "^1.1.2", - "libnpmsearch": "^2.0.2", - "libnpmteam": "^1.0.2", - "lock-verify": "^2.0.2", - "npm-lifecycle": "^3.0.0", - "npm-logical-tree": "^1.2.1", - "npm-package-arg": "^6.1.0", - "npm-profile": "^4.0.2", - "npm-registry-fetch": "^4.0.0", - "npmlog": "^4.1.2", - "pacote": "^9.5.3", - "read-package-json": "^2.0.13", - "stringify-package": "^1.0.0" - } - }, - "libnpmaccess": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^2.0.0", - "get-stream": "^4.0.0", - "npm-package-arg": "^6.1.0", - "npm-registry-fetch": "^4.0.0" - } - }, - "libnpmconfig": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "requires": { - "figgy-pudding": "^3.5.1", - "find-up": "^3.0.0", - "ini": "^1.3.5" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.2.0", - "bundled": true, - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "bundled": true, - "dev": true - } - } - }, - "libnpmhook": { - "version": "5.0.3", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.4.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" - } - }, - "libnpmorg": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.4.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" - } - }, - "libnpmpublish": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.5.1", - "get-stream": "^4.0.0", - "lodash.clonedeep": "^4.5.0", - "normalize-package-data": "^2.4.0", - "npm-package-arg": "^6.1.0", - "npm-registry-fetch": "^4.0.0", - "semver": "^5.5.1", - "ssri": "^6.0.1" - } - }, - "libnpmsearch": { - "version": "2.0.2", - "bundled": true, - "dev": true, - "requires": { - "figgy-pudding": "^3.5.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" - } - }, - "libnpmteam": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.4.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" - } - }, - "libnpx": { - "version": "10.2.4", - "bundled": true, - "dev": true, - "requires": { - "dotenv": "^5.0.1", - "npm-package-arg": "^6.0.0", - "rimraf": "^2.6.2", - "safe-buffer": "^5.1.0", - "update-notifier": "^2.3.0", - "which": "^1.3.0", - "y18n": "^4.0.0", - "yargs": "^14.2.3" - } - }, - "lock-verify": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "npm-package-arg": "^6.1.0", - "semver": "^5.4.1" - } - }, - "lockfile": { - "version": "1.0.4", - "bundled": true, - "dev": true, - "requires": { - "signal-exit": "^3.0.2" - } - }, - "lodash._baseindexof": { - "version": "3.1.0", - "bundled": true, - "dev": true - }, - "lodash._baseuniq": { - "version": "4.6.0", - "bundled": true, - "dev": true, - "requires": { - "lodash._createset": "~4.0.0", - "lodash._root": "~3.0.0" - } - }, - "lodash._bindcallback": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, - "lodash._cacheindexof": { - "version": "3.0.2", - "bundled": true, - "dev": true - }, - "lodash._createcache": { - "version": "3.1.2", - "bundled": true, - "dev": true, - "requires": { - "lodash._getnative": "^3.0.0" - } - }, - "lodash._createset": { - "version": "4.0.3", - "bundled": true, - "dev": true - }, - "lodash._getnative": { - "version": "3.9.1", - "bundled": true, - "dev": true - }, - "lodash._root": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, - "lodash.clonedeep": { - "version": "4.5.0", - "bundled": true, - "dev": true - }, - "lodash.restparam": { - "version": "3.6.1", - "bundled": true, - "dev": true - }, - "lodash.union": { - "version": "4.6.0", - "bundled": true, - "dev": true - }, - "lodash.uniq": { - "version": "4.5.0", - "bundled": true, - "dev": true - }, - "lodash.without": { - "version": "4.4.0", - "bundled": true, - "dev": true - }, - "lowercase-keys": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "lru-cache": { - "version": "5.1.1", - "bundled": true, - "dev": true, - "requires": { - "yallist": "^3.0.2" - } - }, - "make-dir": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "pify": "^3.0.0" - } - }, - "make-fetch-happen": { - "version": "5.0.2", - "bundled": true, - "dev": true, - "requires": { - "agentkeepalive": "^3.4.1", - "cacache": "^12.0.0", - "http-cache-semantics": "^3.8.1", - "http-proxy-agent": "^2.1.0", - "https-proxy-agent": "^2.2.3", - "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", - "node-fetch-npm": "^2.0.2", - "promise-retry": "^1.1.1", - "socks-proxy-agent": "^4.0.0", - "ssri": "^6.0.0" - } - }, - "meant": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "mime-db": { - "version": "1.35.0", - "bundled": true, - "dev": true - }, - "mime-types": { - "version": "2.1.19", - "bundled": true, - "dev": true, - "requires": { - "mime-db": "~1.35.0" - } - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.5", - "bundled": true, - "dev": true - }, - "minizlib": { - "version": "1.3.3", - "bundled": true, - "dev": true, - "requires": { - "minipass": "^2.9.0" - }, - "dependencies": { - "minipass": { - "version": "2.9.0", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - } - } - }, - "mississippi": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^3.0.0", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" - } - }, - "mkdirp": { - "version": "0.5.5", - "bundled": true, - "dev": true, - "requires": { - "minimist": "^1.2.5" - }, - "dependencies": { - "minimist": { - "version": "1.2.5", - "bundled": true, - "dev": true - } - } - }, - "move-concurrently": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^1.1.1", - "copy-concurrently": "^1.0.0", - "fs-write-stream-atomic": "^1.0.8", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.3" - }, - "dependencies": { - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true - } - } - }, - "ms": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "mute-stream": { - "version": "0.0.7", - "bundled": true, - "dev": true - }, - "node-fetch-npm": { - "version": "2.0.2", - "bundled": true, - "dev": true, - "requires": { - "encoding": "^0.1.11", - "json-parse-better-errors": "^1.0.0", - "safe-buffer": "^5.1.1" - } - }, - "node-gyp": { - "version": "5.1.0", - "bundled": true, - "dev": true, - "requires": { - "env-paths": "^2.2.0", - "glob": "^7.1.4", - "graceful-fs": "^4.2.2", - "mkdirp": "^0.5.1", - "nopt": "^4.0.1", - "npmlog": "^4.1.2", - "request": "^2.88.0", - "rimraf": "^2.6.3", - "semver": "^5.7.1", - "tar": "^4.4.12", - "which": "^1.3.1" - } - }, - "nopt": { - "version": "4.0.3", - "bundled": true, - "dev": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "normalize-package-data": { - "version": "2.5.0", - "bundled": true, - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - }, - "dependencies": { - "resolve": { - "version": "1.10.0", - "bundled": true, - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - } - } - }, - "npm-audit-report": { - "version": "1.3.3", - "bundled": true, - "dev": true, - "requires": { - "cli-table3": "^0.5.0", - "console-control-strings": "^1.1.0" - } - }, - "npm-bundled": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "npm-normalize-package-bin": "^1.0.1" - } - }, - "npm-cache-filename": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "npm-install-checks": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "semver": "^2.3.0 || 3.x || 4 || 5" - } - }, - "npm-lifecycle": { - "version": "3.1.5", - "bundled": true, - "dev": true, - "requires": { - "byline": "^5.0.0", - "graceful-fs": "^4.1.15", - "node-gyp": "^5.0.2", - "resolve-from": "^4.0.0", - "slide": "^1.1.6", - "uid-number": "0.0.6", - "umask": "^1.1.0", - "which": "^1.3.1" - } - }, - "npm-logical-tree": { - "version": "1.2.1", - "bundled": true, - "dev": true - }, - "npm-normalize-package-bin": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "npm-package-arg": { - "version": "6.1.1", - "bundled": true, - "dev": true, - "requires": { - "hosted-git-info": "^2.7.1", - "osenv": "^0.1.5", - "semver": "^5.6.0", - "validate-npm-package-name": "^3.0.0" - } - }, - "npm-packlist": { - "version": "1.4.8", - "bundled": true, - "dev": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1", - "npm-normalize-package-bin": "^1.0.1" - } - }, - "npm-pick-manifest": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "figgy-pudding": "^3.5.1", - "npm-package-arg": "^6.0.0", - "semver": "^5.4.1" - } - }, - "npm-profile": { - "version": "4.0.4", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^1.1.2 || 2", - "figgy-pudding": "^3.4.1", - "npm-registry-fetch": "^4.0.0" - } - }, - "npm-registry-fetch": { - "version": "4.0.7", - "bundled": true, - "dev": true, - "requires": { - "JSONStream": "^1.3.4", - "bluebird": "^3.5.1", - "figgy-pudding": "^3.4.1", - "lru-cache": "^5.1.1", - "make-fetch-happen": "^5.0.0", - "npm-package-arg": "^6.1.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.1", - "bundled": true, - "dev": true - } - } - }, - "npm-run-path": { - "version": "2.0.2", - "bundled": true, - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "npm-user-validate": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "dev": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "oauth-sign": { - "version": "0.9.0", - "bundled": true, - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true - }, - "object-keys": { - "version": "1.0.12", - "bundled": true, - "dev": true - }, - "object.getownpropertydescriptors": { - "version": "2.0.3", - "bundled": true, - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" - } - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "opener": { - "version": "1.5.2", - "bundled": true, - "dev": true - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "p-finally": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "package-json": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "requires": { - "got": "^6.7.1", - "registry-auth-token": "^3.0.1", - "registry-url": "^3.0.3", - "semver": "^5.1.0" - } - }, - "pacote": { - "version": "9.5.12", - "bundled": true, - "dev": true, - "requires": { - "bluebird": "^3.5.3", - "cacache": "^12.0.2", - "chownr": "^1.1.2", - "figgy-pudding": "^3.5.1", - "get-stream": "^4.1.0", - "glob": "^7.1.3", - "infer-owner": "^1.0.4", - "lru-cache": "^5.1.1", - "make-fetch-happen": "^5.0.0", - "minimatch": "^3.0.4", - "minipass": "^2.3.5", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.1", - "normalize-package-data": "^2.4.0", - "npm-normalize-package-bin": "^1.0.0", - "npm-package-arg": "^6.1.0", - "npm-packlist": "^1.1.12", - "npm-pick-manifest": "^3.0.0", - "npm-registry-fetch": "^4.0.0", - "osenv": "^0.1.5", - "promise-inflight": "^1.0.1", - "promise-retry": "^1.1.1", - "protoduck": "^5.0.1", - "rimraf": "^2.6.2", - "safe-buffer": "^5.1.2", - "semver": "^5.6.0", - "ssri": "^6.0.1", - "tar": "^4.4.10", - "unique-filename": "^1.1.1", - "which": "^1.3.1" - }, - "dependencies": { - "minipass": { - "version": "2.9.0", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - } - } - }, - "parallel-transform": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "cyclist": "~0.2.2", - "inherits": "^2.0.3", - "readable-stream": "^2.1.5" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "path-exists": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "path-is-inside": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "path-key": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "bundled": true, - "dev": true - }, - "performance-now": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "pify": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "prepend-http": { - "version": "1.0.4", - "bundled": true, - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "promise-inflight": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "promise-retry": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "err-code": "^1.0.0", - "retry": "^0.10.0" - }, - "dependencies": { - "retry": { - "version": "0.10.1", - "bundled": true, - "dev": true - } - } - }, - "promzard": { - "version": "0.3.0", - "bundled": true, - "dev": true, - "requires": { - "read": "1" - } - }, - "proto-list": { - "version": "1.2.4", - "bundled": true, - "dev": true - }, - "protoduck": { - "version": "5.0.1", - "bundled": true, - "dev": true, - "requires": { - "genfun": "^5.0.0" - } - }, - "prr": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "pseudomap": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "psl": { - "version": "1.1.29", - "bundled": true, - "dev": true - }, - "pump": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "pumpify": { - "version": "1.5.1", - "bundled": true, - "dev": true, - "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - }, - "dependencies": { - "pump": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, - "punycode": { - "version": "1.4.1", - "bundled": true, - "dev": true - }, - "qrcode-terminal": { - "version": "0.12.0", - "bundled": true, - "dev": true - }, - "qs": { - "version": "6.5.2", - "bundled": true, - "dev": true - }, - "query-string": { - "version": "6.8.2", - "bundled": true, - "dev": true, - "requires": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" - } - }, - "qw": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "rc": { - "version": "1.2.8", - "bundled": true, - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } - }, - "read": { - "version": "1.0.7", - "bundled": true, - "dev": true, - "requires": { - "mute-stream": "~0.0.4" - } - }, - "read-cmd-shim": { - "version": "1.0.5", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2" - } - }, - "read-installed": { - "version": "4.0.3", - "bundled": true, - "dev": true, - "requires": { - "debuglog": "^1.0.1", - "graceful-fs": "^4.1.2", - "read-package-json": "^2.0.0", - "readdir-scoped-modules": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "slide": "~1.1.3", - "util-extend": "^1.0.1" - } - }, - "read-package-json": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "glob": "^7.1.1", - "graceful-fs": "^4.1.2", - "json-parse-better-errors": "^1.0.1", - "normalize-package-data": "^2.0.0", - "npm-normalize-package-bin": "^1.0.0" - } - }, - "read-package-tree": { - "version": "5.3.1", - "bundled": true, - "dev": true, - "requires": { - "read-package-json": "^2.0.0", - "readdir-scoped-modules": "^1.0.0", - "util-promisify": "^2.1.0" - } - }, - "readable-stream": { - "version": "3.6.0", - "bundled": true, - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "readdir-scoped-modules": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "debuglog": "^1.0.1", - "dezalgo": "^1.0.0", - "graceful-fs": "^4.1.2", - "once": "^1.3.0" - } - }, - "registry-auth-token": { - "version": "3.4.0", - "bundled": true, - "dev": true, - "requires": { - "rc": "^1.1.6", - "safe-buffer": "^5.0.1" - } - }, - "registry-url": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "rc": "^1.0.1" - } - }, - "request": { - "version": "2.88.0", - "bundled": true, - "dev": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - } - }, - "require-directory": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "require-main-filename": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "resolve-from": { - "version": "4.0.0", - "bundled": true, - "dev": true - }, - "retry": { - "version": "0.12.0", - "bundled": true, - "dev": true - }, - "rimraf": { - "version": "2.7.1", - "bundled": true, - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "run-queue": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "requires": { - "aproba": "^1.1.1" - }, - "dependencies": { - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true - } - } - }, - "safe-buffer": { - "version": "5.1.2", - "bundled": true, - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "dev": true - }, - "semver": { - "version": "5.7.1", - "bundled": true, - "dev": true - }, - "semver-diff": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "semver": "^5.0.3" - } - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "sha": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2" - } - }, - "shebang-command": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true - }, - "slide": { - "version": "1.1.6", - "bundled": true, - "dev": true - }, - "smart-buffer": { - "version": "4.1.0", - "bundled": true, - "dev": true - }, - "socks": { - "version": "2.3.3", - "bundled": true, - "dev": true, - "requires": { - "ip": "1.1.5", - "smart-buffer": "^4.1.0" - } - }, - "socks-proxy-agent": { - "version": "4.0.2", - "bundled": true, - "dev": true, - "requires": { - "agent-base": "~4.2.1", - "socks": "~2.3.2" - }, - "dependencies": { - "agent-base": { - "version": "4.2.1", - "bundled": true, - "dev": true, - "requires": { - "es6-promisify": "^5.0.0" - } - } - } - }, - "sorted-object": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, - "sorted-union-stream": { - "version": "2.1.3", - "bundled": true, - "dev": true, - "requires": { - "from2": "^1.3.0", - "stream-iterate": "^1.1.0" - }, - "dependencies": { - "from2": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "~1.1.10" - } - }, - "isarray": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "readable-stream": { - "version": "1.1.14", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "bundled": true, - "dev": true - } - } - }, - "spdx-correct": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.5", - "bundled": true, - "dev": true - }, - "split-on-first": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "sshpk": { - "version": "1.14.2", - "bundled": true, - "dev": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "ssri": { - "version": "6.0.2", - "bundled": true, - "dev": true, - "requires": { - "figgy-pudding": "^3.5.1" - } - }, - "stream-each": { - "version": "1.2.2", - "bundled": true, - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "stream-shift": "^1.0.0" - } - }, - "stream-iterate": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "readable-stream": "^2.1.5", - "stream-shift": "^1.0.0" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "stream-shift": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "strict-uri-encode": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "string-width": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "string_decoder": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.0", - "bundled": true, - "dev": true - } - } - }, - "stringify-package": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, - "strip-eof": { - "version": "1.0.0", - "bundled": true, - "dev": true + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bin-links": { + "version": "4.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cmd-shim": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "read-cmd-shim": "^4.0.0", + "write-file-atomic": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/binary-extensions": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/buffer": { + "version": "6.0.3", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/npm/node_modules/builtins": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/npm/node_modules/cacache": { + "version": "18.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^10.0.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/chalk": { + "version": "5.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ci-info": { + "version": "3.8.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^4.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/clean-stack": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/cli-table3": { + "version": "0.6.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/npm/node_modules/clone": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/color-support": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/npm/node_modules/columnify": { + "version": "1.6.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "strip-ansi": "^6.0.1", + "wcwidth": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/npm/node_modules/common-ancestor-path": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/console-control-strings": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/cross-spawn": { + "version": "7.0.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cssesc": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "4.3.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { "supports-color": { - "version": "5.4.0", - "bundled": true, - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "tar": { - "version": "4.4.19", - "bundled": true, - "dev": true, - "requires": { - "chownr": "^1.1.4", - "fs-minipass": "^1.2.7", - "minipass": "^2.9.0", - "minizlib": "^1.3.3", - "mkdirp": "^0.5.5", - "safe-buffer": "^5.2.1", - "yallist": "^3.1.1" - }, - "dependencies": { - "minipass": { - "version": "2.9.0", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "safe-buffer": { - "version": "5.2.1", - "bundled": true, - "dev": true - }, - "yallist": { - "version": "3.1.1", - "bundled": true, - "dev": true - } - } - }, - "term-size": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "execa": "^0.7.0" - } - }, - "text-table": { - "version": "0.2.0", - "bundled": true, - "dev": true - }, - "through": { - "version": "2.3.8", - "bundled": true, - "dev": true - }, - "through2": { - "version": "2.0.3", - "bundled": true, - "dev": true, - "requires": { - "readable-stream": "^2.1.5", - "xtend": "~4.0.1" - }, - "dependencies": { - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "timed-out": { - "version": "4.0.1", - "bundled": true, - "dev": true - }, - "tiny-relative-date": { - "version": "1.3.0", - "bundled": true, - "dev": true - }, - "tough-cookie": { - "version": "2.4.3", - "bundled": true, - "dev": true, - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - } - }, - "tunnel-agent": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "bundled": true, - "dev": true, "optional": true + } + } + }, + "node_modules/npm/node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/defaults": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/delegates": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/diff": { + "version": "5.1.0", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/npm/node_modules/eastasianwidth": { + "version": "0.2.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.13", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "2.0.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/event-target-shim": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/events": { + "version": "3.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/npm/node_modules/exponential-backoff": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/npm/node_modules/fastest-levenshtein": { + "version": "1.0.16", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/npm/node_modules/foreground-child": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/fs-minipass": { + "version": "3.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/function-bind": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/gauge": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^4.0.1", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "10.3.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.11", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/has": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/npm/node_modules/has-unicode": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/humanize-ms": { + "version": "1.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.6.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ieee754": { + "version": "1.2.1", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "typedarray": { - "version": "0.0.6", - "bundled": true, - "dev": true - }, - "uid-number": { - "version": "0.0.6", - "bundled": true, - "dev": true - }, - "umask": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "unique-filename": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "requires": { - "unique-slug": "^2.0.0" - } - }, - "unique-slug": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "imurmurhash": "^0.1.4" - } - }, - "unique-string": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "crypto-random-string": "^1.0.0" - } - }, - "unpipe": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "unzip-response": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, - "update-notifier": { - "version": "2.5.0", - "bundled": true, - "dev": true, - "requires": { - "boxen": "^1.2.1", - "chalk": "^2.0.1", - "configstore": "^3.0.0", - "import-lazy": "^2.1.0", - "is-ci": "^1.0.10", - "is-installed-globally": "^0.1.0", - "is-npm": "^1.0.0", - "latest-version": "^3.0.0", - "semver-diff": "^2.0.0", - "xdg-basedir": "^3.0.0" - } - }, - "uri-js": { - "version": "4.4.0", - "bundled": true, - "dev": true, - "requires": { - "punycode": "^2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.1.1", - "bundled": true, - "dev": true - } - } - }, - "url-parse-lax": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "prepend-http": "^1.0.1" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "util-extend": { - "version": "1.0.3", - "bundled": true, - "dev": true - }, - "util-promisify": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "object.getownpropertydescriptors": "^2.0.3" - } - }, - "uuid": { - "version": "3.3.3", - "bundled": true, - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "validate-npm-package-name": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "builtins": "^1.0.3" - } - }, - "verror": { - "version": "1.10.0", - "bundled": true, - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "wcwidth": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "defaults": "^1.0.3" - } - }, - "which": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "wide-align": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^1.0.2" - }, - "dependencies": { - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - } - } - }, - "widest-line": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^2.1.1" - } - }, - "worker-farm": { - "version": "1.7.0", - "bundled": true, - "dev": true, - "requires": { - "errno": "~0.1.7" - } - }, - "wrap-ansi": { - "version": "5.1.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "bundled": true, - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "string-width": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "write-file-atomic": { - "version": "2.4.3", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" - } - }, - "xdg-basedir": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "xtend": { - "version": "4.0.1", - "bundled": true, - "dev": true - }, - "y18n": { - "version": "4.0.1", - "bundled": true, - "dev": true + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, - "yallist": { - "version": "3.0.3", - "bundled": true, - "dev": true + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "6.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/indent-string": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/inherits": { + "version": "2.0.4", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ini": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^11.0.0", + "promzard": "^1.0.0", + "read": "^2.0.0", + "read-package-json": "^7.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/ip": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/ip-regex": { + "version": "4.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "4.0.2", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "cidr-regex": "^3.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/is-core-module": { + "version": "2.12.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-lambda": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/jackspeak": { + "version": "2.2.1", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/npm/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/json-stringify-nice": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", + "dev": true, + "engines": [ + "node >= 0.2.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff-apply": { + "version": "5.5.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/libnpmaccess": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^11.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmdiff": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0", + "@npmcli/disparity-colors": "^3.0.0", + "@npmcli/installed-package-contents": "^2.0.2", + "binary-extensions": "^2.2.0", + "diff": "^5.1.0", + "minimatch": "^9.0.0", + "npm-package-arg": "^11.0.0", + "pacote": "^17.0.4", + "tar": "^6.1.13" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmexec": { + "version": "7.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0", + "@npmcli/run-script": "^7.0.1", + "ci-info": "^3.7.1", + "npm-package-arg": "^11.0.0", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "proc-log": "^3.0.0", + "read": "^2.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmfund": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmhook": { + "version": "10.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmorg": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpack": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.1.0", + "@npmcli/run-script": "^7.0.1", + "npm-package-arg": "^11.0.0", + "pacote": "^17.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpublish": { + "version": "9.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ci-info": "^3.6.1", + "normalize-package-data": "^6.0.0", + "npm-package-arg": "^11.0.0", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7", + "sigstore": "^2.1.0", + "ssri": "^10.0.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmsearch": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmteam": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmversion": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.3", + "@npmcli/run-script": "^7.0.1", + "json-parse-even-better-errors": "^3.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/lru-cache": { + "version": "10.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "13.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/agent": "^2.0.0", + "cacache": "^18.0.0", + "http-cache-semantics": "^4.1.1", + "is-lambda": "^1.0.1", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/minimatch": { + "version": "9.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/minipass-collect": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-collect/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-fetch": { + "version": "3.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.0.3", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/minipass-flush": { + "version": "1.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-json-stream": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline": { + "version": "1.2.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minizlib": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/mkdirp": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ms": { + "version": "2.1.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/mute-stream": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/negotiator": { + "version": "0.6.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/node-gyp": { + "version": "9.4.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^11.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^12.13 || ^14.13 || >=16" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/abbrev": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/are-we-there-yet": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache": { + "version": "17.1.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^7.7.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob": { + "version": "10.3.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch": { + "version": "9.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minipass": { + "version": "7.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/gauge": { + "version": "4.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/glob": { + "version": "7.2.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/lru-cache": { + "version": "7.18.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/make-fetch-happen": { + "version": "11.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minimatch": { + "version": "3.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/nopt": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/npmlog": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/readable-stream": { + "version": "3.6.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/signal-exit": { + "version": "3.0.7", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/which": { + "version": "2.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/nopt": { + "version": "7.2.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^2.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/normalize-package-data": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^7.0.0", + "is-core-module": "^2.8.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-audit-report": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-bundled": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "6.2.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "11.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^7.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-packlist": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^6.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "9.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "npm-package-arg": "^11.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-profile": { + "version": "9.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "16.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "make-fetch-happen": "^13.0.0", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^11.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-user-validate": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npmlog": { + "version": "7.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^4.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^5.0.0", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/once": { + "version": "1.4.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/p-map": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/pacote": { + "version": "17.0.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.0", + "@npmcli/installed-package-contents": "^2.0.1", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.0", + "cacache": "^18.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^11.0.0", + "npm-packlist": "^8.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "promise-retry": "^2.0.1", + "read-package-json": "^7.0.0", + "read-package-json-fast": "^3.0.0", + "sigstore": "^2.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/parse-conflict-json": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "just-diff": "^6.0.0", + "just-diff-apply": "^5.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/path-is-absolute": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/path-key": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/path-scurry": { + "version": "1.10.1", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/postcss-selector-parser": { + "version": "6.0.13", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/proc-log": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/process": { + "version": "0.11.10", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/npm/node_modules/promise-all-reject-late": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-call-limit": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-inflight": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/promise-retry": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/promzard": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "read": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/read": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "mute-stream": "~1.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^10.2.2", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json-fast": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/readable-stream": { + "version": "4.4.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/rimraf": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/safe-buffer": { + "version": "5.2.1", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" }, - "yargs": { - "version": "14.2.3", - "bundled": true, - "dev": true, - "requires": { - "cliui": "^5.0.0", - "decamelize": "^1.2.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^15.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "bundled": true, - "dev": true - }, - "find-up": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "locate-path": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.3.0", - "bundled": true, - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "bundled": true, - "dev": true - }, - "string-width": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } + { + "type": "patreon", + "url": "https://www.patreon.com/feross" }, - "yargs-parser": { - "version": "15.0.1", - "bundled": true, - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "bundled": true, - "dev": true - } - } + { + "type": "consulting", + "url": "https://feross.org/support" } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true + }, + "node_modules/npm/node_modules/semver": { + "version": "7.5.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/set-blocking": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/shebang-command": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/shebang-regex": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/signal-exit": { + "version": "4.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/sigstore": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "@sigstore/sign": "^2.1.0", + "@sigstore/tuf": "^2.1.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks": { + "version": "2.7.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "CC-BY-3.0" + }, + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.13", + "dev": true, + "inBundle": true, + "license": "CC0-1.0" + }, + "node_modules/npm/node_modules/ssri": { + "version": "10.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/string_decoder": { + "version": "1.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/npm/node_modules/string-width": { + "version": "4.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/supports-color": { + "version": "9.4.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/npm/node_modules/tar": { + "version": "6.1.15", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/treeverse": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/tuf-js": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/models": "2.0.0", + "debug": "^4.3.4", + "make-fetch-happen": "^13.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-filename": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "5.0.0", "dev": true, - "requires": { - "path-key": "^2.0.0" + "inBundle": true, + "license": "ISC", + "dependencies": { + "builtins": "^5.0.0" }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/walk-up-path": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/wcwidth": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", "dependencies": { - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - } + "defaults": "^1.0.3" } }, - "nwsapi": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", - "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", - "dev": true + "node_modules/npm/node_modules/which": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/which/node_modules/isexe": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16" + } + }, + "node_modules/npm/node_modules/wide-align": { + "version": "1.1.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/npm/node_modules/wrap-ansi": { + "version": "8.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "9.2.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" }, - "oauth-sign": { + "node_modules/oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "engines": { + "node": "*" + } }, - "object-assign": { + "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, - "object-hash": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.3.1.tgz", - "integrity": "sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA==", - "dev": true - }, - "object-inspect": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", - "integrity": "sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==", - "dev": true + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "object-keys": { + "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", "dev": true, - "requires": { - "isobject": "^3.0.0" + "engines": { + "node": ">= 0.4" } }, - "object.assign": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz", - "integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==", + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", "dev": true, - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", - "has-symbols": "^1.0.1", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "object.entries": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.5.tgz", - "integrity": "sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==", + "node_modules/object.entries": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", + "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" } }, - "object.fromentries": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.5.tgz", - "integrity": "sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw==", + "node_modules/object.fromentries": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", + "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "object.getownpropertydescriptors": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.3.tgz", - "integrity": "sha512-VdDoCwvJI4QdC6ndjpqFmoL3/+HxffFBbcJzKi5hwLLqqx3mdbedRpfZDdK0SrOSauj8X4GzBvnDZl4vTN7dOw==", + "node_modules/object.getownpropertydescriptors": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.7.tgz", + "integrity": "sha512-PrJz0C2xJ58FNn11XV2lr4Jt5Gzl94qpy9Lu0JlfEj14z88sqbSBJCBEzdlNUCzY2gburhbrwOZ5BHCmuNUy0g==", "dev": true, - "requires": { + "dependencies": { + "array.prototype.reduce": "^1.0.6", "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "safe-array-concat": "^1.0.0" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "object.hasown": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.0.tgz", - "integrity": "sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==", + "node_modules/object.groupby": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", + "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1" } }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "node_modules/object.hasown": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.3.tgz", + "integrity": "sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==", "dev": true, - "requires": { - "isobject": "^3.0.1" + "dependencies": { + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "object.values": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", - "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "node_modules/object.values": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", + "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, - "requires": { + "dependencies": { "wrappy": "1" } }, - "one-time": { + "node_modules/one-time": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", - "requires": { + "dependencies": { "fn.name": "1.x.x" } }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } }, - "p-each-series": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", - "dev": true + "node_modules/ora": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", + "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", + "dev": true, + "dependencies": { + "bl": "^4.1.0", + "chalk": "^4.1.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.5.0", + "is-interactive": "^1.0.0", + "is-unicode-supported": "^0.1.0", + "log-symbols": "^4.1.0", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "node_modules/ora/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ora/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ora/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ora/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "p-limit": { + "node_modules/ora/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ora/node_modules/is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ora/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "requires": { + "dependencies": { "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-locate": { + "node_modules/p-locate": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "requires": { + "dependencies": { "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" } }, - "p-try": { + "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "parent-module": { + "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "requires": { + "dependencies": { "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "requires": { + "dependencies": { + "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "parse5": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz", - "integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==", - "dev": true - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true - }, - "path-exists": { + "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-is-absolute": { + "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "path-key": { + "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "path-parse": { + "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "pause-stream": { + "node_modules/path-scurry": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", + "dev": true, + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz", + "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/pause-stream": { "version": "0.0.11", "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", + "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", "dev": true, - "requires": { + "dependencies": { "through": "~2.3" } }, - "performance-now": { + "node_modules/performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, - "picocolors": { + "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, - "picomatch": { + "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } }, - "pify": { + "node_modules/pify": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "dev": true, - "requires": { - "pinkie": "^2.0.0" + "engines": { + "node": ">=6" } }, - "pirates": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz", - "integrity": "sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw==", - "dev": true - }, - "pkg-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz", - "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", - "dev": true, - "requires": { - "find-up": "^1.0.0" - }, - "dependencies": { - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - } + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" } }, - "please-upgrade-node": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz", - "integrity": "sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg==", + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, - "requires": { - "semver-compare": "^1.0.0" + "engines": { + "node": ">= 0.8.0" } }, - "pn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", - "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", - "dev": true - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } }, - "pretty-format": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.5.0.tgz", - "integrity": "sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==", + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "requires": { - "@jest/types": "^25.5.0", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^16.12.0" - }, - "dependencies": { - "@jest/types": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz", - "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^15.0.0", - "chalk": "^3.0.0" - } - }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "node_modules/pretty-format/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "prompts": { + "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, - "requires": { + "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" } }, - "prop-types": { + "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", "dev": true, - "requires": { + "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, - "psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" } }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "node_modules/pure-rand": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.3.tgz", + "integrity": "sha512-KddyFewCsO0j3+np81IQ+SweXLDnDQTs5s67BOnrYmYe/yNmUhttQyGsYzy8yUnoljGAQ9sl38YB4vH8ur7Y+w==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] }, - "pushdata-bitcoin": { + "node_modules/pushdata-bitcoin": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pushdata-bitcoin/-/pushdata-bitcoin-1.0.1.tgz", "integrity": "sha512-hw7rcYTJRAl4olM8Owe8x0fBuJJ+WGbMhQuLWOXEMN3PxPCKQHRkhfL+XG0+iXUmSHjkMmb3Ba55Mt21cZc9kQ==", - "requires": { + "dependencies": { "bitcoin-ops": "^1.3.0" } }, - "qs": { + "node_modules/qs": { "version": "6.5.3", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==" + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "engines": { + "node": ">=0.6" + } }, - "ramda": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.2.tgz", - "integrity": "sha512-SbiLPU40JuJniHexQSAgad32hfwd+DRUdwF2PlVuI5RZD0/vahUco7R8vD86J/tcEKKF9vZrUVwgtmGCqlCKyA==" + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "randexp": { + "node_modules/randexp": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.5.3.tgz", "integrity": "sha512-U+5l2KrcMNOUPYvazA3h5ekF80FHTUG+87SEAmHZmolh1M+i/WyTCxVzmi+tidIa1tM4BSe8g2Y/D3loWDjj+w==", - "requires": { + "dependencies": { "drange": "^1.0.2", "ret": "^0.2.0" + }, + "engines": { + "node": ">=4" } }, - "randombytes": { + "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "requires": { + "dependencies": { "safe-buffer": "^5.1.0" } }, - "randomstring": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/randomstring/-/randomstring-1.2.1.tgz", - "integrity": "sha512-eMnfell9XuU3jfCx3f4xCaFAt0YMFPZhx9R3PSStmLarDKg5j5vivqKhf/8pvG+VX/YkxsckHK/VPUrKa5V07A==", - "requires": { - "array-uniq": "1.0.2", + "node_modules/randomstring": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/randomstring/-/randomstring-1.3.0.tgz", + "integrity": "sha512-gY7aQ4i1BgwZ8I1Op4YseITAyiDiajeZOPQUbIq9TPGPhUm5FX59izIaOpmKbME1nmnEiABf28d9K2VSii6BBg==", + "dependencies": { "randombytes": "2.0.3" }, - "dependencies": { - "randombytes": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.3.tgz", - "integrity": "sha512-lDVjxQQFoCG1jcrP06LNo2lbWp4QTShEXnhActFBwYuHprllQV6VUpwreApsYqCgD+N1mHoqJ/BI/4eV4R2GYg==" - } + "bin": { + "randomstring": "bin/randomstring" + }, + "engines": { + "node": "*" } }, - "react-is": { + "node_modules/randomstring/node_modules/randombytes": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.3.tgz", + "integrity": "sha512-lDVjxQQFoCG1jcrP06LNo2lbWp4QTShEXnhActFBwYuHprllQV6VUpwreApsYqCgD+N1mHoqJ/BI/4eV4R2GYg==" + }, + "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "dev": true }, - "read-pkg": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-4.0.1.tgz", - "integrity": "sha1-ljYlN48+HE1IyFhytabsfV0JMjc=", - "dev": true, - "requires": { - "normalize-package-data": "^2.3.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0" - }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dependencies": { - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - } - } - }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "dependencies": { - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "readdirp": { + "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, "optional": true, - "requires": { + "dependencies": { "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" } }, - "readline-transform": { + "node_modules/readline-transform": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/readline-transform/-/readline-transform-1.0.0.tgz", "integrity": "sha512-7KA6+N9IGat52d83dvxnApAWN+MtVb1MiVuMR/cf1O4kYsJG+g/Aav0AHcHKsb6StinayfPLne0+fMX2sOzAKg==", - "dev": true - }, - "realpath-native": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-2.0.0.tgz", - "integrity": "sha512-v1SEYUOXXdbBZK8ZuNgO4TBjamPsiSgcFr0aP+tEKpQZK8vooEUqV6nm6Cv502mX4NF2EfsnVqtNAHG+/6Ur1Q==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "rechoir": { + "node_modules/rechoir": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", "dev": true, - "requires": { + "dependencies": { "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.4.tgz", + "integrity": "sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "globalthis": "^1.0.3", + "which-builtin-type": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "regenerate": { + "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", "dev": true }, - "regenerate-unicode-properties": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-9.0.0.tgz", - "integrity": "sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA==", + "node_modules/regenerate-unicode-properties": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", + "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", "dev": true, - "requires": { + "dependencies": { "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" } }, - "regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" + "node_modules/regenerator-runtime": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", + "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==", + "dev": true }, - "regenerator-transform": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz", - "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==", + "node_modules/regenerator-transform": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", "dev": true, - "requires": { + "dependencies": { "@babel/runtime": "^7.8.4" } }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexp.prototype.flags": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.0.tgz", - "integrity": "sha512-OE85RadmCYZJzYgIcWd2Qum/wJ20WwY5Z6Bfv5FeBPU46uPD01s3pe2LNoi0etmr83ibsFidC0ZiKXmPY5UpmQ==", + "node_modules/regexp.prototype.flags": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", + "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3" + "define-properties": "^1.2.0", + "set-function-name": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, - "regexpu-core": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.8.0.tgz", - "integrity": "sha512-1F6bYsoYiz6is+oz70NWur2Vlh9KWtswuRuzJOfeYUrfPX2o8n74AnUVaOGDbUqVGO9fNHu48/pjJO4sNVwsOg==", + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", "dev": true, - "requires": { + "dependencies": { + "@babel/regjsgen": "^0.8.0", "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^9.0.0", - "regjsgen": "^0.5.2", - "regjsparser": "^0.7.0", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.0.0" + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" } }, - "regjsgen": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", - "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", - "dev": true - }, - "regjsparser": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.7.0.tgz", - "integrity": "sha512-A4pcaORqmNMDVwUjWoTzuhwMGpP+NykpfqAsEgI1FSH/EzC7lrN5TMd+kN8YCovX+jMpu8eaqXgXPCa0g8FQNQ==", + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", "dev": true, - "requires": { + "dependencies": { "jsesc": "~0.5.0" }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - } + "bin": { + "regjsparser": "bin/parser" } }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", - "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } }, - "request": { + "node_modules/request": { "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "requires": { + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", "caseless": "~0.12.0", @@ -14624,757 +13797,505 @@ "tough-cookie": "~2.5.0", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" } }, - "request-debug": { + "node_modules/request-debug": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/request-debug/-/request-debug-0.2.0.tgz", - "integrity": "sha1-/AVOyBcYGwTKQaBSwTb2HEirr3g=", + "integrity": "sha512-NWYi/Gz4xKSkK1oPAsLLjMkSbp4aaW77fxPGe7uoKg1bgN7qXKVI5S/Cm/cubTKD62yJd7eKQLdlQ9QRLhgvvA==", "dev": true, - "requires": { + "dependencies": { "stringify-clone": "^1.0.0" } }, - "request-promise-core": { + "node_modules/request-promise-core": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", - "requires": { + "dependencies": { "lodash": "^4.17.19" + }, + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "request": "^2.34" } }, - "request-promise-native": { + "node_modules/request-promise-native": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz", "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==", - "requires": { + "deprecated": "request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142", + "dependencies": { "request-promise-core": "1.1.4", "stealthy-require": "^1.1.1", "tough-cookie": "^2.3.3" + }, + "engines": { + "node": ">=0.12.0" + }, + "peerDependencies": { + "request": "^2.34" + } + }, + "node_modules/request/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" } }, - "require-directory": { + "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "require-from-string": { + "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } }, - "resolve": { - "version": "1.21.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.21.0.tgz", - "integrity": "sha512-3wCbTpk5WJlyE4mSOtDLhqQmGFi0/TD9VPwmiolnk8U0wRgMEktqCXd3vy5buTO3tljvalNvKrjHEfrd2WpEKA==", + "node_modules/resolve": { + "version": "1.22.6", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.6.tgz", + "integrity": "sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==", "dev": true, - "requires": { - "is-core-module": "^2.8.0", + "dependencies": { + "is-core-module": "^2.13.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "resolve-cwd": { + "node_modules/resolve-cwd": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "requires": { + "dependencies": { "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "resolve-from": { + "node_modules/resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "dev": true + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/restore-cursor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", + "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "dev": true, + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=8" + } }, - "ret": { + "node_modules/ret": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/ret/-/ret-0.2.2.tgz", - "integrity": "sha512-M0b3YWQs7R3Z917WRQy1HHA7Ba7D8hvZg6UE5mLykJxQVE2ju0IXbGlaHPPlkY+WN7wFP+wUMXmBFA0aV6vYGQ==" + "integrity": "sha512-M0b3YWQs7R3Z917WRQy1HHA7Ba7D8hvZg6UE5mLykJxQVE2ju0IXbGlaHPPlkY+WN7wFP+wUMXmBFA0aV6vYGQ==", + "engines": { + "node": ">=4" + } }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, - "requires": { - "glob": "^7.1.3" + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.1.tgz", + "integrity": "sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==", + "dev": true, + "dependencies": { + "glob": "^10.2.5" + }, + "bin": { + "rimraf": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "10.3.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.4.tgz", + "integrity": "sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "ripemd160": { + "node_modules/ripemd160": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "requires": { + "dependencies": { "hash-base": "^3.0.0", "inherits": "^2.0.1" } }, - "rpc-websockets": { - "version": "7.4.17", - "resolved": "https://registry.npmjs.org/rpc-websockets/-/rpc-websockets-7.4.17.tgz", - "integrity": "sha512-eolVi/qlXS13viIUH9aqrde902wzSLAai0IjmOZSRefp5I3CSG/vCnD0c0fDSYCWuEyUoRL1BHQA8K1baEUyow==", - "requires": { - "@babel/runtime": "^7.11.2", - "bufferutil": "^4.0.1", - "circular-json": "^0.5.9", - "eventemitter3": "^4.0.7", - "utf-8-validate": "^5.0.2", - "uuid": "^8.3.0", - "ws": "^7.4.5" - }, - "dependencies": { - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - } + "node_modules/run-async": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz", + "integrity": "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==", + "dev": true, + "engines": { + "node": ">=0.12.0" } }, - "rsvp": { - "version": "4.8.5", - "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", - "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", - "dev": true - }, - "run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true - }, - "run-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz", - "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", - "dev": true - }, - "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, - "requires": { - "tslib": "^1.9.0" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" } }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", "dev": true, - "requires": { - "ret": "~0.1.10" - }, "dependencies": { - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true - } + "tslib": "^2.1.0" } }, - "safe-stable-stringify": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.2.tgz", - "integrity": "sha512-gMxvPJYhP0O9n2pvcfYfIuYgbledAOJFcqRThtPRmjscaipiwcwPPKLytpVzMkG2HAN87Qmo2d4PtGiri1dSLA==" - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "node_modules/safe-array-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", + "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "sane": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", - "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", - "dev": true, - "requires": { - "@cnakazawa/watch": "^1.0.3", - "anymatch": "^2.0.0", - "capture-exit": "^2.0.0", - "exec-sh": "^0.3.2", - "execa": "^1.0.0", - "fb-watchman": "^2.0.0", - "micromatch": "^3.1.4", - "minimist": "^1.1.1", - "walker": "~1.0.5" - }, - "dependencies": { - "anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - } - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" } - } + ] }, - "saxes": { - "version": "3.1.11", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-3.1.11.tgz", - "integrity": "sha512-Ydydq3zC+WYDJK1+gRxRapLIED9PWeSuuS41wqyoRmzvhhh9nc+QQrVMKJYzJFULazeGhzSV0QleN2wD3boh2g==", + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", "dev": true, - "requires": { - "xmlchars": "^2.1.1" + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "secp256k1": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz", - "integrity": "sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA==", - "requires": { - "elliptic": "^6.5.4", - "node-addon-api": "^2.0.0", - "node-gyp-build": "^4.2.0" + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.3.tgz", + "integrity": "sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==", + "engines": { + "node": ">=10" } }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", - "dev": true + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true + "node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, + "bin": { + "semver": "bin/semver" + } }, - "set-value": { + "node_modules/set-function-name": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", - "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", + "dev": true, + "dependencies": { + "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" } }, - "sha.js": { + "node_modules/sha.js": { "version": "2.4.11", "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "requires": { + "dependencies": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" } }, - "shebang-command": { + "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "requires": { + "dependencies": { "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "shebang-regex": { + "node_modules/shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true + "dev": true, + "engines": { + "node": ">=8" + } }, - "shelljs": { + "node_modules/shelljs": { "version": "0.8.5", "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", "dev": true, - "requires": { + "dependencies": { "glob": "^7.0.0", "interpret": "^1.0.0", "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" } }, - "shellwords": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", - "dev": true, - "optional": true - }, - "side-channel": { + "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "sift": { - "version": "13.5.4", - "resolved": "https://registry.npmjs.org/sift/-/sift-13.5.4.tgz", - "integrity": "sha512-J/d0r/MJlD7vG3j6FZI3/KnN+MxEmPUx2nyKNawysbl2ktisEnAWI5j0AgHM19p4xFA2vDXve4i8TQYYfi9O6Q==" + "node_modules/sift": { + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/sift/-/sift-17.0.1.tgz", + "integrity": "sha512-10rmPF5nuz5UdKuhhxgfS7Vz1aIRGmb+kn5Zy6bntCgNwkbZc0a7Z2dUw2Y9wSoRrBzf7Oim81SUsYdOkVnI8Q==" }, - "signal-exit": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", - "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==", + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, - "simple-swizzle": { + "node_modules/simple-swizzle": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", - "requires": { + "dependencies": { "is-arrayish": "^0.3.1" } }, - "sisteransi": { + "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", "dev": true }, - "sjcl": { - "version": "git+ssh://git@github.com/civicteam/sjcl.git#74fcc71a486a41d39200767d9235f6eac9e51f26", - "from": "sjcl@github:civicteam/sjcl#v1.0.8-ecc" + "node_modules/sjcl": { + "version": "1.0.8", + "resolved": "git+ssh://git@github.com/civicteam/sjcl.git#74fcc71a486a41d39200767d9235f6eac9e51f26", + "integrity": "sha512-NHyAXob2lIon1ndzARwa4C0nBqWpGkpj76OAOkLQsKLJw3cFeDJs5XY24spjSJpwS48Lzjq03qcTmeLyjkawcA==", + "license": "(BSD-2-Clause OR GPL-2.0-only)", + "engines": { + "node": "*" + } }, - "slash": { + "node_modules/slash": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "dev": true - }, - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } - } - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", "dev": true, - "requires": { - "kind-of": "^3.2.0" - }, - "dependencies": { - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } + "engines": { + "node": ">=6" } }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" + "engines": { + "node": ">=0.10.0" } }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "requires": { + "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "source-map-url": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", - "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", - "dev": true - }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" } }, - "spdx-license-ids": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz", - "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==", - "dev": true - }, - "split": { + "node_modules/split": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", "dev": true, - "requires": { + "dependencies": { "through": "2" + }, + "engines": { + "node": "*" } }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "sprintf-js": { + "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, - "sshpk": { + "node_modules/sshpk": { "version": "1.17.0", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", - "requires": { + "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", "bcrypt-pbkdf": "^1.0.0", @@ -15385,814 +14306,820 @@ "safer-buffer": "^2.0.2", "tweetnacl": "~0.14.0" }, - "dependencies": { - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" - } + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" } }, - "stack-trace": { + "node_modules/sshpk/node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" + }, + "node_modules/stack-trace": { "version": "0.0.10", "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", - "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==" + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "engines": { + "node": "*" + } }, - "stack-utils": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.5.tgz", - "integrity": "sha512-KZiTzuV3CnSnSvgMRrARVCj+Ht7rMbauGDK0LdVFRGyenwdylpajAp4Q0i6SX8rEmbTpMMf6ryq2gb8pPq2WgQ==", + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "requires": { + "dependencies": { "escape-string-regexp": "^2.0.0" }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } + "engines": { + "node": ">=10" } }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" } }, - "stealthy-require": { + "node_modules/stealthy-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" + "integrity": "sha512-ZnWpYnYugiOVEY5GkcuJK1io5V8QmNYChG62gSit9pQVGErXtrKuPC55ITaVSukmMta5qpMU7vqLt2Lnni4f/g==", + "engines": { + "node": ">=0.10.0" + } }, - "stream-combiner": { + "node_modules/stream-combiner": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", - "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", + "integrity": "sha512-6yHMqgLYDzQDcAkL+tjJDC5nSNuNIx0vZtRZeiPh7Saef7VHX9H5Ijn9l2VIol2zaNYlYEX6KyuT/237A58qEQ==", "dev": true, - "requires": { + "dependencies": { "duplexer": "~0.1.1", "through": "~2.3.4" } }, - "string-length": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-3.1.0.tgz", - "integrity": "sha512-Ttp5YvkGm5v9Ijagtaz1BnN+k9ObpvS0eIBblPMp2YWL8FBmi9qblQ9fexc2k/CXFgrTIteU3jAw3payCnwSTA==", + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, - "requires": { - "astral-regex": "^1.0.0", - "strip-ansi": "^5.2.0" + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" } }, - "string-width": { + "node_modules/string-width-cjs": { + "name": "string-width", "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "requires": { + "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, - "string.prototype.matchall": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.6.tgz", - "integrity": "sha512-6WgDX8HmQqvEd7J+G6VtAahhsQIssiZ8zl7zKh1VDMFyL3hRTJP4FTNA3RbIp2TOQ9AYNDcc7e3fH0Qbup+DBg==", + "node_modules/string.prototype.matchall": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz", + "integrity": "sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1", - "get-intrinsic": "^1.1.1", - "has-symbols": "^1.0.2", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.3.1", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1", + "get-intrinsic": "^1.2.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "regexp.prototype.flags": "^1.5.0", + "set-function-name": "^2.0.0", "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "string.prototype.trimend": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz", - "integrity": "sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A==", + "node_modules/string.prototype.trim": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "string.prototype.trimstart": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz", - "integrity": "sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw==", + "node_modules/string.prototype.trimend": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", + "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", "dev": true, - "requires": { + "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" + "node_modules/string.prototype.trimstart": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", + "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "stringify-clone": { + "node_modules/stringify-clone": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/stringify-clone/-/stringify-clone-1.1.1.tgz", - "integrity": "sha1-MJojX7Ts/M19OI2+GLqQT6yvQzs=", - "dev": true + "integrity": "sha512-LIFpvBnQJF3ZGoV770s3feH+wRVCMRSisI8fl1E57WfgKOZKUMaC1r4eJXybwGgXZ/iTTJoK/tsOku1GLPyyxQ==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } }, - "strip-ansi": { + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "requires": { + "dependencies": { "ansi-regex": "^5.0.1" } }, - "strip-bom": { + "node_modules/strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "strip-final-newline": { + "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true + "dev": true, + "engines": { + "node": ">=6" + } }, - "strip-json-comments": { + "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "superstruct": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", - "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "supports-color": { + "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "requires": { + "dependencies": { "has-flag": "^3.0.0" - } - }, - "supports-hyperlinks": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", - "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", - "dev": true, - "requires": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "engines": { + "node": ">=4" } }, - "supports-preserve-symlinks-flag": { + "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "table": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.8.0.tgz", - "integrity": "sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==", - "dev": true, - "requires": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - } - } - }, - "terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" + "engines": { + "node": ">= 0.4" }, - "dependencies": { - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - } - } + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "test-exclude": { + "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "requires": { + "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" } }, - "text-encoding-utf-8": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz", - "integrity": "sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==" - }, - "text-hex": { + "node_modules/text-hex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" }, - "text-table": { + "node_modules/text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "throat": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", - "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, - "through": { + "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true }, - "tmp": { + "node_modules/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, - "requires": { + "dependencies": { "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" } }, - "tmpl": { + "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, - "to-fast-properties": { + "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" + "engines": { + "node": ">=4" } }, - "to-regex-range": { + "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "requires": { + "dependencies": { "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "tough-cookie": { + "node_modules/tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "requires": { + "dependencies": { "psl": "^1.1.28", "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" } }, - "tr46": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", - "dev": true, - "requires": { - "punycode": "^2.1.0" + "node_modules/triple-beam": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz", + "integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==", + "engines": { + "node": ">= 14.0.0" } }, - "triple-beam": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", - "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" - }, - "tsconfig-paths": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz", - "integrity": "sha512-e5adrnOYT6zqVnWqZu7i/BQ3BnhzvGbjEjejFXO20lKIKpwTaupkCPgEfv4GZK1IBciJUEhYs3J3p75FdaTFVg==", + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", "dev": true, - "requires": { + "dependencies": { "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.0", + "json5": "^1.0.2", + "minimist": "^1.2.6", "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" }, - "dependencies": { - "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - } + "bin": { + "json5": "lib/cli.js" } }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", "dev": true }, - "tunnel-agent": { + "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "requires": { + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "dependencies": { "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" } }, - "tweetnacl": { + "node_modules/tweetnacl": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "requires": { - "prelude-ls": "~1.1.2" + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" } }, - "type-detect": { + "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "type-of-is": { + "node_modules/type-of-is": { "version": "3.5.1", "resolved": "https://registry.npmjs.org/type-of-is/-/type-of-is-3.5.1.tgz", - "integrity": "sha512-SOnx8xygcAh8lvDU2exnK2bomASfNjzB3Qz71s2tw9QnX8fkAo7aC+D0H7FV0HjRKj94CKV2Hi71kVkkO6nOxg==" + "integrity": "sha512-SOnx8xygcAh8lvDU2exnK2bomASfNjzB3Qz71s2tw9QnX8fkAo7aC+D0H7FV0HjRKj94CKV2Hi71kVkkO6nOxg==", + "engines": { + "node": ">=0.10.5" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", + "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", + "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", "dev": true, - "requires": { - "is-typedarray": "^1.0.0" + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "typeforce": { + "node_modules/typeforce": { "version": "1.18.0", "resolved": "https://registry.npmjs.org/typeforce/-/typeforce-1.18.0.tgz", "integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g==" }, - "unbox-primitive": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", - "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has-bigints": "^1.0.1", - "has-symbols": "^1.0.2", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "unicode-canonical-property-names-ecmascript": { + "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true + "dev": true, + "engines": { + "node": ">=4" + } }, - "unicode-match-property-ecmascript": { + "node_modules/unicode-match-property-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", "dev": true, - "requires": { + "dependencies": { "unicode-canonical-property-names-ecmascript": "^2.0.0", "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" } }, - "unicode-match-property-value-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", - "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", - "dev": true - }, - "unicode-property-aliases-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz", - "integrity": "sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ==", - "dev": true + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true, + "engines": { + "node": ">=4" + } }, - "union-value": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", - "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^2.0.1" + "engines": { + "node": ">=4" } }, - "unix-timestamp": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/unix-timestamp/-/unix-timestamp-0.2.0.tgz", - "integrity": "sha1-4c3CgI32Mn0n5jXZNR5ygVKIcz4=" + "node_modules/unix-timestamp": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/unix-timestamp/-/unix-timestamp-1.0.3.tgz", + "integrity": "sha512-dZYciF170upieWsbs83fQGNdLwhsARiPs3gV30fhtdPl/TLgMRuLA/5z4C9WBoPSnGHvUOrboJWCCtb84bxDPg==" }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "dev": true, - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", - "dev": true + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" } }, - "uri-js": { + "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { + "dependencies": { "punycode": "^2.1.0" } }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "dev": true - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true - }, - "utf-8-validate": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.8.tgz", - "integrity": "sha512-k4dW/Qja1BYDl2qD4tOMB9PFVha/UJtxTc1cXYOe3WwA/2m0Yn4qB7wLMpJyLJ/7DR0XnTut3HsCSzDT4ZvKgA==", - "optional": true, - "requires": { - "node-gyp-build": "^4.3.0" - } - }, - "util-deprecate": { + "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "util.promisify": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.1.1.tgz", - "integrity": "sha512-/s3UsZUrIfa6xDhr7zZhnE9SLQ5RIXyYfiVnMMyMDzOc8WhWN4Nbh36H842OyurKbCDAesZOJaVyvmSl6fhGQw==", + "node_modules/util.promisify": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.1.2.tgz", + "integrity": "sha512-PBdZ03m1kBnQ5cjjO0ZvJMJS+QsbyIcFwi4hY4U76OQsCO9JrOYjbCFgIF76ccFg9xnJo7ZHPkqyj1GqmdS7MA==", "dev": true, - "requires": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", "for-each": "^0.3.3", - "has-symbols": "^1.0.1", - "object.getownpropertydescriptors": "^2.1.1" + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "object.getownpropertydescriptors": "^2.1.6", + "safe-array-concat": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" - }, - "v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "bin": { + "uuid": "dist/bin/uuid" + } }, - "v8-to-istanbul": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-4.1.4.tgz", - "integrity": "sha512-Rw6vJHj1mbdK8edjR7+zuJrpDtKIgNdAvTSAcpYfgMIw+u2dPDntD3dgN4XQFLU2/fvFQdzj+EeSGfd/jnY5fQ==", + "node_modules/v8-to-istanbul": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", + "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", "dev": true, - "requires": { + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "convert-source-map": "^1.6.0" }, - "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true - } + "engines": { + "node": ">=10.12.0" } }, - "valid-url": { + "node_modules/valid-url": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/valid-url/-/valid-url-1.0.9.tgz", - "integrity": "sha1-HBRHm0DxOXp1eC8RXkCGRHQzogA=" - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } + "integrity": "sha512-QQDsV8OnSf5Uc30CKSwG9lnhMPe6exHtTXLRYX8uMwKENy640pU+2BgBL0LRbDh/eYRahNCS7aewCx0wf3NYVA==" }, - "varuint-bitcoin": { + "node_modules/varuint-bitcoin": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/varuint-bitcoin/-/varuint-bitcoin-1.1.2.tgz", "integrity": "sha512-4EVb+w4rx+YfVM32HQX42AbbT7/1f5zwAYhIujKXKk8NQK+JfRVl3pqT3hjNn/L+RstigmGGKVwHA/P0wgITZw==", - "requires": { + "dependencies": { "safe-buffer": "^5.1.1" } }, - "verror": { + "node_modules/verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "requires": { + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "engines": [ + "node >=0.6.0" + ], + "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", "extsprintf": "^1.2.0" } }, - "w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "dev": true, - "requires": { - "browser-process-hrtime": "^1.0.0" - } - }, - "w3c-xmlserializer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz", - "integrity": "sha512-p10l/ayESzrBMYWRID6xbuCKh2Fp77+sA0doRuGn4tTIMrrZVeqfpKjXHY+oDh3K4nLdPgNwMTVP6Vp4pvqbNg==", - "dev": true, - "requires": { - "domexception": "^1.0.1", - "webidl-conversions": "^4.0.2", - "xml-name-validator": "^3.0.0" - } - }, - "walker": { + "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "requires": { + "dependencies": { "makeerror": "1.0.12" } }, - "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", - "dev": true - }, - "whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "requires": { - "iconv-lite": "0.4.24" - } - }, - "whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", "dev": true, - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" + "dependencies": { + "defaults": "^1.0.3" } }, - "which": { + "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "requires": { + "dependencies": { "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "which-boxed-primitive": { + "node_modules/which-boxed-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", "dev": true, - "requires": { + "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", "is-number-object": "^1.0.4", "is-string": "^1.0.5", "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true + "node_modules/which-builtin-type": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz", + "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==", + "dev": true, + "dependencies": { + "function.prototype.name": "^1.1.5", + "has-tostringtag": "^1.0.0", + "is-async-function": "^2.0.0", + "is-date-object": "^1.0.5", + "is-finalizationregistry": "^1.0.2", + "is-generator-function": "^1.0.10", + "is-regex": "^1.1.4", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dev": true, + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz", + "integrity": "sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "wif": { + "node_modules/wif": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/wif/-/wif-2.0.6.tgz", "integrity": "sha512-HIanZn1zmduSF+BQhkE+YXIbEiH0xPr1012QbFEGB0xsKqJii0/SqJjyn8dFv6y36kOznMgMB+LGcbZTJ1xACQ==", - "requires": { + "dependencies": { "bs58check": "<3.0.0" } }, - "winston": { - "version": "3.8.2", - "resolved": "https://registry.npmjs.org/winston/-/winston-3.8.2.tgz", - "integrity": "sha512-MsE1gRx1m5jdTTO9Ld/vND4krP2To+lgDoMEHGGa4HIlAUyXJtfc7CxQcGXVyz2IBpw5hbFkj2b/AtUdQwyRew==", - "requires": { + "node_modules/winston": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/winston/-/winston-3.10.0.tgz", + "integrity": "sha512-nT6SIDaE9B7ZRO0u3UvdrimG0HkB7dSTAgInQnNR2SOPJ4bvq5q79+pXLftKmP52lJGW15+H5MCK0nM9D3KB/g==", + "dependencies": { "@colors/colors": "1.5.0", "@dabh/diagnostics": "^2.0.2", "async": "^3.2.3", @@ -16204,140 +15131,199 @@ "stack-trace": "0.0.x", "triple-beam": "^1.3.0", "winston-transport": "^4.5.0" + }, + "engines": { + "node": ">= 12.0.0" } }, - "winston-transport": { + "node_modules/winston-transport": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.5.0.tgz", "integrity": "sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q==", - "requires": { + "dependencies": { "logform": "^2.3.2", "readable-stream": "^3.6.0", "triple-beam": "^1.3.0" + }, + "engines": { + "node": ">= 6.4.0" } }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "requires": { + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "node_modules/wrap-ansi-cjs/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "ws": { - "version": "7.5.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz", - "integrity": "sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA==" + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } }, - "xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "xmlbuilder": { - "version": "13.0.2", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-13.0.2.tgz", - "integrity": "sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ==", + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, - "xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true + "node_modules/xmlbuilder": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.0.0.tgz", + "integrity": "sha512-KLu/G0DoWhkncQ9eHSI6s0/w+T4TM7rQaLhtCaL6tORv8jFlJPlnGumsgTcGfYeS1qZ/IHqrvDG7zJZ4d7e+nw==", + "dev": true, + "engines": { + "node": ">=8.0" + } }, - "yallist": { + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" } }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } } } diff --git a/package.json b/package.json index 1a4878df..c2dd3089 100644 --- a/package.json +++ b/package.json @@ -37,59 +37,56 @@ "audit-ci": "audit-ci --config audit-ci.json" }, "devDependencies": { - "@babel/cli": "^7.14.5", - "@babel/core": "^7.14.6", - "@babel/plugin-transform-runtime": "^7.14.5", - "@babel/preset-env": "^7.14.7", - "audit-ci": "^3.2.0", - "babel-jest": "^27.0.6", - "babel-minify": "^0.5.1", + "@babel/cli": "^7.22.15", + "@babel/core": "^7.22.20", + "@babel/plugin-transform-runtime": "^7.22.15", + "@babel/preset-env": "^7.22.20", + "audit-ci": "^6.6.1", + "babel-jest": "^29.7.0", + "babel-minify": "^0.5.2", "clear": "^0.1.0", "cross-env": "^7.0.3", - "eslint": "^7.32.0", - "eslint-config-airbnb": "^17.0.0", - "eslint-config-airbnb-base": "^13.0.0", - "eslint-loader": "^2.0.0", - "eslint-plugin-import": "^2.23.3", - "eslint-plugin-jsx-a11y": "^6.1.1", - "eslint-plugin-no-only-tests": "^2.6.0", - "eslint-plugin-react": "^7.23.2", - "figlet": "^1.5.0", - "husky": "^1.1.2", - "inquirer": "^7.3.3", - "jest": "^25.5.4", - "jest-html-reporter": "^2.3.0", - "npm": "^6.14.13", + "eslint": "^8.49.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-no-only-tests": "^3.1.0", + "eslint-plugin-react": "^7.33.2", + "figlet": "^1.6.0", + "husky": "^8.0.3", + "inquirer": "^9.2.11", + "jest": "^29.7.0", + "jest-html-reporter": "^3.10.2", + "npm": "^10.1.0", "request-debug": "^0.2.0", - "rimraf": "^2.6.2", - "shelljs": "^0.8.4" + "rimraf": "^5.0.1", + "shelljs": "^0.8.5" }, "dependencies": { - "@digitalbazaar/did-io": "^1.1.0", - "@identity.com/did-io-driver-sol": "^1.0.0-beta.0", "@identity.com/uca": "github:identity-com/uca#v1.0.30", - "ajv": "^7.2.4", - "ajv-formats": "^1.6.1", + "ajv": "^8.12.0", + "ajv-formats": "^2.1.1", "babel-runtime": "^6.26.0", "bitcoinjs-lib": "https://github.com/dabura667/bitcoinjs-lib.git#bcash330", - "bottlejs": "^1.7.1", - "bs58": "^4.0.1", - "dotenv": "^8.6.0", + "bottlejs": "^2.0.1", + "bs58": "^5.0.0", + "dotenv": "^16.3.1", "flat": "^4.1.0", "json-schema-traverse": "^1.0.0", "lodash": "^4.17.21", "merkle-tools": "^1.4.1", - "moment-mini": "^2.24.0", + "moment-mini": "^2.29.4", "randexp": "^0.5.3", - "randomstring": "^1.2.1", + "randomstring": "^1.3.0", "request": "^2.88.2", "request-promise-native": "^1.0.9", - "sift": "^13.5.4", + "sift": "^17.0.1", "sjcl": "github:civicteam/sjcl#v1.0.8-ecc", "tweetnacl": "^1.0.3", "type-of-is": "^3.5.1", - "unix-timestamp": "^0.2.0", - "uuid": "^3.3.2", + "unix-timestamp": "^1.0.3", + "uuid": "^9.0.1", "valid-url": "^1.0.9" }, "jest": { diff --git a/src/claim/Claim.js b/src/claim/Claim.js index 70d730da..41011b0a 100644 --- a/src/claim/Claim.js +++ b/src/claim/Claim.js @@ -17,7 +17,7 @@ const getDefinition = async (identifier, version) => { return findDefinition(identifier, version); }; -const isArrayAttestableValue = aValue => aValue.indexOf('[') > -1 && aValue.indexOf(']') > -1; +const isArrayAttestableValue = (aValue) => aValue.indexOf('[') > -1 && aValue.indexOf(']') > -1; function getBaseIdentifiers(identifier) { const claimRegex = /^claim-cvc:(.*)\.(.*)-v\d*$/; @@ -105,7 +105,7 @@ class Claim extends UserCollectableAttribute { this.salt = parsedAttestableValue[0].salt; const ucaValue = parsedAttestableValue[0].value; this.value = definition.type === 'Array' - ? _.map(ucaValue, item => new Claim(definition.items.type, { attestableValue: item })) + ? _.map(ucaValue, (item) => new Claim(definition.items.type, { attestableValue: item })) : this.value = _.includes(['null', 'undefined'], ucaValue) ? null : ucaValue; } else { const ucaValue = {}; @@ -116,7 +116,7 @@ class Claim extends UserCollectableAttribute { let filteredIdentifier; let ucaPropertyName; const ucaType = UserCollectableAttribute.resolveType(definition, definitions); - const ucaDef = ucaType.properties.find(prop => prop.name === propertyName); + const ucaDef = ucaType.properties.find((prop) => prop.name === propertyName); if (ucaDef) { filteredIdentifier = ucaDef.type; ucaPropertyName = propertyName; @@ -130,13 +130,15 @@ class Claim extends UserCollectableAttribute { } // test if definition exists - const filteredDefinition = definitions.find(def => def.identifier === filteredIdentifier); + const filteredDefinition = definitions.find((def) => def.identifier === filteredIdentifier); if (!filteredDefinition) { // this must have an claim path with no recursive definition filteredIdentifier = this.findDefinitionByAttestableValue(ucaPropertyName, definition); } - ucaValue[propertyName] = new Claim(filteredIdentifier, - { attestableValue: parsedAttestableValue[i].stringValue }); + ucaValue[propertyName] = new Claim( + filteredIdentifier, + { attestableValue: parsedAttestableValue[i].stringValue }, + ); } this.value = ucaValue; } @@ -158,8 +160,10 @@ class Claim extends UserCollectableAttribute { const salt = splitDots[2]; const attestableValueItems = value.attestableValue .substring(value.attestableValue.indexOf('[') + 1, value.attestableValue.indexOf(']') - 1).split(','); - const parsedArrayItems = _.map(attestableValueItems, - item => Claim.parseAttestableValue({ attestableValue: item })); + const parsedArrayItems = _.map( + attestableValueItems, + (item) => Claim.parseAttestableValue({ attestableValue: item }), + ); return { propertyName, salt, value: parsedArrayItems, }; @@ -233,12 +237,18 @@ class Claim extends UserCollectableAttribute { return `urn:${propertyName}:${this.salt}:${this.value}|`; } if (this.type === 'Array') { - const itemsValues = _.reduce(this.value, - (result, item) => `${result}${item.getAttestableValue(null, true)},`, ''); + const itemsValues = _.reduce( + this.value, + (result, item) => `${result}${item.getAttestableValue(null, true)},`, + '', + ); return `urn:${propertyName}:${this.salt}:[${itemsValues}]`; } - return _.reduce(_.sortBy(_.keys(this.value)), - (s, k) => `${s}${this.value[k].getAttestableValue(propertyName)}`, ''); + return _.reduce( + _.sortBy(_.keys(this.value)), + (s, k) => `${s}${this.value[k].getAttestableValue(propertyName)}`, + '', + ); } /** @@ -383,7 +393,7 @@ function convertIdentifierToClassName(identifier) { function mixinIdentifiers(UCA) { // Extend UCA Semantic - _.forEach(_.filter(definitions, d => d.credentialItem), (def) => { + _.forEach(_.filter(definitions, (d) => d.credentialItem), (def) => { const name = convertIdentifierToClassName(def.identifier); const source = {}; const { identifier } = def; diff --git a/src/creds/CvcMerkleProof.js b/src/creds/CvcMerkleProof.js index b2beb1d5..96cbdbb0 100644 --- a/src/creds/CvcMerkleProof.js +++ b/src/creds/CvcMerkleProof.js @@ -25,14 +25,14 @@ class CvcMerkleProof { buildMerkleTree(credentialSigner = null) { const merkleTools = new MerkleTools(); - const hashes = _.map(this.leaves, n => sha256(n.value)); + const hashes = _.map(this.leaves, (n) => sha256(n.value)); merkleTools.addLeaves(hashes); merkleTools.makeTree(); _.forEach(hashes, (hash, idx) => { this.leaves[idx].targetHash = hash; this.leaves[idx].node = merkleTools.getProof(idx); }); - this.leaves = _.filter(this.leaves, el => !(el.identifier === 'cvc:Random:node')); + this.leaves = _.filter(this.leaves, (el) => !(el.identifier === 'cvc:Random:node')); this.merkleRoot = merkleTools.getMerkleRoot().toString('hex'); if (credentialSigner) { diff --git a/src/creds/VerifiableCredential.js b/src/creds/VerifiableCredential.js index 58e33a23..143b0f26 100644 --- a/src/creds/VerifiableCredential.js +++ b/src/creds/VerifiableCredential.js @@ -4,7 +4,7 @@ const sift = require('sift').default; const timestamp = require('unix-timestamp'); const flatten = require('flat'); -const uuidv4 = require('uuid/v4'); +const { v4: uuidv4 } = require('uuid'); const MerkleTools = require('merkle-tools'); const { sha256 } = require('../lib/crypto'); @@ -21,10 +21,10 @@ const { parseIdentifier } = require('../lib/stringUtils'); const signerVerifier = require('../lib/signerVerifier'); // convert a time delta to a timestamp -const convertDeltaToTimestamp = delta => time.applyDeltaToDate(delta).getTime() / 1000; +const convertDeltaToTimestamp = (delta) => time.applyDeltaToDate(delta).getTime() / 1000; function validIdentifiers() { - const vi = _.map(definitions, d => d.identifier); + const vi = _.map(definitions, (d) => d.identifier); return vi; } @@ -194,7 +194,7 @@ async function nonCryptographicallySecureVerify(credential) { const invalidValues = []; const invalidHashs = []; const invalidProofs = []; - _.forEach(_.keys(claimsWithFlatKeys).filter(key => key !== 'id'), (claimKey) => { + _.forEach(_.keys(claimsWithFlatKeys).filter((key) => key !== 'id'), (claimKey) => { // check if `claimKey` has a `claimPath` proof const leaveIdx = _.indexOf(leavesClaimPaths, claimKey); // if not found @@ -331,7 +331,7 @@ const VERIFY_LEVELS = { */ function verifyRequiredClaims(definition, ucas) { if (!_.isEmpty(definition.required)) { - const identifiers = ucas.map(uca => uca.identifier); + const identifiers = ucas.map((uca) => uca.identifier); const missings = _.difference(definition.required, identifiers); if (!_.isEmpty(missings)) { throw new Error(`Missing required claim(s): ${_.join(missings, ', ')}`); @@ -402,7 +402,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje }; this.proof = new CvcMerkleProof(proofUCAs, signerOptions ? signerOptions.signer : null); if (!_.isEmpty(definition.excludes)) { - const removed = _.remove(this.proof.leaves, el => _.includes(definition.excludes, el.identifier)); + const removed = _.remove(this.proof.leaves, (el) => _.includes(definition.excludes, el.identifier)); _.forEach(removed, (r) => { _.unset(this.credentialSubject, r.claimPath); }); @@ -420,7 +420,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje */ this.filter = (requestedClaims) => { const filtered = _.cloneDeep(this); - _.remove(filtered.proof.leaves, el => !_.includes(requestedClaims, el.identifier)); + _.remove(filtered.proof.leaves, (el) => !_.includes(requestedClaims, el.identifier)); filtered.credentialSubject = {}; _.forEach(filtered.proof.leaves, (el) => { @@ -462,14 +462,16 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje } const anchorService = services.container.AnchorService; - const updatedOption = _.merge({}, + const updatedOption = _.merge( + {}, options, { subject: { label: this.identifier, data: this.proof.merkleRoot, }, - }); + }, + ); const anchor = await anchorService.anchor(updatedOption); this.proof.anchor = anchor; return this; @@ -589,7 +591,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje return services.container.AnchorService.isRevoked(this.proof); }; - const convertTimestampIfString = obj => (_.isString(obj) ? convertDeltaToTimestamp(obj) : obj); + const convertTimestampIfString = (obj) => (_.isString(obj) ? convertDeltaToTimestamp(obj) : obj); this.isMatch = (constraints) => { const claims = _.cloneDeep(this.credentialSubject); @@ -710,7 +712,7 @@ const CREDENTIAL_META_FIELDS = [ * * @param {*} vc */ -const getCredentialMeta = vc => _.pick(vc, CREDENTIAL_META_FIELDS); +const getCredentialMeta = (vc) => _.pick(vc, CREDENTIAL_META_FIELDS); /** * Sift constraints to throw errors for constraints missing IS @@ -756,7 +758,7 @@ const isMatchCredentialMeta = (credentialMeta, constraintsMeta) => { if (_.isEmpty(siftCompatibleConstraints)) return false; - const credentialMetaMatchesConstraint = constraint => sift(constraint)([credentialMeta]); + const credentialMetaMatchesConstraint = (constraint) => sift(constraint)([credentialMeta]); return siftCompatibleConstraints.reduce( (matchesAllConstraints, nextConstraint) => matchesAllConstraints && credentialMetaMatchesConstraint(nextConstraint), @@ -764,6 +766,10 @@ const isMatchCredentialMeta = (credentialMeta, constraintsMeta) => { ); }; +VerifiableCredentialBaseConstructor.setResolver = (resolver) => { + didUtil.setResolver(resolver); +}; + VerifiableCredentialBaseConstructor.CREDENTIAL_META_FIELDS = CREDENTIAL_META_FIELDS; VerifiableCredentialBaseConstructor.getCredentialMeta = getCredentialMeta; VerifiableCredentialBaseConstructor.isMatchCredentialMeta = isMatchCredentialMeta; @@ -785,8 +791,16 @@ VerifiableCredentialBaseConstructor.isMatchCredentialMeta = isMatchCredentialMet * or * @param signerOptions.signer An object implementing a `sign(CvcMerkleProof)` method */ -VerifiableCredentialBaseConstructor.create = async (identifier, issuerDid, expiryIn, subject, ucas, evidence, - signerOptions = null, validate = true) => { +VerifiableCredentialBaseConstructor.create = async ( + identifier, + issuerDid, + expiryIn, + subject, + ucas, + evidence, + signerOptions = null, + validate = true, +) => { // Load the schema and it's references from a source to be used for validation and defining the schema definitions await schemaLoader.loadSchemaFromTitle(identifier); @@ -808,9 +822,7 @@ VerifiableCredentialBaseConstructor.create = async (identifier, issuerDid, expir signerOptions.signer = await signerVerifier.signer(signerOptions); } - const vc = new VerifiableCredentialBaseConstructor( - identifier, issuerDid, expiryIn, subject, ucas, evidence, signerOptions, - ); + const vc = new VerifiableCredentialBaseConstructor(identifier, issuerDid, expiryIn, subject, ucas, evidence, signerOptions); if (validate) { await schemaLoader.validateSchema(identifier, vc.toJSON()); @@ -847,7 +859,6 @@ VerifiableCredentialBaseConstructor.fromJSON = async (verifiableCredentialJSON, return newObj; }; - /** * List all properties of a Verifiable Credential */ diff --git a/src/creds/VerifiableCredentialProxy.js b/src/creds/VerifiableCredentialProxy.js deleted file mode 100644 index c1dce990..00000000 --- a/src/creds/VerifiableCredentialProxy.js +++ /dev/null @@ -1,189 +0,0 @@ -const _ = require('lodash'); -const VerifiableCredential = require('./VerifiableCredential'); -const { schemaLoader } = require('../schemas/jsonSchema'); -const CredentialSignerVerifier = require('./CredentialSignerVerifier'); - -const definitions = schemaLoader.credentialDefinitions; - -/** - * Retrieves the credential definition - * @param {string} identifier - credential identifier - * @param {*} [version] - definition version - */ -function getCredentialDefinition(identifier, version) { - const definition = _.find(definitions, { identifier }); - - if (!definition) { - throw new Error(`Credential definition for ${identifier} v${version} not found`); - } - return definition; -} - -/** - * Throws exception if the definition has missing required claims - * @param {*} definition - the credential definition - * @param {*} verifiableCredentialJSON - the verifiable credential JSON - */ -function verifyRequiredClaimsFromJSON(definition, verifiableCredentialJSON) { - const leaves = _.get(verifiableCredentialJSON, 'proof.leaves'); - - if (!_.isEmpty(definition.required) && leaves) { - const identifiers = leaves.map(leave => leave.identifier); - const missings = _.difference(definition.required, identifiers); - if (!_.isEmpty(missings)) { - throw new Error(`Missing required claim(s): ${_.join(missings, ', ')}`); - } - } -} - -class VerifiableCredentialProxy extends VerifiableCredential { - get claim() { - return this.credentialSubject; - } - - get granted() { - return this.proof && this.proof.granted ? this.proof.granted : null; - } - - set granted(granted) { - this.proof.granted = granted; - } - - constructor(identifier, issuer, expiryIn, ucas, version, evidence, signerVerifier = null) { - super(identifier, issuer, expiryIn, null, ucas, evidence, signerVerifier); - - this.version = version; - - /** - * Returns the old format VC when converting to JSON - */ - this.toJSON = () => { - const obj = { - id: _.clone(this.id), - identifier: _.clone(this.identifier), - issuer: _.clone(this.issuer), - issuanceDate: _.clone(this.issuanceDate), - expirationDate: _.clone(this.expirationDate), - version: _.clone(this.version), - type: ['Credential', this.identifier], - claim: _.clone(this.credentialSubject), - proof: _.clone(this.proof), - }; - - if (obj.claim) delete obj.claim.id; - - return obj; - }; - - // maintains the old verification process for the older VC format - this.verifyMerkletreeSignature = (pubBase58) => { - if (_.isEmpty(pubBase58)) return false; - const verifier = new CredentialSignerVerifier({ pubBase58 }); - return verifier.isSignatureValid(this); - }; - } -} - -VerifiableCredentialProxy.create = async ( - identifier, issuer, expiryIn, ucas, version, evidence, signerVerifier = null, -) => { - // Load the schema and it's references from a source to be used for validation and defining the schema definitions - const schema = await schemaLoader.loadSchemaFromTitle(identifier); - - // Wrap the old signer verifier for backwards compatibility - let signer; - if (signerVerifier) { - signer = { signer: signerVerifier }; - } - - // If it has a credentialSubject, use the new VC format - if (schema && schema.properties.credentialSubject) { - return VerifiableCredential.create(identifier, issuer, expiryIn, '', ucas, evidence, signer); - } - - // Load the meta schema's from a source - await schemaLoader.loadSchemaFromTitle('cvc:Meta:issuer'); - await schemaLoader.loadSchemaFromTitle('cvc:Meta:issuanceDate'); - await schemaLoader.loadSchemaFromTitle('cvc:Meta:expirationDate'); - await schemaLoader.loadSchemaFromTitle('cvc:Random:node'); - - return new VerifiableCredentialProxy(identifier, issuer, expiryIn, ucas, version, evidence, signer); -}; - -/** - * Factory function that creates a new Verifiable Credential based on a JSON object. - * - * This proxy function ensures that the VC is converted into the new format. - * @param {*} verifiableCredentialJSON - * @returns VerifiableCredentialBaseConstructor - */ -VerifiableCredentialProxy.fromJSON = async (verifiableCredentialJSON, partialPresentation = false) => { - const schema = await schemaLoader.loadSchemaFromTitle(verifiableCredentialJSON.identifier); - const properties = await schemaLoader.flattenCredentialSchemaProperties(schema); - if (properties.credentialSubject) { - return VerifiableCredential.fromJSON(verifiableCredentialJSON); - } - - const newObj = await VerifiableCredentialProxy.create( - verifiableCredentialJSON.identifier, - verifiableCredentialJSON.issuer, - ); - - newObj.id = _.clone(verifiableCredentialJSON.id); - newObj.issuanceDate = _.clone(verifiableCredentialJSON.issuanceDate); - newObj.expirationDate = _.clone(verifiableCredentialJSON.expirationDate); - newObj.identifier = _.clone(verifiableCredentialJSON.identifier); - newObj.version = _.clone(verifiableCredentialJSON.version); - newObj.type = [ - 'VerifiableCredential', - 'IdentityCredential', - ]; - newObj.credentialSubject = _.cloneDeep(verifiableCredentialJSON.claim); - newObj.proof = _.cloneDeep(verifiableCredentialJSON.proof); - - if (!partialPresentation) { - const definition = getCredentialDefinition(verifiableCredentialJSON.identifier, verifiableCredentialJSON.version); - verifyRequiredClaimsFromJSON(definition, verifiableCredentialJSON); - } - - return newObj; -}; - -/** - * Non cryptographically secure verify the Credential - * Performs a proofs verification only. - * - * This proxy function ensures that if the VC is provided as a value object, it is correctly converted - * @param credential - A credential object with expirationDate, claim and proof - * @return true if verified, false otherwise. - */ -VerifiableCredentialProxy.nonCryptographicallySecureVerify = async (credential) => { - const vc = await VerifiableCredentialProxy.fromJSON(credential); - - return VerifiableCredential.nonCryptographicallySecureVerify(vc); -}; - -/** - * Cryptographically secure verify the Credential. - * Performs a non cryptographically secure verification, attestation check and signature validation. - * - * This proxy function ensures that if the VC is provided as a value object, it is correctly converted - * @param credential - A credential object with expirationDate, claim and proof - * @param verifyAttestationFunc - Async method to verify a credential attestation - * @param verifySignatureFunc - Async method to verify a credential signature - * @return true if verified, false otherwise. - */ -VerifiableCredentialProxy.cryptographicallySecureVerify = async ( - credential, verifyAttestationFunc, verifySignatureFunc, -) => { - const vc = await VerifiableCredentialProxy.fromJSON(credential); - - return VerifiableCredential.cryptographicallySecureVerify(vc, verifyAttestationFunc, verifySignatureFunc); -}; - -VerifiableCredentialProxy.requesterGrantVerify = async (credential, requesterId, requestId, keyName) => { - const vc = await VerifiableCredentialProxy.fromJSON(credential); - return VerifiableCredential.requesterGrantVerify(vc, requesterId, requestId, keyName); -}; - -module.exports = VerifiableCredentialProxy; diff --git a/src/index.js b/src/index.js index 7d9d258f..4879c7e5 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,6 @@ const credentialDefinitions = require('./creds/definitions'); const aggregate = require('./AggregationHandler'); const { schemaLoader } = require('./schemas/jsonSchema'); const CVCSchemaLoader = require('./schemas/jsonSchema/loaders/cvc'); -const VCCompat = require('./creds/VerifiableCredentialProxy'); /** * Entry Point for Civic Credential Commons * @returns {CredentialCommons} @@ -33,7 +32,6 @@ function CredentialCommons() { this.CVCSchemaLoader = CVCSchemaLoader; this.UserCollectableAttribute = UserCollectableAttribute; this.VC = VC; - this.VCCompat = VCCompat; return this; } diff --git a/src/isClaimRelated.js b/src/isClaimRelated.js index 1f6cb89d..cd8582ca 100644 --- a/src/isClaimRelated.js +++ b/src/isClaimRelated.js @@ -22,7 +22,7 @@ async function isClaimRelated(claim, uca, credential) { await schemaLoader.loadSchemaFromTitle(ucaIdentifier); // check on the credential commons if this identifier exists - const ucaDefinition = definitions.find(definition => definition.identifier === ucaIdentifier); + const ucaDefinition = definitions.find((definition) => definition.identifier === ucaIdentifier); // does the UCA exist? if (ucaDefinition) { const ucaProperties = await Claim.getAllProperties(ucaIdentifier); @@ -31,7 +31,7 @@ async function isClaimRelated(claim, uca, credential) { if (_.includes(ucaProperties, claim)) { // we now have the composite uca, the uca for the claim property, they both are correct // we need to check now the UCA is inside the dependencies of the credential refered as parent - const credentialDefinition = vcDefinitions.find(definition => ( + const credentialDefinition = vcDefinitions.find((definition) => ( definition.identifier === credential )); if (credentialDefinition) { diff --git a/src/lib/crypto.js b/src/lib/crypto.js index dc054518..db5e7431 100644 --- a/src/lib/crypto.js +++ b/src/lib/crypto.js @@ -1,6 +1,6 @@ const sjcl = require('sjcl'); -const sha256 = stringToHash => sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(stringToHash)); +const sha256 = (stringToHash) => sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(stringToHash)); module.exports = { sha256, diff --git a/src/lib/did.js b/src/lib/did.js index 342de0db..bcc38d52 100644 --- a/src/lib/did.js +++ b/src/lib/did.js @@ -1,15 +1,60 @@ -const { - findVerificationMethod, - CachedResolver, -} = require('@digitalbazaar/did-io'); -const didSol = require('@identity.com/did-io-driver-sol').default; +const VERIFICATION_RELATIONSHIPS = new Set([ + 'assertionMethod', + 'authentication', + 'capabilityDelegation', + 'capabilityInvocation', + 'keyAgreement', +]); -const resolver = new CachedResolver(); +function methodById({ doc, methodId }) { + // First, check the 'verificationMethod' bucket, see if it's listed there + if (doc.verificationMethod) { + const result = doc.verificationMethod.find((method) => method.id === methodId); + if (result) return result; + } -// no payer needed as we are only resolving documents -resolver.use(didSol.driver({ payer: null })); + return VERIFICATION_RELATIONSHIPS.find((purpose) => { + const methods = doc[purpose] || []; + // Iterate through each verification method in 'authentication', etc. + // Only return it if the method is defined, not referenced + return methods.find((method) => typeof method === 'object' && method.id === methodId); + }); +} + +/** + * Finds a verification method for a given id and returns it. + * + * @param {object} options - Options hashmap. + * @param {object} options.doc - DID Document. + * +* */ +function findVerificationMethod({ doc, methodId, purpose } = {}) { + if (!doc) { + throw new TypeError('A DID Document is required.'); + } + if (!(methodId || purpose)) { + throw new TypeError('A method id or purpose is required.'); + } + + if (methodId) { + return methodById({ doc, methodId }); + } + + // Id not given, find the first method by purpose + const [method] = doc[purpose] || []; + if (method && typeof method === 'string') { + // This is a reference, not the full method, attempt to find it + return methodById({ doc, methodId: method }); + } + + return method; +} module.exports = { + cachedResolver: null, + setResolver(resolver) { + this.cachedResolver = { get: resolver }; + }, /** * Checks if a verificationMethod can sign for the DID document * @@ -44,7 +89,7 @@ module.exports = { * @param did The DID to resolve the document for */ async resolve(did) { - return resolver.get({ did }); + return this.cachedResolver.get(did); }, /** @@ -55,7 +100,7 @@ module.exports = { */ findVerificationMethod(document, verificationMethod) { if (document.keyAgreement && document.keyAgreement.length > 0) { - return document.keyAgreement.find(agreement => agreement.id === verificationMethod); + return document.keyAgreement.find((agreement) => agreement.id === verificationMethod); } if (!document.capabilityInvocation.includes(verificationMethod)) { diff --git a/src/lib/signerVerifier.js b/src/lib/signerVerifier.js index a9b94d71..368cd83e 100644 --- a/src/lib/signerVerifier.js +++ b/src/lib/signerVerifier.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line max-classes-per-file const nacl = require('tweetnacl'); const bs58 = require('bs58'); const didUtil = require('./did'); diff --git a/src/lib/stringUtils.js b/src/lib/stringUtils.js index 1ff125a7..a57354f4 100644 --- a/src/lib/stringUtils.js +++ b/src/lib/stringUtils.js @@ -5,10 +5,10 @@ * @param string * @return {*} */ -const pascalToCamelCase = string => string.replace(/^([A-Z])/, match => match.toLowerCase()); +const pascalToCamelCase = (string) => string.replace(/^([A-Z])/, (match) => match.toLowerCase()); const identifierPattern = /(claim|credential|uca|type)-((\w+):[\w.:]+)-v(\d+)/; -const parseIdentifier = identifier => identifier.match(identifierPattern); +const parseIdentifier = (identifier) => identifier.match(identifierPattern); module.exports = { pascalToCamelCase, diff --git a/src/schemas/jsonSchema/index.js b/src/schemas/jsonSchema/index.js index 6f304f49..dfca7f17 100644 --- a/src/schemas/jsonSchema/index.js +++ b/src/schemas/jsonSchema/index.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line max-classes-per-file const _ = require('lodash'); const Ajv = require('ajv').default; const traverse = require('json-schema-traverse'); @@ -76,9 +77,9 @@ class SummaryMapper { return [identifier]; } - const credentials = _.filter(credentialDefinitions, item => _.includes(item.depends, identifier)); + const credentials = _.filter(credentialDefinitions, (item) => _.includes(item.depends, identifier)); - return _.map(credentials, item => item.identifier); + return _.map(credentials, (item) => item.identifier); } static getClaimPath(identifier) { @@ -133,7 +134,7 @@ function isDefinitionEqual(definition, ucaDefinition) { || definition.identifier === ucaDefinition; } -const isUCA = uca => /^[^:]+:[^:]+:[^:]+$/.test(uca); +const isUCA = (uca) => /^[^:]+:[^:]+:[^:]+$/.test(uca); /** * This class loads the schema definitions as needed by using loaders provided by the @@ -257,7 +258,6 @@ class SchemaLoader { return properties; } - /** * Adds a claim definition to be backwards compatible with the old schema structure. */ @@ -498,12 +498,11 @@ class SchemaLoader { return existingSchema.schema; } - /** * Finds the correct schema loader based on the identifier */ findSchemaLoader(identifier) { - return _.find(this.loaders, loader => loader.valid(identifier)); + return _.find(this.loaders, (loader) => loader.valid(identifier)); } /** diff --git a/src/schemas/jsonSchema/loaders/cvc.js b/src/schemas/jsonSchema/loaders/cvc.js index 86f9816e..a9ed3268 100644 --- a/src/schemas/jsonSchema/loaders/cvc.js +++ b/src/schemas/jsonSchema/loaders/cvc.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line max-classes-per-file const fs = require('fs'); const { parseIdentifier } = require('../../../lib/stringUtils'); const { services } = require('../../../services'); diff --git a/src/services/DefaultAnchorServiceImpl.js b/src/services/DefaultAnchorServiceImpl.js index 1f1ec315..2fa8cbaa 100644 --- a/src/services/DefaultAnchorServiceImpl.js +++ b/src/services/DefaultAnchorServiceImpl.js @@ -2,7 +2,7 @@ * Current Anchor/Attester service * */ -const uuid = require('uuid/v4'); +const { v4: uuid } = require('uuid'); const { HDNode, ECSignature } = require('bitcoinjs-lib'); const sjcl = require('sjcl'); const logger = require('../logger'); @@ -117,7 +117,7 @@ function DummyAnchorServiceImpl(config, http) { return Promise.resolve(signature); }; - this.isRevoked = signature => (signature.revoked ? signature.revoked : false); + this.isRevoked = (signature) => (signature.revoked ? signature.revoked : false); return this; } diff --git a/src/services/DummyAnchorServiceImpl.js b/src/services/DummyAnchorServiceImpl.js index f6ea8475..2371e4aa 100644 --- a/src/services/DummyAnchorServiceImpl.js +++ b/src/services/DummyAnchorServiceImpl.js @@ -2,7 +2,7 @@ * Current Anchor/Attester service * */ -const uuid = require('uuid/v4'); +const { v4: uuid } = require('uuid'); const logger = require('../logger'); /** @@ -93,7 +93,7 @@ function DummyAnchorServiceImpl(config, http) { return Promise.resolve(signature); }; - this.isRevoked = signature => (signature.revoked ? signature.revoked : false); + this.isRevoked = (signature) => (signature.revoked ? signature.revoked : false); return this; } diff --git a/src/services/__mocks__/httpService.js b/src/services/__mocks__/httpService.js index 35df2207..79cbd708 100644 --- a/src/services/__mocks__/httpService.js +++ b/src/services/__mocks__/httpService.js @@ -60,7 +60,7 @@ function HttpServiceConstructor() { }, ]; - const res = _.find(responses, r => _.includes(params.url, r.path)); + const res = _.find(responses, (r) => _.includes(params.url, r.path)); if (res) { return Promise.resolve(res.response); } diff --git a/src/services/anchorService.js b/src/services/anchorService.js index 3f1760f8..71d1861f 100644 --- a/src/services/anchorService.js +++ b/src/services/anchorService.js @@ -6,12 +6,12 @@ function Anchor(impl) { this.impl = impl; this.anchor = (label, data, options) => this.impl.anchor(label, data, options); - this.update = tempAnchor => this.impl.update(tempAnchor); - this.verifySignature = subject => this.impl.verifySignature(subject); - this.verifySubjectSignature = subject => this.impl.verifySubjectSignature(subject); - this.verifyAttestation = signature => this.impl.verifyAttestation(signature); - this.revokeAttestation = signature => this.impl.revokeAttestation(signature); - this.isRevoked = signature => this.impl.isRevoked(signature); + this.update = (tempAnchor) => this.impl.update(tempAnchor); + this.verifySignature = (subject) => this.impl.verifySignature(subject); + this.verifySubjectSignature = (subject) => this.impl.verifySubjectSignature(subject); + this.verifyAttestation = (signature) => this.impl.verifyAttestation(signature); + this.revokeAttestation = (signature) => this.impl.revokeAttestation(signature); + this.isRevoked = (signature) => this.impl.isRevoked(signature); return this; } From 65a92f2cdfd6087d18c15266f6e052d4f9efb798 Mon Sep 17 00:00:00 2001 From: dankelleher Date: Thu, 21 Sep 2023 13:03:49 +0200 Subject: [PATCH 2/6] Add Prettier --- .eslintrc | 7 +- .../credentials/VerifiableCredential.test.js | 94 +- __test__/CredentialSignerVerifier.test.js | 112 +- __test__/SecureRandom.test.js | 10 +- __test__/SecureRandomMock.test.js | 8 +- __test__/aggregate.test.js | 69 +- __test__/claim/Claim.test.js | 339 +- ...lectableAttributesWithMockedDefinitions.js | 38 +- __test__/creds/VerifiableCredential.test.js | 2883 +++++++++++------ __test__/errors/idvErrors.test.js | 8 +- __test__/index.test.js | 38 +- __test__/isClaimRelated.test.js | 74 +- __test__/isValidGlobalIdentifier.test.js | 67 +- __test__/lib/did.test.js | 30 +- __test__/lib/signerVerifier.test.js | 36 +- __test__/lib/util/did.js | 32 +- __test__/schemaLoader.test.js | 296 +- __test__/services/AggregationService.test.js | 91 +- .../services/MiniCryptoManagerImpl.test.js | 26 +- __test__/services/config.test.js | 14 +- __test__/services/configBranch.test.js | 14 +- __test__/services/services.test.js | 22 +- babel.config.js | 21 +- package-lock.json | 445 ++- package.json | 3 + src/AggregationHandler.js | 60 +- src/SecureRandom.js | 14 +- src/claim/Claim.js | 282 +- src/claim/__mocks__/definitions.js | 30 +- src/constants/headers.js | 6 +- src/constants/index.js | 2 +- src/creds/ClaimModel.js | 5 +- src/creds/CredentialSignerVerifier.js | 49 +- src/creds/CvcMerkleProof.js | 30 +- src/creds/VerifiableCredential.js | 517 +-- src/creds/__mocks__/definitions.js | 31 +- src/errors/definitions.js | 156 +- src/errors/idvErrors.js | 26 +- src/errors/index.js | 4 +- src/index.js | 26 +- src/isClaimRelated.js | 29 +- src/isValidGlobalIdentifier.js | 26 +- src/lib/crypto.js | 5 +- src/lib/did.js | 41 +- src/lib/signerVerifier.js | 47 +- src/lib/stringUtils.js | 3 +- src/schemas/jsonSchema/index.js | 160 +- src/schemas/jsonSchema/loaders/cvc.js | 28 +- src/services/DefaultAnchorServiceImpl.js | 90 +- src/services/DummyAnchorServiceImpl.js | 62 +- src/services/MiniCryptoManagerImpl.js | 10 +- src/services/__mocks__/httpService.js | 61 +- src/services/anchorService.js | 12 +- src/services/config.js | 26 +- src/services/httpService.js | 2 +- src/services/index.js | 52 +- src/timeHelper.js | 15 +- src/uca/UCA.js | 11 +- 58 files changed, 4340 insertions(+), 2355 deletions(-) diff --git a/.eslintrc b/.eslintrc index d06d95f8..eb7d0540 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,8 @@ { - "extends": "airbnb-base", + "extends": [ + "airbnb-base", + "plugin:prettier/recommended" + ], "env": { "browser": true, "commonjs": true, @@ -10,6 +13,6 @@ "no-only-tests" ], "rules": { - "max-len": ["warn", 300] // this is too big - add prettier + "max-len": ["warn", 120] } } diff --git a/__integrations__/credentials/VerifiableCredential.test.js b/__integrations__/credentials/VerifiableCredential.test.js index 675f2b38..7101390e 100644 --- a/__integrations__/credentials/VerifiableCredential.test.js +++ b/__integrations__/credentials/VerifiableCredential.test.js @@ -1,13 +1,14 @@ -const { v4: uuidv4 } = require('uuid'); -const { Claim } = require('../../src/claim/Claim'); -const VC = require('../../src/creds/VerifiableCredential'); -const { schemaLoader, CVCSchemaLoader } = require('../../src'); +const { v4: uuidv4 } = require("uuid"); +const { Claim } = require("../../src/claim/Claim"); +const VC = require("../../src/creds/VerifiableCredential"); +const { schemaLoader, CVCSchemaLoader } = require("../../src"); -const credentialSubject = 'did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V'; +const credentialSubject = + "did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V"; jest.setTimeout(200000); -describe('Integration Tests for Verifiable Credentials', () => { +describe("Integration Tests for Verifiable Credentials", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); @@ -16,45 +17,78 @@ describe('Integration Tests for Verifiable Credentials', () => { schemaLoader.reset(); }); - it('should request an anchor for Credential and return an temporary attestation', async () => { - const name = await Claim.create( - 'claim-cvc:Identity.name-v1', - { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }, - ); + it("should request an anchor for Credential and return an temporary attestation", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Joao", + otherNames: "Barbosa", + familyNames: "Santos", + }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 20, month: 3, year: 1978 }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { + day: 20, + month: 3, + year: 1978, + }); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const updated = await cred.requestAnchor(); - expect(updated.proof.anchor.type).toBe('temporary'); + expect(updated.proof.anchor.type).toBe("temporary"); expect(updated.proof.anchor.value).not.toBeDefined(); expect(updated.proof.anchor).toBeDefined(); - expect(updated.proof.anchor.schema).toBe('dummy-20180201'); + expect(updated.proof.anchor.schema).toBe("dummy-20180201"); }); - it('should refresh an temporary anchoring with an permanent one', async () => { - const name = await Claim.create( - 'claim-cvc:Identity.name-v1', - { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }, - ); + it("should refresh an temporary anchoring with an permanent one", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Joao", + otherNames: "Barbosa", + familyNames: "Santos", + }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 20, month: 3, year: 1978 }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { + day: 20, + month: 3, + year: 1978, + }); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const updated = await cred.requestAnchor(); expect(updated.proof.anchor).toBeDefined(); const newUpdated = await updated.updateAnchor(); - expect(newUpdated.proof.anchor.type).toBe('permanent'); + expect(newUpdated.proof.anchor.type).toBe("permanent"); expect(newUpdated.proof.anchor).toBeDefined(); expect(newUpdated.proof.anchor.value).toBeDefined(); }); - it('should revoke the permanent anchor and succeed verification', async () => { - const name = await Claim.create( - 'claim-cvc:Identity.name-v1', - { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }, - ); + it("should revoke the permanent anchor and succeed verification", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Joao", + otherNames: "Barbosa", + familyNames: "Santos", + }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 20, month: 3, year: 1978 }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { + day: 20, + month: 3, + year: 1978, + }); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); await cred.requestAnchor(); await cred.updateAnchor(); const validation = await cred.verifyAttestation(); diff --git a/__test__/CredentialSignerVerifier.test.js b/__test__/CredentialSignerVerifier.test.js index d21da1f3..7d3b5db9 100644 --- a/__test__/CredentialSignerVerifier.test.js +++ b/__test__/CredentialSignerVerifier.test.js @@ -1,15 +1,17 @@ /* eslint-disable max-len */ -const { HDNode } = require('bitcoinjs-lib'); -const CredentialSignerVerifier = require('../src/creds/CredentialSignerVerifier'); +const { HDNode } = require("bitcoinjs-lib"); +const CredentialSignerVerifier = require("../src/creds/CredentialSignerVerifier"); -const SEED = 'f6d466fd58c20ff964673522083efebf'; -const prvBase58 = 'xprv9s21ZrQH143K4aBUwUW6GVec7Y6oUEBqrt2WWaXyxjh2pjofNc1of44BLufn4p1t7Jq4EPzm5C9sRxCuBYJdHu62jhgfyPm544sNjtH7x8S'; +const SEED = "f6d466fd58c20ff964673522083efebf"; +const prvBase58 = + "xprv9s21ZrQH143K4aBUwUW6GVec7Y6oUEBqrt2WWaXyxjh2pjofNc1of44BLufn4p1t7Jq4EPzm5C9sRxCuBYJdHu62jhgfyPm544sNjtH7x8S"; -const pubBase58 = 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD'; +const pubBase58 = + "xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD"; -describe('CredentialSignerVerifier Tests', () => { - describe('Using a ECKeyPair', () => { +describe("CredentialSignerVerifier Tests", () => { + describe("Using a ECKeyPair", () => { let keyPair; let signerVerifier; @@ -18,8 +20,11 @@ describe('CredentialSignerVerifier Tests', () => { signerVerifier = new CredentialSignerVerifier({ keyPair }); }); - it('Should sign and verify', () => { - const toSign = { merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' }; + it("Should sign and verify", () => { + const toSign = { + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + }; const signature = signerVerifier.sign(toSign); expect(signature).toBeDefined(); const toVerify = { @@ -31,14 +36,17 @@ describe('CredentialSignerVerifier Tests', () => { expect(signerVerifier.isSignatureValid(toVerify)).toBeTruthy(); }); - it('Should verify', () => { + it("Should verify", () => { const toVerify = { proof: { - merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666', + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666", merkleRootSignature: { - algo: 'ec256k1', - pubBase58: 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD', - signature: '3045022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa', + algo: "ec256k1", + pubBase58: + "xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD", + signature: + "3045022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa", }, }, }; @@ -46,29 +54,35 @@ describe('CredentialSignerVerifier Tests', () => { expect(signerVerifier.isSignatureValid(toVerify)).toBeTruthy(); }); - it('Should not verify', () => { + it("Should not verify", () => { const toVerify = { proof: { - merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666', + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666", merkleRootSignature: { - algo: 'ec256k1', - pubBase58: 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD', - signature: 'fa3e022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa', + algo: "ec256k1", + pubBase58: + "xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD", + signature: + "fa3e022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa", }, }, }; expect(signerVerifier.isSignatureValid(toVerify)).toBeFalsy(); }); }); - describe('Using a prvBase58', () => { + describe("Using a prvBase58", () => { let signerVerifier; beforeAll(() => { signerVerifier = new CredentialSignerVerifier({ prvBase58 }); }); - it('Should sign and verify', () => { - const toSign = { merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' }; + it("Should sign and verify", () => { + const toSign = { + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + }; const signature = signerVerifier.sign(toSign); expect(signature).toBeDefined(); const toVerify = { @@ -80,63 +94,75 @@ describe('CredentialSignerVerifier Tests', () => { expect(signerVerifier.isSignatureValid(toVerify)).toBeTruthy(); }); - it('Should verify', () => { + it("Should verify", () => { const toVerify = { proof: { - merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666', + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666", merkleRootSignature: { - algo: 'ec256k1', - pubBase58: 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD', - signature: '3045022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa', + algo: "ec256k1", + pubBase58: + "xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD", + signature: + "3045022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa", }, }, }; expect(signerVerifier.isSignatureValid(toVerify)).toBeTruthy(); }); - it('Should not verify', () => { + it("Should not verify", () => { const toVerify = { proof: { - merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666', + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666", merkleRootSignature: { - algo: 'ec256k1', - pubBase58: 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD', - signature: 'fa3e022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa', + algo: "ec256k1", + pubBase58: + "xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD", + signature: + "fa3e022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa", }, }, }; expect(signerVerifier.isSignatureValid(toVerify)).toBeFalsy(); }); }); - describe('Using a pubBase58', () => { + describe("Using a pubBase58", () => { let signerVerifier; beforeAll(() => { signerVerifier = new CredentialSignerVerifier({ pubBase58 }); }); - it('Should verify', () => { + it("Should verify", () => { const toVerify = { proof: { - merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666', + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666", merkleRootSignature: { - algo: 'ec256k1', - pubBase58: 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD', - signature: '3045022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa', + algo: "ec256k1", + pubBase58: + "xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD", + signature: + "3045022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa", }, }, }; expect(signerVerifier.isSignatureValid(toVerify)).toBeTruthy(); }); - it('Should not verify', () => { + it("Should not verify", () => { const toVerify = { proof: { - merkleRoot: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666', + merkleRoot: + "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b666", merkleRootSignature: { - algo: 'ec256k1', - pubBase58: 'xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD', - signature: 'fa3e022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa', + algo: "ec256k1", + pubBase58: + "xpub661MyMwAqRbcH4Fx3W36ddbLfZwHsguhE6x7JxwbX5E1hY8ov9L4CrNfCCQpV8pVK64CVqkhYQ9QLFgkVAUqkRThkTY1R4GiWHNZtAFSVpD", + signature: + "fa3e022100e7f0921491e8da2759b24047443325483ac023795683dc3b91c78d0566a1159602206fd4e80982fd83705932543d02bc6abd079446bf4ec7b5d9fba4f7f5363bd6fa", }, }, }; diff --git a/__test__/SecureRandom.test.js b/__test__/SecureRandom.test.js index 4a46596b..93fcc140 100644 --- a/__test__/SecureRandom.test.js +++ b/__test__/SecureRandom.test.js @@ -1,16 +1,16 @@ -const SecureRandom = require('../src/SecureRandom'); +const SecureRandom = require("../src/SecureRandom"); -describe('Secure Random Tests', () => { - it('should generate an random word', () => { +describe("Secure Random Tests", () => { + it("should generate an random word", () => { const secureRandom = new SecureRandom(); const random = secureRandom.wordWith(16); expect(random).toBeDefined(); expect(random).toHaveLength(16); }); - it('should initialize with seed', () => { + it("should initialize with seed", () => { try { - const secureRandom = new SecureRandom('asdasd'); + const secureRandom = new SecureRandom("asdasd"); const random = secureRandom.wordWith(16); expect(random).toBeDefined(); expect(random).toHaveLength(16); diff --git a/__test__/SecureRandomMock.test.js b/__test__/SecureRandomMock.test.js index 583be3dd..6f3a5c25 100644 --- a/__test__/SecureRandomMock.test.js +++ b/__test__/SecureRandomMock.test.js @@ -1,9 +1,9 @@ -const SecureRandom = require('../src/SecureRandom'); +const SecureRandom = require("../src/SecureRandom"); // jest babel hoist the mock to the top of the file // do not mock the other SecureRandom.test.js or else you won't be able to unmock -jest.mock('crypto'); -describe('Secure Random Tests', () => { - it('should fail since we are mocking the crypto class', () => { +jest.mock("crypto"); +describe("Secure Random Tests", () => { + it("should fail since we are mocking the crypto class", () => { const secureRandom = new SecureRandom(); expect(() => secureRandom.wordWith(16)).toThrow(); }); diff --git a/__test__/aggregate.test.js b/__test__/aggregate.test.js index aa695a13..52802661 100644 --- a/__test__/aggregate.test.js +++ b/__test__/aggregate.test.js @@ -1,54 +1,61 @@ -const CredentialCommons = require('../src/index'); +const CredentialCommons = require("../src/index"); -describe('CredentialCommons.aggregate', () => { - it('should throw Invalid Operator', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; +describe("CredentialCommons.aggregate", () => { + it("should throw Invalid Operator", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; expect(() => { CredentialCommons.aggregate(collection, [{ $toString: null }]); - }).toThrow('Invalid operator: $toString'); + }).toThrow("Invalid operator: $toString"); }); - it('should return a collection with same equality', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; + it("should return a collection with same equality", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; const result = CredentialCommons.aggregate(collection, [{ none: null }]); expect(result).toStrictEqual(collection); }); - it('should return the first 2 elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; + it("should return the first 2 elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; const result = CredentialCommons.aggregate(collection, [{ $limit: 2 }]); - expect(result).toStrictEqual([{ k: 'a' }, { k: 'b' }]); + expect(result).toStrictEqual([{ k: "a" }, { k: "b" }]); }); - it('should return the first elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; - const result = CredentialCommons.aggregate(collection, [{ $first: 'true' }]); - expect(result).toStrictEqual([{ k: 'a' }]); + it("should return the first elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; + const result = CredentialCommons.aggregate(collection, [ + { $first: "true" }, + ]); + expect(result).toStrictEqual([{ k: "a" }]); }); - it('should return the last elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; - const result = CredentialCommons.aggregate(collection, [{ $last: 'true' }]); - expect(result).toStrictEqual([{ k: 'c' }]); + it("should return the last elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; + const result = CredentialCommons.aggregate(collection, [{ $last: "true" }]); + expect(result).toStrictEqual([{ k: "c" }]); }); - it('should return in ascending order ', () => { - const collection = [{ k: 'b' }, { k: 'a' }, { k: 'c' }]; - const result = CredentialCommons.aggregate(collection, [{ $sort: { k: 'ASC' } }]); - expect(result).toStrictEqual([{ k: 'a' }, { k: 'b' }, { k: 'c' }]); + it("should return in ascending order ", () => { + const collection = [{ k: "b" }, { k: "a" }, { k: "c" }]; + const result = CredentialCommons.aggregate(collection, [ + { $sort: { k: "ASC" } }, + ]); + expect(result).toStrictEqual([{ k: "a" }, { k: "b" }, { k: "c" }]); }); - it('should return in descending order ', () => { - const collection = [{ k: 'b' }, { k: 'a' }, { k: 'c' }]; - const result = CredentialCommons.aggregate(collection, [{ $sort: { k: 'DES' } }]); - expect(result).toStrictEqual([{ k: 'c' }, { k: 'b' }, { k: 'a' }]); + it("should return in descending order ", () => { + const collection = [{ k: "b" }, { k: "a" }, { k: "c" }]; + const result = CredentialCommons.aggregate(collection, [ + { $sort: { k: "DES" } }, + ]); + expect(result).toStrictEqual([{ k: "c" }, { k: "b" }, { k: "a" }]); }); - it('should apply operations in order', () => { - const collection = [{ k: 'b' }, { k: 'a' }, { k: 'c' }]; + it("should apply operations in order", () => { + const collection = [{ k: "b" }, { k: "a" }, { k: "c" }]; const result = CredentialCommons.aggregate(collection, [ - { $sort: { k: 'DES' } }, - { $limit: 2 }]); - expect(result).toStrictEqual([{ k: 'c' }, { k: 'b' }]); + { $sort: { k: "DES" } }, + { $limit: 2 }, + ]); + expect(result).toStrictEqual([{ k: "c" }, { k: "b" }]); }); }); diff --git a/__test__/claim/Claim.test.js b/__test__/claim/Claim.test.js index cebb4bbf..f3821dd0 100644 --- a/__test__/claim/Claim.test.js +++ b/__test__/claim/Claim.test.js @@ -1,9 +1,14 @@ -const { Claim } = require('../../src/claim/Claim'); -const { schemaLoader, CVCSchemaLoader, UserCollectableAttribute } = require('../../src'); +/* eslint-disable max-len */ +const { Claim } = require("../../src/claim/Claim"); +const { + schemaLoader, + CVCSchemaLoader, + UserCollectableAttribute, +} = require("../../src"); jest.setTimeout(30000); -describe('Claim Constructions tests', () => { +describe("Claim Constructions tests", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); @@ -12,103 +17,109 @@ describe('Claim Constructions tests', () => { schemaLoader.reset(); }); - test( - 'Claim construction should fails', - async () => expect(Claim.create('name.first', 'joao')) - .rejects.toThrow(/name.first is not defined/), - ); + test("Claim construction should fails", async () => + expect(Claim.create("name.first", "joao")).rejects.toThrow( + /name.first is not defined/, + )); - test('Claim construction should succeed', async () => { - const v = await Claim.create('claim-cvc:Name.givenNames-v1', 'joao'); + test("Claim construction should succeed", async () => { + const v = await Claim.create("claim-cvc:Name.givenNames-v1", "joao"); expect(v).toBeDefined(); }); - test('Claim should have identifier', async () => { - const identifier = 'claim-cvc:Name.givenNames-v1'; - const v = await Claim.create(identifier, 'joao'); + test("Claim should have identifier", async () => { + const identifier = "claim-cvc:Name.givenNames-v1"; + const v = await Claim.create(identifier, "joao"); expect(v).toBeDefined(); expect(v.identifier).toEqual(identifier); expect(v.version).toBeDefined(); }); - test('Claim dont construct incomplete objects', () => { - const identifier = 'claim-cvc:Identity.name-v1'; + test("Claim dont construct incomplete objects", () => { + const identifier = "claim-cvc:Identity.name-v1"; const value = { - familyNames: 'santos', + familyNames: "santos", }; - return expect(Claim.create(identifier, value)).rejects - .toThrow(/Missing required fields to claim-cvc:Identity.name-v1/); + return expect(Claim.create(identifier, value)).rejects.toThrow( + /Missing required fields to claim-cvc:Identity.name-v1/, + ); }); - test('Claim dont construct invalid day', () => { - const identifier = 'claim-cvc:Identity.dateOfBirth-v1'; + test("Claim dont construct invalid day", () => { + const identifier = "claim-cvc:Identity.dateOfBirth-v1"; const value = { day: 40, month: 13, year: 1978, }; - return Claim.create(identifier, value).catch((e) => expect(e).toBeDefined()); + return Claim.create(identifier, value).catch((e) => + expect(e).toBeDefined(), + ); }); - test('Claim dont construct invalid month', async () => { - const identifier = 'claim-cvc:Identity.dateOfBirth-v1'; + test("Claim dont construct invalid month", async () => { + const identifier = "claim-cvc:Identity.dateOfBirth-v1"; const value = { day: 20, month: 13, year: 1978, }; - return Claim.create(identifier, value).catch((e) => expect(e).toBeDefined()); + return Claim.create(identifier, value).catch((e) => + expect(e).toBeDefined(), + ); }); - test('Claim dont construct invalid year', async () => { - const identifier = 'claim-cvc:Identity.dateOfBirth-v1'; + test("Claim dont construct invalid year", async () => { + const identifier = "claim-cvc:Identity.dateOfBirth-v1"; const value = { day: 20, month: 3, year: -1, }; - return Claim.create(identifier, value).catch((e) => expect(e).toBeDefined()); + return Claim.create(identifier, value).catch((e) => + expect(e).toBeDefined(), + ); }); - test('cvc:Verify:phoneNumberToken must have type equals String', async () => { - const identifier = 'cvc:Verify:phoneNumberToken'; - const value = '12345'; + test("cvc:Verify:phoneNumberToken must have type equals String", async () => { + const identifier = "cvc:Verify:phoneNumberToken"; + const value = "12345"; const v = await Claim.create(identifier, value); expect(v).toBeDefined(); - expect(v.type).toEqual('String'); + expect(v.type).toEqual("String"); }); - test('Creation of Name must return type of object', async () => { - const identifier = 'claim-cvc:Identity.name-v1'; + test("Creation of Name must return type of object", async () => { + const identifier = "claim-cvc:Identity.name-v1"; const value = { - givenNames: 'joao', + givenNames: "joao", }; const v = await Claim.create(identifier, value); expect(v).toBeDefined(); - expect(v.type).toEqual('Object'); + expect(v.type).toEqual("Object"); }); - test('Creation of claim-cvc:Identity.name-v1 successfuly', async () => { - const identifier = 'claim-cvc:Identity.name-v1'; + test("Creation of claim-cvc:Identity.name-v1 successfuly", async () => { + const identifier = "claim-cvc:Identity.name-v1"; const value = { - givenNames: 'Joao Paulo', - familyNames: 'Barbosa Marques dos Santos', + givenNames: "Joao Paulo", + familyNames: "Barbosa Marques dos Santos", }; const v = await Claim.create(identifier, value); expect(v).toBeDefined(); - expect(v.value).toHaveProperty('givenNames'); - expect(v.value.givenNames.value).toEqual('Joao Paulo'); - expect(v.value).toHaveProperty('familyNames'); - expect(v.value.familyNames.value).toEqual('Barbosa Marques dos Santos'); + expect(v.value).toHaveProperty("givenNames"); + expect(v.value.givenNames.value).toEqual("Joao Paulo"); + expect(v.value).toHaveProperty("familyNames"); + expect(v.value.familyNames.value).toEqual("Barbosa Marques dos Santos"); }); - test('Creating date of birth Claim successfuly', async () => { - const identifier = 'claim-cvc:Identity.dateOfBirth-v1'; + test("Creating date of birth Claim successfuly", async () => { + const identifier = "claim-cvc:Identity.dateOfBirth-v1"; const value = { day: 20, month: 3, @@ -121,10 +132,10 @@ describe('Claim Constructions tests', () => { expect(v.value.year.value).toBe(value.year); }); - test('Construct Patient successfully', async () => { - const identifier = 'claim-cvc:Type.patient-v1'; + test("Construct Patient successfully", async () => { + const identifier = "claim-cvc:Type.patient-v1"; const value = { - fullName: 'Patient Name', + fullName: "Patient Name", dateOfBirth: { day: 2, month: 2, @@ -138,139 +149,157 @@ describe('Claim Constructions tests', () => { expect(claim.getAttestableValues()); }); - test('Construct by NameGivenNames must result successfully', async () => { - const v = await Claim.create('cvc:Name:givenNames', 'Joao'); + test("Construct by NameGivenNames must result successfully", async () => { + const v = await Claim.create("cvc:Name:givenNames", "Joao"); expect(v).toBeDefined(); - expect(v.value).toBe('Joao'); + expect(v.value).toBe("Joao"); }); - test('Construct IdentityName must result successfully', async () => { - const value = { givenNames: 'Joao', otherNames: 'Barbosa', familyNames: 'Santos' }; - const v = await Claim.create('claim-cvc:Identity.name-v1', value); + test("Construct IdentityName must result successfully", async () => { + const value = { + givenNames: "Joao", + otherNames: "Barbosa", + familyNames: "Santos", + }; + const v = await Claim.create("claim-cvc:Identity.name-v1", value); expect(v).toBeDefined(); expect(v.value.givenNames.value).toBe(value.givenNames); expect(v.value.otherNames.value).toBe(value.otherNames); expect(v.value.familyNames.value).toBe(value.familyNames); }); - test('Claim should construct a complex Attestatble Value: claim-cvc:Identity.name-v1', async () => { - // eslint-disable-next-line max-len - const aComplexAttestableValue = 'urn:name.familyNames:c443e0a97a2df34573f910927e25c58e597e211152dfb650e6210facacc1a065:Santos|urn:name.givenNames:f14ab211784a3b3d2f20d423847a775ad56c3be8104a51aa084f0c94756d953b:Joao|urn:name.otherNames:09a31dab0a537ac5330a07df63effd9d2f55e91845956b58119843835f7dd9ed:Barbosa|'; - const v = await Claim.create('claim-cvc:Identity.name-v1', { attestableValue: aComplexAttestableValue }); + test("Claim should construct a complex Attestatble Value: claim-cvc:Identity.name-v1", async () => { + const aComplexAttestableValue = + "urn:name.familyNames:c443e0a97a2df34573f910927e25c58e597e211152dfb650e6210facacc1a065:Santos|urn:name.givenNames:f14ab211784a3b3d2f20d423847a775ad56c3be8104a51aa084f0c94756d953b:Joao|urn:name.otherNames:09a31dab0a537ac5330a07df63effd9d2f55e91845956b58119843835f7dd9ed:Barbosa|"; + const v = await Claim.create("claim-cvc:Identity.name-v1", { + attestableValue: aComplexAttestableValue, + }); expect(v).toBeDefined(); }); - test('Claim should create claim path correctly', async () => { - // eslint-disable-next-line max-len - const aComplexAttestableValue = 'urn:name.familyNames:c443e0a97a2df34573f910927e25c58e597e211152dfb650e6210facacc1a065:Santos|urn:name.givenNames:f14ab211784a3b3d2f20d423847a775ad56c3be8104a51aa084f0c94756d953b:Joao|urn:name.otherNames:09a31dab0a537ac5330a07df63effd9d2f55e91845956b58119843835f7dd9ed:Barbosa|'; - const v = await Claim.create('claim-cvc:Identity.name-v1', { attestableValue: aComplexAttestableValue }); + test("Claim should create claim path correctly", async () => { + const aComplexAttestableValue = + "urn:name.familyNames:c443e0a97a2df34573f910927e25c58e597e211152dfb650e6210facacc1a065:Santos|urn:name.givenNames:f14ab211784a3b3d2f20d423847a775ad56c3be8104a51aa084f0c94756d953b:Joao|urn:name.otherNames:09a31dab0a537ac5330a07df63effd9d2f55e91845956b58119843835f7dd9ed:Barbosa|"; + const v = await Claim.create("claim-cvc:Identity.name-v1", { + attestableValue: aComplexAttestableValue, + }); expect(v).toBeDefined(); const claimPath = v.getClaimPath(); - expect(claimPath).toBe('identity.name'); + expect(claimPath).toBe("identity.name"); }); - test('Claim should return empty array when parsing wrong attestable value', async () => { + test("Claim should return empty array when parsing wrong attestable value", async () => { try { // eslint-disable-next-line max-len - const aComplexAttestableValue = { attestableValue: 'buren:name.familyNames:c443e0a97a2df34573f910927e25c58e597e211152dfb650e6210facacc1a065:Santos|buren:name.givenNames:f14ab211784a3b3d2f20d423847a775ad56c3be8104a51aa084f0c94756d953b:Joao|urn:name.otherNames:09a31dab0a537ac5330a07df63effd9d2f55e91845956b58119843835f7dd9ed:Barbosa' }; + const aComplexAttestableValue = { + attestableValue: + "buren:name.familyNames:c443e0a97a2df34573f910927e25c58e597e211152dfb650e6210facacc1a065:Santos|buren:name.givenNames:f14ab211784a3b3d2f20d423847a775ad56c3be8104a51aa084f0c94756d953b:Joao|urn:name.otherNames:09a31dab0a537ac5330a07df63effd9d2f55e91845956b58119843835f7dd9ed:Barbosa", + }; Claim.parseAttestableValue(aComplexAttestableValue); } catch (e) { expect(e).toBeDefined(); - expect(e.message).toBe('Invalid attestableValue'); + expect(e.message).toBe("Invalid attestableValue"); } }); - test('Construct a cvc:Meta:expirationDate', async () => { - const identifier = 'cvc:Meta:expirationDate'; - const isoDate = '2018-06-20T13:51:18.640Z'; + test("Construct a cvc:Meta:expirationDate", async () => { + const identifier = "cvc:Meta:expirationDate"; + const isoDate = "2018-06-20T13:51:18.640Z"; const v = await Claim.create(identifier, isoDate); expect(v).toBeDefined(); }); - test('Get global identifier of a Claim', async () => { - const identifier = 'cvc:Meta:expirationDate'; - const isoDate = '2018-06-20T13:51:18.640Z'; + test("Get global identifier of a Claim", async () => { + const identifier = "cvc:Meta:expirationDate"; + const isoDate = "2018-06-20T13:51:18.640Z"; const v = await Claim.create(identifier, isoDate); expect(v).toBeDefined(); expect(v.getGlobalIdentifier()).toBe(`claim-${identifier}-1`); }); - test('Construct a claim-cvc:Contact.email-v1 Claim', async () => { - const identifier = 'claim-cvc:Contact.email-v1'; - const email = await Claim.create(identifier, { username: 'joao', domain: { name: 'civic', tld: 'com' } }); + test("Construct a claim-cvc:Contact.email-v1 Claim", async () => { + const identifier = "claim-cvc:Contact.email-v1"; + const email = await Claim.create(identifier, { + username: "joao", + domain: { name: "civic", tld: "com" }, + }); const plain = email.getPlainValue(); - expect(plain.username).toBe('joao'); + expect(plain.username).toBe("joao"); expect(plain.domain).toBeDefined(); - expect(plain.domain.name).toBe('civic'); - expect(plain.domain.tld).toBe('com'); + expect(plain.domain.name).toBe("civic"); + expect(plain.domain.tld).toBe("com"); }); - test('Construct a claim-cvc:Contact.phoneNumber-v1', async () => { - const identifier = 'claim-cvc:Contact.phoneNumber-v1'; + test("Construct a claim-cvc:Contact.phoneNumber-v1", async () => { + const identifier = "claim-cvc:Contact.phoneNumber-v1"; const phone = await Claim.create(identifier, { - country: 'DE', - countryCode: '49', - number: '17225252255', - lineType: 'mobile', - extension: '111', + country: "DE", + countryCode: "49", + number: "17225252255", + lineType: "mobile", + extension: "111", }); const plain = phone.getPlainValue(); - expect(plain.country).toBe('DE'); - expect(plain.countryCode).toBe('49'); - expect(plain.number).toBe('17225252255'); - expect(plain.extension).toBe('111'); - expect(plain.lineType).toBe('mobile'); + expect(plain.country).toBe("DE"); + expect(plain.countryCode).toBe("49"); + expect(plain.number).toBe("17225252255"); + expect(plain.extension).toBe("111"); + expect(plain.lineType).toBe("mobile"); }); - test('Construct claim-cvc:Type.address-v1', async () => { - const identifier = 'claim-cvc:Type.address-v1'; + test("Construct claim-cvc:Type.address-v1", async () => { + const identifier = "claim-cvc:Type.address-v1"; const address = await Claim.create(identifier, { - country: 'DE', - state: 'Berlin', - county: 'Berlin', - city: 'Berlin', - postalCode: '15123', - street: 'Ruthllardstr', - unit: '12', + country: "DE", + state: "Berlin", + county: "Berlin", + city: "Berlin", + postalCode: "15123", + street: "Ruthllardstr", + unit: "12", }); const plain = address.getPlainValue(); - expect(plain.country).toBe('DE'); - expect(plain.state).toBe('Berlin'); - expect(plain.county).toBe('Berlin'); - expect(plain.city).toBe('Berlin'); - expect(plain.unit).toBe('12'); - expect(plain.postalCode).toBe('15123'); - expect(plain.street).toBe('Ruthllardstr'); + expect(plain.country).toBe("DE"); + expect(plain.state).toBe("Berlin"); + expect(plain.county).toBe("Berlin"); + expect(plain.city).toBe("Berlin"); + expect(plain.unit).toBe("12"); + expect(plain.postalCode).toBe("15123"); + expect(plain.street).toBe("Ruthllardstr"); expect(address.id).toBeDefined(); }); - test('Should get ALL Claim properties email', async () => { - const properties = await Claim.getAllProperties('claim-cvc:Contact.email-v1'); + test("Should get ALL Claim properties email", async () => { + const properties = await Claim.getAllProperties( + "claim-cvc:Contact.email-v1", + ); expect(properties).toHaveLength(3); - expect(properties).toContain('contact.email.username'); - expect(properties).toContain('contact.email.domain.name'); - expect(properties).toContain('contact.email.domain.tld'); + expect(properties).toContain("contact.email.username"); + expect(properties).toContain("contact.email.domain.name"); + expect(properties).toContain("contact.email.domain.tld"); }); - test('Should get ALL Claim properties name', async () => { - const properties = await Claim.getAllProperties('claim-cvc:Identity.name-v1'); + test("Should get ALL Claim properties name", async () => { + const properties = await Claim.getAllProperties( + "claim-cvc:Identity.name-v1", + ); expect(properties).toHaveLength(3); - expect(properties).toContain('identity.name.givenNames'); - expect(properties).toContain('identity.name.familyNames'); - expect(properties).toContain('identity.name.otherNames'); + expect(properties).toContain("identity.name.givenNames"); + expect(properties).toContain("identity.name.familyNames"); + expect(properties).toContain("identity.name.otherNames"); }); - test('Claim with attestable value must constructed and parsed', async () => { - const identifier = 'claim-cvc:Type.address-v1'; + test("Claim with attestable value must constructed and parsed", async () => { + const identifier = "claim-cvc:Type.address-v1"; const attestableValue = { - country: 'DE', - state: 'Berlin', - county: 'Berlin', - city: 'Berlin', - postalCode: '15123', - street: 'Ruthllardstr', - unit: '12', + country: "DE", + state: "Berlin", + county: "Berlin", + city: "Berlin", + postalCode: "15123", + street: "Ruthllardstr", + unit: "12", // attestableValue: 'Mocked:asdkmalsdqasd', }; const uca = await Claim.create(identifier, attestableValue); @@ -278,49 +307,73 @@ describe('Claim Constructions tests', () => { expect(uca.value).toBeDefined(); }); - test('Transforming UCA to Claim', async () => { - const identifier = 'cvc:Identity:dateOfBirth'; + test("Transforming UCA to Claim", async () => { + const identifier = "cvc:Identity:dateOfBirth"; const value = { day: 20, month: 12, year: 1978, }; - const dateOfBirthUCA = await UserCollectableAttribute.create(identifier, value); + const dateOfBirthUCA = await UserCollectableAttribute.create( + identifier, + value, + ); expect(dateOfBirthUCA).toBeDefined(); expect(dateOfBirthUCA.value).toBeDefined(); expect(dateOfBirthUCA.value.day).toBeDefined(); expect(dateOfBirthUCA.value.day.value).toBe(20); // converting UCA to Claim - const dateOfBirthClaim = await Claim.create(identifier, dateOfBirthUCA.getPlainValue()); + const dateOfBirthClaim = await Claim.create( + identifier, + dateOfBirthUCA.getPlainValue(), + ); expect(dateOfBirthClaim).toBeDefined(); expect(dateOfBirthClaim.value).toBeDefined(); expect(dateOfBirthClaim.value.day).toBeDefined(); expect(dateOfBirthClaim.value.day.value).toBe(20); - expect(dateOfBirthClaim.identifier).toBe('claim-cvc:Identity.dateOfBirth-v1'); + expect(dateOfBirthClaim.identifier).toBe( + "claim-cvc:Identity.dateOfBirth-v1", + ); }); - test('Transforming alias UCA to Claim', async () => { - const identifier = 'cvc:Document:evidences'; - const aliasIdentifier = 'cvc:Validation:evidences'; + test("Transforming alias UCA to Claim", async () => { + const identifier = "cvc:Document:evidences"; + const aliasIdentifier = "cvc:Validation:evidences"; const value = { - idDocumentFront: { algorithm: 'sha256', data: 'sha256(idDocumentFront)' }, - idDocumentBack: { algorithm: 'sha256', data: 'sha256(idDocumentBack)' }, - selfie: { algorithm: 'sha256', data: 'sha256(selfie)' }, + idDocumentFront: { algorithm: "sha256", data: "sha256(idDocumentFront)" }, + idDocumentBack: { algorithm: "sha256", data: "sha256(idDocumentBack)" }, + selfie: { algorithm: "sha256", data: "sha256(selfie)" }, }; - const evidencesUCA = await UserCollectableAttribute.create(identifier, value); - const evidencesAliasUCA = await UserCollectableAttribute.create(aliasIdentifier, value); + const evidencesUCA = await UserCollectableAttribute.create( + identifier, + value, + ); + const evidencesAliasUCA = await UserCollectableAttribute.create( + aliasIdentifier, + value, + ); // converting UCAs to Claims - const evidencesClaim = await Claim.create(identifier, evidencesUCA.getPlainValue()); - const evidencesClaimForAliasUCA = await Claim.create(aliasIdentifier, evidencesAliasUCA.getPlainValue()); + const evidencesClaim = await Claim.create( + identifier, + evidencesUCA.getPlainValue(), + ); + const evidencesClaimForAliasUCA = await Claim.create( + aliasIdentifier, + evidencesAliasUCA.getPlainValue(), + ); // should map to the same claim - expect(evidencesClaimForAliasUCA.identifier).toEqual(evidencesClaim.identifier); - expect(evidencesClaimForAliasUCA.getPlainValue()).toEqual(evidencesClaim.getPlainValue()); - expect(evidencesClaim.identifier).toBe('claim-cvc:Document.evidences-v1'); + expect(evidencesClaimForAliasUCA.identifier).toEqual( + evidencesClaim.identifier, + ); + expect(evidencesClaimForAliasUCA.getPlainValue()).toEqual( + evidencesClaim.getPlainValue(), + ); + expect(evidencesClaim.identifier).toBe("claim-cvc:Document.evidences-v1"); }); }); diff --git a/__test__/claim/UserCollectableAttributesWithMockedDefinitions.js b/__test__/claim/UserCollectableAttributesWithMockedDefinitions.js index 689c2afa..21f7de9e 100644 --- a/__test__/claim/UserCollectableAttributesWithMockedDefinitions.js +++ b/__test__/claim/UserCollectableAttributesWithMockedDefinitions.js @@ -1,35 +1,37 @@ -const Claim = require('../../src/claim/Claim'); +const Claim = require("../../src/claim/Claim"); -describe('Claim Constructions tests', () => { - test('Wrong type', () => { - const identifier = 'myMockedId'; +describe("Claim Constructions tests", () => { + test("Wrong type", () => { + const identifier = "myMockedId"; const value = { - country: 'DE', - state: 'Berlin', - county: 'Berlin', - city: 'Berlin', - postalCode: '15123', - street: 'Ruthllardstr', - unit: '12', + country: "DE", + state: "Berlin", + county: "Berlin", + city: "Berlin", + postalCode: "15123", + street: "Ruthllardstr", + unit: "12", }; try { const uca = new Claim(identifier, value); - expect(uca).toBe('Should not pass here'); + expect(uca).toBe("Should not pass here"); } catch (e) { expect(e).toBeDefined(); - expect(e.message).toBe(`${JSON.stringify(value)} is not valid for ${identifier}`); + expect(e.message).toBe( + `${JSON.stringify(value)} is not valid for ${identifier}`, + ); } }); - test('Get all properties of a String type', () => { - const properties = Claim.getAllProperties('my:Mocked:Id2'); + test("Get all properties of a String type", () => { + const properties = Claim.getAllProperties("my:Mocked:Id2"); expect(properties).toBeInstanceOf(Array); expect(properties.length).toBe(1); - expect(properties[0]).toBe('mocked.Id2'); + expect(properties[0]).toBe("mocked.Id2"); }); - test('Creating Claim from a Boolean type', () => { - const identifier = 'my:Mocked:Id3'; + test("Creating Claim from a Boolean type", () => { + const identifier = "my:Mocked:Id3"; const value = true; const uca = new Claim(identifier, value); expect(uca).toBeDefined(); diff --git a/__test__/creds/VerifiableCredential.test.js b/__test__/creds/VerifiableCredential.test.js index eb0879e8..bdef86f8 100644 --- a/__test__/creds/VerifiableCredential.test.js +++ b/__test__/creds/VerifiableCredential.test.js @@ -1,29 +1,32 @@ -const _ = require('lodash'); -const fs = require('fs'); -const { v4: uuidv4 } = require('uuid'); -const sjcl = require('sjcl'); -const { Claim } = require('../../src/claim/Claim'); -const VC = require('../../src/creds/VerifiableCredential'); -const MiniCryptoManagerImpl = require('../../src/services/MiniCryptoManagerImpl'); -const didTestUtil = require('../lib/util/did'); - -const { - schemaLoader, - CVCSchemaLoader, -} = require('../../src'); -const filteredCredentialJson = require('./fixtures/filteredIdDocument-v3.json'); -const invalidEmailJson = require('./fixtures/CredentialEmailInvalid.json'); -const signerVerifier = require('../../src/lib/signerVerifier'); -const { stubResolver } = require('../lib/util/did'); - -const credentialSubject = 'did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V'; +/* eslint-disable max-len */ +const _ = require("lodash"); +const fs = require("fs"); +const { v4: uuidv4 } = require("uuid"); +const sjcl = require("sjcl"); +const { Claim } = require("../../src/claim/Claim"); +const VC = require("../../src/creds/VerifiableCredential"); +const MiniCryptoManagerImpl = require("../../src/services/MiniCryptoManagerImpl"); +const didTestUtil = require("../lib/util/did"); + +const { schemaLoader, CVCSchemaLoader } = require("../../src"); +const filteredCredentialJson = require("./fixtures/filteredIdDocument-v3.json"); +const invalidEmailJson = require("./fixtures/CredentialEmailInvalid.json"); +const signerVerifier = require("../../src/lib/signerVerifier"); +const { stubResolver } = require("../lib/util/did"); + +const credentialSubject = + "did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V"; jest.setTimeout(150000); const XPVT1 = 'xprvA1yULd2DFYnQRVbLiAKrFdftVLsANiC3rqLvp8iiCbnchcWqd6kJPoaV3sy7R6CjHM8RbpoNdWVgiPZLVa1EmneRLtwiitNpWgwyVmjvay7'; // eslint-disable-line const XPUB1 = 'xpub6Expk8Z75vLhdyfopBrrcmcd3NhenAuuE4GXcX8KkwKbaQqzAe4Ywbtxu9F95hRHj79PvdtYEJcoR6gesbZ79fS4bLi1PQtm81rjxAHeLL9'; // eslint-disable-line -const identityName = { givenNames: 'Max', otherNames: 'Abc', familyNames: 'Mustermann' }; +const identityName = { + givenNames: "Max", + otherNames: "Abc", + familyNames: "Mustermann", +}; const identityDateOfBirth = { day: 20, month: 3, year: 1978 }; const miniCryptoManager = new MiniCryptoManagerImpl(); @@ -31,7 +34,9 @@ const signAttestationSubject = (subject, xprv, xpub) => { const { label } = subject; const { data } = subject; const tupleToHash = JSON.stringify({ xpub, label, data }); - const hashToSignHex = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(tupleToHash)); + const hashToSignHex = sjcl.codec.hex.fromBits( + sjcl.hash.sha256.hash(tupleToHash), + ); const keyName = `TEMP_KEY_${new Date().getTime()}`; miniCryptoManager.installKey(keyName, xprv); const signature = miniCryptoManager.sign(keyName, hashToSignHex); @@ -57,14 +62,13 @@ class TestSchemaLoader extends CVCSchemaLoader { // eslint-disable-next-line global-require,import/no-dynamic-require return require(`../schema/fixtures/${identifier}.schema.json`); // eslint-disable-next-line no-empty - } catch (e) { - } + } catch (e) {} return super.loadSchema(identifier); } } -describe('Unit tests for Verifiable Credentials', () => { +describe("Unit tests for Verifiable Credentials", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); @@ -75,375 +79,687 @@ describe('Unit tests for Verifiable Credentials', () => { schemaLoader.reset(); }); - it('Dont construct undefined Credentials', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); + it("Dont construct undefined Credentials", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); - return expect(VC.create('cvc:cred:Test', uuidv4(), null, credentialSubject, [name, dob])) - .rejects.toThrow(/cvc:cred:Test is not defined/); + return expect( + VC.create("cvc:cred:Test", uuidv4(), null, credentialSubject, [ + name, + dob, + ]), + ).rejects.toThrow(/cvc:cred:Test is not defined/); }); - it('New Defined Credentials', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("New Defined Credentials", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); expect(cred).toBeDefined(); - expect(cred.credentialSubject.identity.name.givenNames).toBe('Max'); - expect(cred.credentialSubject.identity.name.otherNames).toBe('Abc'); - expect(cred.credentialSubject.identity.name.familyNames).toBe('Mustermann'); + expect(cred.credentialSubject.identity.name.givenNames).toBe("Max"); + expect(cred.credentialSubject.identity.name.otherNames).toBe("Abc"); + expect(cred.credentialSubject.identity.name.familyNames).toBe("Mustermann"); expect(cred.credentialSubject.identity.dateOfBirth.day).toBe(20); expect(cred.credentialSubject.identity.dateOfBirth.month).toBe(3); expect(cred.credentialSubject.identity.dateOfBirth.year).toBe(1978); expect(cred.proof.leaves).toHaveLength(8); }); - it('should validate new defined credentials with the obligatory Meta:expirationDate UCA with' - + ' null value', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred).toBeDefined(); - expect(cred.expirationDate).toBeNull(); - }); + it( + "should validate new defined credentials with the obligatory Meta:expirationDate UCA with" + + " null value", + async () => { + const name = await Claim.create( + "claim-cvc:Identity.name-v1", + identityName, + ); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect(cred).toBeDefined(); + expect(cred.expirationDate).toBeNull(); + }, + ); - it('New Expirable Credentials', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), '-1d', credentialSubject, [name, dob]); + it("New Expirable Credentials", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + "-1d", + credentialSubject, + [name, dob], + ); expect(cred).toBeDefined(); - expect(cred.credentialSubject.identity.name.givenNames).toBe('Max'); - expect(cred.credentialSubject.identity.name.otherNames).toBe('Abc'); - expect(cred.credentialSubject.identity.name.familyNames).toBe('Mustermann'); + expect(cred.credentialSubject.identity.name.givenNames).toBe("Max"); + expect(cred.credentialSubject.identity.name.otherNames).toBe("Abc"); + expect(cred.credentialSubject.identity.name.familyNames).toBe("Mustermann"); expect(cred.credentialSubject.identity.dateOfBirth.day).toBe(20); expect(cred.credentialSubject.identity.dateOfBirth.month).toBe(3); expect(cred.credentialSubject.identity.dateOfBirth.year).toBe(1978); - expect(_.find(cred.proof.leaves, { identifier: 'cvc:Meta:issuer' })).toBeDefined(); - expect(_.find(cred.proof.leaves, { identifier: 'cvc:Meta:issuanceDate' })).toBeDefined(); + expect( + _.find(cred.proof.leaves, { identifier: "cvc:Meta:issuer" }), + ).toBeDefined(); + expect( + _.find(cred.proof.leaves, { identifier: "cvc:Meta:issuanceDate" }), + ).toBeDefined(); expect(cred.expirationDate).toBeDefined(); - expect(_.find(cred.proof.leaves, { identifier: 'cvc:Meta:expirationDate' })).toBeDefined(); + expect( + _.find(cred.proof.leaves, { identifier: "cvc:Meta:expirationDate" }), + ).toBeDefined(); expect(cred.proof.leaves).toHaveLength(8); }); - it('New Defined Credentials return the incorrect global Credential Identifier', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.getGlobalIdentifier()).toBe('credential-credential-cvc:Identity-v3-3'); + it("New Defined Credentials return the incorrect global Credential Identifier", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect(cred.getGlobalIdentifier()).toBe( + "credential-credential-cvc:Identity-v3-3", + ); }); - it('should request an anchor for Credential and return an temporary attestation', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), '-1d', credentialSubject, [name, dob]); + it("should request an anchor for Credential and return an temporary attestation", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + "-1d", + credentialSubject, + [name, dob], + ); const updated = await cred.requestAnchor(); - expect(updated.proof.anchor.type).toBe('temporary'); + expect(updated.proof.anchor.type).toBe("temporary"); expect(updated.proof.anchor.value).not.toBeDefined(); expect(updated.proof.anchor).toBeDefined(); - expect(updated.proof.anchor.schema).toBe('dummy-20180201'); + expect(updated.proof.anchor.schema).toBe("dummy-20180201"); }); - it('should refresh an temporary anchoring with an permanent one', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("should refresh an temporary anchoring with an permanent one", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); cred.requestAnchor = jest.fn().mockImplementation(async () => { // mock the function or otherwise it would call the server - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const mockedVc = await VC.fromJSON(JSON.parse(credentialContents)); - mockedVc.updateAnchor = jest.fn().mockImplementation(async () => mockedVc); + mockedVc.updateAnchor = jest + .fn() + .mockImplementation(async () => mockedVc); return mockedVc; }); const updated = await cred.requestAnchor(); expect(updated.proof.anchor).toBeDefined(); const newUpdated = await updated.updateAnchor(); - expect(newUpdated.proof.anchor.type).toBe('permanent'); + expect(newUpdated.proof.anchor.type).toBe("permanent"); expect(newUpdated.proof.anchor).toBeDefined(); expect(newUpdated.proof.anchor.subject).toBeDefined(); }); - it('Filter claims from Identity Name', async () => { - const nameUca = await Claim.create('claim-cvc:Identity.name-v1', identityName); + it("Filter claims from Identity Name", async () => { + const nameUca = await Claim.create( + "claim-cvc:Identity.name-v1", + identityName, + ); - const dobUca = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); + const dobUca = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); const simpleIdentity = await VC.create( - 'credential-cvc:Identity-v3', - 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', + "credential-cvc:Identity-v3", + "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", null, credentialSubject, [nameUca, dobUca], ); - const filtered = simpleIdentity.filter(['claim-cvc:Name.givenNames-v1']); + const filtered = simpleIdentity.filter(["claim-cvc:Name.givenNames-v1"]); expect(filtered.credentialSubject.identity.name.givenNames).toBeDefined(); - expect(filtered.credentialSubject.identity.name.otherNames).not.toBeDefined(); - expect(filtered.credentialSubject.identity.name.familyNames).not.toBeDefined(); + expect( + filtered.credentialSubject.identity.name.otherNames, + ).not.toBeDefined(); + expect( + filtered.credentialSubject.identity.name.familyNames, + ).not.toBeDefined(); const emptyFiltered = simpleIdentity.filter([]); expect(emptyFiltered.credentialSubject).toEqual({}); }); - it( - 'Should filter claims for Email asking for claim-cvc:Contact.email-v1 and return them on the filtered VC', - async () => { - const email = { - domain: { - tld: 'oVaPsceZ4C', - name: 'UTpHKFyaaB', - }, - username: 'ZcMpCBQ0lE', - }; + it("Should filter claims for Email asking for claim-cvc:Contact.email-v1 and return them on the filtered VC", async () => { + const email = { + domain: { + tld: "oVaPsceZ4C", + name: "UTpHKFyaaB", + }, + username: "ZcMpCBQ0lE", + }; - const emailUca = await Claim.create('claim-cvc:Contact.email-v1', email, '1'); - const emailCredential = await VC.create('credential-cvc:Email-v3', '', null, credentialSubject, [emailUca]); - const filtered = emailCredential.filter(['claim-cvc:Contact.email-v1']); - expect(filtered.credentialSubject.contact.email.domain).toBeDefined(); - expect(filtered.credentialSubject.contact.email.domain.tld).toBe('oVaPsceZ4C'); - expect(filtered.credentialSubject.contact.email.domain.name).toBe('UTpHKFyaaB'); - expect(filtered.credentialSubject.contact.email.username).toBe('ZcMpCBQ0lE'); - }, - ); + const emailUca = await Claim.create( + "claim-cvc:Contact.email-v1", + email, + "1", + ); + const emailCredential = await VC.create( + "credential-cvc:Email-v3", + "", + null, + credentialSubject, + [emailUca], + ); + const filtered = emailCredential.filter(["claim-cvc:Contact.email-v1"]); + expect(filtered.credentialSubject.contact.email.domain).toBeDefined(); + expect(filtered.credentialSubject.contact.email.domain.tld).toBe( + "oVaPsceZ4C", + ); + expect(filtered.credentialSubject.contact.email.domain.name).toBe( + "UTpHKFyaaB", + ); + expect(filtered.credentialSubject.contact.email.username).toBe( + "ZcMpCBQ0lE", + ); + }); + + it("Should filter claims for Email asking for cvc:Contact:domain and not return the cvc:Contact:address", async () => { + const email = { + domain: { + tld: "oVaPsceZ4C", + name: "UTpHKFyaaB", + }, + username: "ZcMpCBQ0lE", + }; + + const emailUca = await Claim.create( + "claim-cvc:Contact.email-v1", + email, + "1", + ); + const emailCredential = await VC.create( + "credential-cvc:Email-v3", + "", + null, + credentialSubject, + [emailUca], + ); + const filtered = emailCredential.filter(["claim-cvc:Email.domain-v1"]); + + expect(filtered.credentialSubject.contact.email.domain).toBeDefined(); + expect(filtered.credentialSubject.contact.email.domain.tld).toBe( + "oVaPsceZ4C", + ); + expect(filtered.credentialSubject.contact.email.domain.name).toBe( + "UTpHKFyaaB", + ); + expect(filtered.credentialSubject.contact.email.username).toBeUndefined(); + }); it( - 'Should filter claims for Email asking for cvc:Contact:domain and not return the cvc:Contact:address', + "Should filter claims for Address asking for claim-cvc:Type.address-v1" + + "and return the claim-cvc:Type.address-v1", async () => { - const email = { - domain: { - tld: 'oVaPsceZ4C', - name: 'UTpHKFyaaB', - }, - username: 'ZcMpCBQ0lE', + const value = { + country: "X2sEB9F9W9", + county: "sDlIM4Rjpo", + state: "ZZEOrbenrM", + street: "JkHgN5gdZ2", + unit: "fo9OmPSZNe", + city: "LVkRGsKqIf", + postalCode: "5JhmWkXBAg", }; - const emailUca = await Claim.create('claim-cvc:Contact.email-v1', email, '1'); - const emailCredential = await VC.create('credential-cvc:Email-v3', '', null, credentialSubject, [emailUca]); - const filtered = emailCredential.filter(['claim-cvc:Email.domain-v1']); - - expect(filtered.credentialSubject.contact.email.domain).toBeDefined(); - expect(filtered.credentialSubject.contact.email.domain.tld).toBe('oVaPsceZ4C'); - expect(filtered.credentialSubject.contact.email.domain.name).toBe('UTpHKFyaaB'); - expect(filtered.credentialSubject.contact.email.username).toBeUndefined(); + const uca = await Claim.create( + "claim-cvc:Identity.address-v1", + value, + "1", + ); + const credential = await VC.create( + "credential-cvc:Address-v3", + "", + null, + credentialSubject, + [uca], + ); + const filtered = credential.filter(["claim-cvc:Identity.address-v1"]); + + expect(filtered.credentialSubject.identity.address).toBeDefined(); + expect(filtered.credentialSubject.identity.address.country).toBe( + "X2sEB9F9W9", + ); + expect(filtered.credentialSubject.identity.address.county).toBe( + "sDlIM4Rjpo", + ); + expect(filtered.credentialSubject.identity.address.state).toBe( + "ZZEOrbenrM", + ); + expect(filtered.credentialSubject.identity.address.street).toBe( + "JkHgN5gdZ2", + ); + expect(filtered.credentialSubject.identity.address.unit).toBe( + "fo9OmPSZNe", + ); + expect(filtered.credentialSubject.identity.address.city).toBe( + "LVkRGsKqIf", + ); + expect(filtered.credentialSubject.identity.address.postalCode).toBe( + "5JhmWkXBAg", + ); }, ); - it('Should filter claims for Address asking for claim-cvc:Type.address-v1' - + 'and return the claim-cvc:Type.address-v1', async () => { + it("Should filter claims for PhoneNumber asking for credential-cvc:PhoneNumber-v3 and return the full claim", async () => { const value = { - country: 'X2sEB9F9W9', - county: 'sDlIM4Rjpo', - state: 'ZZEOrbenrM', - street: 'JkHgN5gdZ2', - unit: 'fo9OmPSZNe', - city: 'LVkRGsKqIf', - postalCode: '5JhmWkXBAg', + country: "1ApYikRwDl", + countryCode: "U4drpB96Hk", + number: "kCTGifTdom", + extension: "sXZpZJTe4R", + lineType: "OaguqgUaR7", }; - const uca = await Claim.create('claim-cvc:Identity.address-v1', value, '1'); - const credential = await VC.create('credential-cvc:Address-v3', '', null, credentialSubject, [uca]); - const filtered = credential.filter(['claim-cvc:Identity.address-v1']); + const uca = await Claim.create( + "claim-cvc:Contact.phoneNumber-v1", + value, + "1", + ); + const credential = await VC.create( + "credential-cvc:PhoneNumber-v3", + "", + null, + credentialSubject, + [uca], + ); + const filtered = credential.filter(["claim-cvc:Contact.phoneNumber-v1"]); - expect(filtered.credentialSubject.identity.address).toBeDefined(); - expect(filtered.credentialSubject.identity.address.country).toBe('X2sEB9F9W9'); - expect(filtered.credentialSubject.identity.address.county).toBe('sDlIM4Rjpo'); - expect(filtered.credentialSubject.identity.address.state).toBe('ZZEOrbenrM'); - expect(filtered.credentialSubject.identity.address.street).toBe('JkHgN5gdZ2'); - expect(filtered.credentialSubject.identity.address.unit).toBe('fo9OmPSZNe'); - expect(filtered.credentialSubject.identity.address.city).toBe('LVkRGsKqIf'); - expect(filtered.credentialSubject.identity.address.postalCode).toBe('5JhmWkXBAg'); + expect(filtered.credentialSubject.contact.phoneNumber).toBeDefined(); + expect(filtered.credentialSubject.contact.phoneNumber.country).toBe( + "1ApYikRwDl", + ); + expect(filtered.credentialSubject.contact.phoneNumber.countryCode).toBe( + "U4drpB96Hk", + ); + expect(filtered.credentialSubject.contact.phoneNumber.extension).toBe( + "sXZpZJTe4R", + ); + expect(filtered.credentialSubject.contact.phoneNumber.lineType).toBe( + "OaguqgUaR7", + ); + expect(filtered.credentialSubject.contact.phoneNumber.number).toBe( + "kCTGifTdom", + ); }); - it( - 'Should filter claims for PhoneNumber asking for credential-cvc:PhoneNumber-v3 and return the full claim', - async () => { - const value = { - country: '1ApYikRwDl', - countryCode: 'U4drpB96Hk', - number: 'kCTGifTdom', - extension: 'sXZpZJTe4R', - lineType: 'OaguqgUaR7', - }; - - const uca = await Claim.create('claim-cvc:Contact.phoneNumber-v1', value, '1'); - const credential = await VC.create('credential-cvc:PhoneNumber-v3', '', null, credentialSubject, [uca]); - const filtered = credential.filter(['claim-cvc:Contact.phoneNumber-v1']); + it("Should filter claims for GenericDocumentId asking for claim-cvc:Identity.dateOfBirth-v1 and return nothing", async () => { + const typeValue = "passport"; + const type = await Claim.create( + "claim-cvc:Document.type-v1", + typeValue, + "1", + ); + const numberValue = "3bj1LUg9yG"; + const number = await Claim.create( + "claim-cvc:Document.number-v1", + numberValue, + "1", + ); + const nameValue = { + givenNames: "e8qhs4Iak1", + familyNames: "4h8sLtEfav", + otherNames: "bDTn4stMpX", + }; + const name = await Claim.create( + "claim-cvc:Document.name-v1", + nameValue, + "1", + ); + const genderValue = "jFtCBFceQI"; + const gender = await Claim.create( + "claim-cvc:Document.gender-v1", + genderValue, + "1", + ); + const issueLocationValue = "OZbhzBU8ng"; + const issueLocation = await Claim.create( + "claim-cvc:Document.issueLocation-v1", + issueLocationValue, + "1", + ); + const issueAuthorityValue = "BO2xblNSVK"; + const issueAuthority = await Claim.create( + "claim-cvc:Document.issueAuthority-v1", + issueAuthorityValue, + "1", + ); + const issueCountryValue = "p4dNUeAKtI"; + const issueCountry = await Claim.create( + "claim-cvc:Document.issueCountry-v1", + issueCountryValue, + "1", + ); + const placeOfBirthValue = "r4hIHbyLru"; + const placeOfBirth = await Claim.create( + "claim-cvc:Document.placeOfBirth-v1", + placeOfBirthValue, + "1", + ); + const dateOfBirthValue = { + day: 23, + month: 2, + year: 1973, + }; + const dateOfBirth = await Claim.create( + "claim-cvc:Document.dateOfBirth-v1", + dateOfBirthValue, + "1", + ); + const addressValue = { + country: "IH4aiXuEoo", + county: "akKjaQehNK", + state: "IQB7oLhSnS", + street: "52Os5zJgkh", + unit: "3dGDkhEHxW", + city: "WU9GJ0R9be", + postalCode: "ci1DMuz16W", + }; + const address = await Claim.create( + "claim-cvc:Document.address-v1", + addressValue, + "1", + ); + const propertiesValue = { + dateOfIssue: { + day: 18, + month: 6, + year: 1928, + }, + dateOfExpiry: { + day: 8, + month: 1, + year: 1957, + }, + }; + const properties = await Claim.create( + "claim-cvc:Document.properties-v1", + propertiesValue, + "1", + ); + const imageValue = { + front: "9NMgeFErNd", + frontMD5: "zgOvmWXruS", + back: "uPrJKO3cbq", + backMD5: "0yr9zkdApo", + }; + const image = await Claim.create("cvc:Document:image", imageValue, "1"); + const credential = await VC.create( + "credential-cvc:GenericDocumentId-v3", + "", + null, + credentialSubject, + [ + type, + number, + name, + gender, + issueAuthority, + issueLocation, + issueCountry, + placeOfBirth, + properties, + address, + image, + dateOfBirth, + ], + ); + const filtered = credential.filter(["claim-cvc:Identity.dateOfBirth-v1"]); - expect(filtered.credentialSubject.contact.phoneNumber).toBeDefined(); - expect(filtered.credentialSubject.contact.phoneNumber.country).toBe('1ApYikRwDl'); - expect(filtered.credentialSubject.contact.phoneNumber.countryCode).toBe('U4drpB96Hk'); - expect(filtered.credentialSubject.contact.phoneNumber.extension).toBe('sXZpZJTe4R'); - expect(filtered.credentialSubject.contact.phoneNumber.lineType).toBe('OaguqgUaR7'); - expect(filtered.credentialSubject.contact.phoneNumber.number).toBe('kCTGifTdom'); - }, - ); + expect(filtered.credentialSubject.document).toBeUndefined(); + }); it( - 'Should filter claims for GenericDocumentId asking for claim-cvc:Identity.dateOfBirth-v1 and return nothing', + "Should filter claims for PhoneNumber asking for cvc:Phone:countryCode and return only the" + + " claim for country code", async () => { - const typeValue = 'passport'; - const type = await Claim.create('claim-cvc:Document.type-v1', typeValue, '1'); - const numberValue = '3bj1LUg9yG'; - const number = await Claim.create('claim-cvc:Document.number-v1', numberValue, '1'); - const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: '4h8sLtEfav', - otherNames: 'bDTn4stMpX', - }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const genderValue = 'jFtCBFceQI'; - const gender = await Claim.create('claim-cvc:Document.gender-v1', genderValue, '1'); - const issueLocationValue = 'OZbhzBU8ng'; - const issueLocation = await Claim.create('claim-cvc:Document.issueLocation-v1', issueLocationValue, '1'); - const issueAuthorityValue = 'BO2xblNSVK'; - const issueAuthority = await Claim.create('claim-cvc:Document.issueAuthority-v1', issueAuthorityValue, '1'); - const issueCountryValue = 'p4dNUeAKtI'; - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', issueCountryValue, '1'); - const placeOfBirthValue = 'r4hIHbyLru'; - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', placeOfBirthValue, '1'); - const dateOfBirthValue = { - day: 23, - month: 2, - year: 1973, - }; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const addressValue = { - country: 'IH4aiXuEoo', - county: 'akKjaQehNK', - state: 'IQB7oLhSnS', - street: '52Os5zJgkh', - unit: '3dGDkhEHxW', - city: 'WU9GJ0R9be', - postalCode: 'ci1DMuz16W', - }; - const address = await Claim.create('claim-cvc:Document.address-v1', addressValue, '1'); - const propertiesValue = { - dateOfIssue: { - day: 18, - month: 6, - year: 1928, - }, - dateOfExpiry: { - day: 8, - month: 1, - year: 1957, - }, - }; - const properties = await Claim.create('claim-cvc:Document.properties-v1', propertiesValue, '1'); - const imageValue = { - front: '9NMgeFErNd', - frontMD5: 'zgOvmWXruS', - back: 'uPrJKO3cbq', - backMD5: '0yr9zkdApo', + const value = { + country: "1ApYikRwDl", + countryCode: "U4drpB96Hk", + number: "kCTGifTdom", + extension: "sXZpZJTe4R", + lineType: "OaguqgUaR7", }; - const image = await Claim.create('cvc:Document:image', imageValue, '1'); - const credential = await VC.create('credential-cvc:GenericDocumentId-v3', '', null, credentialSubject, [type, number, name, gender, issueAuthority, - issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth]); - const filtered = credential.filter(['claim-cvc:Identity.dateOfBirth-v1']); + const uca = await Claim.create( + "claim-cvc:Contact.phoneNumber-v1", + value, + "1", + ); + const credential = await VC.create( + "credential-cvc:PhoneNumber-v3", + "", + null, + credentialSubject, + [uca], + ); + const filtered = credential.filter([ + "claim-cvc:PhoneNumber.countryCode-v1", + ]); - expect(filtered.credentialSubject.document).toBeUndefined(); + expect(filtered.credentialSubject.contact.phoneNumber).toBeDefined(); + expect( + filtered.credentialSubject.contact.phoneNumber.country, + ).toBeUndefined(); + expect(filtered.credentialSubject.contact.phoneNumber.countryCode).toBe( + "U4drpB96Hk", + ); + expect( + filtered.credentialSubject.contact.phoneNumber.extension, + ).toBeUndefined(); + expect( + filtered.credentialSubject.contact.phoneNumber.lineType, + ).toBeUndefined(); + expect( + filtered.credentialSubject.contact.phoneNumber.number, + ).toBeUndefined(); }, ); - it('Should filter claims for PhoneNumber asking for cvc:Phone:countryCode and return only the' - + ' claim for country code', async () => { - const value = { - country: '1ApYikRwDl', - countryCode: 'U4drpB96Hk', - number: 'kCTGifTdom', - extension: 'sXZpZJTe4R', - lineType: 'OaguqgUaR7', - }; - const uca = await Claim.create('claim-cvc:Contact.phoneNumber-v1', value, '1'); - const credential = await VC.create('credential-cvc:PhoneNumber-v3', '', null, credentialSubject, [uca]); - const filtered = credential.filter(['claim-cvc:PhoneNumber.countryCode-v1']); - - expect(filtered.credentialSubject.contact.phoneNumber).toBeDefined(); - expect(filtered.credentialSubject.contact.phoneNumber.country).toBeUndefined(); - expect(filtered.credentialSubject.contact.phoneNumber.countryCode).toBe('U4drpB96Hk'); - expect(filtered.credentialSubject.contact.phoneNumber.extension).toBeUndefined(); - expect(filtered.credentialSubject.contact.phoneNumber.lineType).toBeUndefined(); - expect(filtered.credentialSubject.contact.phoneNumber.number).toBeUndefined(); - }); - - it('Should create IdDocument-v3 credential', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const number = await Claim.create('claim-cvc:Document.number-v1', 'FP12345', '1'); + it("Should create IdDocument-v3 credential", async () => { + const type = await Claim.create( + "claim-cvc:Document.type-v1", + "passport", + "1", + ); + const number = await Claim.create( + "claim-cvc:Document.number-v1", + "FP12345", + "1", + ); const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: 'e8qak1', - otherNames: 'qhs4I', + givenNames: "e8qhs4Iak1", + familyNames: "e8qak1", + otherNames: "qhs4I", }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const gender = await Claim.create('claim-cvc:Document.gender-v1', 'M', '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', 'Belo Horizonte', '1'); + const name = await Claim.create( + "claim-cvc:Document.name-v1", + nameValue, + "1", + ); + const gender = await Claim.create("claim-cvc:Document.gender-v1", "M", "1"); + const issueCountry = await Claim.create( + "claim-cvc:Document.issueCountry-v1", + "Brazil", + "1", + ); + const placeOfBirth = await Claim.create( + "claim-cvc:Document.placeOfBirth-v1", + "Belo Horizonte", + "1", + ); const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); + const dateOfBirth = await Claim.create( + "claim-cvc:Document.dateOfBirth-v1", + dateOfBirthValue, + "1", + ); const dateOfExpiryValue = { day: 12, month: 2, year: 2025, }; - const dateOfExpiry = await Claim.create('claim-cvc:Document.dateOfExpiry-v1', dateOfExpiryValue, '1'); - const nationality = await Claim.create('claim-cvc:Document.nationality-v1', 'Brazilian', '1'); + const dateOfExpiry = await Claim.create( + "claim-cvc:Document.dateOfExpiry-v1", + dateOfExpiryValue, + "1", + ); + const nationality = await Claim.create( + "claim-cvc:Document.nationality-v1", + "Brazilian", + "1", + ); const evidencesValue = { idDocumentFront: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", }, idDocumentBack: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", }, selfie: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", }, }; - const evidences = await Claim.create('claim-cvc:Document.evidences-v1', evidencesValue, '1'); + const evidences = await Claim.create( + "claim-cvc:Document.evidences-v1", + evidencesValue, + "1", + ); - const credential = await VC.create('credential-cvc:IdDocument-v3', '', null, credentialSubject, [type, number, name, gender, - issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality, evidences]); + const credential = await VC.create( + "credential-cvc:IdDocument-v3", + "", + null, + credentialSubject, + [ + type, + number, + name, + gender, + issueCountry, + placeOfBirth, + dateOfBirth, + dateOfExpiry, + nationality, + evidences, + ], + ); expect(credential).toBeDefined(); - const filtered = credential.filter(['claim-cvc:Document.dateOfBirth-v1']); + const filtered = credential.filter(["claim-cvc:Document.dateOfBirth-v1"]); expect(filtered).toBeDefined(); }); - it('Should hydrate a partial presentation', async () => { + it("Should hydrate a partial presentation", async () => { const presentation = await VC.fromJSON(filteredCredentialJson, true); expect(presentation).toBeDefined(); return expect(VC.fromJSON(filteredCredentialJson)).rejects.toThrow(); }); - it('Should create alt:Identity-v1 credential', async () => { + it("Should create alt:Identity-v1 credential", async () => { const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: 'e8qak1', - otherNames: 'qhs4I', + givenNames: "e8qhs4Iak1", + familyNames: "e8qak1", + otherNames: "qhs4I", }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); + const name = await Claim.create( + "claim-cvc:Document.name-v1", + nameValue, + "1", + ); const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); + const dateOfBirth = await Claim.create( + "claim-cvc:Document.dateOfBirth-v1", + dateOfBirthValue, + "1", + ); const addressValue = { - country: 'IH4aiXuEoo', - county: 'akKjaQehNK', - state: 'IQB7oLhSnS', - street: '52Os5zJgkh', - unit: '3dGDkhEHxW', - city: 'WU9GJ0R9be', - postalCode: 'ci1DMuz16W', + country: "IH4aiXuEoo", + county: "akKjaQehNK", + state: "IQB7oLhSnS", + street: "52Os5zJgkh", + unit: "3dGDkhEHxW", + city: "WU9GJ0R9be", + postalCode: "ci1DMuz16W", }; - const address = await Claim.create('claim-cvc:Document.address-v1', addressValue, '1'); + const address = await Claim.create( + "claim-cvc:Document.address-v1", + addressValue, + "1", + ); - const credential = await VC.create('credential-alt:Identity-v3', '', null, credentialSubject, [name, dateOfBirth, address]); + const credential = await VC.create( + "credential-alt:Identity-v3", + "", + null, + credentialSubject, + [name, dateOfBirth, address], + ); expect(credential).toBeDefined(); }); - it.skip('Should create and verify a credential with an array of clains ', async () => { + it.skip("Should create and verify a credential with an array of clains ", async () => { const covidDetails = { patient: { - fullName: 'Patient Name', + fullName: "Patient Name", dateOfBirth: { day: 2, month: 2, @@ -452,16 +768,16 @@ describe('Unit tests for Verifiable Credentials', () => { }, vaccinations: [ { - vaccinationId: 'vID-123', - dateOfAdministration: '150000001', - name: 'Pfizer', + vaccinationId: "vID-123", + dateOfAdministration: "150000001", + name: "Pfizer", manufacturer: { - name: 'Pfizer', + name: "Pfizer", code: { - name: 'codeName', - code: 'codeCode', - codeSystem: 'codeCodeSystem', - codeSystemName: 'codeCodeSystemName', + name: "codeName", + code: "codeCode", + codeSystem: "codeCodeSystem", + codeSystemName: "codeCodeSystemName", }, }, detail: { @@ -477,191 +793,259 @@ describe('Unit tests for Verifiable Credentials', () => { }, }, organization: { - name: 'CVS', + name: "CVS", }, codes: [ { - name: 'codeName1', - code: 'codeCode1', - codeSystem: 'codeCodeSystem1', - codeSystemName: 'codeCodeSystemName1', + name: "codeName1", + code: "codeCode1", + codeSystem: "codeCodeSystem1", + codeSystemName: "codeCodeSystemName1", }, { - name: 'codeName2', - code: 'codeCode2', - codeSystem: 'codeCodeSystem3', - codeSystemName: 'codeCodeSystemName3', + name: "codeName2", + code: "codeCode2", + codeSystem: "codeCodeSystem3", + codeSystemName: "codeCodeSystemName3", }, ], }, { - vaccinationId: 'vID-124', - dateOfAdministration: '150000002', - name: 'Pfizer', + vaccinationId: "vID-124", + dateOfAdministration: "150000002", + name: "Pfizer", organization: { - name: 'CVS', + name: "CVS", }, }, ], tests: [ { - testId: 'tID-23', - testDate: '150000008', - resultDate: '150000010', - type: 'testType', - result: 'negative', + testId: "tID-23", + testDate: "150000008", + resultDate: "150000010", + type: "testType", + result: "negative", codes: [ { - name: 'codeName21', - code: 'codeCode21', - codeSystem: 'codeCodeSystem21', - codeSystemName: 'codeCodeSystemName21', + name: "codeName21", + code: "codeCode21", + codeSystem: "codeCodeSystem21", + codeSystemName: "codeCodeSystemName21", }, { - name: 'codeName22', - code: 'codeCode22', - codeSystem: 'codeCodeSystem23', - codeSystemName: 'codeCodeSystemName23', + name: "codeName22", + code: "codeCode22", + codeSystem: "codeCodeSystem23", + codeSystemName: "codeCodeSystemName23", }, ], }, { - testId: 'tID-25', - testDate: '150000028', - resultDate: '150000020', - type: 'testType', - result: 'negative', + testId: "tID-25", + testDate: "150000028", + resultDate: "150000020", + type: "testType", + result: "negative", }, ], }; - const covidClaim = await Claim.create('claim-cvc:Medical.covid19-v1', covidDetails); + const covidClaim = await Claim.create( + "claim-cvc:Medical.covid19-v1", + covidDetails, + ); - const credential = await VC.create('credential-cvc:Covid19-v3', '', null, credentialSubject, [covidClaim]); + const credential = await VC.create( + "credential-cvc:Covid19-v3", + "", + null, + credentialSubject, + [covidClaim], + ); expect(credential).toBeDefined(); expect(credential.verifyProofs()).toBeTruthy(); }); - it( - 'Should filter claims for GenericDocumentId asking for cvc:Document:Type and return only that claim', - async () => { - const typeValue = 'passport'; - const type = await Claim.create('claim-cvc:Document.type-v1', typeValue, '1'); - const numberValue = '3bj1LUg9yG'; - const number = await Claim.create('claim-cvc:Document.number-v1', numberValue, '1'); - const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: '4h8sLtEfav', - otherNames: 'bDTn4stMpX', - }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const genderValue = 'jFtCBFceQI'; - const gender = await Claim.create('claim-cvc:Document.gender-v1', genderValue, '1'); - const issueLocationValue = 'OZbhzBU8ng'; - const issueLocation = await Claim.create('claim-cvc:Document.issueLocation-v1', issueLocationValue, '1'); - const issueAuthorityValue = 'BO2xblNSVK'; - const issueAuthority = await Claim.create('claim-cvc:Document.issueAuthority-v1', issueAuthorityValue, '1'); - const issueCountryValue = 'p4dNUeAKtI'; - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', issueCountryValue, '1'); - const placeOfBirthValue = 'r4hIHbyLru'; - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', placeOfBirthValue, '1'); - const dateOfBirthValue = { - day: 23, - month: 2, - year: 1973, - }; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const addressValue = { - country: 'IH4aiXuEoo', - county: 'akKjaQehNK', - state: 'IQB7oLhSnS', - street: '52Os5zJgkh', - unit: '3dGDkhEHxW', - city: 'WU9GJ0R9be', - postalCode: 'ci1DMuz16W', - }; - const address = await Claim.create('claim-cvc:Document.address-v1', addressValue, '1'); - const propertiesValue = { - dateOfIssue: { - day: 18, - month: 6, - year: 1928, - }, - dateOfExpiry: { - day: 8, - month: 1, - year: 1957, - }, - }; - const properties = await Claim.create('claim-cvc:Document.properties-v1', propertiesValue, '1'); - const imageValue = { - front: '9NMgeFErNd', - frontMD5: 'zgOvmWXruS', - back: 'uPrJKO3cbq', - backMD5: '0yr9zkdApo', - }; - const image = await Claim.create('cvc:Document:image', imageValue, '1'); - const credential = await VC.create('credential-cvc:GenericDocumentId-v3', '', null, credentialSubject, [type, number, name, gender, issueAuthority, - issueLocation, issueCountry, placeOfBirth, properties, address, image, dateOfBirth]); + it("Should filter claims for GenericDocumentId asking for cvc:Document:Type and return only that claim", async () => { + const typeValue = "passport"; + const type = await Claim.create( + "claim-cvc:Document.type-v1", + typeValue, + "1", + ); + const numberValue = "3bj1LUg9yG"; + const number = await Claim.create( + "claim-cvc:Document.number-v1", + numberValue, + "1", + ); + const nameValue = { + givenNames: "e8qhs4Iak1", + familyNames: "4h8sLtEfav", + otherNames: "bDTn4stMpX", + }; + const name = await Claim.create( + "claim-cvc:Document.name-v1", + nameValue, + "1", + ); + const genderValue = "jFtCBFceQI"; + const gender = await Claim.create( + "claim-cvc:Document.gender-v1", + genderValue, + "1", + ); + const issueLocationValue = "OZbhzBU8ng"; + const issueLocation = await Claim.create( + "claim-cvc:Document.issueLocation-v1", + issueLocationValue, + "1", + ); + const issueAuthorityValue = "BO2xblNSVK"; + const issueAuthority = await Claim.create( + "claim-cvc:Document.issueAuthority-v1", + issueAuthorityValue, + "1", + ); + const issueCountryValue = "p4dNUeAKtI"; + const issueCountry = await Claim.create( + "claim-cvc:Document.issueCountry-v1", + issueCountryValue, + "1", + ); + const placeOfBirthValue = "r4hIHbyLru"; + const placeOfBirth = await Claim.create( + "claim-cvc:Document.placeOfBirth-v1", + placeOfBirthValue, + "1", + ); + const dateOfBirthValue = { + day: 23, + month: 2, + year: 1973, + }; + const dateOfBirth = await Claim.create( + "claim-cvc:Document.dateOfBirth-v1", + dateOfBirthValue, + "1", + ); + const addressValue = { + country: "IH4aiXuEoo", + county: "akKjaQehNK", + state: "IQB7oLhSnS", + street: "52Os5zJgkh", + unit: "3dGDkhEHxW", + city: "WU9GJ0R9be", + postalCode: "ci1DMuz16W", + }; + const address = await Claim.create( + "claim-cvc:Document.address-v1", + addressValue, + "1", + ); + const propertiesValue = { + dateOfIssue: { + day: 18, + month: 6, + year: 1928, + }, + dateOfExpiry: { + day: 8, + month: 1, + year: 1957, + }, + }; + const properties = await Claim.create( + "claim-cvc:Document.properties-v1", + propertiesValue, + "1", + ); + const imageValue = { + front: "9NMgeFErNd", + frontMD5: "zgOvmWXruS", + back: "uPrJKO3cbq", + backMD5: "0yr9zkdApo", + }; + const image = await Claim.create("cvc:Document:image", imageValue, "1"); + const credential = await VC.create( + "credential-cvc:GenericDocumentId-v3", + "", + null, + credentialSubject, + [ + type, + number, + name, + gender, + issueAuthority, + issueLocation, + issueCountry, + placeOfBirth, + properties, + address, + image, + dateOfBirth, + ], + ); - const filtered = credential.filter(['claim-cvc:Document.type-v1']); + const filtered = credential.filter(["claim-cvc:Document.type-v1"]); - expect(filtered.credentialSubject.document.type).toBe('passport'); - }, - ); + expect(filtered.credentialSubject.document.type).toBe("passport"); + }); - it('Should verify an VC of type Email', async () => { + it("Should verify an VC of type Email", async () => { const credJSon = require('./fixtures/Email.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(cred.verifyProofs()).toBeTruthy(); }); - it('Should not verify an VC of with tampered domain Email', async () => { + it("Should not verify an VC of with tampered domain Email", async () => { const credJSon = require('./fixtures/Email.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); - cred.credentialSubject.contact.email.domain.name = 'civic'; + cred.credentialSubject.contact.email.domain.name = "civic"; expect(await cred.verifyProofs()).toBeFalsy(); }); - it('Should not verify an VC of with tampered username Email', async () => { + it("Should not verify an VC of with tampered username Email", async () => { const credJSon = require('./fixtures/Email.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); - cred.credentialSubject.contact.email.username = 'jpMustermann'; + cred.credentialSubject.contact.email.username = "jpMustermann"; expect(await cred.verifyProofs()).toBeFalsy(); }); - it('Should verify an VC of type Address', async () => { + it("Should verify an VC of type Address", async () => { const credJSon = require('./fixtures/Address.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(cred.verifyProofs()).toBeTruthy(); }); - it('Should not verify an VC of tampered Address', async () => { + it("Should not verify an VC of tampered Address", async () => { const credJSon = require('./fixtures/Address.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); - cred.credentialSubject.identity.address.city = 'Rio de Janeiro'; + cred.credentialSubject.identity.address.city = "Rio de Janeiro"; expect(await cred.verifyProofs()).toBeFalsy(); }); - it('Should verify an VC of type Identity', async () => { + it("Should verify an VC of type Identity", async () => { const credJSon = require('./fixtures/Identity.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(cred.verifyProofs()).toBeTruthy(); }); - it('Should verify an VC of type GenericDocumentId and doing await VC.fromJSON', async () => { + it("Should verify an VC of type GenericDocumentId and doing await VC.fromJSON", async () => { const credJSon = require('./fixtures/GenericDocumentId.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(cred.verifyProofs()).toBeTruthy(); }); - it('Should not verify an VC of tampered GenericDocumentId', async () => { + it("Should not verify an VC of tampered GenericDocumentId", async () => { const credJSon = require('./fixtures/GenericDocumentId.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); @@ -671,7 +1055,7 @@ describe('Unit tests for Verifiable Credentials', () => { expect(await cred.verifyProofs()).toBeFalsy(); }); - it('Should verify an VC of type PhoneNumber', async () => { + it("Should verify an VC of type PhoneNumber", async () => { const credJSon = require('./fixtures/PhoneNumber.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); @@ -679,41 +1063,56 @@ describe('Unit tests for Verifiable Credentials', () => { }); // This breaks VC.verify - verify has been deprecated - test.skip('cred.verify(): with a valid cred without expirationDate, should return at least' - + ' VERIFY_LEVELS.PROOFS level', async () => { + test.skip( + "cred.verify(): with a valid cred without expirationDate, should return at least" + + " VERIFY_LEVELS.PROOFS level", + async () => { const credJSon = require('./fixtures/Cred1.json'); // eslint-disable-line - const cred = await VC.fromJSON(credJSon); - expect(cred).toBeDefined(); - expect(await cred.verify()).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.PROOFS); - }); + const cred = await VC.fromJSON(credJSon); + expect(cred).toBeDefined(); + expect(await cred.verify()).toBeGreaterThanOrEqual( + VC.VERIFY_LEVELS.PROOFS, + ); + }, + ); - it('Should verify an credential json with no cryptographic security', async () => { + it("Should verify an credential json with no cryptographic security", async () => { const credential = require('./fixtures/PhoneNumber.json'); // eslint-disable-line const isValid = await VC.nonCryptographicallySecureVerify(credential); expect(isValid).toBeTruthy(); }); - it('Should verify a not anchored VC with non cryptographic verify', async () => { + it("Should verify a not anchored VC with non cryptographic verify", async () => { const value = { - country: '1ApYikRwDl', - countryCode: 'U4drpB96Hk', - number: 'kCTGifTdom', - extension: 'sXZpZJTe4R', - lineType: 'OaguqgUaR7', + country: "1ApYikRwDl", + countryCode: "U4drpB96Hk", + number: "kCTGifTdom", + extension: "sXZpZJTe4R", + lineType: "OaguqgUaR7", }; - const uca = await Claim.create('claim-cvc:Contact.phoneNumber-v1', value, '1'); - const credential = await VC.create('credential-cvc:PhoneNumber-v3', '', null, credentialSubject, [uca]); + const uca = await Claim.create( + "claim-cvc:Contact.phoneNumber-v1", + value, + "1", + ); + const credential = await VC.create( + "credential-cvc:PhoneNumber-v3", + "", + null, + credentialSubject, + [uca], + ); const isValid = await VC.nonCryptographicallySecureVerify(credential); expect(isValid).toBeTruthy(); }); - it( - 'Should fail verification of a VC with invalid cryptographic security', - async () => expect(VC.cryptographicallySecureVerify(invalidEmailJson)).resolves.toBeFalsy(), - ); + it("Should fail verification of a VC with invalid cryptographic security", async () => + expect( + VC.cryptographicallySecureVerify(invalidEmailJson), + ).resolves.toBeFalsy()); - it('Should verify an VC with cryptographic security', async () => { + it("Should verify an VC with cryptographic security", async () => { const credJSon = require('./fixtures/PhoneNumber.json'); // eslint-disable-line const credential = await VC.fromJSON(credJSon); @@ -721,69 +1120,91 @@ describe('Unit tests for Verifiable Credentials', () => { expect(isValid).toBeTruthy(); const verifyAttestationFunc = () => true; - isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc); + isValid = await VC.cryptographicallySecureVerify( + credential, + verifyAttestationFunc, + ); expect(isValid).toBeTruthy(); const verifySignatureFunc = () => true; - isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc, verifySignatureFunc); + isValid = await VC.cryptographicallySecureVerify( + credential, + verifyAttestationFunc, + verifySignatureFunc, + ); expect(isValid).toBeTruthy(); }); - it('Should return false if attestation or signature check fail on cryptographic verification', async () => { + it("Should return false if attestation or signature check fail on cryptographic verification", async () => { const credJSon = require('./fixtures/PhoneNumber.json'); // eslint-disable-line const credential = await VC.fromJSON(credJSon); let verifyAttestationFunc = () => false; - let isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc); + let isValid = await VC.cryptographicallySecureVerify( + credential, + verifyAttestationFunc, + ); expect(isValid).toBeFalsy(); verifyAttestationFunc = () => true; const verifySignatureFunc = () => false; - isValid = await VC.cryptographicallySecureVerify(credential, verifyAttestationFunc, verifySignatureFunc); + isValid = await VC.cryptographicallySecureVerify( + credential, + verifyAttestationFunc, + verifySignatureFunc, + ); expect(isValid).toBeFalsy(); }); - it('cred.verify(): VERIFY_LEVELS.PROOFS without expirationDate INVALID', async () => { + it("cred.verify(): VERIFY_LEVELS.PROOFS without expirationDate INVALID", async () => { const credJSon = require('./fixtures/Cred1.json'); // eslint-disable-line // messing up with the targetHash: - credJSon.proof.leaves[0].targetHash = credJSon.proof.leaves[0].targetHash.replace('a', 'b'); + credJSon.proof.leaves[0].targetHash = + credJSon.proof.leaves[0].targetHash.replace("a", "b"); const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(await cred.verify()).toEqual(VC.VERIFY_LEVELS.INVALID); }); - it('should fail verification since it doesn\'t have an Meta:expirationDate UCA', async () => { + it("should fail verification since it doesn't have an Meta:expirationDate UCA", async () => { const credJSon = require('./fixtures/Cred1.json'); // eslint-disable-line // messing up with the targetHash: - credJSon.proof.leaves[0].targetHash = credJSon.proof.leaves[0].targetHash.replace('a', 'b'); + credJSon.proof.leaves[0].targetHash = + credJSon.proof.leaves[0].targetHash.replace("a", "b"); const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(await cred.verifyProofs()).toBeFalsy(); }); - it('cred.verifyProofs(): with a valid cred with expirationDate, should return TRUE', async () => { + it("cred.verifyProofs(): with a valid cred with expirationDate, should return TRUE", async () => { const credJSon = require('./fixtures/CredWithFutureExpiry.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(cred.verifyProofs()).toBeTruthy(); }); - it('cred.verifyProofs(): with a valid cred but expired, should return FALSE', async () => { + it("cred.verifyProofs(): with a valid cred but expired, should return FALSE", async () => { const credJSon = require('./fixtures/CredExpired.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(await cred.verifyProofs()).not.toBeTruthy(); }); - it('should fail verification since the leaf value is tampered', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCWithTamperedLeafValue.json', 'utf8'); + it("should fail verification since the leaf value is tampered", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCWithTamperedLeafValue.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(await cred.verifyProofs()).not.toBeTruthy(); }); - it('should check that signature matches for the root of the Merkle Tree', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + it("should check that signature matches for the root of the Merkle Tree", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); @@ -791,8 +1212,11 @@ describe('Unit tests for Verifiable Credentials', () => { expect(await cred.verifyAnchorSignature()).toBeTruthy(); }); - it('should check that signature matches for the root of the Merkle Tree using a pinned key', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + it("should check that signature matches for the root of the Merkle Tree using a pinned key", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); @@ -800,37 +1224,55 @@ describe('Unit tests for Verifiable Credentials', () => { expect(await cred.verifyAnchorSignature(XPUB1)).toBeTruthy(); }); - it('should fail to check that signature using a bad pinned key', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + it("should fail to check that signature using a bad pinned key", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); expect(cred.proof.anchor).toBeDefined(); - expect(() => cred.verifyAnchorSignature(XPUB1.replace('9', '6'))).toThrow(); + expect(() => cred.verifyAnchorSignature(XPUB1.replace("9", "6"))).toThrow(); }); - it('should tamper the root of Merkle and the signature should not match', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + it("should tamper the root of Merkle and the signature should not match", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); // tamper merkle root - cred.proof.merkleRoot = 'gfdagfagfda'; + cred.proof.merkleRoot = "gfdagfagfda"; expect(cred).toBeDefined(); expect(cred.proof.anchor).toBeDefined(); expect(await cred.verifyAnchorSignature()).toBeFalsy(); }); it('should have a empty "granted" field just after construct a VC', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); expect(cred).toBeDefined(); expect(cred.proof.granted).toBeNull(); }); it('should have a empty "granted" field just after construct a VC from a JSON', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); @@ -838,60 +1280,107 @@ describe('Unit tests for Verifiable Credentials', () => { }); it('should throw exception id ".grantUsageFor()" request without proper ".requestAnchor()" first', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); expect(cred).toBeDefined(); expect(cred.proof.granted).toBeNull(); - const requestorId = 'REQUESTOR_ID_12345'; + const requestorId = "REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID - const shouldFail = () => cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); + const shouldFail = () => + cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); - expect(shouldFail).toThrow('Invalid credential attestation/anchor'); + expect(shouldFail).toThrow("Invalid credential attestation/anchor"); }); it('should have a filled "granted" field after ".grantUsageFor()" request', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); await cred.requestAnchor(); expect(cred).toBeDefined(); expect(cred.proof.granted).toBeNull(); - cred.proof.anchor.subject = signAttestationSubject(cred.proof.anchor.subject, XPVT1, XPUB1); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + cred.proof.anchor.subject = signAttestationSubject( + cred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); expect(cred.proof.granted).not.toBeNull(); }); it('should have a filled "granted" field after ".grantUsageFor()" request (fromJSON test)', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); expect(cred.proof.granted).toBeNull(); - cred.proof.anchor.subject = signAttestationSubject(cred.proof.anchor.subject, XPVT1, XPUB1); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + cred.proof.anchor.subject = signAttestationSubject( + cred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID cred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); expect(cred.proof.granted).not.toBeNull(); }); - it('should verifyGrant() accordingly', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("should verifyGrant() accordingly", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const anchoredCred = await cred.requestAnchor(); expect(anchoredCred).toBeDefined(); expect(anchoredCred.proof.granted).toBeNull(); - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(toValueObject(_.merge({}, anchoredCred, { proof: { anchor: { subject } } }))); + const subject = signAttestationSubject( + anchoredCred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const signedCred = await VC.fromJSON( + toValueObject( + _.merge({}, anchoredCred, { proof: { anchor: { subject } } }), + ), + ); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); @@ -908,17 +1397,34 @@ describe('Unit tests for Verifiable Credentials', () => { }); it('should fail verifyGrant() with a invalid "granted" token', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const anchoredCred = await cred.requestAnchor(); expect(anchoredCred).toBeDefined(); expect(anchoredCred.proof.granted).toBeNull(); - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(toValueObject(_.merge({}, anchoredCred, { proof: { anchor: { subject } } }))); + const subject = signAttestationSubject( + anchoredCred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const signedCred = await VC.fromJSON( + toValueObject( + _.merge({}, anchoredCred, { proof: { anchor: { subject } } }), + ), + ); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); @@ -938,18 +1444,35 @@ describe('Unit tests for Verifiable Credentials', () => { expect(verifyGrant).toEqual(false); }); - it('should verify a granted credential json with requesterGrantVerify', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("should verify a granted credential json with requesterGrantVerify", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const anchoredCred = await cred.requestAnchor(); expect(anchoredCred).toBeDefined(); expect(anchoredCred.proof.granted).toBeNull(); - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(toValueObject(_.merge({}, anchoredCred, { proof: { anchor: { subject } } }))); + const subject = signAttestationSubject( + anchoredCred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const signedCred = await VC.fromJSON( + toValueObject( + _.merge({}, anchoredCred, { proof: { anchor: { subject } } }), + ), + ); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); @@ -960,22 +1483,43 @@ describe('Unit tests for Verifiable Credentials', () => { const credentialObj = JSON.parse(transmittedCred); - const verifyGrant = await VC.requesterGrantVerify(credentialObj, requestorId, requestId); + const verifyGrant = await VC.requesterGrantVerify( + credentialObj, + requestorId, + requestId, + ); expect(verifyGrant).toEqual(true); }); - it('should fail to verify a credential json with invalid granted token with requesterGrantVerify', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("should fail to verify a credential json with invalid granted token with requesterGrantVerify", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const anchoredCred = await cred.requestAnchor(); expect(anchoredCred).toBeDefined(); expect(anchoredCred.proof.granted).toBeNull(); - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(toValueObject(_.merge({}, anchoredCred, { proof: { anchor: { subject } } }))); + const subject = signAttestationSubject( + anchoredCred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const signedCred = await VC.fromJSON( + toValueObject( + _.merge({}, anchoredCred, { proof: { anchor: { subject } } }), + ), + ); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); @@ -988,24 +1532,46 @@ describe('Unit tests for Verifiable Credentials', () => { // Simulate a invalid granted token - one not based on the same nonce // eslint-disable-next-line max-len - credentialObj.proof.granted = '304502210085f6baceefcddefff535416df0eda6c9b8a01dcba592c599ec2c83cce7171dd802204473f5a15b3904dbf0fc309fe812fbf449948714938fb4871196d338ef38f1d1'; + credentialObj.proof.granted = + "304502210085f6baceefcddefff535416df0eda6c9b8a01dcba592c599ec2c83cce7171dd802204473f5a15b3904dbf0fc309fe812fbf449948714938fb4871196d338ef38f1d1"; - const verifyGrant = await VC.requesterGrantVerify(credentialObj, requestorId, requestId); + const verifyGrant = await VC.requesterGrantVerify( + credentialObj, + requestorId, + requestId, + ); expect(verifyGrant).toEqual(false); }); - it('should verify() with maximum level of GRANTED', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("should verify() with maximum level of GRANTED", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const anchoredCred = await cred.requestAnchor(); expect(anchoredCred).toBeDefined(); expect(anchoredCred.proof.granted).toBeNull(); - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(toValueObject(_.merge({}, anchoredCred, { proof: { anchor: { subject } } }))); + const subject = signAttestationSubject( + anchoredCred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const signedCred = await VC.fromJSON( + toValueObject( + _.merge({}, anchoredCred, { proof: { anchor: { subject } } }), + ), + ); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); @@ -1024,18 +1590,35 @@ describe('Unit tests for Verifiable Credentials', () => { expect(verifyLevel).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.GRANTED); }); - it('should fail verify() with maximum level of GRANTED if granted is invalid', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("should fail verify() with maximum level of GRANTED if granted is invalid", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); const anchoredCred = await cred.requestAnchor(); expect(anchoredCred).toBeDefined(); expect(anchoredCred.proof.granted).toBeNull(); - const subject = signAttestationSubject(anchoredCred.proof.anchor.subject, XPVT1, XPUB1); - const signedCred = await VC.fromJSON(toValueObject(_.merge({}, anchoredCred, { proof: { anchor: { subject } } }))); + const subject = signAttestationSubject( + anchoredCred.proof.anchor.subject, + XPVT1, + XPUB1, + ); + const signedCred = await VC.fromJSON( + toValueObject( + _.merge({}, anchoredCred, { proof: { anchor: { subject } } }), + ), + ); - const requestorId = 'ANY_REQUESTOR_ID_12345'; + const requestorId = "ANY_REQUESTOR_ID_12345"; const requestId = new Date().getTime(); // simulate an nonce ID signedCred.grantUsageFor(requestorId, requestId, { pvtKey: XPVT1 }); @@ -1058,8 +1641,11 @@ describe('Unit tests for Verifiable Credentials', () => { expect(verifyLevel).toBeGreaterThanOrEqual(VC.VERIFY_LEVELS.ANCHOR); // Should be at least one level lower }); - it('should check that the anchor exists on the chain', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + it("should check that the anchor exists on the chain", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); @@ -1070,32 +1656,47 @@ describe('Unit tests for Verifiable Credentials', () => { // TODO skiing this test to release a hotfix // We need to mock the "online" verification in this unit test to get it working - it.skip('should fail the check that the anchor exists on the chain', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCTempAnchor.json', 'utf8'); + it.skip("should fail the check that the anchor exists on the chain", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCTempAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); - cred.proof.anchor.network = 'mainnet'; + cred.proof.anchor.network = "mainnet"; const validation = await cred.verifyAttestation(); expect(validation).toBeFalsy(); }); - it('should fail the check with temporary attestations faked as permanent', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/CredentialAttestationFaked.json', 'utf8'); + it("should fail the check with temporary attestations faked as permanent", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/CredentialAttestationFaked.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); - cred.proof.anchor.network = 'mainnet'; + cred.proof.anchor.network = "mainnet"; const shouldFail = cred.verifyAttestation(); await expect(shouldFail).rejects.toThrow(/Error: Invalid URI/); }); - it('should revoke the permanent anchor and succeed verification', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); + it("should revoke the permanent anchor and succeed verification", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); await cred.requestAnchor(); await cred.updateAnchor(); const validation = await cred.verifyAttestation(); @@ -1105,8 +1706,11 @@ describe('Unit tests for Verifiable Credentials', () => { } }); - it('should check an unrevoked attestation and validate that is not revoked', async () => { - const credentialContents = fs.readFileSync('__test__/creds/fixtures/VCPermanentAnchor.json', 'utf8'); + it("should check an unrevoked attestation and validate that is not revoked", async () => { + const credentialContents = fs.readFileSync( + "__test__/creds/fixtures/VCPermanentAnchor.json", + "utf8", + ); const credentialJson = JSON.parse(credentialContents); const cred = await VC.fromJSON(credentialJson); expect(cred).toBeDefined(); @@ -1115,61 +1719,112 @@ describe('Unit tests for Verifiable Credentials', () => { expect(isRevoked).toBeFalsy(); }); - it('Should match with one constraint', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.givenNames', is: { $eq: 'Max' } }, - ], - })).toBeTruthy(); - }); - - it('Should match with two constraints', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.givenNames', is: { $eq: 'Max' } }, - { path: 'identity.name.otherNames', is: { $eq: 'Abc' } }, - ], - })).toBeTruthy(); - }); - - it('Should fail with two constraints if one of them fails', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.givenNames', is: { $eq: 'NOT MAX' } }, - { path: 'identity.name.otherNames', is: { $eq: 'Abc' } }, - ], - })).toBeFalsy(); - }); - - it('Should match with gt constraint', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.isMatch({ - claims: [ - { path: 'identity.dateOfBirth.year', is: { $gt: 1900 } }, - ], - })).toBeTruthy(); - }); - - it('Should match constraints targeting the parent properties of dates', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.isMatch({ - claims: [ - { path: 'identity.dateOfBirth', is: { $lt: 1554377905342 } }, // 4-4-2019 - ], - })).toBeTruthy(); + it("Should match with one constraint", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect( + cred.isMatch({ + claims: [{ path: "identity.name.givenNames", is: { $eq: "Max" } }], + }), + ).toBeTruthy(); + }); + + it("Should match with two constraints", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect( + cred.isMatch({ + claims: [ + { path: "identity.name.givenNames", is: { $eq: "Max" } }, + { path: "identity.name.otherNames", is: { $eq: "Abc" } }, + ], + }), + ).toBeTruthy(); + }); + + it("Should fail with two constraints if one of them fails", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect( + cred.isMatch({ + claims: [ + { path: "identity.name.givenNames", is: { $eq: "NOT MAX" } }, + { path: "identity.name.otherNames", is: { $eq: "Abc" } }, + ], + }), + ).toBeFalsy(); + }); + + it("Should match with gt constraint", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect( + cred.isMatch({ + claims: [{ path: "identity.dateOfBirth.year", is: { $gt: 1900 } }], + }), + ).toBeTruthy(); + }); + + it("Should match constraints targeting the parent properties of dates", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect( + cred.isMatch({ + claims: [ + { path: "identity.dateOfBirth", is: { $lt: 1554377905342 } }, // 4-4-2019 + ], + }), + ).toBeTruthy(); }); const getExactYearsAgo = (yearDelta) => { @@ -1179,77 +1834,90 @@ describe('Unit tests for Verifiable Credentials', () => { }; const dateToDOBClaim = async (date) => { - const dobClaim = { day: date.getDate(), month: date.getMonth() + 1, year: date.getFullYear() }; - return Claim.create('claim-cvc:Identity.dateOfBirth-v1', dobClaim); + const dobClaim = { + day: date.getDate(), + month: date.getMonth() + 1, + year: date.getFullYear(), + }; + return Claim.create("claim-cvc:Identity.dateOfBirth-v1", dobClaim); }; - it('Should match constraints targeting the parent properties and string deltas', async () => { + it("Should match constraints targeting the parent properties and string deltas", async () => { const exactlyFortyYearsAgo = getExactYearsAgo(40); const dob = await dateToDOBClaim(exactlyFortyYearsAgo); - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.isMatch({ - claims: [ - { path: 'identity.dateOfBirth', is: { $lte: '-40y' } }, - ], - })).toBeTruthy(); - }); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); - it('Should not match', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); - expect(cred.isMatch({ - claims: [ - { path: 'identity.name.first', is: { $eq: 'Maxime' } }, - ], - })).toBeFalsy(); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect( + cred.isMatch({ + claims: [{ path: "identity.dateOfBirth", is: { $lte: "-40y" } }], + }), + ).toBeTruthy(); + }); + + it("Should not match", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + ); + expect( + cred.isMatch({ + claims: [{ path: "identity.name.first", is: { $eq: "Maxime" } }], + }), + ).toBeFalsy(); }); - it('Should match credential on constraints.meta', () => { + it("Should match credential on constraints.meta", () => { const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v3', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v3', - ], + id: "123456789", + identifier: "credential-cvc:Email-v3", + issuer: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", + issuanceDate: "2018-09-27T01:14:41.287Z", + expirationDate: "2028-09-26T11:22:21.287Z", + version: "1", + type: ["Credential", "credential-cvc:Email-v3"], }; const constraints = { meta: { - credential: 'credential-cvc:Email-v3', + credential: "credential-cvc:Email-v3", }, }; expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeTruthy(); }); - it('Should match credential on constraints.meta with issuer', () => { + it("Should match credential on constraints.meta with issuer", () => { const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v3', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v3', - ], + id: "123456789", + identifier: "credential-cvc:Email-v3", + issuer: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", + issuanceDate: "2018-09-27T01:14:41.287Z", + expirationDate: "2028-09-26T11:22:21.287Z", + version: "1", + type: ["Credential", "credential-cvc:Email-v3"], }; const constraints = { meta: { - credential: 'credential-cvc:Email-v3', + credential: "credential-cvc:Email-v3", issuer: { is: { - $eq: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', + $eq: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", }, }, }, @@ -1258,26 +1926,23 @@ describe('Unit tests for Verifiable Credentials', () => { expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeTruthy(); }); - it('Should not match credential on constraints.meta with wrong issuer', () => { + it("Should not match credential on constraints.meta with wrong issuer", () => { const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v3', - issuer: 'did:ethr:0x00000', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v3', - ], + id: "123456789", + identifier: "credential-cvc:Email-v3", + issuer: "did:ethr:0x00000", + issuanceDate: "2018-09-27T01:14:41.287Z", + expirationDate: "2028-09-26T11:22:21.287Z", + version: "1", + type: ["Credential", "credential-cvc:Email-v3"], }; const constraints = { meta: { - credential: 'credential-cvc:Email-v3', + credential: "credential-cvc:Email-v3", issuer: { is: { - $eq: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', + $eq: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", }, }, }, @@ -1286,31 +1951,28 @@ describe('Unit tests for Verifiable Credentials', () => { expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeFalsy(); }); - it('Should match credential on constraints.meta with multiple fields', () => { + it("Should match credential on constraints.meta with multiple fields", () => { const vcMeta = { - id: '123456789', - identifier: 'credential-cvc:Email-v3', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'credential-cvc:Email-v3', - ], + id: "123456789", + identifier: "credential-cvc:Email-v3", + issuer: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", + issuanceDate: "2018-09-27T01:14:41.287Z", + expirationDate: "2028-09-26T11:22:21.287Z", + version: "1", + type: ["Credential", "credential-cvc:Email-v3"], }; const constraints = { meta: { - credential: 'credential-cvc:Email-v3', + credential: "credential-cvc:Email-v3", issuer: { is: { - $eq: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', + $eq: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", }, }, id: { is: { - $eq: '123456789', + $eq: "123456789", }, }, }, @@ -1319,31 +1981,28 @@ describe('Unit tests for Verifiable Credentials', () => { expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeTruthy(); }); - it('Should not match credential on constraints.meta with invalid field', () => { + it("Should not match credential on constraints.meta with invalid field", () => { const vcMeta = { - id: '123456789', - identifier: 'civ:Credential:CivicBasic', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'civ:Credential:CivicBasic', - ], + id: "123456789", + identifier: "civ:Credential:CivicBasic", + issuer: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", + issuanceDate: "2018-09-27T01:14:41.287Z", + expirationDate: "2028-09-26T11:22:21.287Z", + version: "1", + type: ["Credential", "civ:Credential:CivicBasic"], }; const constraints = { meta: { - credential: 'credential-civ:Credential:CivicBasic-1', + credential: "credential-civ:Credential:CivicBasic-1", issuer: { is: { - $eq: 'did:ethr:NOT_MATCH', + $eq: "did:ethr:NOT_MATCH", }, }, id: { is: { - $eq: '123456789', + $eq: "123456789", }, }, }, @@ -1352,336 +2011,448 @@ describe('Unit tests for Verifiable Credentials', () => { expect(VC.isMatchCredentialMeta(vcMeta, constraints)).toBeFalsy(); }); - it('Should not match credential if constraints.meta are invalid or empty', () => { + it("Should not match credential if constraints.meta are invalid or empty", () => { const vcMeta = { - id: '123456789', - identifier: 'civ:Credential:CivicBasic', - issuer: 'did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD', - issuanceDate: '2018-09-27T01:14:41.287Z', - expirationDate: '2028-09-26T11:22:21.287Z', - version: '1', - type: [ - 'Credential', - 'civ:Credential:CivicBasic', - ], + id: "123456789", + identifier: "civ:Credential:CivicBasic", + issuer: "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", + issuanceDate: "2018-09-27T01:14:41.287Z", + expirationDate: "2028-09-26T11:22:21.287Z", + version: "1", + type: ["Credential", "civ:Credential:CivicBasic"], }; const constraint = {}; expect(VC.isMatchCredentialMeta(vcMeta, constraint)).toBeFalsy(); }); - it('Should return all Credential properties for credential-cvc:GenericDocumentId-v3', async () => { - const properties = await VC.getAllProperties('credential-cvc:GenericDocumentId-v3'); + it("Should return all Credential properties for credential-cvc:GenericDocumentId-v3", async () => { + const properties = await VC.getAllProperties( + "credential-cvc:GenericDocumentId-v3", + ); expect(properties).toHaveLength(30); - expect(properties).toContain('document.type'); - expect(properties).toContain('document.number'); - expect(properties).toContain('document.gender'); - expect(properties).toContain('document.issueLocation'); - expect(properties).toContain('document.issueAuthority'); - expect(properties).toContain('document.issueCountry'); - expect(properties).toContain('document.placeOfBirth'); - expect(properties).toContain('document.name.givenNames'); - expect(properties).toContain('document.name.familyNames'); - expect(properties).toContain('document.name.otherNames'); - expect(properties).toContain('document.dateOfBirth.day'); - expect(properties).toContain('document.dateOfBirth.month'); - expect(properties).toContain('document.dateOfBirth.year'); - expect(properties).toContain('document.address.country'); - expect(properties).toContain('document.address.county'); - expect(properties).toContain('document.address.state'); - expect(properties).toContain('document.address.street'); - expect(properties).toContain('document.address.unit'); - expect(properties).toContain('document.address.city'); - expect(properties).toContain('document.address.postalCode'); - expect(properties).toContain('document.properties.dateOfIssue.day'); - expect(properties).toContain('document.properties.dateOfIssue.month'); - expect(properties).toContain('document.properties.dateOfIssue.year'); - expect(properties).toContain('document.properties.dateOfExpiry.day'); - expect(properties).toContain('document.properties.dateOfExpiry.month'); - expect(properties).toContain('document.properties.dateOfExpiry.year'); - expect(properties).toContain('document.image.front'); - expect(properties).toContain('document.image.frontMD5'); - expect(properties).toContain('document.image.back'); - expect(properties).toContain('document.image.backMD5'); - }); - - it('Should return all Credential properties for credential-cvc:Identity-v3', async () => { - const properties = await VC.getAllProperties('credential-cvc:Identity-v3'); + expect(properties).toContain("document.type"); + expect(properties).toContain("document.number"); + expect(properties).toContain("document.gender"); + expect(properties).toContain("document.issueLocation"); + expect(properties).toContain("document.issueAuthority"); + expect(properties).toContain("document.issueCountry"); + expect(properties).toContain("document.placeOfBirth"); + expect(properties).toContain("document.name.givenNames"); + expect(properties).toContain("document.name.familyNames"); + expect(properties).toContain("document.name.otherNames"); + expect(properties).toContain("document.dateOfBirth.day"); + expect(properties).toContain("document.dateOfBirth.month"); + expect(properties).toContain("document.dateOfBirth.year"); + expect(properties).toContain("document.address.country"); + expect(properties).toContain("document.address.county"); + expect(properties).toContain("document.address.state"); + expect(properties).toContain("document.address.street"); + expect(properties).toContain("document.address.unit"); + expect(properties).toContain("document.address.city"); + expect(properties).toContain("document.address.postalCode"); + expect(properties).toContain("document.properties.dateOfIssue.day"); + expect(properties).toContain("document.properties.dateOfIssue.month"); + expect(properties).toContain("document.properties.dateOfIssue.year"); + expect(properties).toContain("document.properties.dateOfExpiry.day"); + expect(properties).toContain("document.properties.dateOfExpiry.month"); + expect(properties).toContain("document.properties.dateOfExpiry.year"); + expect(properties).toContain("document.image.front"); + expect(properties).toContain("document.image.frontMD5"); + expect(properties).toContain("document.image.back"); + expect(properties).toContain("document.image.backMD5"); + }); + + it("Should return all Credential properties for credential-cvc:Identity-v3", async () => { + const properties = await VC.getAllProperties("credential-cvc:Identity-v3"); expect(properties).toHaveLength(6); - expect(properties).toContain('identity.name.givenNames'); - expect(properties).toContain('identity.name.familyNames'); - expect(properties).toContain('identity.name.otherNames'); - expect(properties).toContain('identity.dateOfBirth.day'); - expect(properties).toContain('identity.dateOfBirth.month'); - expect(properties).toContain('identity.dateOfBirth.year'); + expect(properties).toContain("identity.name.givenNames"); + expect(properties).toContain("identity.name.familyNames"); + expect(properties).toContain("identity.name.otherNames"); + expect(properties).toContain("identity.dateOfBirth.day"); + expect(properties).toContain("identity.dateOfBirth.month"); + expect(properties).toContain("identity.dateOfBirth.year"); }); - it('Should return all Credential properties for credential-cvc:Address-v3', async () => { - const properties = await VC.getAllProperties('credential-cvc:Address-v3'); + it("Should return all Credential properties for credential-cvc:Address-v3", async () => { + const properties = await VC.getAllProperties("credential-cvc:Address-v3"); expect(properties).toHaveLength(7); - expect(properties).toContain('identity.address.country'); - expect(properties).toContain('identity.address.county'); - expect(properties).toContain('identity.address.state'); - expect(properties).toContain('identity.address.street'); - expect(properties).toContain('identity.address.unit'); - expect(properties).toContain('identity.address.city'); - expect(properties).toContain('identity.address.postalCode'); - }); - - it('Should return all Credential properties for credential-cvc:PhoneNumber-v3', async () => { - const properties = await VC.getAllProperties('credential-cvc:PhoneNumber-v3'); + expect(properties).toContain("identity.address.country"); + expect(properties).toContain("identity.address.county"); + expect(properties).toContain("identity.address.state"); + expect(properties).toContain("identity.address.street"); + expect(properties).toContain("identity.address.unit"); + expect(properties).toContain("identity.address.city"); + expect(properties).toContain("identity.address.postalCode"); + }); + + it("Should return all Credential properties for credential-cvc:PhoneNumber-v3", async () => { + const properties = await VC.getAllProperties( + "credential-cvc:PhoneNumber-v3", + ); expect(properties).toHaveLength(5); - expect(properties).toContain('contact.phoneNumber.country'); - expect(properties).toContain('contact.phoneNumber.countryCode'); - expect(properties).toContain('contact.phoneNumber.number'); - expect(properties).toContain('contact.phoneNumber.extension'); - expect(properties).toContain('contact.phoneNumber.lineType'); + expect(properties).toContain("contact.phoneNumber.country"); + expect(properties).toContain("contact.phoneNumber.countryCode"); + expect(properties).toContain("contact.phoneNumber.number"); + expect(properties).toContain("contact.phoneNumber.extension"); + expect(properties).toContain("contact.phoneNumber.lineType"); }); - it('Should return all Credential properties for credential-cvc:Email-v3', async () => { - const properties = await VC.getAllProperties('credential-cvc:Email-v3'); + it("Should return all Credential properties for credential-cvc:Email-v3", async () => { + const properties = await VC.getAllProperties("credential-cvc:Email-v3"); expect(properties).toHaveLength(3); - expect(properties).toContain('contact.email.username'); - expect(properties).toContain('contact.email.domain.name'); - expect(properties).toContain('contact.email.domain.tld'); + expect(properties).toContain("contact.email.username"); + expect(properties).toContain("contact.email.domain.name"); + expect(properties).toContain("contact.email.domain.tld"); }); - it('Should construct a VC with no evidence provided', async () => { - const name = await Claim.create( - 'claim-cvc:Identity.name-v1', - { givenNames: 'Neymar', otherNames: 'Jr', familyNames: 'Mustermann' }, + it("Should construct a VC with no evidence provided", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", + }); + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { + day: 5, + month: 2, + year: 1992, + }); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], ); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { day: 5, month: 2, year: 1992 }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob]); expect(cred).toBeDefined(); }); - it('Should construct a VC with the provided evidence', async () => { + it("Should construct a VC with the provided evidence", async () => { const evidence = { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', + id: "https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab", + type: ["DocumentVerification"], + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", }; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 5, month: 2, year: 1992, }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + evidence, + ); expect(cred.evidence).toBeDefined(); expect(cred.evidence).toEqual([evidence]); }); - it('Should construct a VC with multiple evidence items', async () => { + it("Should construct a VC with multiple evidence items", async () => { const evidence = [ { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', + id: "https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab", + type: ["DocumentVerification"], + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", }, { - id: 'https://idv.civic.com/evidence/a1adcc52-ac1d-31ff-1cd3-0123591dcadal', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', + id: "https://idv.civic.com/evidence/a1adcc52-ac1d-31ff-1cd3-0123591dcadal", + type: ["DocumentVerification"], + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", }, ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 5, month: 2, year: 1992, }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + evidence, + ); expect(cred.evidence).toBeDefined(); expect(cred.evidence).toEqual(evidence); }); - it('Should include only the evidence properties in the credential', async () => { + it("Should include only the evidence properties in the credential", async () => { const evidence = [ { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', - other: 'other', + id: "https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab", + type: ["DocumentVerification"], + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", + other: "other", }, ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 5, month: 2, year: 1992, }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + evidence, + ); expect(cred.evidence).toBeDefined(); expect(cred.evidence.other).not.toBeDefined(); }); - it('Should construct a credential with an evidence without id', async () => { + it("Should construct a credential with an evidence without id", async () => { const evidence = [ { - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', + type: ["DocumentVerification"], + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", }, ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 5, month: 2, year: 1992, }); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + evidence, + ); expect(cred.evidence).toBeDefined(); expect(cred.evidence).toEqual(evidence); }); - it('Should throw exception if a evidence required property is missing', async () => { + it("Should throw exception if a evidence required property is missing", async () => { const evidence = [ { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', + id: "https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab", + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", }, ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 5, month: 2, year: 1992, }); - return expect(VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence)).rejects.toThrow(/Evidence type is required/); + return expect( + VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + evidence, + ), + ).rejects.toThrow(/Evidence type is required/); }); - it('Should throw exception if evidence id is NOT a valid url', async () => { + it("Should throw exception if evidence id is NOT a valid url", async () => { const evidence = [ { - id: 'not an URL', - type: ['DocumentVerification'], - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', + id: "not an URL", + type: ["DocumentVerification"], + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", }, ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 5, month: 2, year: 1992, }); - return expect(VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence)).rejects.toThrow(/Evidence id is not a valid URL/); + return expect( + VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + evidence, + ), + ).rejects.toThrow(/Evidence id is not a valid URL/); }); - it('Should throw exception if evidence type is not an array', async () => { + it("Should throw exception if evidence type is not an array", async () => { const evidence = [ { - id: 'https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab', - type: 'DocumentVerification', - verifier: 'did:ethr:xxx', - evidenceDocument: 'Brazilian Passport', - subjectPresence: 'Digital', - documentPresence: 'Digital', + id: "https://idv.civic.com/evidence/f2aeec97-fc0d-42bf-8ca7-0548192dxyzab", + type: "DocumentVerification", + verifier: "did:ethr:xxx", + evidenceDocument: "Brazilian Passport", + subjectPresence: "Digital", + documentPresence: "Digital", }, ]; - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Neymar', - otherNames: 'Jr', - familyNames: 'Mustermann', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Neymar", + otherNames: "Jr", + familyNames: "Mustermann", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 5, month: 2, year: 1992, }); - return expect(VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], evidence)).rejects.toThrow(/Evidence type is not an Array object/); + return expect( + VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + evidence, + ), + ).rejects.toThrow(/Evidence type is not an Array object/); }); - it('Should create credential if all claims are provided', async () => { + it("Should create credential if all claims are provided", async () => { const verificationMethod = `${didTestUtil.DID_CONTROLLER}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_CONTROLLER); - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const number = await Claim.create('claim-cvc:Document.number-v1', '123', '1'); - const name = await Claim.create('claim-cvc:Document.name-v1', { givenNames: 'Maxime' }, '1'); - const gender = await Claim.create('claim-cvc:Document.gender-v1', 'M', '1'); - const nationality = await Claim.create('claim-cvc:Document.nationality-v1', 'Brazilian', '1'); - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', 'Brazil', '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); + const type = await Claim.create( + "claim-cvc:Document.type-v1", + "passport", + "1", + ); + const number = await Claim.create( + "claim-cvc:Document.number-v1", + "123", + "1", + ); + const name = await Claim.create( + "claim-cvc:Document.name-v1", + { givenNames: "Maxime" }, + "1", + ); + const gender = await Claim.create("claim-cvc:Document.gender-v1", "M", "1"); + const nationality = await Claim.create( + "claim-cvc:Document.nationality-v1", + "Brazilian", + "1", + ); + const placeOfBirth = await Claim.create( + "claim-cvc:Document.placeOfBirth-v1", + "Brazil", + "1", + ); + const issueCountry = await Claim.create( + "claim-cvc:Document.issueCountry-v1", + "Brazil", + "1", + ); const dateOfExpiryValue = { day: 20, month: 3, year: 2020, }; - const dateOfExpiry = await Claim.create('claim-cvc:Document.dateOfExpiry-v1', dateOfExpiryValue, '1'); + const dateOfExpiry = await Claim.create( + "claim-cvc:Document.dateOfExpiry-v1", + dateOfExpiryValue, + "1", + ); const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); - const evidences = await Claim.create('claim-cvc:Document.evidences-v1', { - idDocumentFront: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - idDocumentBack: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', - }, - selfie: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + const dateOfBirth = await Claim.create( + "claim-cvc:Document.dateOfBirth-v1", + dateOfBirthValue, + "1", + ); + const evidences = await Claim.create( + "claim-cvc:Document.evidences-v1", + { + idDocumentFront: { + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + }, + idDocumentBack: { + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + }, + selfie: { + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + }, }, - }, '1'); + "1", + ); const ucas = [ - type, number, name, gender, issueCountry, placeOfBirth, dateOfBirth, nationality, dateOfExpiry, evidences, + type, + number, + name, + gender, + issueCountry, + placeOfBirth, + dateOfBirth, + nationality, + dateOfExpiry, + evidences, ]; const credential = await VC.create( - 'credential-cvc:IdDocument-v3', + "credential-cvc:IdDocument-v3", didTestUtil.DID_CONTROLLER, null, credentialSubject, @@ -1696,44 +2467,85 @@ describe('Unit tests for Verifiable Credentials', () => { expect(await credential.verifyMerkletreeSignature()).toBe(true); }); - it('Should throw exception on credential creation if required uca is missing', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const name = await Claim.create('claim-cvc:Document.name-v1', { givenNames: 'Maxime' }, '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); + it("Should throw exception on credential creation if required uca is missing", async () => { + const type = await Claim.create( + "claim-cvc:Document.type-v1", + "passport", + "1", + ); + const name = await Claim.create( + "claim-cvc:Document.name-v1", + { givenNames: "Maxime" }, + "1", + ); + const issueCountry = await Claim.create( + "claim-cvc:Document.issueCountry-v1", + "Brazil", + "1", + ); const ucas = [type, name, issueCountry]; - return expect(VC.create('credential-cvc:IdDocument-v3', '', null, credentialSubject, ucas)).rejects - .toThrow(/Missing required fields to credential-cvc:IdDocument-v3/); + return expect( + VC.create( + "credential-cvc:IdDocument-v3", + "", + null, + credentialSubject, + ucas, + ), + ).rejects.toThrow( + /Missing required fields to credential-cvc:IdDocument-v3/, + ); }); - it('Should throw exception on credential creation if required uca is missing', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const name = await Claim.create('claim-cvc:Document.name-v1', { givenNames: 'Maxime' }, '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); + it("Should throw exception on credential creation if required uca is missing", async () => { + const type = await Claim.create( + "claim-cvc:Document.type-v1", + "passport", + "1", + ); + const name = await Claim.create( + "claim-cvc:Document.name-v1", + { givenNames: "Maxime" }, + "1", + ); + const issueCountry = await Claim.create( + "claim-cvc:Document.issueCountry-v1", + "Brazil", + "1", + ); const ucas = [type, name, issueCountry]; - return expect(VC.create('credential-cvc:IdDocument-v3', '', null, credentialSubject, ucas)) - .rejects.toThrow(/Missing required fields to credential-cvc:IdDocument-v3/); + return expect( + VC.create( + "credential-cvc:IdDocument-v3", + "", + null, + credentialSubject, + ucas, + ), + ).rejects.toThrow( + /Missing required fields to credential-cvc:IdDocument-v3/, + ); }); - it('Should verify a VC without non-required claims', async () => { + it("Should verify a VC without non-required claims", async () => { const credJSon = require('./fixtures/IdDocumentWithoutNonRequiredClaims.json'); // eslint-disable-line const cred = await VC.fromJSON(credJSon); expect(cred).toBeDefined(); expect(cred.verifyProofs()).toBeTruthy(); }); - it('Should throw exception when creating a VC from json without required claims', async () => { + it("Should throw exception when creating a VC from json without required claims", async () => { const credJSon = require('./fixtures/IdDocumentWithoutRequiredClaims.json'); // eslint-disable-line - return expect(VC.fromJSON(credJSon)) - .rejects.toThrow(); + return expect(VC.fromJSON(credJSon)).rejects.toThrow(); }); }); -describe('Transient Credential Tests', () => { +describe("Transient Credential Tests", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); @@ -1742,19 +2554,25 @@ describe('Transient Credential Tests', () => { schemaLoader.reset(); }); - it('Should create an US Address Transient Credential', async () => { + it("Should create an US Address Transient Credential", async () => { const value = { - country: 'US', - county: 'Melo Park', - state: 'California', - street: 'Oak', - unit: '12', - city: 'Palo Alto', - postalCode: '94555', + country: "US", + county: "Melo Park", + state: "California", + street: "Oak", + unit: "12", + city: "Palo Alto", + postalCode: "94555", }; - const uca = await Claim.create('claim-cvc:Identity.address-v1', value, '1'); - const credential = await VC.create('credential-cvc:UnverifiedAddress-v3', '', null, credentialSubject, [uca]); + const uca = await Claim.create("claim-cvc:Identity.address-v1", value, "1"); + const credential = await VC.create( + "credential-cvc:UnverifiedAddress-v3", + "", + null, + credentialSubject, + [uca], + ); expect(credential).toBeDefined(); expect(credential.transient).toBeTruthy(); @@ -1762,7 +2580,7 @@ describe('Transient Credential Tests', () => { credential.requestAnchor(); expect(credential.proof.anchor).toBeDefined(); - expect(credential.proof.anchor.type).toBe('transient'); + expect(credential.proof.anchor.type).toBe("transient"); const verified = await credential.verifyAttestation(); expect(verified).toBeTruthy(); @@ -1771,15 +2589,25 @@ describe('Transient Credential Tests', () => { expect(proved).toBeTruthy(); }); - it('Should create an US SSN Transient Credential', async () => { + it("Should create an US SSN Transient Credential", async () => { const value = { - areaNumber: '111', - groupNumber: '11', - serialNumber: '1111', + areaNumber: "111", + groupNumber: "11", + serialNumber: "1111", }; - const uca = await Claim.create('claim-cvc:SocialSecurity.number-v1', value, '1'); - const credential = await VC.create('credential-cvc:UnverifiedSsn-v3', '', null, credentialSubject, [uca]); + const uca = await Claim.create( + "claim-cvc:SocialSecurity.number-v1", + value, + "1", + ); + const credential = await VC.create( + "credential-cvc:UnverifiedSsn-v3", + "", + null, + credentialSubject, + [uca], + ); expect(credential).toBeDefined(); expect(credential.transient).toBeTruthy(); @@ -1787,7 +2615,7 @@ describe('Transient Credential Tests', () => { credential.requestAnchor(); expect(credential.proof.anchor).toBeDefined(); - expect(credential.proof.anchor.type).toBe('transient'); + expect(credential.proof.anchor.type).toBe("transient"); const verified = await credential.verifyAttestation(); expect(verified).toBeTruthy(); @@ -1797,7 +2625,7 @@ describe('Transient Credential Tests', () => { }); }); -describe('Signed Verifiable Credentials', () => { +describe("Signed Verifiable Credentials", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); @@ -1808,15 +2636,18 @@ describe('Signed Verifiable Credentials', () => { schemaLoader.reset(); }); - it('Should create a verifiable credential instance', async () => { + it("Should create a verifiable credential instance", async () => { const verificationMethod = `${didTestUtil.DID_SPARSE}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_SPARSE); - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); const cred = await VC.create( - 'credential-cvc:Identity-v3', + "credential-cvc:Identity-v3", didTestUtil.DID_SPARSE, null, credentialSubject, @@ -1830,20 +2661,25 @@ describe('Signed Verifiable Credentials', () => { expect(cred).toBeDefined(); expect(cred.proof.merkleRootSignature.signature).toBeDefined(); - expect(cred.proof.merkleRootSignature.verificationMethod).toBe(verificationMethod); + expect(cred.proof.merkleRootSignature.verificationMethod).toBe( + verificationMethod, + ); expect(await cred.verifyMerkletreeSignature()).toBe(true); }); - it('Should fail to verify a signature if the issuer didn\'t sign', async () => { + it("Should fail to verify a signature if the issuer didn't sign", async () => { const verificationMethod = `${didTestUtil.DID_SPARSE}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_SPARSE); - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); const cred = await VC.create( - 'credential-cvc:Identity-v3', + "credential-cvc:Identity-v3", didTestUtil.DID_SPARSE, null, credentialSubject, @@ -1857,7 +2693,9 @@ describe('Signed Verifiable Credentials', () => { expect(cred).toBeDefined(); expect(cred.proof.merkleRootSignature.signature).toBeDefined(); - expect(cred.proof.merkleRootSignature.verificationMethod).toBe(verificationMethod); + expect(cred.proof.merkleRootSignature.verificationMethod).toBe( + verificationMethod, + ); // change the issuer DID on the VC cred.issuer = didTestUtil.DID_CONTROLLER; @@ -1865,15 +2703,18 @@ describe('Signed Verifiable Credentials', () => { expect(await cred.verifyMerkletreeSignature()).toBe(false); }); - it('Should not be able to sign with a removed key', async () => { + it("Should not be able to sign with a removed key", async () => { const verificationMethod = `${didTestUtil.DID_WITH_NO_DEFAULT}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_WITH_NO_DEFAULT); - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); const credCreate = VC.create( - 'credential-cvc:Identity-v3', + "credential-cvc:Identity-v3", didTestUtil.DID_WITH_NO_DEFAULT, null, credentialSubject, @@ -1890,15 +2731,18 @@ describe('Signed Verifiable Credentials', () => { ); }); - it('Should be able to sign as a controller of the issuer did', async () => { + it("Should be able to sign as a controller of the issuer did", async () => { const verificationMethod = `${didTestUtil.DID_CONTROLLER}#default`; const keypair = didTestUtil.keyPair(didTestUtil.DID_CONTROLLER); - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); const cred = await VC.create( - 'credential-cvc:Identity-v3', + "credential-cvc:Identity-v3", didTestUtil.DID_CONTROLLED, null, credentialSubject, @@ -1912,19 +2756,24 @@ describe('Signed Verifiable Credentials', () => { expect(cred).toBeDefined(); expect(cred.proof.merkleRootSignature.signature).toBeDefined(); - expect(cred.proof.merkleRootSignature.verificationMethod).toBe(verificationMethod); + expect(cred.proof.merkleRootSignature.verificationMethod).toBe( + verificationMethod, + ); expect(await cred.verifyMerkletreeSignature()).toBe(true); }); - it('Should verify credential(data only) signature', async () => { + it("Should verify credential(data only) signature", async () => { const verificationMethod = `${didTestUtil.DID_SPARSE}#default`; - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); const cred = await VC.create( - 'credential-cvc:Identity-v3', + "credential-cvc:Identity-v3", didTestUtil.DID_SPARSE, null, credentialSubject, @@ -1939,12 +2788,15 @@ describe('Signed Verifiable Credentials', () => { expect(cred).toBeDefined(); expect(cred.proof.merkleRootSignature).toBeDefined(); - const verifier = await signerVerifier.verifier(didTestUtil.DID_SPARSE, verificationMethod); + const verifier = await signerVerifier.verifier( + didTestUtil.DID_SPARSE, + verificationMethod, + ); const dataOnlyCredential = JSON.parse(JSON.stringify(cred)); expect(verifier.verify(dataOnlyCredential)).toBeTruthy(); }); }); -describe('Referenced Schemas for Verifiable Credentials', () => { +describe("Referenced Schemas for Verifiable Credentials", () => { beforeAll(() => { schemaLoader.addLoader(new TestSchemaLoader()); schemaLoader.addLoader(new CVCSchemaLoader()); @@ -1952,96 +2804,179 @@ describe('Referenced Schemas for Verifiable Credentials', () => { VC.setResolver(stubResolver); }); - it('Loads a schema the contains a reference', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const number = await Claim.create('claim-cvc:Document.number-v1', 'FP12345', '1'); + it("Loads a schema the contains a reference", async () => { + const type = await Claim.create( + "claim-cvc:Document.type-v1", + "passport", + "1", + ); + const number = await Claim.create( + "claim-cvc:Document.number-v1", + "FP12345", + "1", + ); const nameValue = { - givenNames: 'e8qhs4Iak1', - familyNames: 'e8qak1', - otherNames: 'qhs4I', + givenNames: "e8qhs4Iak1", + familyNames: "e8qak1", + otherNames: "qhs4I", }; - const name = await Claim.create('claim-cvc:Document.name-v1', nameValue, '1'); - const gender = await Claim.create('claim-cvc:Document.gender-v1', 'M', '1'); - const issueCountry = await Claim.create('claim-cvc:Document.issueCountry-v1', 'Brazil', '1'); - const placeOfBirth = await Claim.create('claim-cvc:Document.placeOfBirth-v1', 'Belo Horizonte', '1'); + const name = await Claim.create( + "claim-cvc:Document.name-v1", + nameValue, + "1", + ); + const gender = await Claim.create("claim-cvc:Document.gender-v1", "M", "1"); + const issueCountry = await Claim.create( + "claim-cvc:Document.issueCountry-v1", + "Brazil", + "1", + ); + const placeOfBirth = await Claim.create( + "claim-cvc:Document.placeOfBirth-v1", + "Belo Horizonte", + "1", + ); const dateOfBirthValue = identityDateOfBirth; - const dateOfBirth = await Claim.create('claim-cvc:Document.dateOfBirth-v1', dateOfBirthValue, '1'); + const dateOfBirth = await Claim.create( + "claim-cvc:Document.dateOfBirth-v1", + dateOfBirthValue, + "1", + ); const dateOfExpiryValue = { day: 12, month: 2, year: 2025, }; - const dateOfExpiry = await Claim.create('claim-cvc:Document.dateOfExpiry-v1', dateOfExpiryValue, '1'); - const nationality = await Claim.create('claim-cvc:Document.nationality-v1', 'Brazilian', '1'); + const dateOfExpiry = await Claim.create( + "claim-cvc:Document.dateOfExpiry-v1", + dateOfExpiryValue, + "1", + ); + const nationality = await Claim.create( + "claim-cvc:Document.nationality-v1", + "Brazilian", + "1", + ); const evidencesValue = { idDocumentFront: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", }, idDocumentBack: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", }, selfie: { - algorithm: 'sha256', - data: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', + algorithm: "sha256", + data: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", }, }; - const evidences = await Claim.create('claim-cvc:Document.evidences-v1', evidencesValue, '1'); + const evidences = await Claim.create( + "claim-cvc:Document.evidences-v1", + evidencesValue, + "1", + ); - const credential = await VC.create('credential-test:IdDocument-v1', '', null, credentialSubject, [type, number, name, gender, - issueCountry, placeOfBirth, dateOfBirth, dateOfExpiry, nationality, evidences]); + const credential = await VC.create( + "credential-test:IdDocument-v1", + "", + null, + credentialSubject, + [ + type, + number, + name, + gender, + issueCountry, + placeOfBirth, + dateOfBirth, + dateOfExpiry, + nationality, + evidences, + ], + ); expect(credential).toBeDefined(); - const filtered = credential.filter(['claim-cvc:Document.dateOfBirth-v1']); + const filtered = credential.filter(["claim-cvc:Document.dateOfBirth-v1"]); expect(filtered).toBeDefined(); }); - it('Validates a schema the contains a reference', async () => { - const type = await Claim.create('claim-cvc:Document.type-v1', 'passport', '1'); - const number = await Claim.create('claim-cvc:Document.number-v1', 'FP12345', '1'); + it("Validates a schema the contains a reference", async () => { + const type = await Claim.create( + "claim-cvc:Document.type-v1", + "passport", + "1", + ); + const number = await Claim.create( + "claim-cvc:Document.number-v1", + "FP12345", + "1", + ); - const createCredential = VC.create('credential-test:IdDocument-v1', '', null, credentialSubject, [type, number]); + const createCredential = VC.create( + "credential-test:IdDocument-v1", + "", + null, + credentialSubject, + [type, number], + ); - return expect(createCredential).rejects.toThrow('Missing required fields to credential-test:IdDocument-v1'); + return expect(createCredential).rejects.toThrow( + "Missing required fields to credential-test:IdDocument-v1", + ); }); }); -describe('Verifiable Credential JSON serialization', () => { +describe("Verifiable Credential JSON serialization", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); - it('serializes a VC to JSON', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', identityName); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', identityDateOfBirth); - const cred = await VC.create('credential-cvc:Identity-v3', uuidv4(), null, credentialSubject, [name, dob], null); + it("serializes a VC to JSON", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", identityName); + const dob = await Claim.create( + "claim-cvc:Identity.dateOfBirth-v1", + identityDateOfBirth, + ); + const cred = await VC.create( + "credential-cvc:Identity-v3", + uuidv4(), + null, + credentialSubject, + [name, dob], + null, + ); // serialize the credential to JSON, then back to an object to be tested against const credJSON = JSON.parse(JSON.stringify(cred)); - expect(credJSON).toEqual(expect.objectContaining({ - '@context': ['https://www.w3.org/2018/credentials/v1', 'https://www.identity.com/credentials/v3'], - id: cred.id, - issuer: cred.issuer, - issuanceDate: cred.issuanceDate, - type: ['VerifiableCredential', 'IdentityCredential'], - credentialSubject: { - id: credentialSubject, - identity: { - name: { - familyNames: identityName.familyNames, - givenNames: identityName.givenNames, - otherNames: identityName.otherNames, - }, - dateOfBirth: { - day: identityDateOfBirth.day, - month: identityDateOfBirth.month, - year: identityDateOfBirth.year, + expect(credJSON).toEqual( + expect.objectContaining({ + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://www.identity.com/credentials/v3", + ], + id: cred.id, + issuer: cred.issuer, + issuanceDate: cred.issuanceDate, + type: ["VerifiableCredential", "IdentityCredential"], + credentialSubject: { + id: credentialSubject, + identity: { + name: { + familyNames: identityName.familyNames, + givenNames: identityName.givenNames, + otherNames: identityName.otherNames, + }, + dateOfBirth: { + day: identityDateOfBirth.day, + month: identityDateOfBirth.month, + year: identityDateOfBirth.year, + }, }, }, - }, - })); + }), + ); }); }); diff --git a/__test__/errors/idvErrors.test.js b/__test__/errors/idvErrors.test.js index fc571fa2..c0f5ef18 100644 --- a/__test__/errors/idvErrors.test.js +++ b/__test__/errors/idvErrors.test.js @@ -1,7 +1,7 @@ -const { IDVErrorCodes } = require('../../src/errors/idvErrors'); +const { IDVErrorCodes } = require("../../src/errors/idvErrors"); -describe('IDV Errors', () => { - it('Should have IDV Error Codes', () => { - expect(IDVErrorCodes).toHaveProperty('ERROR_IDV_UCA_MISSING_PROPERTY'); +describe("IDV Errors", () => { + it("Should have IDV Error Codes", () => { + expect(IDVErrorCodes).toHaveProperty("ERROR_IDV_UCA_MISSING_PROPERTY"); }); }); diff --git a/__test__/index.test.js b/__test__/index.test.js index 1893566f..b4240d13 100644 --- a/__test__/index.test.js +++ b/__test__/index.test.js @@ -1,41 +1,41 @@ -const CredentialCommons = require('../src/index'); -const httpMock = require('../src/services/__mocks__/httpService'); +const CredentialCommons = require("../src/index"); +const httpMock = require("../src/services/__mocks__/httpService"); const { Claim, VC } = CredentialCommons; -describe('Module Entry Point Tests', () => { - it('should access the entry point e see if the modules are declared', () => { +describe("Module Entry Point Tests", () => { + it("should access the entry point e see if the modules are declared", () => { const confMock = { - sipSecurityService: '', - attestationService: '', + sipSecurityService: "", + attestationService: "", clientConfig: { - id: '', + id: "", signingKeys: { - hexpub: '', - hexsec: '', + hexpub: "", + hexsec: "", }, }, - passphrase: '', - keychain: { prv: '' }, + passphrase: "", + keychain: { prv: "" }, }; CredentialCommons.init(confMock, httpMock); expect(Claim).toBeDefined(); expect(VC).toBeDefined(); }); - it('Should initialize with custom SecureRandom', () => { + it("Should initialize with custom SecureRandom", () => { const confMock = { - sipSecurityService: '', - attestationService: '', + sipSecurityService: "", + attestationService: "", clientConfig: { - id: '', + id: "", signingKeys: { - hexpub: '', - hexsec: '', + hexpub: "", + hexsec: "", }, }, - passphrase: '', - keychain: { prv: '' }, + passphrase: "", + keychain: { prv: "" }, }; const myCustomSecureRandom = function MyCustomSecureRandom() {}; diff --git a/__test__/isClaimRelated.test.js b/__test__/isClaimRelated.test.js index b9ecfe4b..f7695c8b 100644 --- a/__test__/isClaimRelated.test.js +++ b/__test__/isClaimRelated.test.js @@ -1,9 +1,9 @@ -const isClaimRelated = require('../src/isClaimRelated'); -const { schemaLoader, CVCSchemaLoader } = require('../src'); +const isClaimRelated = require("../src/isClaimRelated"); +const { schemaLoader, CVCSchemaLoader } = require("../src"); jest.setTimeout(30000); -describe('isClaimRelated Tests', () => { +describe("isClaimRelated Tests", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); @@ -12,30 +12,54 @@ describe('isClaimRelated Tests', () => { schemaLoader.reset(); }); - it('Should validate a claim path against UCA definitions ' - + 'and VC definitions and succeed', async () => { - const uca = 'claim-claim-cvc:Document.name-v1-1'; - const claim = 'document.name.givenNames'; - const credential = 'credential-cvc:GenericDocumentId-v1'; - const validation = await isClaimRelated(claim, uca, credential); - expect(validation).toBeTruthy(); - }); + it( + "Should validate a claim path against UCA definitions " + + "and VC definitions and succeed", + async () => { + const uca = "claim-claim-cvc:Document.name-v1-1"; + const claim = "document.name.givenNames"; + const credential = "credential-cvc:GenericDocumentId-v1"; + const validation = await isClaimRelated(claim, uca, credential); + expect(validation).toBeTruthy(); + }, + ); - it('Should validate a claim path against UCA definitions and VC definitions and ' - + 'succeed returning false for an non existent dependency', async () => { - const uca = 'claim-claim-cvc:Contact.phoneNumber-v1-1'; - const claim = 'contact.phoneNumber.number'; - const credential = 'credential-cvc:GenericDocumentId-v1'; - const validation = await isClaimRelated(claim, uca, credential); - expect(validation).toBeFalsy(); - }); + it( + "Should validate a claim path against UCA definitions and VC definitions and " + + "succeed returning false for an non existent dependency", + async () => { + const uca = "claim-claim-cvc:Contact.phoneNumber-v1-1"; + const claim = "contact.phoneNumber.number"; + const credential = "credential-cvc:GenericDocumentId-v1"; + const validation = await isClaimRelated(claim, uca, credential); + expect(validation).toBeFalsy(); + }, + ); - it('Should fail validation of a wrong defined uca global identifier', () => expect(isClaimRelated('document.name.givenNames', 'claim-civ:Identity:error-1', 'credential-cvc:GenericDocumentId-v1')).rejects.toThrow(/UCA identifier does not exist/)); + it("Should fail validation of a wrong defined uca global identifier", () => + expect( + isClaimRelated( + "document.name.givenNames", + "claim-civ:Identity:error-1", + "credential-cvc:GenericDocumentId-v1", + ), + ).rejects.toThrow(/UCA identifier does not exist/)); - it('Should fail validation of a wrong defined claim path identifier', () => expect(isClaimRelated('name.error', 'claim-claim-cvc:Document.name-v1-1', 'credential-cvc:GenericDocumentId-v1')).rejects.toThrow(/Claim property path does not exist on UCA definitions/)); + it("Should fail validation of a wrong defined claim path identifier", () => + expect( + isClaimRelated( + "name.error", + "claim-claim-cvc:Document.name-v1-1", + "credential-cvc:GenericDocumentId-v1", + ), + ).rejects.toThrow(/Claim property path does not exist on UCA definitions/)); - it( - 'Should fail validation of a wrong defined credential parent identifier', - () => expect(isClaimRelated('document.name.givenNames', 'claim-claim-cvc:Document.name-v1-1', 'civ:Credential:Generic')).rejects.toThrow(/Credential identifier does not exist/), - ); + it("Should fail validation of a wrong defined credential parent identifier", () => + expect( + isClaimRelated( + "document.name.givenNames", + "claim-claim-cvc:Document.name-v1-1", + "civ:Credential:Generic", + ), + ).rejects.toThrow(/Credential identifier does not exist/)); }); diff --git a/__test__/isValidGlobalIdentifier.test.js b/__test__/isValidGlobalIdentifier.test.js index f2dc90ef..91a2e5fd 100644 --- a/__test__/isValidGlobalIdentifier.test.js +++ b/__test__/isValidGlobalIdentifier.test.js @@ -1,7 +1,7 @@ -const isGlobalIdentifier = require('../src/isValidGlobalIdentifier'); -const { schemaLoader, CVCSchemaLoader } = require('../src'); +const isGlobalIdentifier = require("../src/isValidGlobalIdentifier"); +const { schemaLoader, CVCSchemaLoader } = require("../src"); -describe('isGlobalIdentifier Tests', () => { +describe("isGlobalIdentifier Tests", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); @@ -10,40 +10,43 @@ describe('isGlobalIdentifier Tests', () => { schemaLoader.reset(); }); - test('name-v1 is malformed', () => expect(isGlobalIdentifier('name-v1')) - .rejects.toThrow(/Malformed Global Identifier/)); - - test( - 'credentialItem-civ:Identity:firstName-1 has invalid prefix', - () => expect(isGlobalIdentifier('credentialItem-civ:Identity:firstName-1')) - .rejects.toThrow(/Invalid Global Identifier Prefix/), - ); - - test( - 'claim-civ:Identity:firstNome-1 is invalid', - () => expect(isGlobalIdentifier('claim-civ:Identity:firstNome-1')) - .rejects.toThrow(/claim-civ:Identity:firstNome-1 is not valid/), - ); - - test( - 'credential-civ:Credential:CivicBasico-1 is invalid', - () => expect(isGlobalIdentifier('credential-civ:Credential:CivicBasico-1')) - .rejects.toThrow(/credential-civ:Credential:CivicBasico-1 is not valid/), - ); - - test('claim-cvc:Name.givenNames-v1 is valid', async () => { - expect(await isGlobalIdentifier('claim-cvc:Name.givenNames-v1')).toBeTruthy(); + test("name-v1 is malformed", () => + expect(isGlobalIdentifier("name-v1")).rejects.toThrow( + /Malformed Global Identifier/, + )); + + test("credentialItem-civ:Identity:firstName-1 has invalid prefix", () => + expect( + isGlobalIdentifier("credentialItem-civ:Identity:firstName-1"), + ).rejects.toThrow(/Invalid Global Identifier Prefix/)); + + test("claim-civ:Identity:firstNome-1 is invalid", () => + expect( + isGlobalIdentifier("claim-civ:Identity:firstNome-1"), + ).rejects.toThrow(/claim-civ:Identity:firstNome-1 is not valid/)); + + test("credential-civ:Credential:CivicBasico-1 is invalid", () => + expect( + isGlobalIdentifier("credential-civ:Credential:CivicBasico-1"), + ).rejects.toThrow(/credential-civ:Credential:CivicBasico-1 is not valid/)); + + test("claim-cvc:Name.givenNames-v1 is valid", async () => { + expect( + await isGlobalIdentifier("claim-cvc:Name.givenNames-v1"), + ).toBeTruthy(); }); - test('credential-cvc:Identity-v1 is valid', async () => { - expect(await isGlobalIdentifier('credential-cvc:Identity-v1')).toBeTruthy(); + test("credential-cvc:Identity-v1 is valid", async () => { + expect(await isGlobalIdentifier("credential-cvc:Identity-v1")).toBeTruthy(); }); - test('credential-cvc:IDVaaS-v1 is valid', async () => { - expect(await isGlobalIdentifier('credential-cvc:IDVaaS-v1')).toBeTruthy(); + test("credential-cvc:IDVaaS-v1 is valid", async () => { + expect(await isGlobalIdentifier("credential-cvc:IDVaaS-v1")).toBeTruthy(); }); - test('credential-cvc:IdDocument-v1 is valid', async () => { - expect(await isGlobalIdentifier('credential-cvc:IdDocument-v1')).toBeTruthy(); + test("credential-cvc:IdDocument-v1 is valid", async () => { + expect( + await isGlobalIdentifier("credential-cvc:IdDocument-v1"), + ).toBeTruthy(); }); }); diff --git a/__test__/lib/did.test.js b/__test__/lib/did.test.js index 1e6da90a..570364d8 100644 --- a/__test__/lib/did.test.js +++ b/__test__/lib/did.test.js @@ -4,20 +4,20 @@ const { DID_SPARSE, DID_CONTROLLER, DID_CONTROLLED, -} = require('./util/did'); -const didUtil = require('../../src/lib/did'); +} = require("./util/did"); +const didUtil = require("../../src/lib/did"); -describe('DIDs', () => { +describe("DIDs", () => { beforeAll(() => mockDids(didUtil)); - it('resolves a did:sol document', async () => { + it("resolves a did:sol document", async () => { const document = await didUtil.resolve(DID_SPARSE); expect(document).toBeTruthy(); expect(document.id).toBe(DID_SPARSE); }); - it('finds a valid verification method on a DID document', async () => { + it("finds a valid verification method on a DID document", async () => { const vm = `${DID_SPARSE}#default`; const document = await didUtil.resolve(DID_SPARSE); const verificationMethod = didUtil.findVerificationMethod(document, vm); @@ -27,7 +27,7 @@ describe('DIDs', () => { expect(verificationMethod.controller).toBe(DID_SPARSE); }); - it('doesn\'t find a verification that is not valid on the document', async () => { + it("doesn't find a verification that is not valid on the document", async () => { const vm = `${DID_WITH_NO_DEFAULT}#default`; const document = await didUtil.resolve(DID_WITH_NO_DEFAULT); const verificationMethod = didUtil.findVerificationMethod(document, vm); @@ -35,26 +35,32 @@ describe('DIDs', () => { expect(verificationMethod).toBe(null); }); - it('verificationMethod can sign for a DID', async () => { + it("verificationMethod can sign for a DID", async () => { const canSign = await didUtil.canSign(DID_SPARSE, `${DID_SPARSE}#default`); expect(canSign).toBeTruthy(); }); - it('verificationMethod can not sign for a DID if the key does not exist', async () => { + it("verificationMethod can not sign for a DID if the key does not exist", async () => { const canSign = await didUtil.canSign(DID_SPARSE, `${DID_SPARSE}#key2`); expect(canSign).toBeFalsy(); }); - it('verificationMethod can not sign for a DID where the default key is removed', async () => { - const canSign = await didUtil.canSign(DID_WITH_NO_DEFAULT, `${DID_WITH_NO_DEFAULT}#default`); + it("verificationMethod can not sign for a DID where the default key is removed", async () => { + const canSign = await didUtil.canSign( + DID_WITH_NO_DEFAULT, + `${DID_WITH_NO_DEFAULT}#default`, + ); expect(canSign).toBeFalsy(); }); - it('verificationMethod can sign for a DID it is a controller of', async () => { - const canSign = await didUtil.canSign(DID_CONTROLLED, `${DID_CONTROLLER}#default`); + it("verificationMethod can sign for a DID it is a controller of", async () => { + const canSign = await didUtil.canSign( + DID_CONTROLLED, + `${DID_CONTROLLER}#default`, + ); expect(canSign).toBeTruthy(); }); diff --git a/__test__/lib/signerVerifier.test.js b/__test__/lib/signerVerifier.test.js index 42d1d2cb..5219ccec 100644 --- a/__test__/lib/signerVerifier.test.js +++ b/__test__/lib/signerVerifier.test.js @@ -1,21 +1,22 @@ -const nacl = require('tweetnacl'); -const signerVerifier = require('../../src/lib/signerVerifier'); +const nacl = require("tweetnacl"); +const signerVerifier = require("../../src/lib/signerVerifier"); const { mockDids, DID_SPARSE, privateKeyBase58, keyPair, -} = require('./util/did'); -const didUtil = require('../../src/lib/did'); +} = require("./util/did"); +const didUtil = require("../../src/lib/did"); -const DUMMY_MERKLE_ROOT = 'aa4149dda8fd2fac435898372f1de399140f6c50dbc3d40585c913701ce902c4'; +const DUMMY_MERKLE_ROOT = + "aa4149dda8fd2fac435898372f1de399140f6c50dbc3d40585c913701ce902c4"; -describe('signerVerifier', () => { +describe("signerVerifier", () => { beforeAll(() => { mockDids(didUtil); }); - it('creates a signer from a private key', async () => { + it("creates a signer from a private key", async () => { const privateKey = privateKeyBase58(DID_SPARSE); const verificationMethod = `${DID_SPARSE}#default`; @@ -28,7 +29,10 @@ describe('signerVerifier', () => { expect(signed).toBeTruthy(); - const verifier = await signerVerifier.verifier(DID_SPARSE, verificationMethod); + const verifier = await signerVerifier.verifier( + DID_SPARSE, + verificationMethod, + ); const verified = verifier.verify({ issuer: DID_SPARSE, proof: { @@ -40,7 +44,7 @@ describe('signerVerifier', () => { expect(verified).toBe(true); }); - it('creates a signer from a keypair', async () => { + it("creates a signer from a keypair", async () => { const keypair = keyPair(DID_SPARSE); const verificationMethod = `${DID_SPARSE}#default`; @@ -53,7 +57,10 @@ describe('signerVerifier', () => { expect(signed).toBeTruthy(); - const verifier = await signerVerifier.verifier(DID_SPARSE, verificationMethod); + const verifier = await signerVerifier.verifier( + DID_SPARSE, + verificationMethod, + ); const verified = verifier.verify({ issuer: DID_SPARSE, proof: { @@ -65,13 +72,13 @@ describe('signerVerifier', () => { expect(verified).toBe(true); }); - it('uses a provided signer', async () => { + it("uses a provided signer", async () => { const verificationMethod = `${DID_SPARSE}#default`; const keypair = keyPair(DID_SPARSE); const customSigner = { sign(proof) { - const encodedData = Buffer.from(proof.merkleRoot, 'hex'); + const encodedData = Buffer.from(proof.merkleRoot, "hex"); const signature = nacl.sign.detached(encodedData, keypair.secretKey); @@ -91,7 +98,10 @@ describe('signerVerifier', () => { expect(signed).toBeTruthy(); - const verifier = await signerVerifier.verifier(DID_SPARSE, verificationMethod); + const verifier = await signerVerifier.verifier( + DID_SPARSE, + verificationMethod, + ); const verified = verifier.verify({ issuer: DID_SPARSE, proof: { diff --git a/__test__/lib/util/did.js b/__test__/lib/util/did.js index c857dc52..92540e70 100644 --- a/__test__/lib/util/did.js +++ b/__test__/lib/util/did.js @@ -1,32 +1,36 @@ -const nacl = require('tweetnacl'); -const bs58 = require('bs58'); +const nacl = require("tweetnacl"); +const bs58 = require("bs58"); // A default sparse DID document -const DID_SPARSE = 'did:sol:localnet:6ffRJDKb3Ve83A9SsJmjyYk5Ef3LXcRkZAT6hXhBBrHf'; +const DID_SPARSE = + "did:sol:localnet:6ffRJDKb3Ve83A9SsJmjyYk5Ef3LXcRkZAT6hXhBBrHf"; // A DID document where the default key has been removed -const DID_WITH_NO_DEFAULT = 'did:sol:localnet:DwZYFeU2fy8JpmxwL8gH3CVqKcbeb2MALyEf1tVyyDAT'; +const DID_WITH_NO_DEFAULT = + "did:sol:localnet:DwZYFeU2fy8JpmxwL8gH3CVqKcbeb2MALyEf1tVyyDAT"; // A controller DID (to be used with DID_CONTROLLED) -const DID_CONTROLLER = 'did:sol:localnet:DY5HzWG9GJGTw3cfkFndMapGGMXpPVBhRe9jEJjX25u9'; +const DID_CONTROLLER = + "did:sol:localnet:DY5HzWG9GJGTw3cfkFndMapGGMXpPVBhRe9jEJjX25u9"; // A controlled DID (to be used with DID_CONTROLLER) -const DID_CONTROLLED = 'did:sol:localnet:2McEWrgSX2oU3aEWkJrpGN49kDp3ciKrH5MTi8vvuZpD'; +const DID_CONTROLLED = + "did:sol:localnet:2McEWrgSX2oU3aEWkJrpGN49kDp3ciKrH5MTi8vvuZpD"; // Holds reference and PK for DID document fixtures const DOCUMENTS = {}; DOCUMENTS[DID_WITH_NO_DEFAULT] = [ - 'sol.did.no_default_key.json', - '67R6neGjm4L9kdJ4LbqLmgT3UecoHKwSBXh4zQUVRy4HqzxUFBR1uGCHxGoMbr98ACuT9XtKZejfUMvqQdDepUyq', + "sol.did.no_default_key.json", + "67R6neGjm4L9kdJ4LbqLmgT3UecoHKwSBXh4zQUVRy4HqzxUFBR1uGCHxGoMbr98ACuT9XtKZejfUMvqQdDepUyq", ]; DOCUMENTS[DID_SPARSE] = [ - 'sol.did.sparse.json', - '2yvWghJhJvMY3LLqpwdb3dCoKJiEm2s7TLLHgVKU81bgTnPdqKgSMzvR2qePG9cmGHJkpnwQTyPXTwFzpJ9JSMfw', + "sol.did.sparse.json", + "2yvWghJhJvMY3LLqpwdb3dCoKJiEm2s7TLLHgVKU81bgTnPdqKgSMzvR2qePG9cmGHJkpnwQTyPXTwFzpJ9JSMfw", ]; DOCUMENTS[DID_CONTROLLER] = [ - 'sol.did.controller.json', - 'GQqLfmWSkTazpXjDgRGAvVVPqpb4LWjFFsVVBBZ5cMtJQEu47YrG7uyCMsVRequfJ2xrSohzJhKbeC56ivXfn79', + "sol.did.controller.json", + "GQqLfmWSkTazpXjDgRGAvVVPqpb4LWjFFsVVBBZ5cMtJQEu47YrG7uyCMsVRequfJ2xrSohzJhKbeC56ivXfn79", ]; DOCUMENTS[DID_CONTROLLED] = [ - 'sol.did.controlled.json', - '4shZPR61QMm4mCyS9EDMmKtPN7K4pZfysKXZ5YX7QDoHFRrHXmU7pECq7VxeQgGm8ih6jrVjynHy6EJx7b5MfZZK', + "sol.did.controlled.json", + "4shZPR61QMm4mCyS9EDMmKtPN7K4pZfysKXZ5YX7QDoHFRrHXmU7pECq7VxeQgGm8ih6jrVjynHy6EJx7b5MfZZK", ]; const stubResolver = (did) => { diff --git a/__test__/schemaLoader.test.js b/__test__/schemaLoader.test.js index bc4d45fa..598f903b 100644 --- a/__test__/schemaLoader.test.js +++ b/__test__/schemaLoader.test.js @@ -1,245 +1,239 @@ -const { - Claim, - VC, - schemaLoader, - CVCSchemaLoader, -} = require('../src/index'); -const claimDefinitions = require('../src/claim/definitions'); -const credentialDefinitions = require('../src/creds/definitions'); +const { Claim, VC, schemaLoader, CVCSchemaLoader } = require("../src/index"); +const claimDefinitions = require("../src/claim/definitions"); +const credentialDefinitions = require("../src/creds/definitions"); -const credentialSubject = 'did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V'; +const credentialSubject = + "did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V"; const { summaryMap } = schemaLoader; jest.setTimeout(30000); -describe('schema loading tests', () => { +describe("schema loading tests", () => { beforeAll(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); - it('test claim definition creation', async () => { - expect(claimDefinitions) - .toHaveLength(0); + it("test claim definition creation", async () => { + expect(claimDefinitions).toHaveLength(0); - await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Given', - otherNames: 'Other', - familyNames: 'Family', + await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Given", + otherNames: "Other", + familyNames: "Family", }); - expect(claimDefinitions) - .toHaveLength(5); + expect(claimDefinitions).toHaveLength(5); - expect(claimDefinitions) - .toEqual(expect.arrayContaining([ + expect(claimDefinitions).toEqual( + expect.arrayContaining([ { - identifier: 'claim-cvc:Name.givenNames-v1', - version: '1', - type: 'String', + identifier: "claim-cvc:Name.givenNames-v1", + version: "1", + type: "String", credentialItem: true, }, { - identifier: 'claim-cvc:Name.familyNames-v1', - version: '1', - type: 'String', + identifier: "claim-cvc:Name.familyNames-v1", + version: "1", + type: "String", credentialItem: true, }, { - identifier: 'claim-cvc:Name.otherNames-v1', - version: '1', - type: 'String', + identifier: "claim-cvc:Name.otherNames-v1", + version: "1", + type: "String", credentialItem: true, }, { - identifier: 'claim-cvc:Type.Name-v1', - version: '1', + identifier: "claim-cvc:Type.Name-v1", + version: "1", type: { properties: [ { - name: 'givenNames', - type: 'claim-cvc:Name.givenNames-v1', + name: "givenNames", + type: "claim-cvc:Name.givenNames-v1", }, { - name: 'familyNames', - type: 'claim-cvc:Name.familyNames-v1', + name: "familyNames", + type: "claim-cvc:Name.familyNames-v1", }, { - name: 'otherNames', - type: 'claim-cvc:Name.otherNames-v1', + name: "otherNames", + type: "claim-cvc:Name.otherNames-v1", }, ], - required: [ - 'givenNames', - ], + required: ["givenNames"], }, credentialItem: true, }, { - identifier: 'claim-cvc:Identity.name-v1', - version: '1', - type: 'claim-cvc:Type.Name-v1', + identifier: "claim-cvc:Identity.name-v1", + version: "1", + type: "claim-cvc:Type.Name-v1", credentialItem: true, }, - ])); + ]), + ); }); - it('test vc', async () => { - await Claim.create('cvc:Contact:phoneNumber', { - country: 'BR', - countryCode: '55', - number: '31988889999', - lineType: 'mobile', + it("test vc", async () => { + await Claim.create("cvc:Contact:phoneNumber", { + country: "BR", + countryCode: "55", + number: "31988889999", + lineType: "mobile", }); }); - it('test credential definition creation', async () => { - expect(credentialDefinitions) - .toHaveLength(0); + it("test credential definition creation", async () => { + expect(credentialDefinitions).toHaveLength(0); - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Given', - otherNames: 'Other', - familyNames: 'Family', + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Given", + otherNames: "Other", + familyNames: "Family", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 1, month: 1, year: 1970, }); - await VC.create('credential-cvc:Identity-v3', 'issuer', null, credentialSubject, [name, dob]); + await VC.create( + "credential-cvc:Identity-v3", + "issuer", + null, + credentialSubject, + [name, dob], + ); - expect(credentialDefinitions) - .toHaveLength(1); + expect(credentialDefinitions).toHaveLength(1); - expect(credentialDefinitions) - .toEqual(expect.arrayContaining([ + expect(credentialDefinitions).toEqual( + expect.arrayContaining([ expect.objectContaining({ - identifier: 'credential-cvc:Identity-v3', - version: '3', + identifier: "credential-cvc:Identity-v3", + version: "3", depends: [ - 'claim-cvc:Identity.name-v1', - 'claim-cvc:Identity.dateOfBirth-v1', + "claim-cvc:Identity.name-v1", + "claim-cvc:Identity.dateOfBirth-v1", ], }), - ])); + ]), + ); }); - it('test claim summary creation', async () => { - await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Given', - otherNames: 'Other', - familyNames: 'Family', + it("test claim summary creation", async () => { + await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Given", + otherNames: "Other", + familyNames: "Family", }); - expect(summaryMap) - .toEqual(expect.objectContaining({ - 'name.givennames.claim': expect.objectContaining({ - identifier: 'claim-cvc:Name.givenNames-v1', - textLabel: 'name.givennames.claim', - labelFor: [ - 'claim-cvc:Name.givenNames-v1', - ], - claimPath: 'name.givenNames', + expect(summaryMap).toEqual( + expect.objectContaining({ + "name.givennames.claim": expect.objectContaining({ + identifier: "claim-cvc:Name.givenNames-v1", + textLabel: "name.givennames.claim", + labelFor: ["claim-cvc:Name.givenNames-v1"], + claimPath: "name.givenNames", }), - 'name.familynames.claim': expect.objectContaining({ - identifier: 'claim-cvc:Name.familyNames-v1', - textLabel: 'name.familynames.claim', - labelFor: [ - 'claim-cvc:Name.familyNames-v1', - ], - claimPath: 'name.familyNames', + "name.familynames.claim": expect.objectContaining({ + identifier: "claim-cvc:Name.familyNames-v1", + textLabel: "name.familynames.claim", + labelFor: ["claim-cvc:Name.familyNames-v1"], + claimPath: "name.familyNames", }), - 'name.othernames.claim': expect.objectContaining({ - identifier: 'claim-cvc:Name.otherNames-v1', - textLabel: 'name.othernames.claim', - labelFor: [ - 'claim-cvc:Name.otherNames-v1', - ], - claimPath: 'name.otherNames', + "name.othernames.claim": expect.objectContaining({ + identifier: "claim-cvc:Name.otherNames-v1", + textLabel: "name.othernames.claim", + labelFor: ["claim-cvc:Name.otherNames-v1"], + claimPath: "name.otherNames", }), - 'type.name.claim': expect.objectContaining({ - identifier: 'claim-cvc:Type.Name-v1', - textLabel: 'type.name.claim', - labelFor: [ - 'claim-cvc:Type.Name-v1', - ], - claimPath: 'Name', + "type.name.claim": expect.objectContaining({ + identifier: "claim-cvc:Type.Name-v1", + textLabel: "type.name.claim", + labelFor: ["claim-cvc:Type.Name-v1"], + claimPath: "Name", }), - 'identity.name.claim': expect.objectContaining({ - identifier: 'claim-cvc:Identity.name-v1', - textLabel: 'identity.name.claim', - labelFor: [ - 'claim-cvc:Identity.name-v1', - ], - claimPath: 'identity.name', + "identity.name.claim": expect.objectContaining({ + identifier: "claim-cvc:Identity.name-v1", + textLabel: "identity.name.claim", + labelFor: ["claim-cvc:Identity.name-v1"], + claimPath: "identity.name", }), - })); + }), + ); }); - it('test credential summary creation', async () => { - const name = await Claim.create('claim-cvc:Identity.name-v1', { - givenNames: 'Given', - otherNames: 'Other', - familyNames: 'Family', + it("test credential summary creation", async () => { + const name = await Claim.create("claim-cvc:Identity.name-v1", { + givenNames: "Given", + otherNames: "Other", + familyNames: "Family", }); - const dob = await Claim.create('claim-cvc:Identity.dateOfBirth-v1', { + const dob = await Claim.create("claim-cvc:Identity.dateOfBirth-v1", { day: 1, month: 1, year: 1970, }); - await VC.create('credential-cvc:Identity-v3', 'issuer', null, credentialSubject, [name, dob]); - - expect(summaryMap) - .toEqual(expect.objectContaining({ - 'identity.credential': { - identifier: 'credential-cvc:Identity-v3', - textLabel: 'identity.credential', - credentials: [ - 'credential-cvc:Identity-v3', - ], - labelFor: [ - 'credential-cvc:Identity-v3', - ], + await VC.create( + "credential-cvc:Identity-v3", + "issuer", + null, + credentialSubject, + [name, dob], + ); + + expect(summaryMap).toEqual( + expect.objectContaining({ + "identity.credential": { + identifier: "credential-cvc:Identity-v3", + textLabel: "identity.credential", + credentials: ["credential-cvc:Identity-v3"], + labelFor: ["credential-cvc:Identity-v3"], changeable: true, claimPath: null, }, - })); + }), + ); }); - it('should pass validation', async () => { - await schemaLoader.validateSchema('claim-cvc:Identity.name-v1', { - givenNames: 'Given', - otherNames: 'Other', - familyNames: 'Family', + it("should pass validation", async () => { + await schemaLoader.validateSchema("claim-cvc:Identity.name-v1", { + givenNames: "Given", + otherNames: "Other", + familyNames: "Family", }); }); - it('should fail validation', () => expect(schemaLoader.validateSchema('claim-cvc:Identity.name-v1', { - otherNames: 'Other', - familyNames: 'Family', - })) - .rejects - .toThrow(/Missing required fields to claim-cvc:Identity.name-v1/)); + it("should fail validation", () => + expect( + schemaLoader.validateSchema("claim-cvc:Identity.name-v1", { + otherNames: "Other", + familyNames: "Family", + }), + ).rejects.toThrow(/Missing required fields to claim-cvc:Identity.name-v1/)); - it('correctly loads an array type', async () => { + it("correctly loads an array type", async () => { const definition = { credentialItem: false, - identifier: 'claim-cvc:Codes.records-v1', + identifier: "claim-cvc:Codes.records-v1", items: { - type: 'claim-cvc:Medical.code-v1', + type: "claim-cvc:Medical.code-v1", }, - type: 'Array', - version: '1', + type: "Array", + version: "1", }; - await schemaLoader.loadSchemaFromTitle('claim-cvc:Codes.records-v1'); + await schemaLoader.loadSchemaFromTitle("claim-cvc:Codes.records-v1"); - expect(schemaLoader.definitions) - .toEqual(expect.arrayContaining([expect.objectContaining(definition)])); + expect(schemaLoader.definitions).toEqual( + expect.arrayContaining([expect.objectContaining(definition)]), + ); }); }); diff --git a/__test__/services/AggregationService.test.js b/__test__/services/AggregationService.test.js index 3d8099c6..63452a92 100644 --- a/__test__/services/AggregationService.test.js +++ b/__test__/services/AggregationService.test.js @@ -1,78 +1,79 @@ -const aggregate = require('../../src/AggregationHandler'); +const aggregate = require("../../src/AggregationHandler"); -describe('Aggregation Service', () => { - it('should throw Invalid Operator', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; +describe("Aggregation Service", () => { + it("should throw Invalid Operator", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; expect(() => { aggregate(collection, [{ $toString: null }]); - }).toThrow('Invalid operator: $toString'); + }).toThrow("Invalid operator: $toString"); }); - it('should return a collection with same equality', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; + it("should return a collection with same equality", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; const result = aggregate(collection, [{ none: null }]); expect(result).toStrictEqual(collection); }); - it('should return the first 2 elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; + it("should return the first 2 elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; const result = aggregate(collection, [{ $limit: 2 }]); - expect(result).toStrictEqual([{ k: 'a' }, { k: 'b' }]); + expect(result).toStrictEqual([{ k: "a" }, { k: "b" }]); }); - it('should return the first elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; - const result = aggregate(collection, [{ $first: 'true' }]); - expect(result).toStrictEqual([{ k: 'a' }]); + it("should return the first elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; + const result = aggregate(collection, [{ $first: "true" }]); + expect(result).toStrictEqual([{ k: "a" }]); }); - it('should return the first elements using boolean', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; + it("should return the first elements using boolean", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; const result = aggregate(collection, [{ $first: true }]); - expect(result).toStrictEqual([{ k: 'a' }]); + expect(result).toStrictEqual([{ k: "a" }]); }); - it('should return the last elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; - const result = aggregate(collection, [{ $last: 'true' }]); - expect(result).toStrictEqual([{ k: 'c' }]); + it("should return the last elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; + const result = aggregate(collection, [{ $last: "true" }]); + expect(result).toStrictEqual([{ k: "c" }]); }); - it('should return the last elements using boolean', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; + it("should return the last elements using boolean", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; const result = aggregate(collection, [{ $last: true }]); - expect(result).toStrictEqual([{ k: 'c' }]); + expect(result).toStrictEqual([{ k: "c" }]); }); - it('should return the max elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; - const result = aggregate(collection, [{ $max: 'k' }]); - expect(result).toStrictEqual([{ k: 'c' }]); + it("should return the max elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; + const result = aggregate(collection, [{ $max: "k" }]); + expect(result).toStrictEqual([{ k: "c" }]); }); - it('should return the min elements only', () => { - const collection = [{ k: 'a' }, { k: 'b' }, { k: 'c' }]; - const result = aggregate(collection, [{ $min: 'k' }]); - expect(result).toStrictEqual([{ k: 'a' }]); + it("should return the min elements only", () => { + const collection = [{ k: "a" }, { k: "b" }, { k: "c" }]; + const result = aggregate(collection, [{ $min: "k" }]); + expect(result).toStrictEqual([{ k: "a" }]); }); - it('should return in ascending order ', () => { - const collection = [{ k: 'b' }, { k: 'a' }, { k: 'c' }]; - const result = aggregate(collection, [{ $sort: { k: 'ASC' } }]); - expect(result).toStrictEqual([{ k: 'a' }, { k: 'b' }, { k: 'c' }]); + it("should return in ascending order ", () => { + const collection = [{ k: "b" }, { k: "a" }, { k: "c" }]; + const result = aggregate(collection, [{ $sort: { k: "ASC" } }]); + expect(result).toStrictEqual([{ k: "a" }, { k: "b" }, { k: "c" }]); }); - it('should return in descending order ', () => { - const collection = [{ k: 'b' }, { k: 'a' }, { k: 'c' }]; - const result = aggregate(collection, [{ $sort: { k: 'DES' } }]); - expect(result).toStrictEqual([{ k: 'c' }, { k: 'b' }, { k: 'a' }]); + it("should return in descending order ", () => { + const collection = [{ k: "b" }, { k: "a" }, { k: "c" }]; + const result = aggregate(collection, [{ $sort: { k: "DES" } }]); + expect(result).toStrictEqual([{ k: "c" }, { k: "b" }, { k: "a" }]); }); - it('should apply operations in order', () => { - const collection = [{ k: 'b' }, { k: 'a' }, { k: 'c' }]; + it("should apply operations in order", () => { + const collection = [{ k: "b" }, { k: "a" }, { k: "c" }]; const result = aggregate(collection, [ - { $sort: { k: 'DES' } }, - { $limit: 2 }]); - expect(result).toStrictEqual([{ k: 'c' }, { k: 'b' }]); + { $sort: { k: "DES" } }, + { $limit: 2 }, + ]); + expect(result).toStrictEqual([{ k: "c" }, { k: "b" }]); }); }); diff --git a/__test__/services/MiniCryptoManagerImpl.test.js b/__test__/services/MiniCryptoManagerImpl.test.js index 3924fd47..1be82d4a 100644 --- a/__test__/services/MiniCryptoManagerImpl.test.js +++ b/__test__/services/MiniCryptoManagerImpl.test.js @@ -1,34 +1,42 @@ -const sjcl = require('sjcl'); -const MiniCryptoManagerImpl = require('../../src/services/MiniCryptoManagerImpl'); +const sjcl = require("sjcl"); +const MiniCryptoManagerImpl = require("../../src/services/MiniCryptoManagerImpl"); const XPVT = 'xprvA1yULd2DFYnQRVbLiAKrFdftVLsANiC3rqLvp8iiCbnchcWqd6kJPoaV3sy7R6CjHM8RbpoNdWVgiPZLVa1EmneRLtwiitNpWgwyVmjvay7'; // eslint-disable-line const XPUB = 'xpub6Expk8Z75vLhdyfopBrrcmcd3NhenAuuE4GXcX8KkwKbaQqzAe4Ywbtxu9F95hRHj79PvdtYEJcoR6gesbZ79fS4bLi1PQtm81rjxAHeLL9'; // eslint-disable-line -describe('Unit tests for MiniCryptoManager', () => { +describe("Unit tests for MiniCryptoManager", () => { let cryptoManagerImpl; beforeAll(() => { cryptoManagerImpl = new MiniCryptoManagerImpl(); }); - test('Should sign with XPVT key and verify with XPUB pair', async () => { + test("Should sign with XPVT key and verify with XPUB pair", async () => { const nonce = new Date().getTime(); const stringWithNonce = `SomeStringWithNonce${nonce}`; - const hexHashNonce = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(stringWithNonce)); + const hexHashNonce = sjcl.codec.hex.fromBits( + sjcl.hash.sha256.hash(stringWithNonce), + ); - const keyNameSign = 'KeyNameToSign'; + const keyNameSign = "KeyNameToSign"; cryptoManagerImpl.installKey(keyNameSign, XPVT); const hexSignature = cryptoManagerImpl.sign(keyNameSign, hexHashNonce); expect(hexSignature).toBeDefined(); const stringWithNonceToVerify = `SomeStringWithNonce${nonce}`; - const hexHashNonceToVerify = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(stringWithNonceToVerify)); + const hexHashNonceToVerify = sjcl.codec.hex.fromBits( + sjcl.hash.sha256.hash(stringWithNonceToVerify), + ); - const keyNameVerify = 'KeyNameToVerify'; + const keyNameVerify = "KeyNameToVerify"; cryptoManagerImpl.installKey(keyNameVerify, XPUB); - const verify = cryptoManagerImpl.verify(keyNameVerify, hexHashNonceToVerify, hexSignature); + const verify = cryptoManagerImpl.verify( + keyNameVerify, + hexHashNonceToVerify, + hexSignature, + ); expect(verify).toEqual(true); }); }); diff --git a/__test__/services/config.test.js b/__test__/services/config.test.js index 9f3df6af..5d0106c5 100644 --- a/__test__/services/config.test.js +++ b/__test__/services/config.test.js @@ -1,20 +1,20 @@ -const fs = require('fs'); +const fs = require("fs"); -describe('Config tests', () => { - it('Should validate that it\'s not a node environment', () => { +describe("Config tests", () => { + it("Should validate that it's not a node environment", () => { const processEnvNodeBefore = process.env.NODE_ENV; - process.env.APP_ENV = 'browser'; + process.env.APP_ENV = "browser"; // there is no other way to bypass a require process.env // eslint-disable-next-line no-trailing-spaces,global-require - const config = require('../../src/services/config'); + const config = require("../../src/services/config"); expect(config).toBeDefined(); process.env.NODE_ENV = processEnvNodeBefore; }); - it('Should force an non existent config file', () => { + it("Should force an non existent config file", () => { fs.existsSync = jest.fn(() => null); // eslint-disable-next-line no-trailing-spaces,global-require - const config = require('../../src/services/config'); + const config = require("../../src/services/config"); expect(config).toBeDefined(); }); }); diff --git a/__test__/services/configBranch.test.js b/__test__/services/configBranch.test.js index d5aeb283..e3fe6a6d 100644 --- a/__test__/services/configBranch.test.js +++ b/__test__/services/configBranch.test.js @@ -4,25 +4,25 @@ // the original platform is stored to temporarily stub win32 platform to test failing in the tests temporarily const originalPlatform = process.platform; -describe('Test process platform', () => { +describe("Test process platform", () => { beforeEach(() => { - Object.defineProperty(process, 'platform', { - value: 'win32', + Object.defineProperty(process, "platform", { + value: "win32", }); }); - it('Should validate that it is in windows', () => { + it("Should validate that it is in windows", () => { // it's not linting because we need to test branching of this config file try { // eslint-disable-next-line no-trailing-spaces,global-require - require('../../src/services/config'); + require("../../src/services/config"); } catch (err) { - expect(err.message).toBe('Unsupported platform: win32'); + expect(err.message).toBe("Unsupported platform: win32"); } }); afterEach(() => { - Object.defineProperty(process, 'platform', { + Object.defineProperty(process, "platform", { value: originalPlatform, }); }); diff --git a/__test__/services/services.test.js b/__test__/services/services.test.js index 4aecb74c..a3d510e1 100644 --- a/__test__/services/services.test.js +++ b/__test__/services/services.test.js @@ -1,31 +1,31 @@ -const { services, initServices } = require('../../src/services/index'); -const httpMock = require('../../src/services/__mocks__/httpService'); +const { services, initServices } = require("../../src/services/index"); +const httpMock = require("../../src/services/__mocks__/httpService"); -describe('Services Container Tests', () => { - test('Has HTTP Service', () => { +describe("Services Container Tests", () => { + test("Has HTTP Service", () => { const http = services.container.Http; expect(http).toBeDefined(); }); - test('Has Anchor Service', () => { + test("Has Anchor Service", () => { const anchorService = services.container.AnchorService; expect(anchorService).toBeDefined(); }); - test('Has Config Service', () => { + test("Has Config Service", () => { const config = services.container.Config; expect(config).toBeDefined(); }); - test('Override HTTP Service', () => { + test("Override HTTP Service", () => { expect(httpMock).toBeDefined(); initServices(null, httpMock); const http = services.container.Http; expect(http).toBeDefined(); - expect(http.name).toBe('mockHttp'); + expect(http.name).toBe("mockHttp"); }); - test('Override Config Service', () => { - initServices({ test: '' }, null); + test("Override Config Service", () => { + initServices({ test: "" }, null); const http = services.container.Http; expect(http).toBeDefined(); // TODO cannot branch out the IFs to cover all code this is strange - expect(http.name).toBe('mockHttp'); + expect(http.name).toBe("mockHttp"); }); }); diff --git a/babel.config.js b/babel.config.js index 1b8a6407..889a857a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -2,30 +2,33 @@ module.exports = { env: { cjs: { presets: [ - ['@babel/preset-env', { - targets: { - node: '6.10', + [ + "@babel/preset-env", + { + targets: { + node: "6.10", + }, + modules: "commonjs", }, - modules: 'commonjs', - }], + ], ], }, browser: { presets: [ [ - '@babel/preset-env', + "@babel/preset-env", { targets: { - browsers: ['last 2 versions'], + browsers: ["last 2 versions"], }, shippedProposals: true, }, ], ], - plugins: ['@babel/plugin-transform-runtime'], + plugins: ["@babel/plugin-transform-runtime"], }, test: { - plugins: ['@babel/plugin-transform-modules-commonjs'], + plugins: ["@babel/plugin-transform-modules-commonjs"], }, }, }; diff --git a/package-lock.json b/package-lock.json index 9d6fe1b6..2ca79af8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,9 +47,11 @@ "eslint": "^8.49.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-no-only-tests": "^3.1.0", + "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.33.2", "figlet": "^1.6.0", "husky": "^8.0.3", @@ -57,6 +59,7 @@ "jest": "^29.7.0", "jest-html-reporter": "^3.10.2", "npm": "^10.1.0", + "prettier": "^3.0.3", "request-debug": "^0.2.0", "rimraf": "^5.0.1", "shelljs": "^0.8.5" @@ -3026,6 +3029,26 @@ "node": ">=14" } }, + "node_modules/@pkgr/utils": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", + "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "dev": true, + "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" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", @@ -4126,6 +4149,15 @@ "resolved": "https://registry.npmjs.org/bech32/-/bech32-0.0.3.tgz", "integrity": "sha512-O+K1w8P/aAOLcYwwQ4sbiPYZ51ZIW95lnS4/6nE8Aib/z+OOddQIIPdu2qi94qGDp4HhYy/wJotttXKkak1lXg==" }, + "node_modules/big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, "node_modules/bigi": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz", @@ -4220,6 +4252,18 @@ "resolved": "https://registry.npmjs.org/bottlejs/-/bottlejs-2.0.1.tgz", "integrity": "sha512-50T0bzqeAqZ+//kgjdDxNu7UP8Je04isNPyHPwwOOPoeZmtVESkuF9nwkWEqSEd9Sw1yJ1oaoHBAMxe/wG4Zzg==" }, + "node_modules/bplist-parser": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", + "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", + "dev": true, + "dependencies": { + "big-integer": "^1.6.44" + }, + "engines": { + "node": ">= 5.10.0" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -4320,6 +4364,21 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, + "node_modules/bundle-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", + "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "dev": true, + "dependencies": { + "run-applescript": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -4864,6 +4923,150 @@ "node": ">=0.10.0" } }, + "node_modules/default-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", + "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", + "dev": true, + "dependencies": { + "bundle-name": "^3.0.0", + "default-browser-id": "^3.0.0", + "execa": "^7.1.1", + "titleize": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", + "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", + "dev": true, + "dependencies": { + "bplist-parser": "^0.2.0", + "untildify": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/execa": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "dev": true, + "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" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/default-browser/node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/default-browser/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/npm-run-path": { + "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==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/defaults": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", @@ -4890,6 +5093,18 @@ "node": ">= 0.4" } }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -5289,6 +5504,18 @@ "semver": "bin/semver.js" } }, + "node_modules/eslint-config-prettier": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", + "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, "node_modules/eslint-import-resolver-node": { "version": "0.3.9", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", @@ -5450,6 +5677,35 @@ "node": ">=5.0.0" } }, + "node_modules/eslint-plugin-prettier": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz", + "integrity": "sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.5" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/prettier" + }, + "peerDependencies": { + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "prettier": ">=3.0.0" + }, + "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, + "eslint-config-prettier": { + "optional": true + } + } + }, "node_modules/eslint-plugin-react": { "version": "7.33.2", "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", @@ -5936,6 +6192,28 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -6324,7 +6602,6 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "optional": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -6924,6 +7201,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -6990,6 +7282,24 @@ "node": ">=0.10.0" } }, + "node_modules/is-inside-container": { + "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==", + "dev": true, + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-interactive": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", @@ -7197,6 +7507,33 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-wsl/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -9482,6 +9819,15 @@ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/merkle-lib": { "version": "2.0.10", "resolved": "https://registry.npmjs.org/merkle-lib/-/merkle-lib-2.0.10.tgz", @@ -13136,6 +13482,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/open": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", + "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", + "dev": true, + "dependencies": { + "default-browser": "^4.0.0", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -13450,6 +13814,33 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", + "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/pretty-format": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", @@ -14019,6 +14410,21 @@ "inherits": "^2.0.1" } }, + "node_modules/run-applescript": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", + "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/run-async": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz", @@ -14564,6 +14970,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/synckit": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", + "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", + "dev": true, + "dependencies": { + "@pkgr/utils": "^2.3.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -14595,6 +15017,18 @@ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, + "node_modules/titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", @@ -14885,6 +15319,15 @@ "resolved": "https://registry.npmjs.org/unix-timestamp/-/unix-timestamp-1.0.3.tgz", "integrity": "sha512-dZYciF170upieWsbs83fQGNdLwhsARiPs3gV30fhtdPl/TLgMRuLA/5z4C9WBoPSnGHvUOrboJWCCtb84bxDPg==" }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", diff --git a/package.json b/package.json index c2dd3089..913364f6 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,11 @@ "eslint": "^8.49.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-no-only-tests": "^3.1.0", + "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.33.2", "figlet": "^1.6.0", "husky": "^8.0.3", @@ -59,6 +61,7 @@ "jest": "^29.7.0", "jest-html-reporter": "^3.10.2", "npm": "^10.1.0", + "prettier": "^3.0.3", "request-debug": "^0.2.0", "rimraf": "^5.0.1", "shelljs": "^0.8.5" diff --git a/src/AggregationHandler.js b/src/AggregationHandler.js index c835d012..f1654211 100644 --- a/src/AggregationHandler.js +++ b/src/AggregationHandler.js @@ -1,23 +1,33 @@ -const _ = require('lodash'); +const _ = require("lodash"); const validateEmptyParametersOperators = (parameters) => { - if (!_.isEmpty(parameters)) { throw new Error('parameters should be empty'); } + if (!_.isEmpty(parameters)) { + throw new Error("parameters should be empty"); + } return true; }; const validateNotEmptyParametersOperators = (parameters) => { - if (!parameters && _.isEmpty(parameters)) { throw new Error('parameters should not be empty'); } + if (!parameters && _.isEmpty(parameters)) { + throw new Error("parameters should not be empty"); + } return true; }; const validatePathParametersOperators = (parameters) => { - if (!_.isString(parameters)) { throw new Error('parameters should be string'); } + if (!_.isString(parameters)) { + throw new Error("parameters should be string"); + } return true; }; const validateNumberParametersOperators = (parameters) => { - if (!_.isNumber(parameters)) { throw new Error('parameters should be number'); } + if (!_.isNumber(parameters)) { + throw new Error("parameters should be number"); + } return true; }; const validateObjectParametersOperators = (parameters) => { - if (!_.isObject(parameters)) { throw new Error('parameters should be object'); } + if (!_.isObject(parameters)) { + throw new Error("parameters should be object"); + } return true; }; @@ -25,24 +35,32 @@ const sort = (colllection, params) => { const path = _.keys(params)[0]; const order = params[path]; const ordered = _.sortBy(colllection, path); - return order === 'ASC' ? ordered : _.reverse(ordered); + return order === "ASC" ? ordered : _.reverse(ordered); }; const AGGREGATION_OPERATORS_MAP = { - none: (collection, params) => (validateEmptyParametersOperators(params) - ? [...collection] : null), - $limit: (collection, params) => (validateNumberParametersOperators(params) - ? [...(_.slice(collection, 0, params))] : null), - $min: (collection, params) => (validatePathParametersOperators(params) - ? [(_.minBy(collection, params))] : null), - $max: (collection, params) => (validatePathParametersOperators(params) - ? [(_.maxBy(collection, params))] : null), - $first: (collection, params) => (validateNotEmptyParametersOperators(params) - ? [_.first(collection)] : null), - $last: (collection, params) => (validateNotEmptyParametersOperators(params) - ? [_.last(collection)] : null), - $sort: (collection, params) => (validateObjectParametersOperators(params) - ? [...(sort(collection, params))] : null), + none: (collection, params) => + validateEmptyParametersOperators(params) ? [...collection] : null, + $limit: (collection, params) => + validateNumberParametersOperators(params) + ? [..._.slice(collection, 0, params)] + : null, + $min: (collection, params) => + validatePathParametersOperators(params) + ? [_.minBy(collection, params)] + : null, + $max: (collection, params) => + validatePathParametersOperators(params) + ? [_.maxBy(collection, params)] + : null, + $first: (collection, params) => + validateNotEmptyParametersOperators(params) ? [_.first(collection)] : null, + $last: (collection, params) => + validateNotEmptyParametersOperators(params) ? [_.last(collection)] : null, + $sort: (collection, params) => + validateObjectParametersOperators(params) + ? [...sort(collection, params)] + : null, }; function aggregate(credentials, stages) { diff --git a/src/SecureRandom.js b/src/SecureRandom.js index a06be5d8..8d95cc20 100644 --- a/src/SecureRandom.js +++ b/src/SecureRandom.js @@ -1,24 +1,24 @@ -const sjcl = require('sjcl'); -const logger = require('./logger'); +const sjcl = require("sjcl"); +const logger = require("./logger"); class SecureRandom { constructor(seedHexString) { - logger.debug('Init Secure Random'); + logger.debug("Init Secure Random"); // eslint-disable-next-line new-cap this.sjclRandom = new sjcl.prng(10); if (seedHexString) { const seed = sjcl.codec.hex.toBits(seedHexString); - this.sjclRandom.addEntropy(seed, undefined, 'csprng'); + this.sjclRandom.addEntropy(seed, undefined, "csprng"); this.isSeeded = true; } else { try { - logger.debug('Trying crypto'); + logger.debug("Trying crypto"); /* eslint-disable global-require */ - const hexString = require('crypto').randomBytes(1024).toString('hex'); + const hexString = require("crypto").randomBytes(1024).toString("hex"); /* eslint-enable global-require */ const seed = sjcl.codec.hex.toBits(hexString); - this.sjclRandom.addEntropy(seed, undefined, 'csprng'); + this.sjclRandom.addEntropy(seed, undefined, "csprng"); this.isSeeded = true; } catch (error) { logger.warn(`Crypto: ${error}`); diff --git a/src/claim/Claim.js b/src/claim/Claim.js index 41011b0a..720b9045 100644 --- a/src/claim/Claim.js +++ b/src/claim/Claim.js @@ -1,15 +1,16 @@ -const _ = require('lodash'); -const sjcl = require('sjcl'); -const { UserCollectableAttribute } = require('../uca/UCA'); -const { services } = require('../services'); -const definitions = require('./definitions'); -const { schemaLoader } = require('../schemas/jsonSchema'); +const _ = require("lodash"); +const sjcl = require("sjcl"); +const { UserCollectableAttribute } = require("../uca/UCA"); +const { services } = require("../services"); +const definitions = require("./definitions"); +const { schemaLoader } = require("../schemas/jsonSchema"); const { validIdentifiers } = schemaLoader; -const findDefinition = (identifier, version) => ( - version ? _.find(definitions, { identifier, version }) : _.find(definitions, { identifier }) -); +const findDefinition = (identifier, version) => + version + ? _.find(definitions, { identifier, version }) + : _.find(definitions, { identifier }); const getDefinition = async (identifier, version) => { await schemaLoader.loadSchemaFromTitle(identifier); @@ -17,7 +18,8 @@ const getDefinition = async (identifier, version) => { return findDefinition(identifier, version); }; -const isArrayAttestableValue = (aValue) => aValue.indexOf('[') > -1 && aValue.indexOf(']') > -1; +const isArrayAttestableValue = (aValue) => + aValue.indexOf("[") > -1 && aValue.indexOf("]") > -1; function getBaseIdentifiers(identifier) { const claimRegex = /^claim-cvc:(.*)\.(.*)-v\d*$/; @@ -25,7 +27,7 @@ function getBaseIdentifiers(identifier) { let identifierComponents = claimRegex.exec(identifier); if (identifierComponents === null) { - identifierComponents = _.split(identifier, ':'); + identifierComponents = _.split(identifier, ":"); isNewIdentifier = false; } return { identifierComponents, isNewIdentifier }; @@ -33,16 +35,20 @@ function getBaseIdentifiers(identifier) { async function adaptIdentifierIfNeeded(identifier, version) { const definition = await getDefinition(identifier, version); - const resolvedIdentifier = (definition && definition.alias) ? definition.type : identifier; + const resolvedIdentifier = + definition && definition.alias ? definition.type : identifier; - const { isNewIdentifier, identifierComponents } = getBaseIdentifiers(resolvedIdentifier); + const { isNewIdentifier, identifierComponents } = + getBaseIdentifiers(resolvedIdentifier); const compDefinition = await getDefinition(resolvedIdentifier, version); - if (!isNewIdentifier && !(compDefinition)) { + if (!isNewIdentifier && !compDefinition) { const newIdentifier = `claim-cvc:${identifierComponents[1]}.${identifierComponents[2]}-v1`; await schemaLoader.loadSchemaFromTitle(newIdentifier); - const foundNewIdentifier = _.find(definitions, { identifier: newIdentifier }); + const foundNewIdentifier = _.find(definitions, { + identifier: newIdentifier, + }); if (foundNewIdentifier) { return newIdentifier; } @@ -58,7 +64,10 @@ class Claim extends UserCollectableAttribute { } static async create(identifier, value, version) { - const currentIdentifier = await adaptIdentifierIfNeeded(identifier, version); + const currentIdentifier = await adaptIdentifierIfNeeded( + identifier, + version, + ); if (!value.attestableValue) { await schemaLoader.validateSchema(currentIdentifier, value); @@ -75,7 +84,9 @@ class Claim extends UserCollectableAttribute { if (!this.salt) { const secureRandom = services.container.SecureRandom; - this.salt = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(secureRandom.wordWith(64))); + this.salt = sjcl.codec.hex.fromBits( + sjcl.hash.sha256.hash(secureRandom.wordWith(64)), + ); } } @@ -83,10 +94,11 @@ class Claim extends UserCollectableAttribute { const definition = findDefinition(this.identifier, this.version); const ucaArray = []; - if (!_.isArray(values)) throw new Error(`Value for ${identifier}-${version} should be an array`); + if (!_.isArray(values)) + throw new Error(`Value for ${identifier}-${version} should be an array`); _.forEach(values, (value) => { - const claim = new Claim(_.get(definition, 'items.type'), value); + const claim = new Claim(_.get(definition, "items.type"), value); ucaArray.push(claim); }); @@ -104,9 +116,16 @@ class Claim extends UserCollectableAttribute { this.timestamp = null; this.salt = parsedAttestableValue[0].salt; const ucaValue = parsedAttestableValue[0].value; - this.value = definition.type === 'Array' - ? _.map(ucaValue, (item) => new Claim(definition.items.type, { attestableValue: item })) - : this.value = _.includes(['null', 'undefined'], ucaValue) ? null : ucaValue; + this.value = + definition.type === "Array" + ? _.map( + ucaValue, + (item) => + new Claim(definition.items.type, { attestableValue: item }), + ) + : (this.value = _.includes(["null", "undefined"], ucaValue) + ? null + : ucaValue); } else { const ucaValue = {}; for (let i = 0; i < parsedAttestableValue.length; i += 1) { @@ -115,30 +134,41 @@ class Claim extends UserCollectableAttribute { let filteredIdentifier; let ucaPropertyName; - const ucaType = UserCollectableAttribute.resolveType(definition, definitions); - const ucaDef = ucaType.properties.find((prop) => prop.name === propertyName); + const ucaType = UserCollectableAttribute.resolveType( + definition, + definitions, + ); + const ucaDef = ucaType.properties.find( + (prop) => prop.name === propertyName, + ); if (ucaDef) { filteredIdentifier = ucaDef.type; ucaPropertyName = propertyName; } else { - const splitPropertyName = propertyName.split('.'); + const splitPropertyName = propertyName.split("."); // this property is used to check if the recursion tree has more than an depth const ucaNamespace = splitPropertyName[splitPropertyName.length - 2]; - const ucaNamespacePascal = ucaNamespace.substring(0, 1).toUpperCase() + ucaNamespace.substring(1); + const ucaNamespacePascal = + ucaNamespace.substring(0, 1).toUpperCase() + + ucaNamespace.substring(1); ucaPropertyName = splitPropertyName[splitPropertyName.length - 1]; filteredIdentifier = `cvc:${ucaNamespacePascal}:${ucaPropertyName}`; } // test if definition exists - const filteredDefinition = definitions.find((def) => def.identifier === filteredIdentifier); + const filteredDefinition = definitions.find( + (def) => def.identifier === filteredIdentifier, + ); if (!filteredDefinition) { // this must have an claim path with no recursive definition - filteredIdentifier = this.findDefinitionByAttestableValue(ucaPropertyName, definition); + filteredIdentifier = this.findDefinitionByAttestableValue( + ucaPropertyName, + definition, + ); } - ucaValue[propertyName] = new Claim( - filteredIdentifier, - { attestableValue: parsedAttestableValue[i].stringValue }, - ); + ucaValue[propertyName] = new Claim(filteredIdentifier, { + attestableValue: parsedAttestableValue[i].stringValue, + }); } this.value = ucaValue; } @@ -154,18 +184,23 @@ class Claim extends UserCollectableAttribute { } static parseAttestableArrayValue(value) { - const splitDots = value.attestableValue.split(':'); + const splitDots = value.attestableValue.split(":"); const propertyName = splitDots[1]; const salt = splitDots[2]; const attestableValueItems = value.attestableValue - .substring(value.attestableValue.indexOf('[') + 1, value.attestableValue.indexOf(']') - 1).split(','); - const parsedArrayItems = _.map( - attestableValueItems, - (item) => Claim.parseAttestableValue({ attestableValue: item }), + .substring( + value.attestableValue.indexOf("[") + 1, + value.attestableValue.indexOf("]") - 1, + ) + .split(","); + const parsedArrayItems = _.map(attestableValueItems, (item) => + Claim.parseAttestableValue({ attestableValue: item }), ); return { - propertyName, salt, value: parsedArrayItems, + propertyName, + salt, + value: parsedArrayItems, }; } @@ -183,7 +218,7 @@ class Claim extends UserCollectableAttribute { } // If is not an ArrayValue we parse it now - const splitPipes = _.split(value.attestableValue, '|'); + const splitPipes = _.split(value.attestableValue, "|"); const attestableValueRegex = /^urn:(\w+(?:\.\w+)*):(\w+):(.+)/; _.each(splitPipes, (stringValue) => { const match = attestableValueRegex.exec(stringValue); @@ -197,22 +232,41 @@ class Claim extends UserCollectableAttribute { values.push(v); } }); - if (splitPipes.length !== values.length && splitPipes.length !== values.length + 1) { - throw new Error('Invalid attestableValue'); + if ( + splitPipes.length !== values.length && + splitPipes.length !== values.length + 1 + ) { + throw new Error("Invalid attestableValue"); } return values; } findDefinitionByAttestableValue(attestableValuePropertyName, rootDefinition) { - const ucaType = UserCollectableAttribute.resolveType(rootDefinition, definitions); - for (const property of ucaType.properties) { // eslint-disable-line no-restricted-syntax - const resolvedDefinition = _.find(definitions, { identifier: property.type }); - resolvedDefinition.type = UserCollectableAttribute.resolveType(resolvedDefinition, definitions); - if (!resolvedDefinition.type.properties && property.name === attestableValuePropertyName) { + const ucaType = UserCollectableAttribute.resolveType( + rootDefinition, + definitions, + ); + // eslint-disable-next-line no-restricted-syntax + for (const property of ucaType.properties) { + // eslint-disable-line no-restricted-syntax + const resolvedDefinition = _.find(definitions, { + identifier: property.type, + }); + resolvedDefinition.type = UserCollectableAttribute.resolveType( + resolvedDefinition, + definitions, + ); + if ( + !resolvedDefinition.type.properties && + property.name === attestableValuePropertyName + ) { return property.type; } if (resolvedDefinition.type.properties) { - return this.findDefinitionByAttestableValue(attestableValuePropertyName, resolvedDefinition); + return this.findDefinitionByAttestableValue( + attestableValuePropertyName, + resolvedDefinition, + ); } } return null; @@ -233,34 +287,36 @@ class Claim extends UserCollectableAttribute { } // it was defined that the attestable value would be on the URN type https://tools.ietf.org/html/rfc8141 - if (['String', 'Number', 'Boolean'].indexOf(this.type) >= 0) { + if (["String", "Number", "Boolean"].indexOf(this.type) >= 0) { return `urn:${propertyName}:${this.salt}:${this.value}|`; } - if (this.type === 'Array') { + if (this.type === "Array") { const itemsValues = _.reduce( this.value, (result, item) => `${result}${item.getAttestableValue(null, true)},`, - '', + "", ); return `urn:${propertyName}:${this.salt}:[${itemsValues}]`; } return _.reduce( _.sortBy(_.keys(this.value)), (s, k) => `${s}${this.value[k].getAttestableValue(propertyName)}`, - '', + "", ); } /** - * Returns the global CredentialItem of the Credential - */ + * Returns the global CredentialItem of the Credential + */ getGlobalIdentifier() { return `claim-${this.identifier}-${this.version}`; } getClaimRootPropertyName() { const { identifierComponents } = getBaseIdentifiers(this.identifier); - return identifierComponents[1].toLowerCase() === 'type' ? '' : _.camelCase(identifierComponents[1]); + return identifierComponents[1].toLowerCase() === "type" + ? "" + : _.camelCase(identifierComponents[1]); } getClaimPropertyName() { @@ -275,29 +331,44 @@ class Claim extends UserCollectableAttribute { static getPath(identifier) { const { identifierComponents } = getBaseIdentifiers(identifier); const baseName = _.camelCase(identifierComponents[1]); - return baseName !== 'type' ? `${baseName}.${identifierComponents[2]}` : identifierComponents[2]; + return baseName !== "type" + ? `${baseName}.${identifierComponents[2]}` + : identifierComponents[2]; } getAttestableValues(path, isItemArray = false) { const joinPaths = (head, tail) => { - const headComponents = head ? _.split(head, '.') : []; - let tailComponents = tail ? _.split(tail, '.') : []; - tailComponents = _.last(headComponents) === _.first(tailComponents) ? tailComponents.splice(1) : tailComponents; - const newPath = _.join([...headComponents, ...tailComponents], '.'); + const headComponents = head ? _.split(head, ".") : []; + let tailComponents = tail ? _.split(tail, ".") : []; + tailComponents = + _.last(headComponents) === _.first(tailComponents) + ? tailComponents.splice(1) + : tailComponents; + const newPath = _.join([...headComponents, ...tailComponents], "."); return newPath; }; let values = []; - const def = _.find(definitions, { identifier: this.identifier, version: this.version }); + const def = _.find(definitions, { + identifier: this.identifier, + version: this.version, + }); if (def.credentialItem || def.attestable) { - const claimPath = joinPaths(path, !isItemArray ? this.getClaimPath() : null); - values.push({ identifier: this.identifier, value: this.getAttestableValue(null, isItemArray), claimPath }); - if (this.type === 'Object') { + const claimPath = joinPaths( + path, + !isItemArray ? this.getClaimPath() : null, + ); + values.push({ + identifier: this.identifier, + value: this.getAttestableValue(null, isItemArray), + claimPath, + }); + if (this.type === "Object") { _.forEach(_.keys(this.value), (k) => { const innerValues = this.value[k].getAttestableValues(claimPath); values = _.concat(values, innerValues); }); - } else if (this.type === 'Array') { + } else if (this.type === "Array") { _.forEach(this.value, (item, idx) => { values.push(...item.getAttestableValues(`${claimPath}.${idx}`, true)); }); @@ -307,19 +378,21 @@ class Claim extends UserCollectableAttribute { } /** - * extract the expected Type name for the value when constructing an UCA - * @param {*} definition - */ + * extract the expected Type name for the value when constructing an UCA + * @param {*} definition + */ static getTypeName(definition) { if (_.isString(definition.type)) { if (_.includes(validIdentifiers, definition.type)) { - const innerDefinition = _.find(definitions, { identifier: definition.type }); + const innerDefinition = _.find(definitions, { + identifier: definition.type, + }); return this.getTypeName(innerDefinition); } return definition.type; } - return 'Object'; + return "Object"; } static async getAllProperties(identifier, pathName) { @@ -328,37 +401,51 @@ class Claim extends UserCollectableAttribute { const definition = _.find(definitions, { identifier }); const properties = []; const type = UserCollectableAttribute.resolveType(definition, definitions); - const typeDefinition = _.isString(type) ? _.find(definitions, { identifier: type }) : definition; + const typeDefinition = _.isString(type) + ? _.find(definitions, { identifier: type }) + : definition; - if (typeDefinition && this.getTypeName(typeDefinition) === 'Object') { + if (typeDefinition && this.getTypeName(typeDefinition) === "Object") { let typeDefProps; if (typeDefinition.type.properties) { typeDefProps = typeDefinition.type.properties; } else { - const typeDefDefinition = _.find(definitions, { identifier: typeDefinition.type }); - typeDefProps = UserCollectableAttribute.resolveType(typeDefDefinition, definitions).properties; + const typeDefDefinition = _.find(definitions, { + identifier: typeDefinition.type, + }); + typeDefProps = UserCollectableAttribute.resolveType( + typeDefDefinition, + definitions, + ).properties; } let basePropName; - const { identifierComponents: baseIdentifierComponents } = getBaseIdentifiers(identifier); + const { identifierComponents: baseIdentifierComponents } = + getBaseIdentifiers(identifier); if (pathName) { if (_.includes(pathName, _.lowerCase(baseIdentifierComponents[1]))) { basePropName = `${pathName}`; } else { - basePropName = `${pathName}.${_.lowerCase(baseIdentifierComponents[1])}.${baseIdentifierComponents[2]}`; + basePropName = `${pathName}.${_.lowerCase( + baseIdentifierComponents[1], + )}.${baseIdentifierComponents[2]}`; } } else { - basePropName = `${_.lowerCase(baseIdentifierComponents[1])}.${baseIdentifierComponents[2]}`; + basePropName = `${_.lowerCase(baseIdentifierComponents[1])}.${ + baseIdentifierComponents[2] + }`; } - if (_.includes(['String', 'Number', 'Boolean'], `${typeDefProps.type}`)) { + if (_.includes(["String", "Number", "Boolean"], `${typeDefProps.type}`)) { // Properties is not an object properties.push(`${basePropName}.${typeDefProps.name}`); } else { const proProperties = await typeDefProps.reduce(async (prev, prop) => { const prevProps = await prev; const { isNewIdentifier } = getBaseIdentifiers(prop.type); - const newBasePropName = !isNewIdentifier ? basePropName : `${basePropName}.${prop.name}`; + const newBasePropName = !isNewIdentifier + ? basePropName + : `${basePropName}.${prop.name}`; const props = await this.getAllProperties(prop.type, newBasePropName); return [...prevProps, ...props]; @@ -367,7 +454,9 @@ class Claim extends UserCollectableAttribute { properties.push(...proProperties); } } else if (pathName) { - const { identifierComponents } = getBaseIdentifiers(definition.identifier); + const { identifierComponents } = getBaseIdentifiers( + definition.identifier, + ); let propertiesName; if (pathName.indexOf(identifierComponents[2]) >= 0) { propertiesName = `${pathName}`; @@ -377,7 +466,9 @@ class Claim extends UserCollectableAttribute { properties.push(propertiesName); } else { const { identifierComponents } = getBaseIdentifiers(identifier); - const propertiesName = `${_.lowerCase(identifierComponents[1])}.${identifierComponents[2]}`; + const propertiesName = `${_.lowerCase(identifierComponents[1])}.${ + identifierComponents[2] + }`; properties.push(propertiesName); } return properties; @@ -393,19 +484,26 @@ function convertIdentifierToClassName(identifier) { function mixinIdentifiers(UCA) { // Extend UCA Semantic - _.forEach(_.filter(definitions, (d) => d.credentialItem), (def) => { - const name = convertIdentifierToClassName(def.identifier); - const source = {}; - const { identifier } = def; - - function UCAConstructor(value, version) { - return new Claim(identifier, value, version); - } + _.forEach( + _.filter(definitions, (d) => d.credentialItem), + (def) => { + const name = convertIdentifierToClassName(def.identifier); + const source = {}; + const { identifier } = def; + + function UCAConstructor(value, version) { + return new Claim(identifier, value, version); + } - source[name] = UCAConstructor; - _.mixin(Claim, source); - }); + source[name] = UCAConstructor; + _.mixin(Claim, source); + }, + ); return UCA; } -module.exports = { Claim: mixinIdentifiers(Claim), definitions, getBaseIdentifiers }; +module.exports = { + Claim: mixinIdentifiers(Claim), + definitions, + getBaseIdentifiers, +}; diff --git a/src/claim/__mocks__/definitions.js b/src/claim/__mocks__/definitions.js index 39d1fc9f..c52da021 100644 --- a/src/claim/__mocks__/definitions.js +++ b/src/claim/__mocks__/definitions.js @@ -1,34 +1,34 @@ const definitions = [ { - identifier: 'civ:Mock:booleans', - version: '1', - type: 'Boolean', + identifier: "civ:Mock:booleans", + version: "1", + type: "Boolean", attestable: true, }, { - identifier: 'civ:Mock:excMax', - version: '1', - type: 'Number', + identifier: "civ:Mock:excMax", + version: "1", + type: "Number", exclusiveMaximum: true, maximum: 20, }, { - identifier: 'civ:Mock:max', - version: '1', - type: 'Number', + identifier: "civ:Mock:max", + version: "1", + type: "Number", exclusiveMaximum: false, maximum: 50, }, { - identifier: 'civ:Mock:excMax', - version: '1', - type: 'Number', + identifier: "civ:Mock:excMax", + version: "1", + type: "Number", value: [10, 20, 30], }, { - identifier: 'civ:Mock:max', - version: '1', - type: 'Number', + identifier: "civ:Mock:max", + version: "1", + type: "Number", exclusiveMinimum: false, minimum: 5, }, diff --git a/src/constants/headers.js b/src/constants/headers.js index 5db1fbe1..e3ab9288 100644 --- a/src/constants/headers.js +++ b/src/constants/headers.js @@ -1,7 +1,7 @@ const HeaderType = { - EXTERNAL_ID_HEADER: 'X-External-ID', - FLOW_ID_HEADER: 'X-Civic-FlowId', - IDENTITY_HEADER: 'X-Identity-Self', + EXTERNAL_ID_HEADER: "X-External-ID", + FLOW_ID_HEADER: "X-Civic-FlowId", + IDENTITY_HEADER: "X-Identity-Self", }; module.exports = { HeaderType, diff --git a/src/constants/index.js b/src/constants/index.js index 85daa125..cb58fe05 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -1,4 +1,4 @@ -const headers = require('./headers'); +const headers = require("./headers"); module.exports = { headers, diff --git a/src/creds/ClaimModel.js b/src/creds/ClaimModel.js index e16f988f..827e5e1b 100644 --- a/src/creds/ClaimModel.js +++ b/src/creds/ClaimModel.js @@ -1,4 +1,4 @@ -const _ = require('lodash'); +const _ = require("lodash"); /** * Transforms a list of UCAs into the claim property of the verifiable cliams @@ -12,7 +12,8 @@ class ClaimModel { this[rootPropertyName] = {}; } - this[rootPropertyName][uca.getClaimPropertyName()] = uca.getPlainValue(); + this[rootPropertyName][uca.getClaimPropertyName()] = + uca.getPlainValue(); } else { this[uca.getClaimPropertyName()] = uca.getPlainValue(); } diff --git a/src/creds/CredentialSignerVerifier.js b/src/creds/CredentialSignerVerifier.js index 3bd076b0..fbfffb71 100644 --- a/src/creds/CredentialSignerVerifier.js +++ b/src/creds/CredentialSignerVerifier.js @@ -1,7 +1,7 @@ -const _ = require('lodash'); -const { HDNode, ECSignature } = require('bitcoinjs-lib'); +const _ = require("lodash"); +const { HDNode, ECSignature } = require("bitcoinjs-lib"); -const SIGNATURE_ALGO = 'ec256k1'; +const SIGNATURE_ALGO = "ec256k1"; class CredentialSignerVerifier { /** * Creates a new instance of a CredentialSignerVerifier @@ -13,10 +13,18 @@ class CredentialSignerVerifier { * @param options.pubBase58 bse58 serialized public key */ constructor(options) { - if (_.isEmpty(options.keyPair) && _.isEmpty(options.prvBase58) && _.isEmpty(options.pubBase58)) { - throw new Error('Either a keyPair, prvBase58 or pubBase58(to verify only) is required'); + if ( + _.isEmpty(options.keyPair) && + _.isEmpty(options.prvBase58) && + _.isEmpty(options.pubBase58) + ) { + throw new Error( + "Either a keyPair, prvBase58 or pubBase58(to verify only) is required", + ); } - this.keyPair = options.keyPair || HDNode.fromBase58(options.prvBase58 || options.pubBase58); + this.keyPair = + options.keyPair || + HDNode.fromBase58(options.prvBase58 || options.pubBase58); } /** @@ -25,17 +33,26 @@ class CredentialSignerVerifier { * @returns {*|boolean} */ isSignatureValid(credential) { - if (_.isEmpty(credential.proof) - || _.isEmpty(credential.proof.merkleRoot) - || _.isEmpty(credential.proof.merkleRootSignature)) { - throw Error('Invalid Credential Proof Schema'); + if ( + _.isEmpty(credential.proof) || + _.isEmpty(credential.proof.merkleRoot) || + _.isEmpty(credential.proof.merkleRootSignature) + ) { + throw Error("Invalid Credential Proof Schema"); } try { - const signatureHex = _.get(credential, 'proof.merkleRootSignature.signature'); - const signature = signatureHex ? ECSignature.fromDER(Buffer.from(signatureHex, 'hex')) : null; - const merkleRoot = _.get(credential, 'proof.merkleRoot'); - return (signature && merkleRoot) ? this.keyPair.verify(Buffer.from(merkleRoot, 'hex'), signature) : false; + const signatureHex = _.get( + credential, + "proof.merkleRootSignature.signature", + ); + const signature = signatureHex + ? ECSignature.fromDER(Buffer.from(signatureHex, "hex")) + : null; + const merkleRoot = _.get(credential, "proof.merkleRoot"); + return signature && merkleRoot + ? this.keyPair.verify(Buffer.from(merkleRoot, "hex"), signature) + : false; } catch (error) { // verify throws in must cases but we want to return false return false; @@ -48,12 +65,12 @@ class CredentialSignerVerifier { * @returns {{signature, pubBase58: *, algo: string}} */ sign(proof) { - const hash = Buffer.from(proof.merkleRoot, 'hex'); + const hash = Buffer.from(proof.merkleRoot, "hex"); const signature = this.keyPair.sign(hash); return { algo: SIGNATURE_ALGO, pubBase58: this.keyPair.neutered().toBase58(), - signature: signature.toDER().toString('hex'), + signature: signature.toDER().toString("hex"), }; } } diff --git a/src/creds/CvcMerkleProof.js b/src/creds/CvcMerkleProof.js index 96cbdbb0..2a74d6c7 100644 --- a/src/creds/CvcMerkleProof.js +++ b/src/creds/CvcMerkleProof.js @@ -1,9 +1,9 @@ -const _ = require('lodash'); -const MerkleTools = require('merkle-tools'); +const _ = require("lodash"); +const MerkleTools = require("merkle-tools"); -const { sha256 } = require('../lib/crypto'); -const { Claim } = require('../claim/Claim'); -const { services } = require('../services'); +const { sha256 } = require("../lib/crypto"); +const { Claim } = require("../claim/Claim"); +const { services } = require("../services"); /** * Transforms a list of UCAs into the signature property of the verifiable claims @@ -15,9 +15,9 @@ class CvcMerkleProof { constructor(ucas, credentialSigner = null) { const withRandomUcas = CvcMerkleProof.padTree(ucas); - this.type = 'CvcMerkleProof2018'; + this.type = "CvcMerkleProof2018"; this.merkleRoot = null; - this.anchor = 'TBD (Civic Blockchain Attestation)'; + this.anchor = "TBD (Civic Blockchain Attestation)"; this.leaves = CvcMerkleProof.getAllAttestableValue(withRandomUcas); this.buildMerkleTree(credentialSigner); this.granted = null; @@ -32,8 +32,11 @@ class CvcMerkleProof { this.leaves[idx].targetHash = hash; this.leaves[idx].node = merkleTools.getProof(idx); }); - this.leaves = _.filter(this.leaves, (el) => !(el.identifier === 'cvc:Random:node')); - this.merkleRoot = merkleTools.getMerkleRoot().toString('hex'); + this.leaves = _.filter( + this.leaves, + (el) => !(el.identifier === "cvc:Random:node"), + ); + this.merkleRoot = merkleTools.getMerkleRoot().toString("hex"); if (credentialSigner) { this.merkleRootSignature = credentialSigner.sign(this); @@ -42,12 +45,15 @@ class CvcMerkleProof { static padTree(nodes) { const currentLength = nodes.length; - const targetLength = currentLength < CvcMerkleProof.PADDING_INCREMENTS ? CvcMerkleProof.PADDING_INCREMENTS - : _.ceil(currentLength / CvcMerkleProof.PADDING_INCREMENTS) * CvcMerkleProof.PADDING_INCREMENTS; + const targetLength = + currentLength < CvcMerkleProof.PADDING_INCREMENTS + ? CvcMerkleProof.PADDING_INCREMENTS + : _.ceil(currentLength / CvcMerkleProof.PADDING_INCREMENTS) * + CvcMerkleProof.PADDING_INCREMENTS; const newNodes = _.clone(nodes); const secureRandom = services.container.SecureRandom; while (newNodes.length < targetLength) { - newNodes.push(new Claim('cvc:Random:node', secureRandom.wordWith(16))); + newNodes.push(new Claim("cvc:Random:node", secureRandom.wordWith(16))); } return newNodes; } diff --git a/src/creds/VerifiableCredential.js b/src/creds/VerifiableCredential.js index 143b0f26..882f477b 100644 --- a/src/creds/VerifiableCredential.js +++ b/src/creds/VerifiableCredential.js @@ -1,27 +1,28 @@ -const _ = require('lodash'); -const validUrl = require('valid-url'); -const sift = require('sift').default; - -const timestamp = require('unix-timestamp'); -const flatten = require('flat'); -const { v4: uuidv4 } = require('uuid'); -const MerkleTools = require('merkle-tools'); - -const { sha256 } = require('../lib/crypto'); -const { Claim } = require('../claim/Claim'); -const didUtil = require('../lib/did'); - -const definitions = require('./definitions'); -const { services } = require('../services'); -const time = require('../timeHelper'); -const { CvcMerkleProof } = require('./CvcMerkleProof'); -const { ClaimModel } = require('./ClaimModel'); -const { schemaLoader } = require('../schemas/jsonSchema'); -const { parseIdentifier } = require('../lib/stringUtils'); -const signerVerifier = require('../lib/signerVerifier'); +const _ = require("lodash"); +const validUrl = require("valid-url"); +const sift = require("sift").default; + +const timestamp = require("unix-timestamp"); +const flatten = require("flat"); +const { v4: uuidv4 } = require("uuid"); +const MerkleTools = require("merkle-tools"); + +const { sha256 } = require("../lib/crypto"); +const { Claim } = require("../claim/Claim"); +const didUtil = require("../lib/did"); + +const definitions = require("./definitions"); +const { services } = require("../services"); +const time = require("../timeHelper"); +const { CvcMerkleProof } = require("./CvcMerkleProof"); +const { ClaimModel } = require("./ClaimModel"); +const { schemaLoader } = require("../schemas/jsonSchema"); +const { parseIdentifier } = require("../lib/stringUtils"); +const signerVerifier = require("../lib/signerVerifier"); // convert a time delta to a timestamp -const convertDeltaToTimestamp = (delta) => time.applyDeltaToDate(delta).getTime() / 1000; +const convertDeltaToTimestamp = (delta) => + time.applyDeltaToDate(delta).getTime() / 1000; function validIdentifiers() { const vi = _.map(definitions, (d) => d.identifier); @@ -32,43 +33,52 @@ function getClaimsWithFlatKeys(claims) { const flattenDepth3 = flatten(claims, { maxDepth: 3 }); const flattenDepth2 = flatten(claims, { maxDepth: 2 }); const flattenClaim = _.merge({}, flattenDepth3, flattenDepth2); - return _(flattenClaim) - .toPairs() - .sortBy(0) - .fromPairs() - .value(); + return _(flattenClaim).toPairs().sortBy(0).fromPairs().value(); } function getLeavesClaimPaths(signLeaves) { - return _.map(signLeaves, 'claimPath'); + return _.map(signLeaves, "claimPath"); } -function verifyLeave(leave, merkleTools, claims, signature, invalidValues, invalidHashs, invalidProofs) { +function verifyLeave( + leave, + merkleTools, + claims, + signature, + invalidValues, + invalidHashs, + invalidProofs, +) { // 1. verify valid targetHashs // 1.1 "leave.value" should be equal claim values - const ucaValue = new Claim(leave.identifier, { attestableValue: leave.value }); + const ucaValue = new Claim(leave.identifier, { + attestableValue: leave.value, + }); let providedClaimValue = _.get(claims, leave.claimPath); if (!providedClaimValue) providedClaimValue = null; - if (ucaValue.type === 'String' || ucaValue.type === 'Number') { + if (ucaValue.type === "String" || ucaValue.type === "Number") { if (ucaValue.value !== providedClaimValue) { invalidValues.push(leave.value); } - } else if (ucaValue.type === 'Object') { + } else if (ucaValue.type === "Object") { const ucaValueValue = ucaValue.value; const innerClaimValue = providedClaimValue; - const claimPathSufix = _.last(_.split(leave.claimPath, '.')); + const claimPathSufix = _.last(_.split(leave.claimPath, ".")); const claimValue = {}; claimValue[claimPathSufix] = innerClaimValue; const ucaValueKeys = _.keys(ucaValue.value); _.each(ucaValueKeys, (k) => { const expectedClaimValue = _.get(claimValue, k); - if (expectedClaimValue && `${_.get(ucaValueValue[k], 'value')}` !== `${expectedClaimValue}`) { + if ( + expectedClaimValue && + `${_.get(ucaValueValue[k], "value")}` !== `${expectedClaimValue}` + ) { invalidValues.push(claimValue[k]); } }); - } else if (ucaValue.type === 'Array') { + } else if (ucaValue.type === "Array") { const innerClaimValue = providedClaimValue; _.forEach(ucaValue.value, (arrayItem, idx) => { @@ -76,7 +86,10 @@ function verifyLeave(leave, merkleTools, claims, signature, invalidValues, inval const ucaValueKeys = _.keys(arrayItem.value); _.each(ucaValueKeys, (k) => { const expectedClaimValue = _.get(itemInnerClaimValue, k); - if (expectedClaimValue && `${_.get(arrayItem.value, [k, 'value'])}` !== `${expectedClaimValue}`) { + if ( + expectedClaimValue && + `${_.get(arrayItem.value, [k, "value"])}` !== `${expectedClaimValue}` + ) { invalidValues.push(itemInnerClaimValue[k]); } }); @@ -91,17 +104,21 @@ function verifyLeave(leave, merkleTools, claims, signature, invalidValues, inval if (hash !== leave.targetHash) invalidHashs.push(leave.targetHash); // 2. Validate targetHashs + proofs with merkleRoot - const isValidProof = merkleTools.validateProof(leave.node, leave.targetHash, signature.merkleRoot); + const isValidProof = merkleTools.validateProof( + leave.node, + leave.targetHash, + signature.merkleRoot, + ); if (!isValidProof) invalidProofs.push(leave.targetHash); } function validateEvidence(evidenceItem) { const requiredFields = [ - 'type', - 'verifier', - 'evidenceDocument', - 'subjectPresence', - 'documentPresence', + "type", + "verifier", + "evidenceDocument", + "subjectPresence", + "documentPresence", ]; _.forEach(requiredFields, (field) => { if (!(field in evidenceItem)) { @@ -109,11 +126,11 @@ function validateEvidence(evidenceItem) { } }); // id property is optional, but if present, SHOULD contain a URL - if (('id' in evidenceItem) && !validUrl.isWebUri(evidenceItem.id)) { - throw new Error('Evidence id is not a valid URL'); + if ("id" in evidenceItem && !validUrl.isWebUri(evidenceItem.id)) { + throw new Error("Evidence id is not a valid URL"); } if (!_.isArray(evidenceItem.type)) { - throw new Error('Evidence type is not an Array object'); + throw new Error("Evidence type is not an Array object"); } } @@ -141,10 +158,10 @@ function transformConstraint(constraints) { _.forEach(constraints.claims, (constraint) => { if (!constraint.path) { - throw new Error('Malformed contraint: missing PATTH'); + throw new Error("Malformed contraint: missing PATTH"); } if (!constraint.is) { - throw new Error('Malformed contraint: missing IS'); + throw new Error("Malformed contraint: missing IS"); } const siftConstraint = {}; @@ -167,7 +184,11 @@ function isDateStructure(obj) { // it has more or less keys the (day, month, year) return false; } - return (_.includes(objKeys, 'day') && _.includes(objKeys, 'month') && _.includes(objKeys, 'year')); + return ( + _.includes(objKeys, "day") && + _.includes(objKeys, "month") && + _.includes(objKeys, "year") + ); } /** @@ -177,13 +198,13 @@ function isDateStructure(obj) { * @return true if verified, false otherwise. */ async function nonCryptographicallySecureVerify(credential) { - await schemaLoader.loadSchemaFromTitle('cvc:Meta:expirationDate'); + await schemaLoader.loadSchemaFromTitle("cvc:Meta:expirationDate"); await schemaLoader.loadSchemaFromTitle(credential.identifier); const expiry = _.clone(credential.expirationDate); const claims = _.clone(credential.credentialSubject); const signature = _.clone(credential.proof); - const signLeaves = _.get(signature, 'leaves'); + const signLeaves = _.get(signature, "leaves"); let valid = false; const merkleTools = new MerkleTools(); @@ -194,28 +215,42 @@ async function nonCryptographicallySecureVerify(credential) { const invalidValues = []; const invalidHashs = []; const invalidProofs = []; - _.forEach(_.keys(claimsWithFlatKeys).filter((key) => key !== 'id'), (claimKey) => { - // check if `claimKey` has a `claimPath` proof - const leaveIdx = _.indexOf(leavesClaimPaths, claimKey); - // if not found - if (leaveIdx === -1) { - // .. still test if parent key node may have a `claimPath` proof - _.findLastIndex(claimKey, '.'); - const parentClaimKey = claimKey.substring(0, _.lastIndexOf(claimKey, '.')); - if (_.indexOf(leavesClaimPaths, parentClaimKey) > -1) { - // if yes, no problem, go to next loop - return; + _.forEach( + _.keys(claimsWithFlatKeys).filter((key) => key !== "id"), + (claimKey) => { + // check if `claimKey` has a `claimPath` proof + const leaveIdx = _.indexOf(leavesClaimPaths, claimKey); + // if not found + if (leaveIdx === -1) { + // .. still test if parent key node may have a `claimPath` proof + _.findLastIndex(claimKey, "."); + const parentClaimKey = claimKey.substring( + 0, + _.lastIndexOf(claimKey, "."), + ); + if (_.indexOf(leavesClaimPaths, parentClaimKey) > -1) { + // if yes, no problem, go to next loop + return; + } + // if no, include on invalidClaim array + invalidClaim.push(claimKey); + } else { + const leave = signLeaves[leaveIdx]; + verifyLeave( + leave, + merkleTools, + claims, + signature, + invalidValues, + invalidHashs, + invalidProofs, + ); } - // if no, include on invalidClaim array - invalidClaim.push(claimKey); - } else { - const leave = signLeaves[leaveIdx]; - verifyLeave(leave, merkleTools, claims, signature, invalidValues, invalidHashs, invalidProofs); - } - }); + }, + ); // It has to be present Credential expiry even with null value - const expiryIdx = _.indexOf(leavesClaimPaths, 'meta.expirationDate'); + const expiryIdx = _.indexOf(leavesClaimPaths, "meta.expirationDate"); if (expiryIdx >= 0) { const expiryLeave = signLeaves[expiryIdx]; const metaClaim = { @@ -223,9 +258,19 @@ async function nonCryptographicallySecureVerify(credential) { expirationDate: expiry, }, }; - const totalLengthBefore = invalidValues.length + invalidHashs.length + invalidProofs.length; - verifyLeave(expiryLeave, merkleTools, metaClaim, signature, invalidValues, invalidHashs, invalidProofs); - const totalLengthAfter = invalidValues.length + invalidHashs.length + invalidProofs.length; + const totalLengthBefore = + invalidValues.length + invalidHashs.length + invalidProofs.length; + verifyLeave( + expiryLeave, + merkleTools, + metaClaim, + signature, + invalidValues, + invalidHashs, + invalidProofs, + ); + const totalLengthAfter = + invalidValues.length + invalidHashs.length + invalidProofs.length; if (totalLengthAfter === totalLengthBefore) { // expiry has always to be string formatted date or null value // if it is null it means it's indefinitely @@ -238,11 +283,13 @@ async function nonCryptographicallySecureVerify(credential) { } } } - if (_.isEmpty(invalidClaim) - && _.isEmpty(invalidValues) - && _.isEmpty(invalidHashs) - && _.isEmpty(invalidProofs) - && _.isEmpty(invalidExpiry)) { + if ( + _.isEmpty(invalidClaim) && + _.isEmpty(invalidValues) && + _.isEmpty(invalidHashs) && + _.isEmpty(invalidProofs) && + _.isEmpty(invalidExpiry) + ) { valid = true; } return valid; @@ -256,8 +303,13 @@ async function nonCryptographicallySecureVerify(credential) { * @param verifySignatureFunc - Async method to verify a credential signature * @return true if verified, false otherwise. */ -async function cryptographicallySecureVerify(credential, verifyAttestationFunc, verifySignatureFunc) { - const nonCryptographicallyVerified = await nonCryptographicallySecureVerify(credential); +async function cryptographicallySecureVerify( + credential, + verifyAttestationFunc, + verifySignatureFunc, +) { + const nonCryptographicallyVerified = + await nonCryptographicallySecureVerify(credential); if (!nonCryptographicallyVerified) { return false; } @@ -280,12 +332,21 @@ async function cryptographicallySecureVerify(credential, verifyAttestationFunc, * @param credential - A credential object with expirationDate, claim and proof * @return true if verified, false otherwise. */ -async function requesterGrantVerify(credential, requesterId, requestId, keyName) { - const label = _.get(credential.proof, 'anchor.subject.label'); - const anchorPubKey = _.get(credential.proof, 'anchor.subject.pub'); - const anchorData = _.get(credential.proof, 'anchor.subject.data'); - - if (_.isEmpty(credential.proof.granted) || _.isEmpty(label) || _.isEmpty(anchorPubKey)) { +async function requesterGrantVerify( + credential, + requesterId, + requestId, + keyName, +) { + const label = _.get(credential.proof, "anchor.subject.label"); + const anchorPubKey = _.get(credential.proof, "anchor.subject.pub"); + const anchorData = _.get(credential.proof, "anchor.subject.data"); + + if ( + _.isEmpty(credential.proof.granted) || + _.isEmpty(label) || + _.isEmpty(anchorPubKey) + ) { return false; } @@ -297,7 +358,9 @@ async function requesterGrantVerify(credential, requesterId, requestId, keyName) let verifyKey = keyName; if (_.isEmpty(verifyKey)) { if (!_.isFunction(cryptoManager.installKey)) { - throw new Error('CryptoManager does not support installKey, please use a `keyName` instead.'); + throw new Error( + "CryptoManager does not support installKey, please use a `keyName` instead.", + ); } verifyKey = `TEMP_KEY_NAME_${new Date().getTime()}`; cryptoManager.installKey(verifyKey, anchorPubKey); @@ -313,7 +376,7 @@ async function requesterGrantVerify(credential, requesterId, requestId, keyName) * @return {number} an unix-timestamp in seconds */ function transformDate(obj) { - return new Date(obj.year, (obj.month - 1), obj.day).getTime() / 1000; + return new Date(obj.year, obj.month - 1, obj.day).getTime() / 1000; } const VERIFY_LEVELS = { @@ -334,7 +397,7 @@ function verifyRequiredClaims(definition, ucas) { const identifiers = ucas.map((uca) => uca.identifier); const missings = _.difference(definition.required, identifiers); if (!_.isEmpty(missings)) { - throw new Error(`Missing required claim(s): ${_.join(missings, ', ')}`); + throw new Error(`Missing required claim(s): ${_.join(missings, ", ")}`); } } } @@ -347,7 +410,9 @@ function verifyRequiredClaims(definition, ucas) { function getCredentialDefinition(identifier, version) { const definition = _.find(definitions, { identifier }); if (!definition) { - throw new Error(`Credential definition for ${identifier} v${version} not found`); + throw new Error( + `Credential definition for ${identifier} v${version} not found`, + ); } return definition; } @@ -360,20 +425,34 @@ function getCredentialDefinition(identifier, version) { * @param {*} version * @param {*} [evidence] */ -function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subject, ucas, evidence, signerOptions) { +function VerifiableCredentialBaseConstructor( + identifier, + issuer, + expiryIn, + subject, + ucas, + evidence, + signerOptions, +) { const parsedIdentifier = parseIdentifier(identifier); - const version = parsedIdentifier ? parsedIdentifier[4] : '1'; + const version = parsedIdentifier ? parsedIdentifier[4] : "1"; this.id = uuidv4(); this.issuer = issuer; - const issuerUCA = new Claim('cvc:Meta:issuer', this.issuer); - this.issuanceDate = (new Date()).toISOString(); - const issuanceDateUCA = new Claim('cvc:Meta:issuanceDate', this.issuanceDate); + const issuerUCA = new Claim("cvc:Meta:issuer", this.issuer); + this.issuanceDate = new Date().toISOString(); + const issuanceDateUCA = new Claim("cvc:Meta:issuanceDate", this.issuanceDate); this.identifier = identifier; - this.expirationDate = expiryIn ? timestamp.toDate(timestamp.now(expiryIn)).toISOString() : null; - const expiryUCA = new Claim('cvc:Meta:expirationDate', this.expirationDate ? this.expirationDate : 'null'); + this.expirationDate = expiryIn + ? timestamp.toDate(timestamp.now(expiryIn)).toISOString() + : null; + const expiryUCA = new Claim( + "cvc:Meta:expirationDate", + this.expirationDate ? this.expirationDate : "null", + ); - const proofUCAs = expiryUCA ? _.concat(ucas, issuerUCA, issuanceDateUCA, expiryUCA) + const proofUCAs = expiryUCA + ? _.concat(ucas, issuerUCA, issuanceDateUCA, expiryUCA) : _.concat(ucas, issuerUCA, issuanceDateUCA); if (!_.includes(validIdentifiers(), identifier)) { @@ -382,7 +461,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje const definition = getCredentialDefinition(identifier, version); // this.version = `${version}` || definition.version; - this.type = ['VerifiableCredential', 'IdentityCredential']; + this.type = ["VerifiableCredential", "IdentityCredential"]; this.transient = definition.transient || false; if (evidence) { @@ -400,9 +479,14 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje ...this.credentialSubject, ...new ClaimModel(ucas), }; - this.proof = new CvcMerkleProof(proofUCAs, signerOptions ? signerOptions.signer : null); + this.proof = new CvcMerkleProof( + proofUCAs, + signerOptions ? signerOptions.signer : null, + ); if (!_.isEmpty(definition.excludes)) { - const removed = _.remove(this.proof.leaves, (el) => _.includes(definition.excludes, el.identifier)); + const removed = _.remove(this.proof.leaves, (el) => + _.includes(definition.excludes, el.identifier), + ); _.forEach(removed, (r) => { _.unset(this.credentialSubject, r.claimPath); }); @@ -412,7 +496,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje /** * Returns the global identifier of the Credential */ - this.getGlobalIdentifier = () => (`credential-${this.identifier}-${version}`); + this.getGlobalIdentifier = () => `credential-${this.identifier}-${version}`; /** * Creates a filtered credential exposing only the requested claims @@ -420,11 +504,18 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje */ this.filter = (requestedClaims) => { const filtered = _.cloneDeep(this); - _.remove(filtered.proof.leaves, (el) => !_.includes(requestedClaims, el.identifier)); + _.remove( + filtered.proof.leaves, + (el) => !_.includes(requestedClaims, el.identifier), + ); filtered.credentialSubject = {}; _.forEach(filtered.proof.leaves, (el) => { - _.set(filtered.credentialSubject, el.claimPath, _.get(this.credentialSubject, el.claimPath)); + _.set( + filtered.credentialSubject, + el.claimPath, + _.get(this.credentialSubject, el.claimPath), + ); }); return filtered; @@ -452,7 +543,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje if (this.transient) { // If credential is transient no Blockchain attestation is issued this.proof.anchor = { - type: 'transient', + type: "transient", subject: { label: this.identifier, data: this.proof.merkleRoot, @@ -462,16 +553,12 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje } const anchorService = services.container.AnchorService; - const updatedOption = _.merge( - {}, - options, - { - subject: { - label: this.identifier, - data: this.proof.merkleRoot, - }, + const updatedOption = _.merge({}, options, { + subject: { + label: this.identifier, + data: this.proof.merkleRoot, }, - ); + }); const anchor = await anchorService.anchor(updatedOption); this.proof.anchor = anchor; return this; @@ -486,7 +573,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje if (this.transient) { // If credential is transient no Blockchain attestation is issued this.proof.anchor = { - type: 'transient', + type: "transient", subject: { label: this.identifier, data: this.proof.merkleRoot, @@ -513,23 +600,34 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje */ this.verify = async (higherVerifyLevel, options) => { const { requestorId, requestId, keyName } = options || {}; - const hVerifyLevel = !_.isNil(higherVerifyLevel) ? higherVerifyLevel : VERIFY_LEVELS.GRANTED; + const hVerifyLevel = !_.isNil(higherVerifyLevel) + ? higherVerifyLevel + : VERIFY_LEVELS.GRANTED; let verifiedlevel = VERIFY_LEVELS.INVALID; // Test next level - if (verifiedlevel === VERIFY_LEVELS.INVALID - && hVerifyLevel >= VERIFY_LEVELS.PROOFS - && (await this.verifyProofs())) verifiedlevel = VERIFY_LEVELS.PROOFS; + if ( + verifiedlevel === VERIFY_LEVELS.INVALID && + hVerifyLevel >= VERIFY_LEVELS.PROOFS && + (await this.verifyProofs()) + ) + verifiedlevel = VERIFY_LEVELS.PROOFS; // Test next level - if (verifiedlevel === VERIFY_LEVELS.PROOFS - && hVerifyLevel >= VERIFY_LEVELS.ANCHOR - && this.verifyAttestation()) verifiedlevel = VERIFY_LEVELS.ANCHOR; + if ( + verifiedlevel === VERIFY_LEVELS.PROOFS && + hVerifyLevel >= VERIFY_LEVELS.ANCHOR && + this.verifyAttestation() + ) + verifiedlevel = VERIFY_LEVELS.ANCHOR; // Test next level - if (verifiedlevel === VERIFY_LEVELS.ANCHOR - && hVerifyLevel >= VERIFY_LEVELS.GRANTED - && this.verifyGrant(requestorId, requestId, keyName)) verifiedlevel = VERIFY_LEVELS.GRANTED; + if ( + verifiedlevel === VERIFY_LEVELS.ANCHOR && + hVerifyLevel >= VERIFY_LEVELS.GRANTED && + this.verifyGrant(requestorId, requestId, keyName) + ) + verifiedlevel = VERIFY_LEVELS.GRANTED; return verifiedlevel; }; @@ -539,10 +637,13 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje * @return true or false for the validation */ this.verifyAnchorSignature = (pinnedPubKey) => { - if (this.proof.anchor.type === 'transient') { + if (this.proof.anchor.type === "transient") { return true; } - return services.container.AnchorService.verifySignature(this.proof, pinnedPubKey); + return services.container.AnchorService.verifySignature( + this.proof, + pinnedPubKey, + ); }; /** @@ -550,7 +651,10 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje * return true or false for the validation */ this.verifyMerkletreeSignature = async () => { - const verifier = await signerVerifier.verifier(this.issuer, this.proof.merkleRootSignature.verificationMethod); + const verifier = await signerVerifier.verifier( + this.issuer, + this.proof.merkleRootSignature.verificationMethod, + ); return verifier.verify(this); }; @@ -561,7 +665,9 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje this.verifyAttestation = async () => { // Don't check attestation for credentials that are never attested on blockchain if ( - this.proof.anchor.type === 'transient' || this.proof.anchor.network === 'dummynet') { + this.proof.anchor.type === "transient" || + this.proof.anchor.network === "dummynet" + ) { return true; } @@ -573,7 +679,7 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje * @returns {Promise|void>} */ this.revokeAttestation = async () => { - if (this.proof.type === 'transient') { + if (this.proof.type === "transient") { return; } // eslint-disable-next-line consistent-return @@ -585,13 +691,14 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje * @returns {Promise|void>} */ this.isRevoked = async () => { - if (this.proof.type === 'transient') { + if (this.proof.type === "transient") { return false; } return services.container.AnchorService.isRevoked(this.proof); }; - const convertTimestampIfString = (obj) => (_.isString(obj) ? convertDeltaToTimestamp(obj) : obj); + const convertTimestampIfString = (obj) => + _.isString(obj) ? convertDeltaToTimestamp(obj) : obj; this.isMatch = (constraints) => { const claims = _.cloneDeep(this.credentialSubject); @@ -603,14 +710,19 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje if (isDateStructure(pathValue)) { _.set(claims, path, transformDate(pathValue)); // transforms delta values like "-18y" to a proper timestamp - _.set(constraint, path, _.mapValues(constraint[path], convertTimestampIfString)); + _.set( + constraint, + path, + _.mapValues(constraint[path], convertTimestampIfString), + ); } // The Constraints are ANDed here - if one is false, the entire return sift(constraint)([claims]); }; return siftCompatibleConstraints.reduce( - (matchesAllConstraints, nextConstraint) => matchesAllConstraints && claimsMatchConstraint(nextConstraint), + (matchesAllConstraints, nextConstraint) => + matchesAllConstraints && claimsMatchConstraint(nextConstraint), true, ); }; @@ -626,14 +738,19 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje * @param {string} option.pvtKey - A pvtKey in base58 format (default impl). */ this.grantUsageFor = (requestorId, requestId, { keyName, pvtKey }) => { - if (_.isEmpty(_.get(this.proof, 'anchor.subject.label')) || _.isEmpty(_.get(this.proof, 'anchor.subject.data'))) { - throw new Error('Invalid credential attestation/anchor'); + if ( + _.isEmpty(_.get(this.proof, "anchor.subject.label")) || + _.isEmpty(_.get(this.proof, "anchor.subject.data")) + ) { + throw new Error("Invalid credential attestation/anchor"); } if (!this.verifyAnchorSignature()) { - throw new Error('Invalid credential attestation/anchor signature'); + throw new Error("Invalid credential attestation/anchor signature"); } if (!requestorId || !requestId || !(keyName || pvtKey)) { - throw new Error('Missing required parameter: requestorId, requestId or key'); + throw new Error( + "Missing required parameter: requestorId, requestId or key", + ); } // eslint-disable-next-line max-len const stringToHash = `${this.proof.anchor.subject.label}${this.proof.anchor.subject.data}${requestorId}${requestId}`; @@ -644,7 +761,9 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje let signKey = keyName; if (pvtKey) { if (!_.isFunction(cryptoManager.installKey)) { - throw new Error('You provide a `pvtKey` but the CryptoManager does not support it, use a `keyName` instead.'); + throw new Error( + "You provide a `pvtKey` but the CryptoManager does not support it, use a `keyName` instead.", + ); } signKey = `TEMP_KEY_NAME_${new Date().getTime()}`; cryptoManager.installKey(signKey, pvtKey); @@ -660,14 +779,14 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje */ this.toJSON = () => { const obj = _.pick(this, [ - 'id', - 'identifier', - 'issuer', - 'issuanceDate', - 'expirationDate', - 'type', - 'credentialSubject', - 'proof', + "id", + "identifier", + "issuer", + "issuanceDate", + "expirationDate", + "type", + "credentialSubject", + "proof", ]); // Remove undefined/null values @@ -679,8 +798,8 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje } return { - '@context': [ - 'https://www.w3.org/2018/credentials/v1', + "@context": [ + "https://www.w3.org/2018/credentials/v1", `https://www.identity.com/credentials/v${version}`, ], ...obj, @@ -691,7 +810,8 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje * @param {} requestId * @param {} [keyName] */ - this.verifyGrant = (requesterId, requestId, keyName) => requesterGrantVerify(this, requesterId, requestId, keyName); + this.verifyGrant = (requesterId, requestId, keyName) => + requesterGrantVerify(this, requesterId, requestId, keyName); return this; } @@ -700,12 +820,12 @@ function VerifiableCredentialBaseConstructor(identifier, issuer, expiryIn, subje * CREDENTIAL_META_FIELDS - Array with meta fields of a credential */ const CREDENTIAL_META_FIELDS = [ - 'id', - 'identifier', - 'issuer', - 'issuanceDate', - 'expirationDate', - 'type', + "id", + "identifier", + "issuer", + "issuanceDate", + "expirationDate", + "type", ]; /** @@ -728,12 +848,14 @@ function transformMetaConstraint(constraintsMeta) { const constraint = constraintsMeta.meta[constraintKey]; const siftConstraint = {}; // handle special field constraints.meta.credential - if (constraintKey === 'credential') { + if (constraintKey === "credential") { siftConstraint.identifier = constraint; } else if (constraint.is) { siftConstraint[constraintKey] = constraint.is; } else { - throw new Error(`Malformed meta constraint "${constraintKey}": missing the IS`); + throw new Error( + `Malformed meta constraint "${constraintKey}": missing the IS`, + ); } resultConstraints.push(siftConstraint); }); @@ -758,10 +880,12 @@ const isMatchCredentialMeta = (credentialMeta, constraintsMeta) => { if (_.isEmpty(siftCompatibleConstraints)) return false; - const credentialMetaMatchesConstraint = (constraint) => sift(constraint)([credentialMeta]); + const credentialMetaMatchesConstraint = (constraint) => + sift(constraint)([credentialMeta]); return siftCompatibleConstraints.reduce( - (matchesAllConstraints, nextConstraint) => matchesAllConstraints && credentialMetaMatchesConstraint(nextConstraint), + (matchesAllConstraints, nextConstraint) => + matchesAllConstraints && credentialMetaMatchesConstraint(nextConstraint), true, ); }; @@ -770,9 +894,11 @@ VerifiableCredentialBaseConstructor.setResolver = (resolver) => { didUtil.setResolver(resolver); }; -VerifiableCredentialBaseConstructor.CREDENTIAL_META_FIELDS = CREDENTIAL_META_FIELDS; +VerifiableCredentialBaseConstructor.CREDENTIAL_META_FIELDS = + CREDENTIAL_META_FIELDS; VerifiableCredentialBaseConstructor.getCredentialMeta = getCredentialMeta; -VerifiableCredentialBaseConstructor.isMatchCredentialMeta = isMatchCredentialMeta; +VerifiableCredentialBaseConstructor.isMatchCredentialMeta = + isMatchCredentialMeta; /** * Creates a Verifiable Credential @@ -805,13 +931,16 @@ VerifiableCredentialBaseConstructor.create = async ( await schemaLoader.loadSchemaFromTitle(identifier); // Load the meta schema's from a source - await schemaLoader.loadSchemaFromTitle('cvc:Meta:issuer'); - await schemaLoader.loadSchemaFromTitle('cvc:Meta:issuanceDate'); - await schemaLoader.loadSchemaFromTitle('cvc:Meta:expirationDate'); - await schemaLoader.loadSchemaFromTitle('cvc:Random:node'); + await schemaLoader.loadSchemaFromTitle("cvc:Meta:issuer"); + await schemaLoader.loadSchemaFromTitle("cvc:Meta:issuanceDate"); + await schemaLoader.loadSchemaFromTitle("cvc:Meta:expirationDate"); + await schemaLoader.loadSchemaFromTitle("cvc:Random:node"); if (signerOptions) { - const canSignForIssuer = await didUtil.canSign(issuerDid, signerOptions.verificationMethod); + const canSignForIssuer = await didUtil.canSign( + issuerDid, + signerOptions.verificationMethod, + ); if (!canSignForIssuer) { throw new Error( `The verificationMethod ${signerOptions.verificationMethod} is not allowed to sign for ${issuerDid}`, @@ -822,7 +951,15 @@ VerifiableCredentialBaseConstructor.create = async ( signerOptions.signer = await signerVerifier.signer(signerOptions); } - const vc = new VerifiableCredentialBaseConstructor(identifier, issuerDid, expiryIn, subject, ucas, evidence, signerOptions); + const vc = new VerifiableCredentialBaseConstructor( + identifier, + issuerDid, + expiryIn, + subject, + ucas, + evidence, + signerOptions, + ); if (validate) { await schemaLoader.validateSchema(identifier, vc.toJSON()); @@ -836,11 +973,17 @@ VerifiableCredentialBaseConstructor.create = async ( * @param {*} verifiableCredentialJSON * @returns VerifiableCredentialBaseConstructor */ -VerifiableCredentialBaseConstructor.fromJSON = async (verifiableCredentialJSON, partialPresentation = false) => { +VerifiableCredentialBaseConstructor.fromJSON = async ( + verifiableCredentialJSON, + partialPresentation = false, +) => { await schemaLoader.loadSchemaFromTitle(verifiableCredentialJSON.identifier); if (!partialPresentation) { - await schemaLoader.validateSchema(verifiableCredentialJSON.identifier, verifiableCredentialJSON); + await schemaLoader.validateSchema( + verifiableCredentialJSON.identifier, + verifiableCredentialJSON, + ); } const newObj = await VerifiableCredentialBaseConstructor.create( @@ -853,7 +996,9 @@ VerifiableCredentialBaseConstructor.fromJSON = async (verifiableCredentialJSON, newObj.expirationDate = _.clone(verifiableCredentialJSON.expirationDate); newObj.identifier = _.clone(verifiableCredentialJSON.identifier); newObj.type = _.cloneDeep(verifiableCredentialJSON.type); - newObj.credentialSubject = _.cloneDeep(verifiableCredentialJSON.credentialSubject); + newObj.credentialSubject = _.cloneDeep( + verifiableCredentialJSON.credentialSubject, + ); newObj.proof = _.cloneDeep(verifiableCredentialJSON.proof); return newObj; @@ -867,21 +1012,27 @@ VerifiableCredentialBaseConstructor.getAllProperties = async (identifier) => { const vcDefinition = _.find(definitions, { identifier }); if (vcDefinition) { - const allProperties = await vcDefinition.depends.reduce(async (prev, definition) => { - const prevProps = await prev; - const claimProps = await Claim.getAllProperties(definition); + const allProperties = await vcDefinition.depends.reduce( + async (prev, definition) => { + const prevProps = await prev; + const claimProps = await Claim.getAllProperties(definition); - return [...prevProps, ...claimProps]; - }, Promise.resolve([])); + return [...prevProps, ...claimProps]; + }, + Promise.resolve([]), + ); let excludesProperties = []; if (vcDefinition.excludes) { - excludesProperties = await vcDefinition.excludes.reduce(async (prev, definition) => { - const prevProps = await prev; - const claimProps = await Claim.getAllProperties(definition); + excludesProperties = await vcDefinition.excludes.reduce( + async (prev, definition) => { + const prevProps = await prev; + const claimProps = await Claim.getAllProperties(definition); - return [...prevProps, ...claimProps]; - }, Promise.resolve([])); + return [...prevProps, ...claimProps]; + }, + Promise.resolve([]), + ); } return _.difference(allProperties, excludesProperties); @@ -890,8 +1041,10 @@ VerifiableCredentialBaseConstructor.getAllProperties = async (identifier) => { }; VerifiableCredentialBaseConstructor.VERIFY_LEVELS = VERIFY_LEVELS; -VerifiableCredentialBaseConstructor.nonCryptographicallySecureVerify = nonCryptographicallySecureVerify; -VerifiableCredentialBaseConstructor.cryptographicallySecureVerify = cryptographicallySecureVerify; +VerifiableCredentialBaseConstructor.nonCryptographicallySecureVerify = + nonCryptographicallySecureVerify; +VerifiableCredentialBaseConstructor.cryptographicallySecureVerify = + cryptographicallySecureVerify; VerifiableCredentialBaseConstructor.requesterGrantVerify = requesterGrantVerify; module.exports = VerifiableCredentialBaseConstructor; diff --git a/src/creds/__mocks__/definitions.js b/src/creds/__mocks__/definitions.js index 076127a2..93071dc2 100644 --- a/src/creds/__mocks__/definitions.js +++ b/src/creds/__mocks__/definitions.js @@ -1,30 +1,19 @@ const definitions = [ { - identifier: 'civ:Credential:SimpleIdentity', - version: '1', - depends: [ - 'civ:Identity:name', - 'civ:Identity:DateOfBirth', - ], + identifier: "civ:Credential:SimpleIdentity", + version: "1", + depends: ["civ:Identity:name", "civ:Identity:DateOfBirth"], }, { - identifier: 'civ:Credential:SimpleTest', - version: '1', - depends: [ - 'civ:Identity:name', - 'civ:Identity:DateOfBirth', - ], + identifier: "civ:Credential:SimpleTest", + version: "1", + depends: ["civ:Identity:name", "civ:Identity:DateOfBirth"], }, { - identifier: 'civ:Credential:TestWithExcludes', - version: '1', - depends: [ - 'civ:Identity:name', - 'civ:Identity:DateOfBirth', - ], - excludes: [ - 'civ:Identity:name.middle', - ], + identifier: "civ:Credential:TestWithExcludes", + version: "1", + depends: ["civ:Identity:name", "civ:Identity:DateOfBirth"], + excludes: ["civ:Identity:name.middle"], }, ]; diff --git a/src/errors/definitions.js b/src/errors/definitions.js index f802d1b7..b3e48dad 100644 --- a/src/errors/definitions.js +++ b/src/errors/definitions.js @@ -4,274 +4,280 @@ * @enum { string } */ const ErrorCodes = { - // IDV // Manual Review Tool /** * Reason: Manual Review detected that the provided document is invalid. * Troubleshooting: Make sure the provided document is a valid one. */ - ERROR_IDV_MRT_INVALID_DOC: 'error.idv.mrt.invalid.doc', + ERROR_IDV_MRT_INVALID_DOC: "error.idv.mrt.invalid.doc", /** * Reason: Manual Review detected that the provided document is unsupported. * Troubleshooting: Make sure the provided document is a valid one. */ - ERROR_IDV_MRT_UNSUPPORTED_DOC: 'error.idv.mrt.unsupported.doc', + ERROR_IDV_MRT_UNSUPPORTED_DOC: "error.idv.mrt.unsupported.doc", /** * Reason: Manual Review detected that the provided utility is invalid. * Troubleshooting: Make sure the provided utility is a valid one. */ - ERROR_IDV_MRT_INVALID_UTILITY: 'error.idv.mrt.invalid.utility', + ERROR_IDV_MRT_INVALID_UTILITY: "error.idv.mrt.invalid.utility", /** * Reason: Manual Review detected that the provided document scan has a low quality resolution. * Troubleshooting: Make sure the provided document scan has a good resolution. */ - ERROR_IDV_MRT_QUALITY: 'error.idv.mrt.quality', + ERROR_IDV_MRT_QUALITY: "error.idv.mrt.quality", /** * Reason: Manual Review detected that the provided document is expired. * Troubleshooting: Make sure the provided document has a valid date of expiry. */ - ERROR_IDV_MRT_EXPIRED: 'error.idv.mrt.expired', + ERROR_IDV_MRT_EXPIRED: "error.idv.mrt.expired", /** * Reason: Manual Review detected that the provided document and photo don't have facial similiarity * Troubleshooting: Make sure the provided document and photo have a good face similarity. */ - ERROR_IDV_MRT_MISMATCH: 'error.idv.mrt.mismatch', + ERROR_IDV_MRT_MISMATCH: "error.idv.mrt.mismatch", /** * Reason: Manual Review detected that the requirements fail. * Troubleshooting: Make sure the provided document do fit the requirements. */ - ERROR_IDV_MRT_REQUIREMENTS_FAIL: 'error.idv.mrt.requirements.fail', + ERROR_IDV_MRT_REQUIREMENTS_FAIL: "error.idv.mrt.requirements.fail", // Validation /** * Reason: The IDV detected that the provided document is invalid. * Troubleshooting: Make sure the provided document is a valid one. */ - ERROR_IDV_VALIDATION_INVALID_DOC: 'error.idv.validation.invalid.doc', + ERROR_IDV_VALIDATION_INVALID_DOC: "error.idv.validation.invalid.doc", /** * Reason: The IDV detected that the provided phone is invalid. * Troubleshooting: Make sure the provided phone is a valid one. */ - ERROR_IDV_VALIDATION_INVALID_PHONE: 'error.idv.validation.invalid.phone', + ERROR_IDV_VALIDATION_INVALID_PHONE: "error.idv.validation.invalid.phone", /** * Reason: The IDV detected that the provided email is invalid. * Troubleshooting: Make sure the provided email is a valid one. */ - ERROR_IDV_VALIDATION_INVALID_EMAIL: 'error.idv.validation.invalid.email', + ERROR_IDV_VALIDATION_INVALID_EMAIL: "error.idv.validation.invalid.email", /** * Reason: The IDV detected that the provided document is unsupported. * Troubleshooting: Make sure the provided document is a valid one. */ - ERROR_IDV_VALIDATION_UNSUPPORTED_DOC: 'error.idv.validation.unsupported.doc', + ERROR_IDV_VALIDATION_UNSUPPORTED_DOC: "error.idv.validation.unsupported.doc", /** * Reason: The IDV detected that the provided utility is invalid. * Troubleshooting: Make sure the provided utility is a valid one. */ - ERROR_IDV_VALIDATION_INVALID_UTILITY: 'error.idv.validation.invalid.utility', + ERROR_IDV_VALIDATION_INVALID_UTILITY: "error.idv.validation.invalid.utility", /** * Reason: The IDV detected that the provided document scan has a low quality resolution. * Troubleshooting: Make sure the provided document scan has a good resolution. */ - ERROR_IDV_VALIDATION_QUALITY: 'error.idv.validation.quality', + ERROR_IDV_VALIDATION_QUALITY: "error.idv.validation.quality", /** * Reason: The IDV detected that the provided document is expired. * Troubleshooting: Make sure the provided document has a valid date of expiry. */ - ERROR_IDV_VALIDATION_EXPIRED: 'error.idv.validation.expired', + ERROR_IDV_VALIDATION_EXPIRED: "error.idv.validation.expired", /** * Reason: The IDV detected that the provided document and photo don't have facial similiarity * Troubleshooting: Make sure the provided document and photo have a good face similarity. */ - ERROR_IDV_VALIDATION_MISMATCH: 'error.idv.validation.mismatch', + ERROR_IDV_VALIDATION_MISMATCH: "error.idv.validation.mismatch", /** * Reason: The IDV detected that the provided document does not contain the user name. * Troubleshooting: Make sure the provided document contains the user name. */ - ERROR_IDV_VALIDATION_MISSING_NAME: 'error.idv.validation.missing.name', + ERROR_IDV_VALIDATION_MISSING_NAME: "error.idv.validation.missing.name", /** * Reason: The IDV detected that the provided document does not contain the user date of birth. * Troubleshooting: Make sure the provided document contains the user date of birth. */ - ERROR_IDV_VALIDATION_MISSING_DOB: 'error.idv.validation.missing.dob', + ERROR_IDV_VALIDATION_MISSING_DOB: "error.idv.validation.missing.dob", /** * Reason: The IDV detected that the provided document does not contain the issuing country. * Troubleshooting: Make sure the provided document contains the issuing country. */ - ERROR_IDV_VALIDATION_MISSING_COUNTRY: 'error.idv.validation.missing.country', + ERROR_IDV_VALIDATION_MISSING_COUNTRY: "error.idv.validation.missing.country", /** * Reason: The IDV detected that the provided document does not contain a valid document type. * Troubleshooting: Make sure the provided document contains a valid document type. */ - ERROR_IDV_VALIDATION_MISSING_DOC_TYPE: 'error.idv.validation.missing.doc.type', + ERROR_IDV_VALIDATION_MISSING_DOC_TYPE: + "error.idv.validation.missing.doc.type", /** * Reason: The IDV detected that the requirements fail. * Troubleshooting: Make sure the provided document do fit the requirements. */ - ERROR_IDV_VALIDATION_REQUIREMENTS_FAIL: 'error.idv.validation.requirements.fail', + ERROR_IDV_VALIDATION_REQUIREMENTS_FAIL: + "error.idv.validation.requirements.fail", /** * Reason: The data provided by the user is not the same as the one that the IDV got from the document * Troubleshooting: Make sure the provided data is equal to the data in the document. */ - ERROR_IDV_VALIDATION_UCA_VALUE_MISMATCH: 'error.idv.validation.uca.value.mismatch', + ERROR_IDV_VALIDATION_UCA_VALUE_MISMATCH: + "error.idv.validation.uca.value.mismatch", /** * Reason: Missing required property when sending UCAs * Troubleshooting: Make sure the provided UCA has all the required properties filled. * Look at the UCA definition to make sure you provided all the values. */ - ERROR_IDV_UCA_MISSING_PROPERTY: 'error.idv.uca.missing.property', + ERROR_IDV_UCA_MISSING_PROPERTY: "error.idv.uca.missing.property", /** * Reason: UCA has no more retries remaining * Troubleshooting: The maximum number of retries has reached. * You must request a new credentialRequest and start over again */ - ERROR_IDV_UCA_NO_RETRIES: 'error.idv.uca.no.retries', + ERROR_IDV_UCA_NO_RETRIES: "error.idv.uca.no.retries", /** * Reason: The process is in a final status "FAILED","COMPLETED" * Troubleshooting: if you got a FINAL state error, * you must request a new credentialRequest and start over again */ - ERROR_IDV_PROCESS_HAS_FINAL_STATUS: 'error.idv.process.has.final.status', + ERROR_IDV_PROCESS_HAS_FINAL_STATUS: "error.idv.process.has.final.status", /** * Reason: The UCA is in a final status * Troubleshooting: Make sure to change the state of a UCA that is not in the final status. * you must request a new credentialRequest and start over again */ - ERROR_IDV_UCA_HAS_FINAL_STATUS: 'error.idv.uca.has.final.status', + ERROR_IDV_UCA_HAS_FINAL_STATUS: "error.idv.uca.has.final.status", /** * Reason: A UCA of the batch is in a final status * Troubleshooting: Make sure to change the state of a UCA that is not in the final status. */ - ERROR_IDV_UCA_BATCH_HAS_FINAL_STATUS: 'error.idv.uca.batch.has.final.status', + ERROR_IDV_UCA_BATCH_HAS_FINAL_STATUS: "error.idv.uca.batch.has.final.status", /** * Reason: The credentialItem is not valid/unknown to the IDV * Troubleshooting: Make sure to provide the valid identifier of a credentialItem by checking the plan */ - ERROR_IDV_CR_INVALID_CREDENTIAL_ITEM: 'error.idv.cr.invalid.credentialItem', + ERROR_IDV_CR_INVALID_CREDENTIAL_ITEM: "error.idv.cr.invalid.credentialItem", /** * Reason: The signature could not be verified * Troubleshooting: Try to sign again a credential */ - ERROR_IDV_CREDENTIAL_INVALID_SIGNATURE: 'error.idv.credential.invalid.signature', + ERROR_IDV_CREDENTIAL_INVALID_SIGNATURE: + "error.idv.credential.invalid.signature", /** * Reason: Could not anchor the credential, * possibly caused by errors while connecting to an external provider * Troubleshooting: Try again later */ - ERROR_IDV_CREDENTIAL_FAILED_ANCHORING: 'error.idv.credential.failed.anchoring', + ERROR_IDV_CREDENTIAL_FAILED_ANCHORING: + "error.idv.credential.failed.anchoring", /** * Reason: The credential has already been signed. * Troubleshooting: The credential is already signed. You must not sign it again */ - ERROR_IDV_CR_ALREADY_SIGNED: 'error.idv.cr.already.signed', + ERROR_IDV_CR_ALREADY_SIGNED: "error.idv.cr.already.signed", /** * Reason: The payload is missing a required property * Troubleshooting: Make sure the payload of a credential contains all the required properties. * In the error values will be suplied the missing properties */ - ERROR_IDV_CR_MISSING_PROPERTY: 'error.idv.cr.missing.property', + ERROR_IDV_CR_MISSING_PROPERTY: "error.idv.cr.missing.property", /** * Reason: One of the external services required for phone number validation could not be reached (Authy, Twilio ) * Troubleshooting: Try again later */ - ERROR_IDV_UCA_SERVER: 'error.idv.uca.server', + ERROR_IDV_UCA_SERVER: "error.idv.uca.server", /** * Reason: thrown if there are no UCAs in the process or if the UCA specified in the event is missing * Troubleshooting: Make sure to provide the missing specified UCA */ - ERROR_IDV_MISSING_UCA: 'error.idv.missing.uca', + ERROR_IDV_MISSING_UCA: "error.idv.missing.uca", /** * Reason: UCA is in a wrong version * Troubleshooting: Make sure you're providing the UCA in the version declared on the plan */ - ERROR_IDV_UCA_WRONG_VERSION: 'error.idv.uca.wrong.version', + ERROR_IDV_UCA_WRONG_VERSION: "error.idv.uca.wrong.version", /** * Reason: Could not find a validation plan for credential item * Troubleshooting: Check if you're providing the right validation plan * and credential item */ - ERROR_IDV_MISSING_PLAN: 'error.idv.missing.plan', + ERROR_IDV_MISSING_PLAN: "error.idv.missing.plan", /** * Reason: Could not find process with the provided ID * Troubleshooting: Check if you're providing the right process id */ - ERROR_IDV_MISSING_PROCESS: 'error.idv.missing.process', + ERROR_IDV_MISSING_PROCESS: "error.idv.missing.process", /** * Reason: The value specified for a UCA isn't good for the UCA type * Troubleshooting: Check the provided UCA value */ - ERROR_IDV_UCA_BAD_VALUE: 'error.idv.uca.bad.value', + ERROR_IDV_UCA_BAD_VALUE: "error.idv.uca.bad.value", /** * Reason: The UCA doesn't have a status in the data store * Troubleshooting: Try again */ - ERROR_IDV_UCA_UPDATE_NO_STATUS: 'error.idv.uca.update.no.status', + ERROR_IDV_UCA_UPDATE_NO_STATUS: "error.idv.uca.update.no.status", /** * Reason: Unable to determine if the UCA can be updated, because the process it belongs to has no status * Troubleshooting: Try again */ - ERROR_IDV_UCA_UPDATE_NO_PROCESS_STATUS: 'error.idv.uca.update.no.process.status', + ERROR_IDV_UCA_UPDATE_NO_PROCESS_STATUS: + "error.idv.uca.update.no.process.status", /** * Reason: A token is received before one is issued * Troubleshooting: Try again */ - ERROR_IDV_TOKEN_RECEIVED_BEFORE_ISSUE: 'error.idv.token.received.before.issue', + ERROR_IDV_TOKEN_RECEIVED_BEFORE_ISSUE: + "error.idv.token.received.before.issue", /** * Reason: Unable to send the token * Troubleshooting: Try again */ - ERROR_IDV_TOKEN_SENDING_FAILED: 'error.idv.token.sending.failed', + ERROR_IDV_TOKEN_SENDING_FAILED: "error.idv.token.sending.failed", /** * Reason: The provided token is expired * Troubleshooting: Request a new token */ - ERROR_IDV_TOKEN_EXPIRED: 'error.idv.token.expired', + ERROR_IDV_TOKEN_EXPIRED: "error.idv.token.expired", /** * Reason: The provided token does not match the generated one * Troubleshooting: Make sure to provide the received token */ - ERROR_IDV_TOKEN_MISMATCH: 'error.idv.token.mismatch', + ERROR_IDV_TOKEN_MISMATCH: "error.idv.token.mismatch", // CW ERRORS @@ -279,71 +285,71 @@ const ErrorCodes = { * Reason: Thrown when CredentialWallet.validateDsr or CredentialWallet.fetch when a DSR is empty or invalid * Troubleshooting: Check if the DSR provided is correct and it's not empty */ - ERROR_CW_DSR_INVALID_SCOPE_REQUEST: 'error.dsr.invalid.scope.request', + ERROR_CW_DSR_INVALID_SCOPE_REQUEST: "error.dsr.invalid.scope.request", /** * Reason: IDV has returned 'Bad request' anwser * Troubleshooting: Check if the value of your UCA is correct or your request params */ - ERROR_CW_IDV_INVALID_REQUEST: 'error.cw.idv.request.failed.generic.4XX', + ERROR_CW_IDV_INVALID_REQUEST: "error.cw.idv.request.failed.generic.4XX", /** * Reason: IDV has returned unexpected error * Troubleshooting: Check the attached message */ - ERROR_CW_IDV_ERROR: 'error.cw.idv.server.failed.generic.5XX', + ERROR_CW_IDV_ERROR: "error.cw.idv.server.failed.generic.5XX", /** * Reason: CW has returned unexpected error * Troubleshooting: Check the attached message */ - ERROR_CW_GENERIC: 'error.generic', + ERROR_CW_GENERIC: "error.generic", /** * Reason: DSR is missing 'eventURL' attribute * Troubleshooting: Provide 'eventURL' attribute */ - ERROR_CW_DSR_RESPONSE_MISSING_EVENT_URL: 'error.dsr.missing.event.url', + ERROR_CW_DSR_RESPONSE_MISSING_EVENT_URL: "error.dsr.missing.event.url", /** * Reason: eventType value is not a valid one * Troubleshooting: Make sure you are providing one of the values: * CANCELLED, VERIFYING', COMPLETED, */ - ERROR_CW_DSR_RESPONSE_INVALID_EVENT_TYPE: 'error.dsr.invalid.event.type', + ERROR_CW_DSR_RESPONSE_INVALID_EVENT_TYPE: "error.dsr.invalid.event.type", /** * Reason: No clientID found while calling LegacyService.getUploadDetails * Troubleshooting: Make sure LegacyService.legacyDeviceRegistration is being called. */ - ERROR_CW_CLIENT_ID_NOT_FOUND: 'client.id.not.found', + ERROR_CW_CLIENT_ID_NOT_FOUND: "client.id.not.found", /** * Reason: No certificate found for UCA while calling LegacyService.getCertificatesFor * Troubleshooting: Make sure there is a certificate saved on localStorage, key 'StorageScope.CERTIFICATE', * for the related UCA. */ - ERROR_CW_CERTIFICATE_NOT_FOUND: 'error.certificate.not.found', + ERROR_CW_CERTIFICATE_NOT_FOUND: "error.certificate.not.found", /** * Reason: Unparsable certificate for UCA while calling getCertificatesFor * Troubleshooting: Make sure there is a valid certificate saved on localStorage, key 'StorageScope.CERTIFICATE', * for the related UCA. */ - ERROR_CW_CERTIFICATE_UNPARSABLE: 'error.certificate.unparsable', + ERROR_CW_CERTIFICATE_UNPARSABLE: "error.certificate.unparsable", /** * Reason: Invalid operator when tried to 'constructHumanReadableForm'. * Troubleshooting: Make sure the operator is one of the listed ones here: * @see HumanReadableForm.convertSiftOperator */ - ERROR_CW_WRONG_QUERY_OPERATOR_SCOPE_REQUEST: 'error.dsr.wrong.sift.operator', + ERROR_CW_WRONG_QUERY_OPERATOR_SCOPE_REQUEST: "error.dsr.wrong.sift.operator", /** * Reason: Could not verify credential during build dsr response. * Troubleshooting: Unexpected error during verifying credential. Check logs and try again. */ - ERROR_CW_VERIFY_CREDENTIAL: 'error.verify.credential', + ERROR_CW_VERIFY_CREDENTIAL: "error.verify.credential", /** * Reason: Legacy UCA identifier is not valid. @@ -354,7 +360,7 @@ const ErrorCodes = { * 'credential-cvc:Address-v1' * 'credential-cvc:Identity-v1' */ - ERROR_CW_WRONG_UCA_IDENTIFIER: 'error.wrong.uca.identifier', + ERROR_CW_WRONG_UCA_IDENTIFIER: "error.wrong.uca.identifier", /** * Reason: Legacy Verifiable Credential identifier is not valid. @@ -365,7 +371,7 @@ const ErrorCodes = { * 'credential-cvc:Address-v1' * 'credential-cvc:Identity-v1' */ - ERROR_CW_WRONG_VC_IDENTIFIER: 'error.wrong.credential.identifier', + ERROR_CW_WRONG_VC_IDENTIFIER: "error.wrong.credential.identifier", /** * Reason: Verifiable Credential Request was not found. @@ -374,7 +380,7 @@ const ErrorCodes = { * Make sure you want to use that implementation or the 'IdvApiService'. * You can toggle implementation by setting the flag: disableLegacy = true */ - ERROR_CW_VCR_NOT_FOUND: 'vcr.not.found', + ERROR_CW_VCR_NOT_FOUND: "vcr.not.found", /** * Reason: CredentialRequest is assigned with a wrong status. @@ -383,13 +389,13 @@ const ErrorCodes = { * Make sure you want to use that implementation or the 'IdvApiService'. * You can toggle implementation by setting the flag: disableLegacy = true */ - ERROR_CW_VCR_INVALID_STATE: 'vcr.invalid.state', + ERROR_CW_VCR_INVALID_STATE: "vcr.invalid.state", /** * Reason: Could not retrieve Credential from a Credential Request. * Troubleshooting: Make sure the Credential Request is ready to check its status */ - ERROR_CW_VCR_INVALID_CREDENTIAL: 'vcr.invalid.credential', + ERROR_CW_VCR_INVALID_CREDENTIAL: "vcr.invalid.credential", /** * Reason: Provided Credential Request is invalid. @@ -399,31 +405,31 @@ const ErrorCodes = { * - Has a 'credentialItem' attribute * - 'credentialItem' attribute has an 'identifier' */ - ERROR_CW_VCR_INVALID_REQUEST: 'vcr.invalid.request', + ERROR_CW_VCR_INVALID_REQUEST: "vcr.invalid.request", /** * Reason: idvService.patchSubjectCredentialRequest has returned null Credential Request * Troubleshooting: Make sure the provided subject is correct */ - ERROR_CW_VCR_ERROR_PATCH_SIGNED_SUBJECT: 'vcr.error.patch.signed.subject', + ERROR_CW_VCR_ERROR_PATCH_SIGNED_SUBJECT: "vcr.error.patch.signed.subject", /** * Reason: Could not ensure DID extenal key during 'resolveMissingCredentials' * Troubleshooting: Check the attached error */ - ERROR_CW_KEY_MANAGER_CANT_ENSURE_KEY: 'key.manager.cant.ensure.key', + ERROR_CW_KEY_MANAGER_CANT_ENSURE_KEY: "key.manager.cant.ensure.key", /** * Reason: Unexpected error during communication with CW backend * Troubleshooting: Check the attached error */ - ERROR_CW_NETWORK_GENERIC: 'error.network.generic', + ERROR_CW_NETWORK_GENERIC: "error.network.generic", /** * Reason: Unexpected error during communication with any endpoint that should be retried * Troubleshooting: Retry the network call again */ - ERROR_RETRYABLE_NETWORK_ERROR: 'error.retryable.network', + ERROR_RETRYABLE_NETWORK_ERROR: "error.retryable.network", }; /** @@ -432,16 +438,16 @@ const ErrorCodes = { * @enum { string } */ const ErrorContextTypes = { - MISSING_PROPERTY: 'missing_property', - UCA_STATE: 'uca_state', - UCA_VALUE: 'uca_value', - UCA_VERSION: 'uca_version', - PLAN_UCA_VERSION: 'plan_uca_version', - PROCESS_ID: 'process_id', - UCA_NAME: 'uca_name', - UCA_ID: 'uca_id', - CREDENTIAL_ITEM: 'credential_item', - UCA_ERROR: 'uca_error', + MISSING_PROPERTY: "missing_property", + UCA_STATE: "uca_state", + UCA_VALUE: "uca_value", + UCA_VERSION: "uca_version", + PLAN_UCA_VERSION: "plan_uca_version", + PROCESS_ID: "process_id", + UCA_NAME: "uca_name", + UCA_ID: "uca_id", + CREDENTIAL_ITEM: "credential_item", + UCA_ERROR: "uca_error", }; module.exports = { diff --git a/src/errors/idvErrors.js b/src/errors/idvErrors.js index 88f990cb..219f1581 100644 --- a/src/errors/idvErrors.js +++ b/src/errors/idvErrors.js @@ -1,22 +1,22 @@ -const _ = require('lodash'); -const { ErrorCodes, ErrorContextTypes } = require('./definitions'); +const _ = require("lodash"); +const { ErrorCodes, ErrorContextTypes } = require("./definitions"); // These codes are passed in the 'name' value of the error object when the IDV-toolkit // throws an error // @deprecated - left here for retrofit, use ErrorConstants instead for future versions -const IDVErrorCodes = _.pickBy(ErrorCodes, (v, k) => (k.startsWith('ERROR_IDV'))); +const IDVErrorCodes = _.pickBy(ErrorCodes, (v, k) => k.startsWith("ERROR_IDV")); /* -* IDVError parses a HTTP Error response body from the IDV-toolkit -* Usage: the IDVError can be instantiated directly from the HTTPResponse body e.g. -* const idvError = new IDVError(response.body); -* @param errorObj: parsed directly from the HTTP Response body which should contain -* message: human readable explanation of the error e.g. 'Missing required UCA fields' -* name: Error-Code, defined in IDVErrorCodes, e.g. IDVErrorCodes.ERROR_IDV_UCA_MISSING_PROPERTY -* data: an array of objects with { name: "name", value: "value" } properties e.g. -* [{ name: ErrorContextType.MISSING_PROPERTY, value: missingProperty }] -* @returns an instance of IDVError -* */ + * IDVError parses a HTTP Error response body from the IDV-toolkit + * Usage: the IDVError can be instantiated directly from the HTTPResponse body e.g. + * const idvError = new IDVError(response.body); + * @param errorObj: parsed directly from the HTTP Response body which should contain + * message: human readable explanation of the error e.g. 'Missing required UCA fields' + * name: Error-Code, defined in IDVErrorCodes, e.g. IDVErrorCodes.ERROR_IDV_UCA_MISSING_PROPERTY + * data: an array of objects with { name: "name", value: "value" } properties e.g. + * [{ name: ErrorContextType.MISSING_PROPERTY, value: missingProperty }] + * @returns an instance of IDVError + * */ class IDVError { constructor(errorObj) { this.message = errorObj.message; diff --git a/src/errors/index.js b/src/errors/index.js index 463af371..b7da6dde 100644 --- a/src/errors/index.js +++ b/src/errors/index.js @@ -1,5 +1,5 @@ -const idvErrors = require('./idvErrors'); -const { ErrorCodes, ErrorContextTypes } = require('./definitions'); +const idvErrors = require("./idvErrors"); +const { ErrorCodes, ErrorContextTypes } = require("./definitions"); module.exports = { ErrorCodes, diff --git a/src/index.js b/src/index.js index 4879c7e5..00ceb2a7 100644 --- a/src/index.js +++ b/src/index.js @@ -1,16 +1,16 @@ -const { Claim } = require('./claim/Claim'); -const { UserCollectableAttribute } = require('./uca/UCA'); -const VC = require('./creds/VerifiableCredential'); -const { initServices, services } = require('./services/index'); -const isValidGlobalIdentifier = require('./isValidGlobalIdentifier'); -const isClaimRelated = require('./isClaimRelated'); -const errors = require('./errors'); -const constants = require('./constants'); -const claimDefinitions = require('./claim/definitions'); -const credentialDefinitions = require('./creds/definitions'); -const aggregate = require('./AggregationHandler'); -const { schemaLoader } = require('./schemas/jsonSchema'); -const CVCSchemaLoader = require('./schemas/jsonSchema/loaders/cvc'); +const { Claim } = require("./claim/Claim"); +const { UserCollectableAttribute } = require("./uca/UCA"); +const VC = require("./creds/VerifiableCredential"); +const { initServices, services } = require("./services/index"); +const isValidGlobalIdentifier = require("./isValidGlobalIdentifier"); +const isClaimRelated = require("./isClaimRelated"); +const errors = require("./errors"); +const constants = require("./constants"); +const claimDefinitions = require("./claim/definitions"); +const credentialDefinitions = require("./creds/definitions"); +const aggregate = require("./AggregationHandler"); +const { schemaLoader } = require("./schemas/jsonSchema"); +const CVCSchemaLoader = require("./schemas/jsonSchema/loaders/cvc"); /** * Entry Point for Civic Credential Commons * @returns {CredentialCommons} diff --git a/src/isClaimRelated.js b/src/isClaimRelated.js index cd8582ca..cf3b1eef 100644 --- a/src/isClaimRelated.js +++ b/src/isClaimRelated.js @@ -1,7 +1,7 @@ -const _ = require('lodash'); -const { definitions, Claim } = require('./claim/Claim'); -const vcDefinitions = require('./creds/definitions'); -const { schemaLoader } = require('./schemas/jsonSchema'); +const _ = require("lodash"); +const { definitions, Claim } = require("./claim/Claim"); +const vcDefinitions = require("./creds/definitions"); +const { schemaLoader } = require("./schemas/jsonSchema"); /** * Validate an claim path against it's parent UserCollectableAttribute, and the parent Claim against the * dependencies of an Credential @@ -17,12 +17,17 @@ async function isClaimRelated(claim, uca, credential) { await schemaLoader.loadSchemaFromTitle(credential); // first get the UCA identifier - const ucaIdentifier = uca.substring(uca.indexOf('-') + 1, uca.lastIndexOf('-')); + const ucaIdentifier = uca.substring( + uca.indexOf("-") + 1, + uca.lastIndexOf("-"), + ); // Load the schema and it's references from a source to be used for validation and defining the schema definitions await schemaLoader.loadSchemaFromTitle(ucaIdentifier); // check on the credential commons if this identifier exists - const ucaDefinition = definitions.find((definition) => definition.identifier === ucaIdentifier); + const ucaDefinition = definitions.find( + (definition) => definition.identifier === ucaIdentifier, + ); // does the UCA exist? if (ucaDefinition) { const ucaProperties = await Claim.getAllProperties(ucaIdentifier); @@ -31,19 +36,19 @@ async function isClaimRelated(claim, uca, credential) { if (_.includes(ucaProperties, claim)) { // we now have the composite uca, the uca for the claim property, they both are correct // we need to check now the UCA is inside the dependencies of the credential refered as parent - const credentialDefinition = vcDefinitions.find((definition) => ( - definition.identifier === credential - )); + const credentialDefinition = vcDefinitions.find( + (definition) => definition.identifier === credential, + ); if (credentialDefinition) { return _.includes(credentialDefinition.depends, ucaIdentifier); } - throw new Error('Credential identifier does not exist'); + throw new Error("Credential identifier does not exist"); } else { - throw new Error('Claim property path does not exist on UCA definitions'); + throw new Error("Claim property path does not exist on UCA definitions"); } } else { // return error about wrong uca identifier - throw new Error('UCA identifier does not exist'); + throw new Error("UCA identifier does not exist"); } } diff --git a/src/isValidGlobalIdentifier.js b/src/isValidGlobalIdentifier.js index 0951afbf..5777d27e 100644 --- a/src/isValidGlobalIdentifier.js +++ b/src/isValidGlobalIdentifier.js @@ -1,33 +1,39 @@ -const _ = require('lodash'); -const { schemaLoader } = require('./schemas/jsonSchema'); +const _ = require("lodash"); +const { schemaLoader } = require("./schemas/jsonSchema"); const validUCAIdentifiers = schemaLoader.validIdentifiers; const validClaimIdentifiers = schemaLoader.validIdentifiers; const validVCIdentifiers = schemaLoader.validCredentialIdentifiers; -const validPrefixes = ['claim', 'credential']; +const validPrefixes = ["claim", "credential"]; async function isValidGlobalIdentifier(identifier) { // Load the schema and it's references from a source to be used for validation and defining the schema definitions await schemaLoader.loadSchemaFromTitle(identifier); - const splited = _.split(identifier, '-'); + const splited = _.split(identifier, "-"); if (splited.length !== 3) { - throw new Error('Malformed Global Identifier'); + throw new Error("Malformed Global Identifier"); } if (!_.includes(validPrefixes, splited[0])) { - throw new Error('Invalid Global Identifier Prefix'); + throw new Error("Invalid Global Identifier Prefix"); } switch (splited[0]) { - case 'claim': - if (!_.includes(validUCAIdentifiers, splited[1]) && !_.includes(validClaimIdentifiers, identifier)) { + case "claim": + if ( + !_.includes(validUCAIdentifiers, splited[1]) && + !_.includes(validClaimIdentifiers, identifier) + ) { throw new Error(`${identifier} is not valid`); } return true; - case 'credential': - if (!_.includes(validVCIdentifiers, splited[1]) && !_.includes(validVCIdentifiers, identifier)) { + case "credential": + if ( + !_.includes(validVCIdentifiers, splited[1]) && + !_.includes(validVCIdentifiers, identifier) + ) { throw new Error(`${identifier} is not valid`); } return true; diff --git a/src/lib/crypto.js b/src/lib/crypto.js index db5e7431..cba607ea 100644 --- a/src/lib/crypto.js +++ b/src/lib/crypto.js @@ -1,6 +1,7 @@ -const sjcl = require('sjcl'); +const sjcl = require("sjcl"); -const sha256 = (stringToHash) => sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(stringToHash)); +const sha256 = (stringToHash) => + sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(stringToHash)); module.exports = { sha256, diff --git a/src/lib/did.js b/src/lib/did.js index bcc38d52..d6394db9 100644 --- a/src/lib/did.js +++ b/src/lib/did.js @@ -1,15 +1,17 @@ const VERIFICATION_RELATIONSHIPS = new Set([ - 'assertionMethod', - 'authentication', - 'capabilityDelegation', - 'capabilityInvocation', - 'keyAgreement', + "assertionMethod", + "authentication", + "capabilityDelegation", + "capabilityInvocation", + "keyAgreement", ]); function methodById({ doc, methodId }) { // First, check the 'verificationMethod' bucket, see if it's listed there if (doc.verificationMethod) { - const result = doc.verificationMethod.find((method) => method.id === methodId); + const result = doc.verificationMethod.find( + (method) => method.id === methodId, + ); if (result) return result; } @@ -17,7 +19,9 @@ function methodById({ doc, methodId }) { const methods = doc[purpose] || []; // Iterate through each verification method in 'authentication', etc. // Only return it if the method is defined, not referenced - return methods.find((method) => typeof method === 'object' && method.id === methodId); + return methods.find( + (method) => typeof method === "object" && method.id === methodId, + ); }); } @@ -27,13 +31,13 @@ function methodById({ doc, methodId }) { * @param {object} options - Options hashmap. * @param {object} options.doc - DID Document. * -* */ + * */ function findVerificationMethod({ doc, methodId, purpose } = {}) { if (!doc) { - throw new TypeError('A DID Document is required.'); + throw new TypeError("A DID Document is required."); } if (!(methodId || purpose)) { - throw new TypeError('A method id or purpose is required.'); + throw new TypeError("A method id or purpose is required."); } if (methodId) { @@ -42,7 +46,7 @@ function findVerificationMethod({ doc, methodId, purpose } = {}) { // Id not given, find the first method by purpose const [method] = doc[purpose] || []; - if (method && typeof method === 'string') { + if (method && typeof method === "string") { // This is a reference, not the full method, attempt to find it return methodById({ doc, methodId: method }); } @@ -63,8 +67,10 @@ module.exports = { * @returns {Promise} True if the verification method can sign */ async canSign(didOrDocument, verificationMethod) { - const [verificationMethodDid] = verificationMethod.split('#'); - const document = didOrDocument.id ? didOrDocument : (await this.resolve(didOrDocument)); + const [verificationMethodDid] = verificationMethod.split("#"); + const document = didOrDocument.id + ? didOrDocument + : await this.resolve(didOrDocument); const did = document.id; @@ -80,7 +86,10 @@ module.exports = { // Check if the verificationMethod exists on the controller DID document const controllerDocument = await this.resolve(verificationMethodDid); - return this.findVerificationMethod(controllerDocument, verificationMethod) !== null; + return ( + this.findVerificationMethod(controllerDocument, verificationMethod) !== + null + ); }, /** @@ -100,7 +109,9 @@ module.exports = { */ findVerificationMethod(document, verificationMethod) { if (document.keyAgreement && document.keyAgreement.length > 0) { - return document.keyAgreement.find((agreement) => agreement.id === verificationMethod); + return document.keyAgreement.find( + (agreement) => agreement.id === verificationMethod, + ); } if (!document.capabilityInvocation.includes(verificationMethod)) { diff --git a/src/lib/signerVerifier.js b/src/lib/signerVerifier.js index 368cd83e..2af07d77 100644 --- a/src/lib/signerVerifier.js +++ b/src/lib/signerVerifier.js @@ -1,7 +1,7 @@ // eslint-disable-next-line max-classes-per-file -const nacl = require('tweetnacl'); -const bs58 = require('bs58'); -const didUtil = require('./did'); +const nacl = require("tweetnacl"); +const bs58 = require("bs58"); +const didUtil = require("./did"); class Ed25519Signer { constructor(key, verificationMethod) { @@ -10,8 +10,11 @@ class Ed25519Signer { } sign(proof) { - const signed = nacl.sign.detached(Buffer.from(proof.merkleRoot, 'hex'), bs58.decode(this.key)); - const signature = Buffer.from(signed).toString('hex'); + const signed = nacl.sign.detached( + Buffer.from(proof.merkleRoot, "hex"), + bs58.decode(this.key), + ); + const signature = Buffer.from(signed).toString("hex"); return { signature, @@ -26,7 +29,7 @@ class Ed25519Verifier { } verify(vc) { - return this.verifyEncoding(vc, 'hex') || this.verifyEncoding(vc, 'utf-8'); + return this.verifyEncoding(vc, "hex") || this.verifyEncoding(vc, "utf-8"); } /** @@ -35,7 +38,9 @@ class Ed25519Verifier { verifyEncoding(vc, encoding) { return nacl.sign.detached.verify( Buffer.from(vc.proof.merkleRoot, encoding), - Uint8Array.from(Buffer.from(vc.proof.merkleRootSignature.signature, 'hex')), + Uint8Array.from( + Buffer.from(vc.proof.merkleRootSignature.signature, "hex"), + ), bs58.decode(this.key), ); } @@ -54,7 +59,7 @@ class Ed25519Verifier { */ const signer = async (options) => { if (!options.signer && !options.keypair && !options.privateKey) { - throw new Error('Either a signer, keypair or privateKey is required'); + throw new Error("Either a signer, keypair or privateKey is required"); } const { verificationMethod } = options; @@ -63,7 +68,7 @@ const signer = async (options) => { // Create a signer from keypair/key if (signerImpl) return signerImpl; - const [did] = verificationMethod.split('#'); + const [did] = verificationMethod.split("#"); const document = await didUtil.resolve(did); @@ -72,15 +77,20 @@ const signer = async (options) => { privateKey = bs58.encode(options.keypair.secretKey); } - const foundMethod = didUtil.findVerificationMethod(document, verificationMethod); + const foundMethod = didUtil.findVerificationMethod( + document, + verificationMethod, + ); if (!foundMethod) { - throw new Error('The provided verificationMethod is not valid on the DID document'); + throw new Error( + "The provided verificationMethod is not valid on the DID document", + ); } // Check the type is supported and assign the appropriate signer switch (foundMethod.type) { - case 'Ed25519VerificationKey2018': - case 'Ed25519VerificationKey2020': + case "Ed25519VerificationKey2018": + case "Ed25519VerificationKey2020": signerImpl = new Ed25519Signer(privateKey, verificationMethod); break; default: @@ -104,14 +114,17 @@ const verifier = async (did, verificationMethod) => { }; } - const [vmDid] = verificationMethod.split('#'); + const [vmDid] = verificationMethod.split("#"); const document = await didUtil.resolve(vmDid); - const foundMethod = didUtil.findVerificationMethod(document, verificationMethod); + const foundMethod = didUtil.findVerificationMethod( + document, + verificationMethod, + ); // Check the type is supported and assign the appropriate verifier switch (foundMethod.type) { - case 'Ed25519VerificationKey2018': - case 'Ed25519VerificationKey2020': + case "Ed25519VerificationKey2018": + case "Ed25519VerificationKey2020": return new Ed25519Verifier(foundMethod.publicKeyBase58); default: throw new Error(`Unsupported type ${foundMethod.type}`); diff --git a/src/lib/stringUtils.js b/src/lib/stringUtils.js index a57354f4..61f2b627 100644 --- a/src/lib/stringUtils.js +++ b/src/lib/stringUtils.js @@ -5,7 +5,8 @@ * @param string * @return {*} */ -const pascalToCamelCase = (string) => string.replace(/^([A-Z])/, (match) => match.toLowerCase()); +const pascalToCamelCase = (string) => + string.replace(/^([A-Z])/, (match) => match.toLowerCase()); const identifierPattern = /(claim|credential|uca|type)-((\w+):[\w.:]+)-v(\d+)/; const parseIdentifier = (identifier) => identifier.match(identifierPattern); diff --git a/src/schemas/jsonSchema/index.js b/src/schemas/jsonSchema/index.js index dfca7f17..66e11b31 100644 --- a/src/schemas/jsonSchema/index.js +++ b/src/schemas/jsonSchema/index.js @@ -1,11 +1,11 @@ // eslint-disable-next-line max-classes-per-file -const _ = require('lodash'); -const Ajv = require('ajv').default; -const traverse = require('json-schema-traverse'); -const { definitions: ucaDefinitions } = require('@identity.com/uca'); -const addFormats = require('ajv-formats').default; -const definitions = require('../../claim/definitions'); -const credentialDefinitions = require('../../creds/definitions'); +const _ = require("lodash"); +const Ajv = require("ajv").default; +const traverse = require("json-schema-traverse"); +const { definitions: ucaDefinitions } = require("@identity.com/uca"); +const addFormats = require("ajv-formats").default; +const definitions = require("../../claim/definitions"); +const credentialDefinitions = require("../../creds/definitions"); let summaryMap = {}; @@ -50,12 +50,12 @@ class SummaryMapper { static getTextLabel(identifier) { // eslint-disable-next-line no-unused-vars - const [type, name, version] = _.split(identifier, '-'); + const [type, name, version] = _.split(identifier, "-"); // eslint-disable-next-line no-unused-vars - const [namespace, unique, path] = _.split(name, ':'); + const [namespace, unique, path] = _.split(name, ":"); if (type && unique) { - return `${unique}.${type}${path ? `.${path}` : ''}`.toLowerCase(); + return `${unique}.${type}${path ? `.${path}` : ""}`.toLowerCase(); } return null; @@ -63,30 +63,32 @@ class SummaryMapper { static isUpdatable(textLabel) { const notUpdatable = [ - 'document.placeofbirth.claim', - 'document.dateofbirth.claim', + "document.placeofbirth.claim", + "document.dateofbirth.claim", ]; return !_.includes(notUpdatable, textLabel); } static getCredentials(identifier) { // eslint-disable-next-line no-unused-vars - const [type, name, version] = _.split(identifier, '-'); + const [type, name, version] = _.split(identifier, "-"); - if (type === 'credential') { + if (type === "credential") { return [identifier]; } - const credentials = _.filter(credentialDefinitions, (item) => _.includes(item.depends, identifier)); + const credentials = _.filter(credentialDefinitions, (item) => + _.includes(item.depends, identifier), + ); return _.map(credentials, (item) => item.identifier); } static getClaimPath(identifier) { // eslint-disable-next-line no-unused-vars - const [type, name, version] = _.split(identifier, '-'); + const [type, name, version] = _.split(identifier, "-"); - if (type === 'credential') { + if (type === "credential") { return null; } @@ -99,7 +101,7 @@ class SummaryMapper { let identifierComponents = claimRegex.exec(identifier); if (identifierComponents === null) { - identifierComponents = _.split(identifier, ':'); + identifierComponents = _.split(identifier, ":"); isNewIdentifier = false; } return { @@ -109,9 +111,12 @@ class SummaryMapper { } static getPath(identifier) { - const { identifierComponents } = SummaryMapper.getBaseIdentifiers(identifier); + const { identifierComponents } = + SummaryMapper.getBaseIdentifiers(identifier); const baseName = _.camelCase(identifierComponents[1]); - return baseName !== 'type' ? `${baseName}.${identifierComponents[2]}` : identifierComponents[2]; + return baseName !== "type" + ? `${baseName}.${identifierComponents[2]}` + : identifierComponents[2]; } } @@ -121,17 +126,19 @@ const getSchemaVersion = (identifier) => { return matches[1]; } - return '1'; + return "1"; }; function transformUcaIdToClaimId(identifier) { - const identifierComponents = identifier.split(':'); + const identifierComponents = identifier.split(":"); return `claim-cvc:${identifierComponents[1]}.${identifierComponents[2]}-v1`; } function isDefinitionEqual(definition, ucaDefinition) { - return definition.identifier === transformUcaIdToClaimId(ucaDefinition) - || definition.identifier === ucaDefinition; + return ( + definition.identifier === transformUcaIdToClaimId(ucaDefinition) || + definition.identifier === ucaDefinition + ); } const isUCA = (uca) => /^[^:]+:[^:]+:[^:]+$/.test(uca); @@ -162,13 +169,13 @@ class SchemaLoader { // add data formats such as date-time addFormats(this.ajv); - this.ajv.addKeyword('attestable'); + this.ajv.addKeyword("attestable"); // Needed to add these to support "reversing" definitions back to the previous definitions for backwards // compatibilty. These should be removed? - this.ajv.addKeyword('transient'); - this.ajv.addKeyword('credentialItem'); - this.ajv.addKeyword('alias'); - this.ajv.addKeyword('deambiguify'); + this.ajv.addKeyword("transient"); + this.ajv.addKeyword("credentialItem"); + this.ajv.addKeyword("alias"); + this.ajv.addKeyword("deambiguify"); } reset() { @@ -191,7 +198,7 @@ class SchemaLoader { } async loadSchemaFromUri(uri) { - const title = uri.split('#')[0].match('[^/]+$', uri); + const title = uri.split("#")[0].match("[^/]+$", uri); const schema = await this.loadSchemaFromTitle(title[0]); @@ -219,9 +226,12 @@ class SchemaLoader { * @returns {*|(() => Promise)} */ async getCredentialSubjectProperties(schema) { - const schemaProperties = await this.flattenCredentialSchemaProperties(schema); + const schemaProperties = + await this.flattenCredentialSchemaProperties(schema); - return schemaProperties.credentialSubject ? schemaProperties.credentialSubject : schemaProperties.claim; + return schemaProperties.credentialSubject + ? schemaProperties.credentialSubject + : schemaProperties.claim; } /** @@ -236,7 +246,8 @@ class SchemaLoader { const promises = schema.allOf.map(async (allOf) => { if (allOf.$ref) { const refSchema = await this.loadSchemaFromUri(allOf.$ref); - const refProperties = await this.flattenCredentialSchemaProperties(refSchema); + const refProperties = + await this.flattenCredentialSchemaProperties(refSchema); properties = { ...properties, @@ -283,7 +294,8 @@ class SchemaLoader { definition.transient = true; } - const credentialSubjectDefinition = await this.getCredentialSubjectProperties(schema); + const credentialSubjectDefinition = + await this.getCredentialSubjectProperties(schema); if (credentialSubjectDefinition.required) { definition.required = []; @@ -296,11 +308,20 @@ class SchemaLoader { }); }); - await _.reduce(references, async (promise, value) => { - await promise; - - return this.loadPropertySchema(schema, definition, value.ref, value.property); - }, Promise.resolve()); + await _.reduce( + references, + async (promise, value) => { + await promise; + + return this.loadPropertySchema( + schema, + definition, + value.ref, + value.property, + ); + }, + Promise.resolve(), + ); this.credentialDefinitions.push(definition); this.validCredentialIdentifiers.push(definition.identifier); @@ -340,7 +361,7 @@ class SchemaLoader { type: await this.findDefinitionType(schema), }; - if (definition.type === 'Array') { + if (definition.type === "Array") { const subSchema = await this.loadSchemaFromUri(schema.items.$ref); definition.items = { @@ -348,12 +369,18 @@ class SchemaLoader { }; } - ['attestable', 'credentialItem', 'minimum', 'maximum', 'alias', 'description'] - .forEach((property) => { - if (property in schema) { - definition[property] = schema[property]; - } - }); + [ + "attestable", + "credentialItem", + "minimum", + "maximum", + "alias", + "description", + ].forEach((property) => { + if (property in schema) { + definition[property] = schema[property]; + } + }); if (schema.pattern) { // definition.pattern = new RegExp(schema.pattern.substring(1, schema.pattern.length - 1)); @@ -371,7 +398,7 @@ class SchemaLoader { }); } - if ((await this.shouldAddClaimDefinition(schema))) { + if (await this.shouldAddClaimDefinition(schema)) { this.definitions.push(definition); this.validIdentifiers.push(schema.title); @@ -390,7 +417,7 @@ class SchemaLoader { const { deambiguify, items } = property; let { type } = property; - if (type === 'array' || (items && items.$ref)) { + if (type === "array" || (items && items.$ref)) { if (items.$ref) { const arraySchema = await this.loadSchemaFromUri(items.$ref); @@ -416,11 +443,15 @@ class SchemaLoader { async getPropertyValues(properties) { const defProperties = []; - await _.reduce(properties, async (promise, value, name) => { - await promise; + await _.reduce( + properties, + async (promise, value, name) => { + await promise; - return this.getPropertyValue(defProperties, value, name); - }, Promise.resolve()); + return this.getPropertyValue(defProperties, value, name); + }, + Promise.resolve(), + ); return { properties: defProperties }; } @@ -438,14 +469,14 @@ class SchemaLoader { return subSchema.title; } - if (schema.type === 'object') { + if (schema.type === "object") { if (!_.isEmpty(schema.properties)) { return this.getPropertyValues(schema.properties); } } - if (schema.type === 'array') { - return 'Array'; + if (schema.type === "array") { + return "Array"; } return _.capitalize(schema.type); @@ -475,7 +506,10 @@ class SchemaLoader { const references = []; traverse(schema, { cb: (currentNode) => { - if (currentNode.$ref !== undefined && !currentNode.$ref.startsWith('#')) { + if ( + currentNode.$ref !== undefined && + !currentNode.$ref.startsWith("#") + ) { // Prevent the same schema loaded multiple times references.push(this.loadSchemaFromUri(currentNode.$ref)); } @@ -519,7 +553,7 @@ class SchemaLoader { validate(schemaRef, value) { const validateSchema = this.ajv.getSchema(schemaRef); - if (typeof validateSchema === 'undefined') { + if (typeof validateSchema === "undefined") { throw new Error(`Invalid schema id: ${schemaRef}`); } @@ -528,11 +562,19 @@ class SchemaLoader { if (!valid) { _.forEach(validateSchema.errors, (error) => { if (error.params && error.params.missingProperty) { - throw new Error(`Missing required fields to ${validateSchema.schema.title}`); + throw new Error( + `Missing required fields to ${validateSchema.schema.title}`, + ); } }); - throw new Error(`Invalid value. Errors: ${JSON.stringify(validateSchema.errors, null, 2)}`); + throw new Error( + `Invalid value. Errors: ${JSON.stringify( + validateSchema.errors, + null, + 2, + )}`, + ); } } } diff --git a/src/schemas/jsonSchema/loaders/cvc.js b/src/schemas/jsonSchema/loaders/cvc.js index a9ed3268..29d04b42 100644 --- a/src/schemas/jsonSchema/loaders/cvc.js +++ b/src/schemas/jsonSchema/loaders/cvc.js @@ -1,13 +1,14 @@ // eslint-disable-next-line max-classes-per-file -const fs = require('fs'); -const { parseIdentifier } = require('../../../lib/stringUtils'); -const { services } = require('../../../services'); +const fs = require("fs"); +const { parseIdentifier } = require("../../../lib/stringUtils"); +const { services } = require("../../../services"); -const rootUri = 'http://identity.com/schemas/'; -const DEFAULT_SCHEMA_PATH = 'http://dev-schemas.civic.com.s3-website-us-east-1.amazonaws.com/dev'; +const rootUri = "http://identity.com/schemas/"; +const DEFAULT_SCHEMA_PATH = + "http://dev-schemas.civic.com.s3-website-us-east-1.amazonaws.com/dev"; class FSSchemaCache { - constructor(cachePath = './.tmp/schemas') { + constructor(cachePath = "./.tmp/schemas") { this.cachePath = cachePath; fs.mkdirSync(cachePath, { recursive: true }); } @@ -18,13 +19,13 @@ class FSSchemaCache { return null; } - return fs.readFileSync(cachePath, { encoding: 'utf8' }); + return fs.readFileSync(cachePath, { encoding: "utf8" }); } set(identifier, schema) { const cachePath = `${this.cachePath}/${identifier}.schema.json`; - fs.writeFileSync(cachePath, schema, { encoding: 'utf8' }); + fs.writeFileSync(cachePath, schema, { encoding: "utf8" }); } } @@ -48,7 +49,11 @@ const getIdentifierPath = (identifier) => { * This is a sample schema loader, to be used for testing or civic.com claims & credential implementations */ class CVCLoader { - constructor(http = services.container.Http, cache = new FSSchemaCache(), schemaPath = DEFAULT_SCHEMA_PATH) { + constructor( + http = services.container.Http, + cache = new FSSchemaCache(), + schemaPath = DEFAULT_SCHEMA_PATH, + ) { this.http = http; this.cache = cache; this.schemaPath = schemaPath; @@ -67,7 +72,10 @@ class CVCLoader { */ // eslint-disable-next-line class-methods-use-this valid(identifier) { - return /^(claim|credential|type)-(cvc|alt):.*$/.test(identifier) || /^cvc:.*$/.test(identifier); + return ( + /^(claim|credential|type)-(cvc|alt):.*$/.test(identifier) || + /^cvc:.*$/.test(identifier) + ); } /** diff --git a/src/services/DefaultAnchorServiceImpl.js b/src/services/DefaultAnchorServiceImpl.js index 2fa8cbaa..7c4b8e4a 100644 --- a/src/services/DefaultAnchorServiceImpl.js +++ b/src/services/DefaultAnchorServiceImpl.js @@ -2,10 +2,10 @@ * Current Anchor/Attester service * */ -const { v4: uuid } = require('uuid'); -const { HDNode, ECSignature } = require('bitcoinjs-lib'); -const sjcl = require('sjcl'); -const logger = require('../logger'); +const { v4: uuid } = require("uuid"); +const { HDNode, ECSignature } = require("bitcoinjs-lib"); +const sjcl = require("sjcl"); +const logger = require("../logger"); /** * An Anchor/Attester implementation @@ -21,7 +21,7 @@ function DummyAnchorServiceImpl(config, http) { try { const attestation = await this.http.request({ url: statusUrl, - method: 'GET', + method: "GET", simple: true, json: true, }); @@ -30,43 +30,52 @@ function DummyAnchorServiceImpl(config, http) { // eslint-disable-next-line no-unused-vars return await pollService(statusUrl); } - if (attestation && attestation.type !== 'permanent') { + if (attestation && attestation.type !== "permanent") { attestation.statusUrl = statusUrl; return attestation; } return attestation; } catch (error) { - logger.error(`Error polling: ${statusUrl}`, JSON.stringify(error, null, 2)); + logger.error( + `Error polling: ${statusUrl}`, + JSON.stringify(error, null, 2), + ); throw new Error(`Error polling: ${statusUrl}`); } }; - this.anchor = async (options = {}) => ( + this.anchor = async (options = {}) => Promise.resolve({ subject: { - pub: 'xpub:dummy', - label: options.subject && options.subject.label ? options.subject.label : null, - data: options.subject && options.subject.data ? options.subject.data : null, - signature: 'signed:dummy', + pub: "xpub:dummy", + label: + options.subject && options.subject.label + ? options.subject.label + : null, + data: + options.subject && options.subject.data ? options.subject.data : null, + signature: "signed:dummy", }, - walletId: 'none', - cosigners: [{ - pub: 'xpub:dummy', - }, { - pub: 'xpub:dummy', - }], + walletId: "none", + cosigners: [ + { + pub: "xpub:dummy", + }, + { + pub: "xpub:dummy", + }, + ], authority: { - pub: 'xpub:dummy', - path: '/', + pub: "xpub:dummy", + path: "/", }, - coin: 'dummycoin', + coin: "dummycoin", tx: uuid(), - network: 'dummynet', - type: 'temporary', + network: "dummynet", + type: "temporary", civicAsPrimary: false, - schema: 'dummy-20180201', - }) - ); + schema: "dummy-20180201", + }); this.update = async (tempAnchor) => { tempAnchor.type = 'permanent'; // eslint-disable-line @@ -76,8 +85,11 @@ function DummyAnchorServiceImpl(config, http) { this.verifySignature = (proof, pinnedPubKey) => { const { subject } = proof.anchor; - const anchorSubjectValidation = this.verifySubjectSignature(subject, pinnedPubKey); - return anchorSubjectValidation && (subject.data === proof.merkleRoot); + const anchorSubjectValidation = this.verifySubjectSignature( + subject, + pinnedPubKey, + ); + return anchorSubjectValidation && subject.data === proof.merkleRoot; }; /** @@ -87,23 +99,32 @@ function DummyAnchorServiceImpl(config, http) { */ this.verifySubjectSignature = (subject, pinnedPubKey) => { // Do not use JS destruct on the next line, We need to predict the JSON order - const toHash = JSON.stringify({ xpub: subject.pub, label: subject.label, data: subject.data }); + const toHash = JSON.stringify({ + xpub: subject.pub, + label: subject.label, + data: subject.data, + }); const hash = sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(toHash)); - const subjectSignature = ECSignature.fromDER(Buffer.from(subject.signature, 'hex')); - return HDNode.fromBase58(pinnedPubKey || subject.pub).keyPair.verify(Buffer.from(hash, 'hex'), subjectSignature); + const subjectSignature = ECSignature.fromDER( + Buffer.from(subject.signature, "hex"), + ); + return HDNode.fromBase58(pinnedPubKey || subject.pub).keyPair.verify( + Buffer.from(hash, "hex"), + subjectSignature, + ); }; /** * This method checks that the attestation / anchor exists on the BC */ this.verifyAttestation = async (proof, offline = true) => { - const path = '/proof'; + const path = "/proof"; const endpoint = `${this.config.attestationService}${path}`; const requestOptions = { url: endpoint, body: { attestation: proof.anchor, offline }, - method: 'POST', + method: "POST", json: true, simple: true, // reject if not 2XX }; @@ -117,7 +138,8 @@ function DummyAnchorServiceImpl(config, http) { return Promise.resolve(signature); }; - this.isRevoked = (signature) => (signature.revoked ? signature.revoked : false); + this.isRevoked = (signature) => + signature.revoked ? signature.revoked : false; return this; } diff --git a/src/services/DummyAnchorServiceImpl.js b/src/services/DummyAnchorServiceImpl.js index 2371e4aa..bce02786 100644 --- a/src/services/DummyAnchorServiceImpl.js +++ b/src/services/DummyAnchorServiceImpl.js @@ -2,8 +2,8 @@ * Current Anchor/Attester service * */ -const { v4: uuid } = require('uuid'); -const logger = require('../logger'); +const { v4: uuid } = require("uuid"); +const logger = require("../logger"); /** * An Anchor/Attester implementation @@ -19,7 +19,7 @@ function DummyAnchorServiceImpl(config, http) { try { const attestation = await this.http.request({ url: statusUrl, - method: 'GET', + method: "GET", simple: true, json: true, }); @@ -28,47 +28,56 @@ function DummyAnchorServiceImpl(config, http) { // eslint-disable-next-line no-unused-vars return await pollService(statusUrl); } - if (attestation && attestation.type !== 'permanent') { + if (attestation && attestation.type !== "permanent") { attestation.statusUrl = statusUrl; return attestation; } return attestation; } catch (error) { - logger.error(`Error polling: ${statusUrl}`, JSON.stringify(error, null, 2)); + logger.error( + `Error polling: ${statusUrl}`, + JSON.stringify(error, null, 2), + ); throw new Error(`Error polling: ${statusUrl}`); } }; - this.anchor = async (options = {}) => ( + this.anchor = async (options = {}) => Promise.resolve({ subject: { - pub: 'xpub:dummy', - label: options.subject && options.subject.label ? options.subject.label : null, - data: options.subject && options.subject.data ? options.subject.data : null, - signature: 'signed:dummy', + pub: "xpub:dummy", + label: + options.subject && options.subject.label + ? options.subject.label + : null, + data: + options.subject && options.subject.data ? options.subject.data : null, + signature: "signed:dummy", }, - walletId: 'none', - cosigners: [{ - pub: 'xpub:dummy', - }, { - pub: 'xpub:dummy', - }], + walletId: "none", + cosigners: [ + { + pub: "xpub:dummy", + }, + { + pub: "xpub:dummy", + }, + ], authority: { - pub: 'xpub:dummy', - path: '/', + pub: "xpub:dummy", + path: "/", }, - coin: 'dummycoin', + coin: "dummycoin", tx: new uuid(), // eslint-disable-line - network: 'dummynet', - type: 'temporary', + network: "dummynet", + type: "temporary", civicAsPrimary: false, - schema: 'dummy-20180201', - }) - ); + schema: "dummy-20180201", + }); this.update = async (tempAnchor) => { // eslint-disable-next-line no-param-reassign - tempAnchor.type = 'permanent'; + tempAnchor.type = "permanent"; // eslint-disable-next-line no-param-reassign tempAnchor.value = uuid(); return Promise.resolve(tempAnchor); @@ -93,7 +102,8 @@ function DummyAnchorServiceImpl(config, http) { return Promise.resolve(signature); }; - this.isRevoked = (signature) => (signature.revoked ? signature.revoked : false); + this.isRevoked = (signature) => + signature.revoked ? signature.revoked : false; return this; } diff --git a/src/services/MiniCryptoManagerImpl.js b/src/services/MiniCryptoManagerImpl.js index 3df64ffd..1626697f 100644 --- a/src/services/MiniCryptoManagerImpl.js +++ b/src/services/MiniCryptoManagerImpl.js @@ -1,4 +1,4 @@ -const { HDNode, ECSignature } = require('bitcoinjs-lib'); +const { HDNode, ECSignature } = require("bitcoinjs-lib"); /** * MiniCryptoManagerImpl - A minimal CryptoManagerImpl for the portable CryptoManagerInterface @@ -46,9 +46,9 @@ class MiniCryptoManagerImpl { const privateKey = this.KEY_STORAGE[keyName]; const keyPair = HDNode.fromBase58(privateKey); - const hash = Buffer.from(hexHash, 'hex'); + const hash = Buffer.from(hexHash, "hex"); const signature = keyPair.sign(hash); - const hexSignature = signature.toDER().toString('hex'); + const hexSignature = signature.toDER().toString("hex"); // keys are volatile in this impl, removes delete this.KEY_STORAGE[keyName]; @@ -67,8 +67,8 @@ class MiniCryptoManagerImpl { const key = this.KEY_STORAGE[keyName]; const keyPair = HDNode.fromBase58(key); - const hash = Buffer.from(hexHash, 'hex'); - const signature = Buffer.from(hexSignature, 'hex'); + const hash = Buffer.from(hexHash, "hex"); + const signature = Buffer.from(hexSignature, "hex"); const ecSignature = ECSignature.fromDER(signature); // keys are volatile in this impl, removes diff --git a/src/services/__mocks__/httpService.js b/src/services/__mocks__/httpService.js index 79cbd708..134ef10d 100644 --- a/src/services/__mocks__/httpService.js +++ b/src/services/__mocks__/httpService.js @@ -1,63 +1,68 @@ /* eslint-disable max-len */ -const _ = require('lodash'); -const logger = require('../../logger'); +const _ = require("lodash"); +const logger = require("../../logger"); function HttpServiceConstructor() { - this.name = 'mockHttp'; + this.name = "mockHttp"; this.request = async (uri, options) => { - logger.debug(`Mocking request for: ${JSON.stringify({ uri, options }, null, 2)}`); + logger.debug( + `Mocking request for: ${JSON.stringify({ uri, options }, null, 2)}`, + ); const params = _.isString(uri) ? { url: uri } : uri; _.assign(params, options); const responses = [ { - path: '/registry', + path: "/registry", response: { - clientID: '6e0ce9b31eb13064a194c1482ed3d9d330f22df6fb4cbcc0dbebf3169dc2325b', - xpub: '0469919359510a703516503299c77ef0e00f18255a32db19a3e69636e203f25f29be24b685df9f8a70548751f53a2e4c235ec0fbdc82d0783bd30e315ebfd6bd1e', + clientID: + "6e0ce9b31eb13064a194c1482ed3d9d330f22df6fb4cbcc0dbebf3169dc2325b", + xpub: "0469919359510a703516503299c77ef0e00f18255a32db19a3e69636e203f25f29be24b685df9f8a70548751f53a2e4c235ec0fbdc82d0783bd30e315ebfd6bd1e", cas: '{"iv":"TEtgZuJdyJFkgcuHoBC52w==","v":1,"iter":10000,"ks":128,"ts":64,"mode":"gcm","adata":"","cipher":"aes","salt":"SA0z5h6IlfA=","ct":"8h6ys3fD31HsWH3s5rrbF6o54ekJf6owhSJBW6FBIhkftJWSWVWVEt0u0FJFqhCqPaEl+DMM6olH9fAcB7bD7i2DRPjLYiC+"}', sak: {}, }, }, { - path: '/jwt', - response: { jwt: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJqdGkiOiIyYzdlNjQ4YS1hNDhmLTQxNTgtOGZmMS02MTY0YzM5OWNlNDMiLCJpYXQiOjE1Mjg4MjE1ODUuNDM0LCJleHAiOjE1Mjg4MjE3NjUuNDM0LCJpc3MiOiJodHRwczovL2FwaS5jaXZpYy5jb20vand0IiwiYXVkIjoiQXR0ZXN0ZXJTZXJ2aWNlIiwic3ViIjoiYzhhNjRhODE4NWRlMzNkMTlkZTgwMjFmYmUyMjhkMmE1YTc3YzExMTdkYjc1NDJlZDE0ODM1NGNiZjdkNGVmMSIsImRhdGEiOnsibWV0aG9kIjoiUE9TVCIsInBhdGgiOiJodHRwczovL2Rldi5hcGkuY2l2aWMuY29tL3JlcXVlc3QtYXR0ZXN0YXRpb24tdGJjaC9yZXF1ZXN0QXR0ZXN0YXRpb24ifX0.2Rp8XLTLvzu51raTQRpce8kIiilsMeiPZeWAsuNv5n7hFZGl-ce-fx9DgxsZ0OTaIUgo8frbiGmHjQh0WlUG7A' }, + path: "/jwt", + response: { + jwt: "eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJqdGkiOiIyYzdlNjQ4YS1hNDhmLTQxNTgtOGZmMS02MTY0YzM5OWNlNDMiLCJpYXQiOjE1Mjg4MjE1ODUuNDM0LCJleHAiOjE1Mjg4MjE3NjUuNDM0LCJpc3MiOiJodHRwczovL2FwaS5jaXZpYy5jb20vand0IiwiYXVkIjoiQXR0ZXN0ZXJTZXJ2aWNlIiwic3ViIjoiYzhhNjRhODE4NWRlMzNkMTlkZTgwMjFmYmUyMjhkMmE1YTc3YzExMTdkYjc1NDJlZDE0ODM1NGNiZjdkNGVmMSIsImRhdGEiOnsibWV0aG9kIjoiUE9TVCIsInBhdGgiOiJodHRwczovL2Rldi5hcGkuY2l2aWMuY29tL3JlcXVlc3QtYXR0ZXN0YXRpb24tdGJjaC9yZXF1ZXN0QXR0ZXN0YXRpb24ifX0.2Rp8XLTLvzu51raTQRpce8kIiilsMeiPZeWAsuNv5n7hFZGl-ce-fx9DgxsZ0OTaIUgo8frbiGmHjQh0WlUG7A", + }, }, { - path: '/requestAttestation', - response: { statusUrl: '/status/372091f0-6e5f-11e8-ab04-8d6f9c9b4e5a' }, + path: "/requestAttestation", + response: { statusUrl: "/status/372091f0-6e5f-11e8-ab04-8d6f9c9b4e5a" }, }, { - path: '/requestAttestation', - response: { statusUrl: '/status/372091f0-6e5f-11e8-ab04-8d6f9c9b4e5a' }, + path: "/requestAttestation", + response: { statusUrl: "/status/372091f0-6e5f-11e8-ab04-8d6f9c9b4e5a" }, }, { - path: '/status', + path: "/status", response: { - schema: 'dummy-20180201', - tx: '01000000018815822815dbd6c355ad47af5d753a00000000fc00473044022042426820da1f2fac328a408d538638143177168b575da66825bc99a3f487472baa0751b67355407b4a4e99da04a3186c520220578b820dd051c919c2fb57b26aa29667483b547f6766a23e3c821e47a5d1237b0147304402201316cc0ee8a968f4d86a616fcf710b663e0bb7021e95d7a300036b65e95ca34602204f05162db06278af2a8abdd7ab4d92e973dc4154a92bf37a4056f3298fa9ecad014c695221028f9205846d9b23dd9a17588ae13603aa3eda3599582750904716c827d02269db210340f8f56a56b2af2a9698f66574882068cf8bd8fa95a26136ac34edabfe5eb5d021029d52d336232eb3d4f37730822df9d3993a84c3edba20f14d3ee0f20141c0bdfd53aeffffffff01551500000000000017a91460312cbbb8ec560305a239d56398f0d8aa57ecf68700000000', + schema: "dummy-20180201", + tx: "01000000018815822815dbd6c355ad47af5d753a00000000fc00473044022042426820da1f2fac328a408d538638143177168b575da66825bc99a3f487472baa0751b67355407b4a4e99da04a3186c520220578b820dd051c919c2fb57b26aa29667483b547f6766a23e3c821e47a5d1237b0147304402201316cc0ee8a968f4d86a616fcf710b663e0bb7021e95d7a300036b65e95ca34602204f05162db06278af2a8abdd7ab4d92e973dc4154a92bf37a4056f3298fa9ecad014c695221028f9205846d9b23dd9a17588ae13603aa3eda3599582750904716c827d02269db210340f8f56a56b2af2a9698f66574882068cf8bd8fa95a26136ac34edabfe5eb5d021029d52d336232eb3d4f37730822df9d3993a84c3edba20f14d3ee0f20141c0bdfd53aeffffffff01551500000000000017a91460312cbbb8ec560305a239d56398f0d8aa57ecf68700000000", subject: { - label: 'teste', - pub: 'xpub:dummy', - data: 'testesdsd', - signature: '304502210089e94f11587bf7fa202817ace9664639855a146565d4e54b9f853f31f4d7ce31022077098a904e0dda7ab947db92a3e7dd7a5d52654c286151c3cc97feb0ef4a3310', + label: "teste", + pub: "xpub:dummy", + data: "testesdsd", + signature: + "304502210089e94f11587bf7fa202817ace9664639855a146565d4e54b9f853f31f4d7ce31022077098a904e0dda7ab947db92a3e7dd7a5d52654c286151c3cc97feb0ef4a3310", }, authority: { - pub: 'xpub:dummy', - path: '/', + pub: "xpub:dummy", + path: "/", }, cosigners: [ { - pub: 'xpub:dummy', + pub: "xpub:dummy", }, { - pub: 'xpuv:dummy', + pub: "xpuv:dummy", }, ], - type: 'temporary', - network: 'testnet', + type: "temporary", + network: "testnet", }, - }, ]; const res = _.find(responses, (r) => _.includes(params.url, r.path)); @@ -69,7 +74,7 @@ function HttpServiceConstructor() { return this; } -logger.debug('Using Mock HTTP Service'); +logger.debug("Using Mock HTTP Service"); const http = new HttpServiceConstructor(); http.request('/status').then(console.log); // eslint-disable-line logger.debug(`HTTP Service instance ${JSON.stringify(http, null, 2)}`); diff --git a/src/services/anchorService.js b/src/services/anchorService.js index 71d1861f..cb46768f 100644 --- a/src/services/anchorService.js +++ b/src/services/anchorService.js @@ -5,12 +5,16 @@ */ function Anchor(impl) { this.impl = impl; - this.anchor = (label, data, options) => this.impl.anchor(label, data, options); + this.anchor = (label, data, options) => + this.impl.anchor(label, data, options); this.update = (tempAnchor) => this.impl.update(tempAnchor); this.verifySignature = (subject) => this.impl.verifySignature(subject); - this.verifySubjectSignature = (subject) => this.impl.verifySubjectSignature(subject); - this.verifyAttestation = (signature) => this.impl.verifyAttestation(signature); - this.revokeAttestation = (signature) => this.impl.revokeAttestation(signature); + this.verifySubjectSignature = (subject) => + this.impl.verifySubjectSignature(subject); + this.verifyAttestation = (signature) => + this.impl.verifyAttestation(signature); + this.revokeAttestation = (signature) => + this.impl.revokeAttestation(signature); this.isRevoked = (signature) => this.impl.isRevoked(signature); return this; } diff --git a/src/services/config.js b/src/services/config.js index 434a244e..a969f56d 100644 --- a/src/services/config.js +++ b/src/services/config.js @@ -1,27 +1,31 @@ -const path = require('path'); -const os = require('os'); -const fs = require('fs'); +const path = require("path"); +const os = require("os"); +const fs = require("fs"); -const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; +const isBrowser = + typeof window !== "undefined" && typeof window.document !== "undefined"; -if (process.platform === 'win32') throw new Error(`Unsupported platform: ${process.platform}`); +if (process.platform === "win32") + throw new Error(`Unsupported platform: ${process.platform}`); -if (process.env.APP_ENV !== 'browser' && !isBrowser) { - const CONFIG_FILE = 'config'; +if (process.env.APP_ENV !== "browser" && !isBrowser) { + const CONFIG_FILE = "config"; const CONFIG_PATH = { - BOX: '/etc/civic', - USER: path.join(`${os.homedir()}`, '.civic'), + BOX: "/etc/civic", + USER: path.join(`${os.homedir()}`, ".civic"), }; const userConfigFile = path.join(CONFIG_PATH.USER, CONFIG_FILE); const boxConfigFile = path.join(CONFIG_PATH.BOX, CONFIG_FILE); - const configFile = fs.existsSync(userConfigFile) ? userConfigFile : boxConfigFile; + const configFile = fs.existsSync(userConfigFile) + ? userConfigFile + : boxConfigFile; /* eslint-disable global-require */ if (fs.existsSync(userConfigFile)) { - require('dotenv').config({ + require("dotenv").config({ path: configFile, }); } diff --git a/src/services/httpService.js b/src/services/httpService.js index b3bc53e1..7fe2e7ba 100644 --- a/src/services/httpService.js +++ b/src/services/httpService.js @@ -1,7 +1,7 @@ /** * A simple node HTTP services */ -const request = require('request-promise-native'); +const request = require("request-promise-native"); // uncomment to debug requests // require('request-debug')(request); diff --git a/src/services/index.js b/src/services/index.js index c144072f..cf1d9054 100644 --- a/src/services/index.js +++ b/src/services/index.js @@ -1,13 +1,13 @@ /** * Services IoC modules */ -const Bottle = require('bottlejs'); -const { CurrentCivicAnchor } = require('./DefaultAnchorServiceImpl'); -const logger = require('../logger'); -const HttpServiceConstructor = require('./httpService'); -const config = require('./config'); -const SecureRandom = require('../SecureRandom'); -const MiniCryptoManagerImpl = require('./MiniCryptoManagerImpl'); +const Bottle = require("bottlejs"); +const { CurrentCivicAnchor } = require("./DefaultAnchorServiceImpl"); +const logger = require("../logger"); +const HttpServiceConstructor = require("./httpService"); +const config = require("./config"); +const SecureRandom = require("../SecureRandom"); +const MiniCryptoManagerImpl = require("./MiniCryptoManagerImpl"); const services = new Bottle(); @@ -19,38 +19,40 @@ const services = new Bottle(); */ const initServices = (conf, http, secureRandom, cryptoManagerImpl) => { if (http) { - services.resetProviders(['Http']); - logger.debug('Registering custom HTTP service implementation'); - services.factory('Http', () => http); + services.resetProviders(["Http"]); + logger.debug("Registering custom HTTP service implementation"); + services.factory("Http", () => http); } if (conf) { - services.resetProviders(['Config']); - logger.debug('Registering custom Config service implementation'); - services.factory('Config', () => conf); + services.resetProviders(["Config"]); + logger.debug("Registering custom Config service implementation"); + services.factory("Config", () => conf); } if (secureRandom) { - services.resetProviders(['SecureRandom']); - logger.debug('Registering custom SecureRandom service implementation'); - services.factory('SecureRandom', () => secureRandom); + services.resetProviders(["SecureRandom"]); + logger.debug("Registering custom SecureRandom service implementation"); + services.factory("SecureRandom", () => secureRandom); } if (cryptoManagerImpl) { - services.resetProviders(['CryptoManager']); - logger.debug('Registering custom CryptoManager service implementation'); - services.factory('CryptoManager', () => cryptoManagerImpl); + services.resetProviders(["CryptoManager"]); + logger.debug("Registering custom CryptoManager service implementation"); + services.factory("CryptoManager", () => cryptoManagerImpl); } return services; }; -services.factory('Config', () => config); +services.factory("Config", () => config); -logger.info('Registering request-promise-native as Http service implementation.'); -services.service('Http', HttpServiceConstructor); +logger.info( + "Registering request-promise-native as Http service implementation.", +); +services.service("Http", HttpServiceConstructor); -services.factory('SecureRandom', () => new SecureRandom()); +services.factory("SecureRandom", () => new SecureRandom()); -services.service('AnchorService', CurrentCivicAnchor, 'Config', 'Http'); +services.service("AnchorService", CurrentCivicAnchor, "Config", "Http"); // The default CryptoManager Implementation -services.service('CryptoManager', MiniCryptoManagerImpl); +services.service("CryptoManager", MiniCryptoManagerImpl); module.exports = { services, initServices }; diff --git a/src/timeHelper.js b/src/timeHelper.js index 6cf5c4e7..7da9f191 100644 --- a/src/timeHelper.js +++ b/src/timeHelper.js @@ -1,10 +1,10 @@ -const moment = require('moment-mini'); +const moment = require("moment-mini"); const unitMapper = { - y: 'y', - m: 'M', - w: 'w', - d: 'd', + y: "y", + m: "M", + w: "w", + d: "d", }; /** @@ -28,9 +28,8 @@ const timeDeltaToMomentDuration = (delta) => { * @param date Date * @return {Date} */ -const applyDeltaToDate = (delta, date = new Date()) => moment(date) - .add(timeDeltaToMomentDuration(delta)) - .toDate(); +const applyDeltaToDate = (delta, date = new Date()) => + moment(date).add(timeDeltaToMomentDuration(delta)).toDate(); module.exports = { applyDeltaToDate, diff --git a/src/uca/UCA.js b/src/uca/UCA.js index 430efd00..f06ac53e 100644 --- a/src/uca/UCA.js +++ b/src/uca/UCA.js @@ -1,11 +1,16 @@ -const { UserCollectableAttribute: BaseUCA } = require('@identity.com/uca'); -const { schemaLoader } = require('../schemas/jsonSchema'); +const { UserCollectableAttribute: BaseUCA } = require("@identity.com/uca"); +const { schemaLoader } = require("../schemas/jsonSchema"); class UserCollectableAttribute extends BaseUCA { static async create(identifier, value, version) { await schemaLoader.loadSchemaFromTitle(identifier); - return new UserCollectableAttribute(identifier, value, version, schemaLoader.ucaDefinitions); + return new UserCollectableAttribute( + identifier, + value, + version, + schemaLoader.ucaDefinitions, + ); } } From 72400fc4ab930600873d36b5b8329824fcedf680 Mon Sep 17 00:00:00 2001 From: dankelleher Date: Thu, 21 Sep 2023 13:09:28 +0200 Subject: [PATCH 3/6] CI Update --- .circleci/config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 42214c92..ba9a4bb9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 defaults: &defaults working_directory: ~/repo docker: - - image: circleci/node:12.19.0 + - image: cimg/node:lts workflows: version: 2 @@ -56,7 +56,6 @@ jobs: - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }}-{{checksum "package-lock.json"}} - - run: sudo npm install -g npm@6.14.13 - run: npm ci - save_cache: paths: @@ -82,7 +81,6 @@ jobs: - restore_cache: keys: - v1-dependencies-{{ checksum "package.json" }}-{{checksum "package-lock.json"}} - - run: sudo npm install -g npm@6.14.13 - run: | sh ./.circleci/install_hub.sh mkdir -p ~/.config/ && echo -e "github.com:\n- user: civictechuser\n oauth_token: $GITHUB_API_KEY\n protocol: https\n" > ~/.config/hub From f19caf88c6ed5c7cf38028a676b6bab2f52ef61a Mon Sep 17 00:00:00 2001 From: dankelleher Date: Thu, 21 Sep 2023 13:16:56 +0200 Subject: [PATCH 4/6] Updated audit-ci --- AUDIT.md | 13 ++++++------- audit-ci.json | 4 +++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/AUDIT.md b/AUDIT.md index 957069a6..0317425c 100644 --- a/AUDIT.md +++ b/AUDIT.md @@ -9,10 +9,9 @@ Whenever you whitelist a specific advisory it is required to refer it to here an ### Advisories -| # | Level | Module | Title | Explanation | -|------|-------|---------|------|-------------| -| 565 | Moderate | npm>ssri | Regular Expression Denial of Service | dev dependency only | -| 786 | Low | babel-cli > chokidar > anymatch > micromatch > braces | Regular Expression Denial of Service | dev dependency only | -| 1500 | Low | babel-minify>yargs-parser | Prototype Pollution | dev dependency only | -| 1654 | Moderate | npm>libnpx>y18n | Regular Expression Denial of Service | dev dependency only | -| 1677 | Moderate | npm>hosted-git-info | Regular Expression Denial of Service | dev dependency only | +| # | Level | Module | Title | Explanation | +|---------------------|----------|--------------|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------| +| GHSA-2j2x-2gpw-g8fm | critical | flat | Prototype Pollution | Flat is on an old version. The new version is an ESM and can be used once the bundler is updated to support ESM rather than CJS | +| GHSA-p8p7-x288-28g6 | moderate | request | Server-Side Request Forgery | Request is deprecated and should be replaced with Axios or Fetch | +| GHSA-72xf-g2v4-qvf3 | moderate | tough-cookie | Prototype Pollution | Used in 'request', which is deprecated and should be replaced with Axios or Fetch | +| GHSA-p9pc-299p-vxgp | moderate | yargs-parser | Prototype Pollution | Used in dev dependencies only | \ No newline at end of file diff --git a/audit-ci.json b/audit-ci.json index befe292d..d5aefc6b 100644 --- a/audit-ci.json +++ b/audit-ci.json @@ -2,5 +2,7 @@ "low": true, "package-manager": "auto", "report": true, - "allowlist": [1086436, 1088664, 1088730, 1088811, 1088828, 1088831, 1088948, 1089128, 1089129, 1089152, 1089185, 1089394, 1089513, 1090135, 1090146, 1090169, 1090170, 1090532] + "allowlist": [ + "GHSA-2j2x-2gpw-g8fm", "GHSA-p8p7-x288-28g6", "GHSA-72xf-g2v4-qvf3", "GHSA-p9pc-299p-vxgp" + ] } From 38e76f48c855b2e0bb1109544fff4bfeccbf6b55 Mon Sep 17 00:00:00 2001 From: dankelleher Date: Tue, 24 Oct 2023 06:49:02 +0200 Subject: [PATCH 5/6] Allow non-uca-based claims to simplify credential generation --- .../creds/SimpleVerifiableCredential.test.js | 85 +++ __test__/creds/proxyFixtures/Address.json | 266 -------- __test__/creds/proxyFixtures/Cred1.json | 145 ---- __test__/creds/proxyFixtures/CredExpired.json | 266 -------- .../creds/proxyFixtures/CredFiltered1.json | 220 ------ .../proxyFixtures/CredWithFutureExpiry.json | 266 -------- .../proxyFixtures/CredentialAddress.json | 241 ------- .../CredentialAttestationFaked.json | 243 ------- .../proxyFixtures/CredentialEmailInvalid.json | 177 ----- __test__/creds/proxyFixtures/Email.json | 172 ----- .../proxyFixtures/GenericDocumentId.json | 636 ------------------ .../IdDocumentWithoutNonRequiredClaims.json | 487 -------------- .../IdDocumentWithoutRequiredClaims.json | 190 ------ __test__/creds/proxyFixtures/Identity.json | 244 ------- .../creds/proxyFixtures/PermanentAnchor.json | 25 - __test__/creds/proxyFixtures/PhoneNumber.json | 241 ------- __test__/creds/proxyFixtures/TempAnchor.json | 23 - .../proxyFixtures/VCPermanentAnchor.json | 243 ------- .../creds/proxyFixtures/VCTempAnchor.json | 243 ------- .../VCWithTamperedLeafValue.json | 145 ---- .../proxyFixtures/filteredIdDocument-v2.json | 54 -- .../fixtures/credential-test:Social-v1.json | 177 +++++ __test__/schemaLoader.test.js | 28 +- package.json | 2 +- src/claim/Claim.js | 2 +- src/creds/ClaimModel.js | 23 +- src/creds/CvcMerkleProof.js | 10 +- src/creds/VerifiableCredential.js | 46 +- src/schemas/jsonSchema/index.js | 15 +- src/schemas/jsonSchema/loaders/builtin.js | 36 + src/schemas/jsonSchema/loaders/simple.js | 20 + 31 files changed, 409 insertions(+), 4562 deletions(-) create mode 100644 __test__/creds/SimpleVerifiableCredential.test.js delete mode 100644 __test__/creds/proxyFixtures/Address.json delete mode 100644 __test__/creds/proxyFixtures/Cred1.json delete mode 100644 __test__/creds/proxyFixtures/CredExpired.json delete mode 100644 __test__/creds/proxyFixtures/CredFiltered1.json delete mode 100644 __test__/creds/proxyFixtures/CredWithFutureExpiry.json delete mode 100644 __test__/creds/proxyFixtures/CredentialAddress.json delete mode 100644 __test__/creds/proxyFixtures/CredentialAttestationFaked.json delete mode 100644 __test__/creds/proxyFixtures/CredentialEmailInvalid.json delete mode 100644 __test__/creds/proxyFixtures/Email.json delete mode 100644 __test__/creds/proxyFixtures/GenericDocumentId.json delete mode 100644 __test__/creds/proxyFixtures/IdDocumentWithoutNonRequiredClaims.json delete mode 100644 __test__/creds/proxyFixtures/IdDocumentWithoutRequiredClaims.json delete mode 100644 __test__/creds/proxyFixtures/Identity.json delete mode 100644 __test__/creds/proxyFixtures/PermanentAnchor.json delete mode 100644 __test__/creds/proxyFixtures/PhoneNumber.json delete mode 100644 __test__/creds/proxyFixtures/TempAnchor.json delete mode 100644 __test__/creds/proxyFixtures/VCPermanentAnchor.json delete mode 100644 __test__/creds/proxyFixtures/VCTempAnchor.json delete mode 100644 __test__/creds/proxyFixtures/VCWithTamperedLeafValue.json delete mode 100644 __test__/creds/proxyFixtures/filteredIdDocument-v2.json create mode 100644 __test__/schema/fixtures/credential-test:Social-v1.json create mode 100644 src/schemas/jsonSchema/loaders/builtin.js create mode 100644 src/schemas/jsonSchema/loaders/simple.js diff --git a/__test__/creds/SimpleVerifiableCredential.test.js b/__test__/creds/SimpleVerifiableCredential.test.js new file mode 100644 index 00000000..2bfeed2f --- /dev/null +++ b/__test__/creds/SimpleVerifiableCredential.test.js @@ -0,0 +1,85 @@ +/* eslint-disable max-len */ +const _ = require("lodash"); +const fs = require("fs"); +const { v4: uuidv4 } = require("uuid"); +const sjcl = require("sjcl"); +const { Claim } = require("../../src/claim/Claim"); +const VC = require("../../src/creds/VerifiableCredential"); +const MiniCryptoManagerImpl = require("../../src/services/MiniCryptoManagerImpl"); +const didTestUtil = require("../lib/util/did"); + +const { schemaLoader } = require("../../src"); +const { + SimpleSchemaLoader, +} = require("../../src/schemas/jsonSchema/loaders/simple"); +const simpleSchema = require("../schema/fixtures/credential-test:Social-v1.json"); + +const signerVerifier = require("../../src/lib/signerVerifier"); +const { stubResolver } = require("../lib/util/did"); + +const credentialSubject = + "did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V"; + +jest.setTimeout(150000); + +const XPVT1 = 'xprvA1yULd2DFYnQRVbLiAKrFdftVLsANiC3rqLvp8iiCbnchcWqd6kJPoaV3sy7R6CjHM8RbpoNdWVgiPZLVa1EmneRLtwiitNpWgwyVmjvay7'; // eslint-disable-line +const XPUB1 = 'xpub6Expk8Z75vLhdyfopBrrcmcd3NhenAuuE4GXcX8KkwKbaQqzAe4Ywbtxu9F95hRHj79PvdtYEJcoR6gesbZ79fS4bLi1PQtm81rjxAHeLL9'; // eslint-disable-line + +const miniCryptoManager = new MiniCryptoManagerImpl(); +const signAttestationSubject = (subject, xprv, xpub) => { + const { label } = subject; + const { data } = subject; + const tupleToHash = JSON.stringify({ xpub, label, data }); + const hashToSignHex = sjcl.codec.hex.fromBits( + sjcl.hash.sha256.hash(tupleToHash), + ); + const keyName = `TEMP_KEY_${new Date().getTime()}`; + miniCryptoManager.installKey(keyName, xprv); + const signature = miniCryptoManager.sign(keyName, hashToSignHex); + + return { + pub: xpub, + label, + data, + signature, + }; +}; + +const toValueObject = (obj) => JSON.parse(JSON.stringify(obj)); +describe("Unit tests for Verifiable Credentials", () => { + beforeAll(() => { + const { title } = simpleSchema; + schemaLoader.addLoader( + new SimpleSchemaLoader({ + [title]: simpleSchema, + }), + ); + + VC.setResolver(stubResolver); + }); + + beforeEach(() => { + schemaLoader.reset(); + }); + + it("should create a simple credential", async () => { + const twitterHandle = "@abc"; + const rawClaims = { + type: "twitter", + identifier: twitterHandle, + }; + const rawClaimsArray = _.map(rawClaims, (value, key) => ({ key, value })); + + const cred = await VC.create( + "credential-test:Social-v1", + uuidv4(), + null, + credentialSubject, + rawClaimsArray, + ); + + expect(cred.credentialSubject.type).toBe('twitter'); + expect(cred.credentialSubject.identifier).toBe(twitterHandle); + expect(cred.proof.leaves).toHaveLength(2); + }); +}); diff --git a/__test__/creds/proxyFixtures/Address.json b/__test__/creds/proxyFixtures/Address.json deleted file mode 100644 index 0e198926..00000000 --- a/__test__/creds/proxyFixtures/Address.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "id": "7704ddf0-6226-4b2b-9146-d36083c7b01d", - "issuer": "jest:test:fe0c0990-e8b0-11e8-8a40-7fe4d191eb47", - "issuanceDate": "2018-11-15T08:32:30.890Z", - "identifier": "credential-cvc:Address-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Address-v1" - ], - "claim": { - "identity": { - "address": { - "city": "raSl8SUpYZ", - "country": "mqVSbDJF7I", - "county": "Lm2OhnTyw3", - "postalCode": "IZfp7BVc84", - "state": "C6vHYVzv2R", - "street": "MVJWImdrGv", - "unit": "6kP9kdNgHF" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "65825b6e759d96ed442aff3879fad771e4542a6bf129170fa28ad28725ae3193", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:Address-v1", - "data": "65825b6e759d96ed442aff3879fad771e4542a6bf129170fa28ad28725ae3193", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "claim-cvc:Identity.address-v1", - "value": "urn:address.city:0c22195bc8be13f690253e7a7d77850d6f3a2028593da99fdc87e23c8f7ad716:raSl8SUpYZ|urn:address.country:e3a8e92030c324a07c0a431f523d6311d55ec834dfe55c78a7c60f004d716ef1:mqVSbDJF7I|urn:address.county:40fbe881d6164e044d13e2bb1d5b8aa46141cdd97844c2167657d91d189c223b:Lm2OhnTyw3|urn:address.postalCode:85b81d9ce80e246f700d474ff6f3a51af21635633759754b8a527a79513365f4:IZfp7BVc84|urn:address.state:fdc1115c610e69f08c46bce846a72b71bf9c73488b92d4713a6c4c85f6cee773:C6vHYVzv2R|urn:address.street:939212e16f1e6ac159f97376d7015c962d23e0dea37eb447f3669246a122220e:MVJWImdrGv|urn:address.unit:e21c62cdfb0b874f104d3b6ed00ded1bef86a918aeee5446f63c7f7f6c3953ef:6kP9kdNgHF|", - "claimPath": "identity.address", - "targetHash": "6b8a901936f75dc4f27d12d81d3703e4d4b0199b275fce4cf339d80c06e00184", - "node": [ - { - "right": "4ad22678ea5865cf00e123357a06599943fb3c5fffc1f5aeb9881c902306b95d" - }, - { - "right": "76d6e6bc0d29bb97ba922e5a7ce868d6478b193b7b5878b7eaab560370d1e2d5" - }, - { - "right": "a68529456c987a188b58707055c1784f576333e12e588028cd9a4ae7986fc99c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:country:e3a8e92030c324a07c0a431f523d6311d55ec834dfe55c78a7c60f004d716ef1:mqVSbDJF7I|", - "claimPath": "identity.address.country", - "targetHash": "4ad22678ea5865cf00e123357a06599943fb3c5fffc1f5aeb9881c902306b95d", - "node": [ - { - "left": "6b8a901936f75dc4f27d12d81d3703e4d4b0199b275fce4cf339d80c06e00184" - }, - { - "right": "76d6e6bc0d29bb97ba922e5a7ce868d6478b193b7b5878b7eaab560370d1e2d5" - }, - { - "right": "a68529456c987a188b58707055c1784f576333e12e588028cd9a4ae7986fc99c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:county:40fbe881d6164e044d13e2bb1d5b8aa46141cdd97844c2167657d91d189c223b:Lm2OhnTyw3|", - "claimPath": "identity.address.county", - "targetHash": "03cf7915076dac2f500b5bb730738ee7c20c4fba93d4b3cdda7baf37aa6ccdfe", - "node": [ - { - "right": "30e3acf8512a5243caeabfadbdb72eec1332660e6af75e52070084eec445960f" - }, - { - "left": "1d155256a758aaa2fae08a309826350747a824be67dc263a182aac4743d14763" - }, - { - "right": "a68529456c987a188b58707055c1784f576333e12e588028cd9a4ae7986fc99c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "claim-cvc:Address.state-v1", - "value": "urn:state:fdc1115c610e69f08c46bce846a72b71bf9c73488b92d4713a6c4c85f6cee773:C6vHYVzv2R|", - "claimPath": "identity.address.state", - "targetHash": "30e3acf8512a5243caeabfadbdb72eec1332660e6af75e52070084eec445960f", - "node": [ - { - "left": "03cf7915076dac2f500b5bb730738ee7c20c4fba93d4b3cdda7baf37aa6ccdfe" - }, - { - "left": "1d155256a758aaa2fae08a309826350747a824be67dc263a182aac4743d14763" - }, - { - "right": "a68529456c987a188b58707055c1784f576333e12e588028cd9a4ae7986fc99c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "claim-cvc:Address.city-v1", - "value": "urn:city:0c22195bc8be13f690253e7a7d77850d6f3a2028593da99fdc87e23c8f7ad716:raSl8SUpYZ|", - "claimPath": "identity.address.city", - "targetHash": "9ccfc097a9ef2124a3b2cf1ae6ff71dd17a9adf8213adf90649594eba0e9a824", - "node": [ - { - "right": "1682744ff5a27fe7ef17086acb9d3d3d1fd4bb297d322e198027706a4432a672" - }, - { - "right": "3137574e9395e29ecbff9f9540559e7997067925a55d4d95bfe3b6e0fc3024cc" - }, - { - "left": "e682d8be77ad80c88794ad2466ad9c41e9353f14d5d2b3ca3c4c5b9fb0bf6b3c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "claim-cvc:Address.postalCode-v1", - "value": "urn:postalCode:85b81d9ce80e246f700d474ff6f3a51af21635633759754b8a527a79513365f4:IZfp7BVc84|", - "claimPath": "identity.address.postalCode", - "targetHash": "1682744ff5a27fe7ef17086acb9d3d3d1fd4bb297d322e198027706a4432a672", - "node": [ - { - "left": "9ccfc097a9ef2124a3b2cf1ae6ff71dd17a9adf8213adf90649594eba0e9a824" - }, - { - "right": "3137574e9395e29ecbff9f9540559e7997067925a55d4d95bfe3b6e0fc3024cc" - }, - { - "left": "e682d8be77ad80c88794ad2466ad9c41e9353f14d5d2b3ca3c4c5b9fb0bf6b3c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:40170bb006cc13d4f4868db5c7701fda8757857c910d64eff703172da20ba87d:jest:test:fe0c0990-e8b0-11e8-8a40-7fe4d191eb47|", - "claimPath": "meta.issuer", - "targetHash": "8bf25c5f15314b652511a075e9d952f8fb64582d642fc9289cc12e00547f7627", - "node": [ - { - "right": "df8a9da6a83881d4e2dc96874f8c34a32f08247614469cf3935289ea837eaa4d" - }, - { - "left": "2084b091edf3262d688d7254c92f43e718ee271db4bb74838baa34aa803c84c2" - }, - { - "left": "e682d8be77ad80c88794ad2466ad9c41e9353f14d5d2b3ca3c4c5b9fb0bf6b3c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:dd867d88bef20850d36f7b5c406c68cc57657450e206eeb9da41bbf3b5773deb:2018-11-15T08:32:30.890Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "df8a9da6a83881d4e2dc96874f8c34a32f08247614469cf3935289ea837eaa4d", - "node": [ - { - "left": "8bf25c5f15314b652511a075e9d952f8fb64582d642fc9289cc12e00547f7627" - }, - { - "left": "2084b091edf3262d688d7254c92f43e718ee271db4bb74838baa34aa803c84c2" - }, - { - "left": "e682d8be77ad80c88794ad2466ad9c41e9353f14d5d2b3ca3c4c5b9fb0bf6b3c" - }, - { - "right": "1460a84306154ed08984336461319d4f9c5de0c9e2e79192fea82c17a7367832" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:2fe45cc905cd094206e2e929b28ee7fc761c7e1b4e13a5e7eb9d73891333919e:null|", - "claimPath": "meta.expirationDate", - "targetHash": "7f557ffcc00e1d0b840c0024edda1a2d08ca4c8674b3ddd5c635b5bfc2566302", - "node": [ - { - "right": "8056bb669221ef4c9167cbe8d38a4eaef9146d1dc05f785170b321afc95d7f8d" - }, - { - "right": "a77fbc22a7c387002dc27970d3c63d751af5d30440ba927e72c06036b922fc3b" - }, - { - "right": "32a3703108a9698d5aeeb57ead7b66f2adba0771b259c3e1fc5818691ad3492a" - }, - { - "left": "5064c9052bd72025b4e63598ddde532d1d9efb101450366938c30a221f311b6c" - }, - { - "right": "87b8b89bcd06c7793e93567e4242ff376323ab862d3624ede4c8bed0b2364b9e" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/Cred1.json b/__test__/creds/proxyFixtures/Cred1.json deleted file mode 100644 index 5f0ffcd7..00000000 --- a/__test__/creds/proxyFixtures/Cred1.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "id": "3636227c-5adf-4135-b81c-6dd1da53fd67", - "issuer": "", - "issuanceDate": "2018-11-13T18:54:11.665Z", - "identifier": "credential-cvc:Email-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Email-v1" - ], - "claim": { - "contact": { - "email": { - "domain": { - "name": "UTpHKFyaaB", - "tld": "oVaPsceZ4C" - }, - "username": "ZcMpCBQ0lE" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "7f62f719275f47331782c57d98e138c2c063065476f73a38c99023ddf9009287", - "anchor": "TBD (Civic Blockchain Attestation)", - "leaves": [ - { - "identifier": "claim-cvc:Contact.email-v1", - "value": "urn:email.domain.name:65572f78625ca98197745bd560fc5d8e6a7be7d8d9fcf6344947b697b73cd676:UTpHKFyaaB|urn:email.domain.tld:199c3b2cbc991cf024860f3cdfb71c956f0dea1fe397efb10ad1d8621163a9a1:oVaPsceZ4C|urn:email.username:705e41988a3659d943eeaaa5e6c91cc8de401674c4e130a7c44f5b4b2e8d7736:ZcMpCBQ0lE|", - "claimPath": "contact.email", - "targetHash": "dbd7c2e9f6369bdc1653cd29484b23324bac5cc2681bc956d5621163d10c82e7", - "node": [ - { - "right": "e3662aeff5df76f0a694848bf529ec9e52f4a981d5a0afa27e48bfeae37992d7" - }, - { - "right": "43a08a21a85219f2964a5473e270698296aeda22c08299ba61523d6b51bab102" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "claim-cvc:Email.domain-v1", - "value": "urn:domain.name:65572f78625ca98197745bd560fc5d8e6a7be7d8d9fcf6344947b697b73cd676:UTpHKFyaaB|urn:domain.tld:199c3b2cbc991cf024860f3cdfb71c956f0dea1fe397efb10ad1d8621163a9a1:oVaPsceZ4C|", - "claimPath": "contact.email.domain", - "targetHash": "e3662aeff5df76f0a694848bf529ec9e52f4a981d5a0afa27e48bfeae37992d7", - "node": [ - { - "left": "dbd7c2e9f6369bdc1653cd29484b23324bac5cc2681bc956d5621163d10c82e7" - }, - { - "right": "43a08a21a85219f2964a5473e270698296aeda22c08299ba61523d6b51bab102" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:3c1d9cc9f8bd5dd7f4845c18017c559ecee758c6dc2f5a3b63385bf3f681e13a:|", - "claimPath": "meta.issuer", - "targetHash": "321c8608ee0b80eab76db4d753e1f5311e722d0d77468e376bc25a78b8560b1b", - "node": [ - { - "right": "2820718fc34e3e07c40c4c0c0985937a193a63839695768f38630acfbecaf85d" - }, - { - "left": "b13aa2fb81649ae46142393ef503c7dea123f60e0909002f9f5d19a49cf8c787" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:0029acb02ff26faf7775883957e9a5271b358f56734496b7ffde2760ace9ddce:2018-11-13T18:54:11.665Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "2820718fc34e3e07c40c4c0c0985937a193a63839695768f38630acfbecaf85d", - "node": [ - { - "left": "321c8608ee0b80eab76db4d753e1f5311e722d0d77468e376bc25a78b8560b1b" - }, - { - "left": "b13aa2fb81649ae46142393ef503c7dea123f60e0909002f9f5d19a49cf8c787" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:f437c1d530d5422b3df947b7d97da82c5abfee582c1be15bd2900ff35e8d0624:null|", - "claimPath": "meta.expirationDate", - "targetHash": "c73ce4be4e264f366dfc8a95abf7e507e75d13a2a06af5e50d2dc09e6c71d9cd", - "node": [ - { - "right": "8c741ed5a929697f02cfb47019d1e60ed038ac40b4f32ef52ae48ea0fa93c0fe" - }, - { - "right": "9740db43522f2170c4ad18230f53ac4dbdb9f7e423687e320767b569d6ee12be" - }, - { - "left": "63866d32feddce9393a91d54b85d370c5cfc38641ce3b4db2df73499b9347918" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/CredExpired.json b/__test__/creds/proxyFixtures/CredExpired.json deleted file mode 100644 index 25493a57..00000000 --- a/__test__/creds/proxyFixtures/CredExpired.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "id": "41ab3aaa-7ebd-4f02-a1e4-815ba6054cdd", - "issuer": "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", - "issuanceDate": "2018-11-14T08:59:12.241Z", - "identifier": "credential-cvc:Address-v1", - "expirationDate": "2008-11-13T22:51:32.241Z", - "version": "1", - "type": [ - "Credential", - "credential-cvc:Address-v1" - ], - "claim": { - "identity": { - "address": { - "city": "Belo Horizonte", - "country": "Brazil", - "county": "Sao Bento", - "postalCode": "94103345", - "state": "Minas Gerais", - "street": "Alameda dos Anjos", - "unit": "500" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "3a513a3fbf30843465c6bd77f5ba315fea3d6c5d3f7c62a4151b0484adcc48e5", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:Address-v1", - "data": "3a513a3fbf30843465c6bd77f5ba315fea3d6c5d3f7c62a4151b0484adcc48e5", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "claim-cvc:Identity.address-v1", - "value": "urn:address.city:304439b144c9c98eb029ebe9acfbc5ce1956ecdec9501619313fd4e1d34cd145:Belo Horizonte|urn:address.country:0ab5eb5f6129c1359e11c1eba514ffac6c5c9876a3ff99f839312dccf5560d61:Brazil|urn:address.county:2b18194dd667becedb53ee6220a3f5248c72192b98e0c5860e567ff2d948c63d:Sao Bento|urn:address.postalCode:5623d043537adf8cd8728e2fd84d457db2412ccdbed9f90d6a5daaacf412ac8b:94103345|urn:address.state:9fb2ba30a6903749669340e5c6525fa39e10a78712e1114dd4d0ee9fccc1841e:Minas Gerais|urn:address.street:5369705a0e1a693071da1e92eca865e65685509075e27cb948c098c418bb03fb:Alameda dos Anjos|urn:address.unit:fe01b55010d52d6c0dabca1e811741831c506dc4ef80b29983622fff050b83f9:500|", - "claimPath": "identity.address", - "targetHash": "e3e46c7cc3b928b17762e43b4a4850f710598b94e4fca189653c9cd9f9952cd6", - "node": [ - { - "right": "d2af8c084dfaa6c44ed13e370e09d8a3a9697d3a44085c02b04dc75b5d826b5a" - }, - { - "right": "f407ec45ab5fdcdc1b22c385bfc31d1c1ee69af95eb61c5e91e7de8153284e1d" - }, - { - "right": "3c85abb94e28c250ccc9fbc642cf974167075e503bf5a5631a43db70abdede0e" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "claim-cvc:Address.city-v1", - "value": "urn:city:304439b144c9c98eb029ebe9acfbc5ce1956ecdec9501619313fd4e1d34cd145:Belo Horizonte|", - "claimPath": "identity.address.city", - "targetHash": "d2af8c084dfaa6c44ed13e370e09d8a3a9697d3a44085c02b04dc75b5d826b5a", - "node": [ - { - "left": "e3e46c7cc3b928b17762e43b4a4850f710598b94e4fca189653c9cd9f9952cd6" - }, - { - "right": "f407ec45ab5fdcdc1b22c385bfc31d1c1ee69af95eb61c5e91e7de8153284e1d" - }, - { - "right": "3c85abb94e28c250ccc9fbc642cf974167075e503bf5a5631a43db70abdede0e" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "claim-cvc:Address.postalCode-v1", - "value": "urn:postalCode:5623d043537adf8cd8728e2fd84d457db2412ccdbed9f90d6a5daaacf412ac8b:94103345|", - "claimPath": "identity.address.postalCode", - "targetHash": "220824357aefd1538fd058e3ac72a2f39d1ebe145d93109b5aefc01ca3da1bf3", - "node": [ - { - "right": "f471ea8edd64a5a9a36f9bf87e5c5ce935003500cb24ca4a1db042213bbe61d1" - }, - { - "left": "2b4f29f828cb9481dc9ec609d90410f8f17751b6e353b84c92a3ade96a76565d" - }, - { - "right": "3c85abb94e28c250ccc9fbc642cf974167075e503bf5a5631a43db70abdede0e" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "claim-cvc:Address.state-v1", - "value": "urn:state:9fb2ba30a6903749669340e5c6525fa39e10a78712e1114dd4d0ee9fccc1841e:Minas Gerais|", - "claimPath": "identity.address.state", - "targetHash": "f471ea8edd64a5a9a36f9bf87e5c5ce935003500cb24ca4a1db042213bbe61d1", - "node": [ - { - "left": "220824357aefd1538fd058e3ac72a2f39d1ebe145d93109b5aefc01ca3da1bf3" - }, - { - "left": "2b4f29f828cb9481dc9ec609d90410f8f17751b6e353b84c92a3ade96a76565d" - }, - { - "right": "3c85abb94e28c250ccc9fbc642cf974167075e503bf5a5631a43db70abdede0e" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:county:2b18194dd667becedb53ee6220a3f5248c72192b98e0c5860e567ff2d948c63d:Sao Bento|", - "claimPath": "identity.address.county", - "targetHash": "1dcd10c572b73adf74c2e7ce43244fd8673c943e05772a572b55761d7d8c1ca4", - "node": [ - { - "right": "56a50a2a6debbea623de511b769e53a6d28773199115e108ff6618b85e912081" - }, - { - "right": "3ccb667d3053fa62a7fcf42970a9a01285fe9fb786a229ecbba3da7a350a6bef" - }, - { - "left": "87557c0dd21ea97dc710a8db9787739a08ea96d12ab10d0549d9e6571d22f6e0" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:country:0ab5eb5f6129c1359e11c1eba514ffac6c5c9876a3ff99f839312dccf5560d61:Brazil|", - "claimPath": "identity.address.country", - "targetHash": "56a50a2a6debbea623de511b769e53a6d28773199115e108ff6618b85e912081", - "node": [ - { - "left": "1dcd10c572b73adf74c2e7ce43244fd8673c943e05772a572b55761d7d8c1ca4" - }, - { - "right": "3ccb667d3053fa62a7fcf42970a9a01285fe9fb786a229ecbba3da7a350a6bef" - }, - { - "left": "87557c0dd21ea97dc710a8db9787739a08ea96d12ab10d0549d9e6571d22f6e0" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:f99a51fb30de4ed925d04ce3cbdb9bfb433b82d37fa7a813e6a1c7f9aa912bbc:did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD|", - "claimPath": "meta.issuer", - "targetHash": "f8bd53c96d5a6ee23074c1480b48e4ebf704b8aa009987f880e49511370f46f9", - "node": [ - { - "right": "a5f7edc588233634be469b499add5090fd01bdd7bba3ef05d0f48e96eea5634d" - }, - { - "left": "3608c88e75330068204d4c55c2b50a6fffa82ff856121b8c29a6717768a02008" - }, - { - "left": "87557c0dd21ea97dc710a8db9787739a08ea96d12ab10d0549d9e6571d22f6e0" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:4e89a4981f5543ae8efbdde2ac64684a1c6decb4f004b3dd9daa8b785e1eda95:2018-11-14T08:59:12.241Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "a5f7edc588233634be469b499add5090fd01bdd7bba3ef05d0f48e96eea5634d", - "node": [ - { - "left": "f8bd53c96d5a6ee23074c1480b48e4ebf704b8aa009987f880e49511370f46f9" - }, - { - "left": "3608c88e75330068204d4c55c2b50a6fffa82ff856121b8c29a6717768a02008" - }, - { - "left": "87557c0dd21ea97dc710a8db9787739a08ea96d12ab10d0549d9e6571d22f6e0" - }, - { - "right": "21793ace1e6bd8d05b818db3c37faa34eb1de20d02cacb1dc8bed2c302c7d667" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:67d7d4a87e862bd72c24b198d1773dbdf2bb6ae424617427cf434f004a03fa19:2008-11-13T22:51:32.241Z|", - "claimPath": "meta.expirationDate", - "targetHash": "552ac625ba33eaecee589d226da8bf6c206bcc634bc99d79b46f35ccd34c22f2", - "node": [ - { - "right": "f23cddd34559092bf18ea7547ce792d7b56aa105cde0107a9ad1c0b4c0f6e46e" - }, - { - "right": "67566c9a3ce09a50b184f3ac701061a04529d1bfa9b5ae4ffbcfadb6922ba7ad" - }, - { - "right": "7cd187363758f53fdaa4206c711d2f822a9ff102713e5436f79d596ca4f8068f" - }, - { - "left": "b64de3344caee3c24e934f637583b89372f4dc30f2b7f609522b285e5d0fbda8" - }, - { - "right": "b8972ce7e1b536cf40a8c7d8ae3eeb0ebb22a7843dd5362217e726b7ad2f9aaa" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/CredFiltered1.json b/__test__/creds/proxyFixtures/CredFiltered1.json deleted file mode 100644 index 8cc2326b..00000000 --- a/__test__/creds/proxyFixtures/CredFiltered1.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "id": null, - "issuer": "jest:test", - "issuanceDate": "2018-06-19T21:52:47.512Z", - "identifier": "credential-cvc:TestWithExcludes-v1", - "expirationDate": "2028-06-19T08:04:47.512Z", - "version": 1, - "type": [ - "Credential", - "civ:Credential:TestWithExcludes" - ], - "claim": { - "identity": { - "name": { - "first": "Joao", - "last": "Santos" - }, - "dateOfBirth": { - "day": "00000020", - "month": "00000003", - "year": "00001978" - } - } - }, - "proof": { - "type": "CivicMerkleProof2018", - "merkleRoot": "727e31f168b63192872be6c51ac476bafbdf55b927f755503b3674bd669c7483", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "civ:Credential:Address", - "data": "c81c5b22438916f2bd75e2966df989b9302ce65887813dd1661f9f24407c5dfe", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "civ:Identity:name", - "value": "urn:first:06bd5d7540cac730128336b7d3018e61466168bb2a5e0d1162286c1193e53806:Joao|urn:last:5322fead9f581930aa3bd53bf8a05cf5d9a2196978d69d5c1dab32fbd201f229:Santos|urn:middle:c16c304da31a95714e7ff3842388108198f48951eab462e4b224b3ba74933a41:Barbosa|", - "claimPath": "identity.name", - "targetHash": "b611a28aa02fec445f4d10daa08c77282c048d7c085cfccaa3da1fb37df8eec3", - "node": [ - { - "right": "fb9ff4f4d59cc9e081a160513dc29a1a27a89acab5fdd850a4962769d56ae47a" - }, - { - "right": "7b90a23897ba3155c140603216fbee40b91b4fcfa3f615fbde47477861f24e10" - }, - { - "right": "e6dd11c53b1d630195c0fd0d19093907c79820bc797c71f9d06b0c00b2adfc61" - }, - { - "right": "d552f190111a5bb356075f50d9e16b041b39f6775dbcd9f93a450aee6f8fcf42" - }, - { - "right": "2cf712964d5bc60af5ae3a76e443504e4368bd8599348951e3c9b6b952ace485" - } - ] - }, - { - "identifier": "civ:Identity:name.first", - "value": "urn:first:06bd5d7540cac730128336b7d3018e61466168bb2a5e0d1162286c1193e53806:Joao", - "claimPath": "identity.name.first", - "targetHash": "fb9ff4f4d59cc9e081a160513dc29a1a27a89acab5fdd850a4962769d56ae47a", - "node": [ - { - "left": "b611a28aa02fec445f4d10daa08c77282c048d7c085cfccaa3da1fb37df8eec3" - }, - { - "right": "7b90a23897ba3155c140603216fbee40b91b4fcfa3f615fbde47477861f24e10" - }, - { - "right": "e6dd11c53b1d630195c0fd0d19093907c79820bc797c71f9d06b0c00b2adfc61" - }, - { - "right": "d552f190111a5bb356075f50d9e16b041b39f6775dbcd9f93a450aee6f8fcf42" - }, - { - "right": "2cf712964d5bc60af5ae3a76e443504e4368bd8599348951e3c9b6b952ace485" - } - ] - }, - { - "identifier": "civ:Identity:name.last", - "value": "urn:last:5322fead9f581930aa3bd53bf8a05cf5d9a2196978d69d5c1dab32fbd201f229:Santos", - "claimPath": "identity.name.last", - "targetHash": "1b7fb200672fd586f0e5af599c82b99c3c82701f0fbf1bce370a86260724a8fb", - "node": [ - { - "left": "93d81a31943bf99fca620865b2034d4efe8271ddc2aa80cca09bf02ba7b1a1af" - }, - { - "left": "16e4fa431cad803c0ff0c5901276dfb423a32544297103501467d9874182a122" - }, - { - "right": "e6dd11c53b1d630195c0fd0d19093907c79820bc797c71f9d06b0c00b2adfc61" - }, - { - "right": "d552f190111a5bb356075f50d9e16b041b39f6775dbcd9f93a450aee6f8fcf42" - }, - { - "right": "2cf712964d5bc60af5ae3a76e443504e4368bd8599348951e3c9b6b952ace485" - } - ] - }, - { - "identifier": "civ:Identity:dateOfBirth", - "value": "urn:day:7d778001ef55728251ed83acb9f845a909326c831fbf2248718a106bf61a649d:00000020|urn:month:24bb78bbda6808e4dc926d5e35bd0b95c496d79d94c7a121a7e3c2ba51df03c2:00000003|urn:year:b628c03201fd5b41f6e1dea006f42083f8ea51351e590218e7edf58dca73febf:00001978|", - "claimPath": "identity.dateOfBirth", - "targetHash": "265477d6ad8eaa1462389d3fc88e4a69e5de8a675644724efa6ee1116f6fe5df", - "node": [ - { - "right": "c37bb183602396349a53581ddca31d99b2aca4c7fb9d467959c19b00639eb1f6" - }, - { - "right": "c7dc902b0432fcae7fe083ba5feda0c1e33390c2b386d00cb2aeed0d325f75d0" - }, - { - "left": "97552ab9fd9c1b8630e644c74a0bb948284fe31800ece9c8b08bcdbe142d9e49" - }, - { - "right": "d552f190111a5bb356075f50d9e16b041b39f6775dbcd9f93a450aee6f8fcf42" - }, - { - "right": "2cf712964d5bc60af5ae3a76e443504e4368bd8599348951e3c9b6b952ace485" - } - ] - }, - { - "identifier": "civ:Meta:issuer", - "value": "urn:issuer:e98bae4cb7c700aa3bebb6d046c3d27cca56ab3701f9c1c876e70faaccb63b26:jest:test", - "claimPath": "meta.issuer", - "targetHash": "c37bb183602396349a53581ddca31d99b2aca4c7fb9d467959c19b00639eb1f6", - "node": [ - { - "left": "265477d6ad8eaa1462389d3fc88e4a69e5de8a675644724efa6ee1116f6fe5df" - }, - { - "right": "c7dc902b0432fcae7fe083ba5feda0c1e33390c2b386d00cb2aeed0d325f75d0" - }, - { - "left": "97552ab9fd9c1b8630e644c74a0bb948284fe31800ece9c8b08bcdbe142d9e49" - }, - { - "right": "d552f190111a5bb356075f50d9e16b041b39f6775dbcd9f93a450aee6f8fcf42" - }, - { - "right": "2cf712964d5bc60af5ae3a76e443504e4368bd8599348951e3c9b6b952ace485" - } - ] - }, - { - "identifier": "civ:Meta:issuanceDate", - "value": "urn:issuanceDate:6e8ec32829149c0e79f842bcea74e9ecb35b5caef8ebbef3a2cb4d0acc050c7b:2018-06-19T21:52:47.512Z", - "claimPath": "meta.issuanceDate", - "targetHash": "c2b6b8d96dd3a3ff0e08fd9ee3c92c2a1092188553264a7269f1141e7335afb6", - "node": [ - { - "right": "6393b47db993ca6de857f5ea39f987d2a324e1cfcdb8076a63a8b35b8cdab6e7" - }, - { - "left": "f737f7202ba3ae83ea9c7a7f1329c7e4e487915894a5c1869074ea843688a042" - }, - { - "left": "97552ab9fd9c1b8630e644c74a0bb948284fe31800ece9c8b08bcdbe142d9e49" - }, - { - "right": "d552f190111a5bb356075f50d9e16b041b39f6775dbcd9f93a450aee6f8fcf42" - }, - { - "right": "2cf712964d5bc60af5ae3a76e443504e4368bd8599348951e3c9b6b952ace485" - } - ] - }, - { - "identifier": "civ:Meta:expirationDate", - "value": "urn:expirationDate:f4729360448714d9902894b38f5f977702441379ffc53337f2261914879fc32d:2028-06-19T08:04:47.512Z", - "claimPath": "meta.expirationDate", - "targetHash": "6393b47db993ca6de857f5ea39f987d2a324e1cfcdb8076a63a8b35b8cdab6e7", - "node": [ - { - "left": "c2b6b8d96dd3a3ff0e08fd9ee3c92c2a1092188553264a7269f1141e7335afb6" - }, - { - "left": "f737f7202ba3ae83ea9c7a7f1329c7e4e487915894a5c1869074ea843688a042" - }, - { - "left": "97552ab9fd9c1b8630e644c74a0bb948284fe31800ece9c8b08bcdbe142d9e49" - }, - { - "right": "d552f190111a5bb356075f50d9e16b041b39f6775dbcd9f93a450aee6f8fcf42" - }, - { - "right": "2cf712964d5bc60af5ae3a76e443504e4368bd8599348951e3c9b6b952ace485" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/CredWithFutureExpiry.json b/__test__/creds/proxyFixtures/CredWithFutureExpiry.json deleted file mode 100644 index 91e23a62..00000000 --- a/__test__/creds/proxyFixtures/CredWithFutureExpiry.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "id": "8a842560-40fc-4dcf-ae7f-23148a108829", - "issuer": "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", - "issuanceDate": "2018-11-14T09:00:43.439Z", - "identifier": "credential-cvc:Address-v1", - "expirationDate": "2028-11-13T19:08:23.439Z", - "version": "1", - "type": [ - "Credential", - "credential-cvc:Address-v1" - ], - "claim": { - "identity": { - "address": { - "city": "Belo Horizonte", - "country": "Brazil", - "county": "Sao Bento", - "postalCode": "94103345", - "state": "Minas Gerais", - "street": "Alameda dos Anjos", - "unit": "500" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "b9714602a25118942d5aa1e4865aabd8238c4f6b2bb74c746b2a954c9fd1b9ea", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:Address-v1", - "data": "b9714602a25118942d5aa1e4865aabd8238c4f6b2bb74c746b2a954c9fd1b9ea", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "claim-cvc:Identity.address-v1", - "value": "urn:address.city:ee7831025d001c630566afd1f4067e90f28caa23823e764c6295f41dff89e18a:Belo Horizonte|urn:address.country:75c6faa83a9621b3cf6e05762d1440be1a58c857faee4fab50d0c62575a3e7e6:Brazil|urn:address.county:e18f114049b5e5a37958c662a61ea27817fb69c7123bdc16c196dd460151b16a:Sao Bento|urn:address.postalCode:5bc128e2161a7cc971cca3d32da2af201d87fa7b2f236549d1d28b2dce7af318:94103345|urn:address.state:6ff19a2a4928c2d8b8c3265d44206290d686068a3ed1ae551caf4d8762a77c33:Minas Gerais|urn:address.street:e9bed36fda0902eb92c9661b4f525855105a400e7fc08083564e379befc7414d:Alameda dos Anjos|urn:address.unit:78783212de2926fc1221870bcca846d7e9378b5b750d6104b773ce776eefa961:500|", - "claimPath": "identity.address", - "targetHash": "514fc789cc8a37abd2dfdcb11017051f51cc84ae7878d2da8b190c3c5074b329", - "node": [ - { - "right": "adbded73c3db76bb49d718184588184547b511737419e51cbec04ae1be0847ac" - }, - { - "right": "cad620d70c72ef671ace60e756875d22332469924f48be0da14078d9e5814d9c" - }, - { - "right": "f7cf58c4223a7f2368e9d7bf913abd88c06ef7525ec59c45f03ebc5c9be5ac5a" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "claim-cvc:Address.city-v1", - "value": "urn:city:ee7831025d001c630566afd1f4067e90f28caa23823e764c6295f41dff89e18a:Belo Horizonte|", - "claimPath": "identity.address.city", - "targetHash": "adbded73c3db76bb49d718184588184547b511737419e51cbec04ae1be0847ac", - "node": [ - { - "left": "514fc789cc8a37abd2dfdcb11017051f51cc84ae7878d2da8b190c3c5074b329" - }, - { - "right": "cad620d70c72ef671ace60e756875d22332469924f48be0da14078d9e5814d9c" - }, - { - "right": "f7cf58c4223a7f2368e9d7bf913abd88c06ef7525ec59c45f03ebc5c9be5ac5a" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "claim-cvc:Address.postalCode-v1", - "value": "urn:postalCode:5bc128e2161a7cc971cca3d32da2af201d87fa7b2f236549d1d28b2dce7af318:94103345|", - "claimPath": "identity.address.postalCode", - "targetHash": "c8a2719635d2eb4d4dfcee2d04ec4651318c8a9406ccebd12345ca644c75b51d", - "node": [ - { - "right": "e7f430e61b6d5ac758f35e881289077978cd59ed648b841f0d8b09671bf697dd" - }, - { - "left": "7d3d13f8af2e7fffe78c393b5c2683aa0daa3495fec3197f9a8a5308ab9f233e" - }, - { - "right": "f7cf58c4223a7f2368e9d7bf913abd88c06ef7525ec59c45f03ebc5c9be5ac5a" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "claim-cvc:Address.state-v1", - "value": "urn:state:6ff19a2a4928c2d8b8c3265d44206290d686068a3ed1ae551caf4d8762a77c33:Minas Gerais|", - "claimPath": "identity.address.state", - "targetHash": "e7f430e61b6d5ac758f35e881289077978cd59ed648b841f0d8b09671bf697dd", - "node": [ - { - "left": "c8a2719635d2eb4d4dfcee2d04ec4651318c8a9406ccebd12345ca644c75b51d" - }, - { - "left": "7d3d13f8af2e7fffe78c393b5c2683aa0daa3495fec3197f9a8a5308ab9f233e" - }, - { - "right": "f7cf58c4223a7f2368e9d7bf913abd88c06ef7525ec59c45f03ebc5c9be5ac5a" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:county:e18f114049b5e5a37958c662a61ea27817fb69c7123bdc16c196dd460151b16a:Sao Bento|", - "claimPath": "identity.address.county", - "targetHash": "cba237895ec0aa51ded88b320b727114472e5dfd7a70651bf51c619bdfd787e2", - "node": [ - { - "right": "ac2e07db0f6c4923e1cb67dcd387af07150d6043fcdd12ba7c884d72709b724b" - }, - { - "right": "e63c76842c514b0e9280fa7511605340eee0e9f17359643f16fa0a9fc372bb22" - }, - { - "left": "2f895fbd920dadd74aec18fb24dcb28a74caa32c0d4079250a98ba734a0ed156" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:country:75c6faa83a9621b3cf6e05762d1440be1a58c857faee4fab50d0c62575a3e7e6:Brazil|", - "claimPath": "identity.address.country", - "targetHash": "ac2e07db0f6c4923e1cb67dcd387af07150d6043fcdd12ba7c884d72709b724b", - "node": [ - { - "left": "cba237895ec0aa51ded88b320b727114472e5dfd7a70651bf51c619bdfd787e2" - }, - { - "right": "e63c76842c514b0e9280fa7511605340eee0e9f17359643f16fa0a9fc372bb22" - }, - { - "left": "2f895fbd920dadd74aec18fb24dcb28a74caa32c0d4079250a98ba734a0ed156" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:fd95eb174ddb8a0ec545894995a7ee542430fd9ce20da3117b35d8fbe29b7dcb:did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD|", - "claimPath": "meta.issuer", - "targetHash": "fdc74b079604ba0a45cfdb771e677b3ae426d07d8536d18d6a1b98e5781be56a", - "node": [ - { - "right": "a286fc2a5baef447725b08cf55466589e31990038ee42269fd43d59cf186d613" - }, - { - "left": "d0d888ba93cadb3e89ab97b6fb3a08c6de2b416a83b6b492bb58253906a0fcd6" - }, - { - "left": "2f895fbd920dadd74aec18fb24dcb28a74caa32c0d4079250a98ba734a0ed156" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:08df34a6cea04496033a2e467019e57c17f63c730c6599a57238e77d9d842577:2018-11-14T09:00:43.439Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "a286fc2a5baef447725b08cf55466589e31990038ee42269fd43d59cf186d613", - "node": [ - { - "left": "fdc74b079604ba0a45cfdb771e677b3ae426d07d8536d18d6a1b98e5781be56a" - }, - { - "left": "d0d888ba93cadb3e89ab97b6fb3a08c6de2b416a83b6b492bb58253906a0fcd6" - }, - { - "left": "2f895fbd920dadd74aec18fb24dcb28a74caa32c0d4079250a98ba734a0ed156" - }, - { - "right": "93185bcd8244aa98c885b3ae2d8eecf01661c633fd8ed3743b31605e2fd66e55" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:330447afa605c5d0dfc277489c3cc8cf7fb78552376629d47c2eb56eafa791cc:2028-11-13T19:08:23.439Z|", - "claimPath": "meta.expirationDate", - "targetHash": "17a922e8326ede33f3b9ce28077a6ab0babf541419b3d991842a0fbd4ce53124", - "node": [ - { - "right": "cb660f250ca9b3531adb83fa60f38d296bad4dd9c43125581c149b19e60f5e40" - }, - { - "right": "e3f1503236f58e01e0f09de72417ab3d615b55987bc22291ba8c2b8cdfe9a4af" - }, - { - "right": "6a818422c060cfb057ff8328c03f558e3f7ebdf7a69aadafee592ac061941f68" - }, - { - "left": "e9856ae68eda3f8697efc54c455430a2bbd323fa3a9cf723931b77a077db401f" - }, - { - "right": "5131392d9fc303b956cf03855a147a732aebc9ab70fab32828ddad319b7dd6eb" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/CredentialAddress.json b/__test__/creds/proxyFixtures/CredentialAddress.json deleted file mode 100644 index 197bb701..00000000 --- a/__test__/creds/proxyFixtures/CredentialAddress.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "id": "fc60be8f-ea01-4881-a6e9-b4ae9a63e55e", - "issuer": "jest:test:9ff1e700-dd46-11e8-958d-e5793374641e", - "issuanceDate": "2018-10-31T19:53:23.568Z", - "identifier": "credential-cvc:PhoneNumber-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:PhoneNumber-v1" - ], - "claim": { - "contact": { - "phoneNumber": { - "country": "WTYqO3zRU0", - "countryCode": "nmQfVTPkEM", - "extension": "lo6CoXdj2N", - "lineType": "zkdkjiX1eP", - "number": "h7CrPkWRoA" - } - } - }, - "proof": { - "type": "CivicMerkleProof2018", - "merkleRoot": "77ca9a60724d007173136465fa6bdcaa27d12a1801b1d1e8ab974552344d2e39", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:PhoneNumber-v1", - "data": "77ca9a60724d007173136465fa6bdcaa27d12a1801b1d1e8ab974552344d2e39", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "credential-cvc:PhoneNumber-v1", - "value": "urn:country:ca3bce5c4b3256888c8fa9937d3025516b49b422112bd99cdaf9be66087984e9:WTYqO3zRU0|urn:countryCode:81a228f771ef72126b22d6d17f08222f4241efedf5f13fbb635d8568686a0b6f:nmQfVTPkEM|urn:extension:42cab0927b370d5ee047152aaf52c902f80d7de312bdeca6e4c4e3d4c6603abc:lo6CoXdj2N|urn:lineType:0a71c9a31246f2f6ecfd76a7c71f34a6f741cef3afb2466cc88017bdc16d95a7:zkdkjiX1eP|urn:number:53a8ba743f83a16e533d5572c24dad080820baef958e80c39899838ba1cdd674:h7CrPkWRoA|", - "claimPath": "contact.phoneNumber", - "targetHash": "cc8f00eaf13969a880fe5d57204b509dd7cc087b99019af1c6e678d4fe072499", - "node": [ - { - "right": "082eeee25eae17f13a74b4d0801d182f9e490ddd70969d1b1a23a709fe87a184" - }, - { - "right": "cd0013b49b3d52aa5c6bf6ac854e77fcac1eab934d4c388ae5837f70172ee91e" - }, - { - "right": "a1d95e970de891aa6d227426d071a28f3440ee0a3e99f2a76c1a49193cd999f8" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - }, - { - "identifier": "cvc:Phone:countryCode", - "value": "urn:countryCode:81a228f771ef72126b22d6d17f08222f4241efedf5f13fbb635d8568686a0b6f:nmQfVTPkEM", - "claimPath": "phone.countryCode", - "targetHash": "082eeee25eae17f13a74b4d0801d182f9e490ddd70969d1b1a23a709fe87a184", - "node": [ - { - "left": "cc8f00eaf13969a880fe5d57204b509dd7cc087b99019af1c6e678d4fe072499" - }, - { - "right": "cd0013b49b3d52aa5c6bf6ac854e77fcac1eab934d4c388ae5837f70172ee91e" - }, - { - "right": "a1d95e970de891aa6d227426d071a28f3440ee0a3e99f2a76c1a49193cd999f8" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - }, - { - "identifier": "cvc:Phone:number", - "value": "urn:number:53a8ba743f83a16e533d5572c24dad080820baef958e80c39899838ba1cdd674:h7CrPkWRoA", - "claimPath": "phone.number", - "targetHash": "bf6403908a22f3e8c5d477498d6828411801280128289ecd8680ea8496a92d4d", - "node": [ - { - "right": "1b52b0600694813ce1992fafe6d106d10ecef752721f7c79aae6db6be8eede54" - }, - { - "left": "a9cb50eddf122581028336ac675bd83d681eaeda754aced0630e8c765914a656" - }, - { - "right": "a1d95e970de891aa6d227426d071a28f3440ee0a3e99f2a76c1a49193cd999f8" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - }, - { - "identifier": "cvc:Phone:extension", - "value": "urn:extension:42cab0927b370d5ee047152aaf52c902f80d7de312bdeca6e4c4e3d4c6603abc:lo6CoXdj2N", - "claimPath": "phone.extension", - "targetHash": "1b52b0600694813ce1992fafe6d106d10ecef752721f7c79aae6db6be8eede54", - "node": [ - { - "left": "bf6403908a22f3e8c5d477498d6828411801280128289ecd8680ea8496a92d4d" - }, - { - "left": "a9cb50eddf122581028336ac675bd83d681eaeda754aced0630e8c765914a656" - }, - { - "right": "a1d95e970de891aa6d227426d071a28f3440ee0a3e99f2a76c1a49193cd999f8" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - }, - { - "identifier": "cvc:Phone:lineType", - "value": "urn:lineType:0a71c9a31246f2f6ecfd76a7c71f34a6f741cef3afb2466cc88017bdc16d95a7:zkdkjiX1eP", - "claimPath": "phone.lineType", - "targetHash": "90891289e7dd6c36dd1fc38187fce024899bdd1c20bf857ff1fe439b2bd18754", - "node": [ - { - "right": "059d1df65ffdc8a1c0cff86412f716745531466cdd1c9c2c1264364bba325e01" - }, - { - "right": "7d167b4360413c5016d7bdf6b080767275e925e07c18f0a16729b882ef245ace" - }, - { - "left": "0d4f56aae6f29bab5d8f83fb595673bdc629d5d0973e78b53ad43a1bb1dd9515" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:5bd06324dc242c17e811f56c8d449b4c8f966503811abc1f5a0ff35b876fee2d:jest:test:9ff1e700-dd46-11e8-958d-e5793374641e", - "claimPath": "meta.issuer", - "targetHash": "059d1df65ffdc8a1c0cff86412f716745531466cdd1c9c2c1264364bba325e01", - "node": [ - { - "left": "90891289e7dd6c36dd1fc38187fce024899bdd1c20bf857ff1fe439b2bd18754" - }, - { - "right": "7d167b4360413c5016d7bdf6b080767275e925e07c18f0a16729b882ef245ace" - }, - { - "left": "0d4f56aae6f29bab5d8f83fb595673bdc629d5d0973e78b53ad43a1bb1dd9515" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:b8b3000ae66079b85aaadb9adfe6658ae09452f77fb8eefeddf96c40692c8bd7:2018-10-31T19:53:23.568Z", - "claimPath": "meta.issuanceDate", - "targetHash": "93c37224a3cd5e6dd47a98e55f42854ee5b3b9fda63f60b8076c57a59bd84f0b", - "node": [ - { - "right": "292ed3b6a33a406ae43bf0d43d159a04a5417e1a244017c174194889898de1e1" - }, - { - "left": "785d97b0b9fe7809bf55803fc3ded62180e9b01fac15a488ac84e6238eb466f3" - }, - { - "left": "0d4f56aae6f29bab5d8f83fb595673bdc629d5d0973e78b53ad43a1bb1dd9515" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:a43b2ec05674437f2e440be5c72cfcee323fe544c88e212f4bc6c463a8c35dda:null", - "claimPath": "meta.expirationDate", - "targetHash": "292ed3b6a33a406ae43bf0d43d159a04a5417e1a244017c174194889898de1e1", - "node": [ - { - "left": "93c37224a3cd5e6dd47a98e55f42854ee5b3b9fda63f60b8076c57a59bd84f0b" - }, - { - "left": "785d97b0b9fe7809bf55803fc3ded62180e9b01fac15a488ac84e6238eb466f3" - }, - { - "left": "0d4f56aae6f29bab5d8f83fb595673bdc629d5d0973e78b53ad43a1bb1dd9515" - }, - { - "right": "ac9e75c2d832091f3b18e974dc224ed5ef970673ed679ff931c1f4a33db3f929" - }, - { - "right": "3b2728ce00cdc42c8c524574ab20a8ea1e78efa805bba6e988c10e0c13f77d3f" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/CredentialAttestationFaked.json b/__test__/creds/proxyFixtures/CredentialAttestationFaked.json deleted file mode 100644 index 5af6d07c..00000000 --- a/__test__/creds/proxyFixtures/CredentialAttestationFaked.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "id": null, - "issuer": "d460c90d-4032-4c29-9743-f52e0a852602", - "issuanceDate": "2018-10-08T19:46:22.364Z", - "identifier": "credential-cvc:Identity-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Identity-v1" - ], - "claim": { - "identity": { - "name": { - "familyNames": "Santos", - "givenNames": "Joao", - "otherNames": "Barbosa" - }, - "dateOfBirth": { - "day": 20, - "month": 3, - "year": 1978 - } - } - }, - "proof": { - "type": "CivicMerkleProof2018", - "merkleRoot": "1fbe357dfcb0f19b0470d1017ce617bc8f3e88ff06552f425a3e2e81d6f38c10", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:Identity-v1", - "data": "1fbe357dfcb0f19b0470d1017ce617bc8f3e88ff06552f425a3e2e81d6f38c10", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201" - }, - "leaves": [ - { - "identifier": "claim-cvc:Identity.name-v1", - "value": "urn:familyNames:f9cebb16c7ce72cc4cb75f49e7ca4435478be80f0a03740a97fbb508c9fe26eb:Santos|urn:givenNames:3b99f45fbd9aad638f34a40d7647293ee5c955316cf2bda31b856470efb04c49:Joao|urn:otherNames:ea17e5a9b080a9684d63983c7538fd053373f3d10245130cbedff75d82d4c714:Barbosa|", - "claimPath": "identity.name", - "targetHash": "7f576a0cfa81df08b8df1937bacfea632ab2a03f3dba4e9744c22418c0557286", - "node": [ - { - "right": "5b8d77d60a05af6dcad4c96d8e451adaaeae3e352ec20b68a5307466a5d8afbd" - }, - { - "right": "cdd1ff29f8fa9248ef3d909e76faf7011a276befb631d46a9073cd61ad420446" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.givenNames-v1", - "value": "urn:givenNames:3b99f45fbd9aad638f34a40d7647293ee5c955316cf2bda31b856470efb04c49:Joao", - "claimPath": "identity.name.givenNames", - "targetHash": "5b8d77d60a05af6dcad4c96d8e451adaaeae3e352ec20b68a5307466a5d8afbd", - "node": [ - { - "left": "7f576a0cfa81df08b8df1937bacfea632ab2a03f3dba4e9744c22418c0557286" - }, - { - "right": "cdd1ff29f8fa9248ef3d909e76faf7011a276befb631d46a9073cd61ad420446" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.otherNames-v1", - "value": "urn:otherNames:ea17e5a9b080a9684d63983c7538fd053373f3d10245130cbedff75d82d4c714:Barbosa", - "claimPath": "identity.name.otherNames", - "targetHash": "b013a25bcbb6d1fafe0ac5d07dcca6964686869463a31d3adc5baceaa0538d29", - "node": [ - { - "right": "5fdafb2f464e4798e8a46d04e70ddf210960e7717ed343cf205367f89318bab3" - }, - { - "left": "191255794cb6b5314f416cfaf7f86bc9ab01fffe2c94c4852faa9169faeaaf48" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.familyNames-v1", - "value": "urn:familyNames:f9cebb16c7ce72cc4cb75f49e7ca4435478be80f0a03740a97fbb508c9fe26eb:Santos", - "claimPath": "identity.name.familyNames", - "targetHash": "5fdafb2f464e4798e8a46d04e70ddf210960e7717ed343cf205367f89318bab3", - "node": [ - { - "left": "b013a25bcbb6d1fafe0ac5d07dcca6964686869463a31d3adc5baceaa0538d29" - }, - { - "left": "191255794cb6b5314f416cfaf7f86bc9ab01fffe2c94c4852faa9169faeaaf48" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Identity.dateOfBirth-v1", - "value": "urn:day:37721c821560995d992f9f6a7859f0da13a7c06908e298ece50c1f84cd16669f:00000020|urn:month:2c5a20c2f6a1cb6c74001646eecd2015bfcde98a20d9006483a2aad3d4714a3e:00000003|urn:year:7e189630ad86951dc1160624c161f1f6227f83d926233629e4a8da2d2386ae9d:00001978|", - "claimPath": "identity.dateOfBirth", - "targetHash": "93f1faaa5af8b5f9db24f660940d5fe975d71f6d29d0ee2857b47e2cef7f11e8", - "node": [ - { - "right": "45b52663fcffbc0ef018979179d16dab408b3183a64ebf534ab109b7fe594a48" - }, - { - "right": "b213a284c598763254471aac74326af69c13355404356f794c3606f0c8d85b9c" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:769197d3d0e416dd621d75d9d0449ab30e2f501dea364cc792552df0b6e8ec05:d460c90d-4032-4c29-9743-f52e0a852602", - "claimPath": "meta.issuer", - "targetHash": "45b52663fcffbc0ef018979179d16dab408b3183a64ebf534ab109b7fe594a48", - "node": [ - { - "left": "93f1faaa5af8b5f9db24f660940d5fe975d71f6d29d0ee2857b47e2cef7f11e8" - }, - { - "right": "b213a284c598763254471aac74326af69c13355404356f794c3606f0c8d85b9c" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:dbeeebc31ea7f7371540a75479ee265dab9db6a291ae406acdf80d227a49056c:2018-10-08T19:46:22.364Z", - "claimPath": "meta.issuanceDate", - "targetHash": "1702fc187d05ee760f13e143370e09298e6bd44ad0db9c8025053839b50f7968", - "node": [ - { - "right": "3319c5ed870611c4dcd9baf2f5da3c6bc77437edcaa5721283528b231892c56d" - }, - { - "left": "5396bfaf8f82259a40a4b50723d1ae0c3332ea89f064dafc2a03c8d3a5650bf1" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:beb8164634c2a861f122a17b553ec8a35dbf1bbf8b07b921dbc752d28b12b73a:null", - "claimPath": "meta.expirationDate", - "targetHash": "3319c5ed870611c4dcd9baf2f5da3c6bc77437edcaa5721283528b231892c56d", - "node": [ - { - "left": "1702fc187d05ee760f13e143370e09298e6bd44ad0db9c8025053839b50f7968" - }, - { - "left": "5396bfaf8f82259a40a4b50723d1ae0c3332ea89f064dafc2a03c8d3a5650bf1" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/CredentialEmailInvalid.json b/__test__/creds/proxyFixtures/CredentialEmailInvalid.json deleted file mode 100644 index 236431ba..00000000 --- a/__test__/creds/proxyFixtures/CredentialEmailInvalid.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "_id": "5d55cc213f132d004ecc54d6", - "id": "81eed612-0bce-4eb5-a88f-d96c34cc5431", - "issuer": "did:ethr:0x1a88a35421a4a0d3e13fe4e8ebcf18e9a249dc5a", - "issuanceDate": "2019-08-15T21:18:25.058Z", - "identifier": "credential-cvc:Email-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Email-v1" - ], - "claim": { - "contact": { - "email": { - "domain": { - "name": "civic", - "tld": "com" - }, - "username": "invalid" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "bf5c9c0ca7ecc6ff9b95f7ee9d0fc641ca735ceccb8c7a949fcaae23734db2a8", - "anchor": { - "_id": "5d55cc2b047f07004e95cf40", - "subject": { - "pub": "xpub6ZfrHWxuNKiAvctVdyyhq92xRq9oXV546EpSRJUArH2jqZpWHFbEPfWQ9yNTwcrgPZzZv2ayYBkeNLmB2mh4PNytZnQfVvnVZyJ7qWb4kUr", - "label": "credential-cvc:Email-v1", - "data": "bf5c9c0ca7ecc6ff9b95f7ee9d0fc641ca735ceccb8c7a949fcaae23734db2a8", - "signature": "3045022100949e5e2eb45a9908e427235da46994171291bf8c4fe218a39c44724a387cda740220521a0060c1855aacbc5b85d16361f2559f2976a7506809d4c7ee29cd4000cd31" - }, - "cosigners": [ - { - "pub": "xpub661MyMwAqRbcFML6P96tik5kQ2hZmL2p6yD72dTdh4gJafpwrWRgqEUhx1k9RjztGJ4LscYrcqYUiH6hKksbsUZrFCmpjqgZCa9sKtbyWvi" - }, - { - "pub": "xpub661MyMwAqRbcFHnyf1o6Q6dTNTuqfL5qLZqAFnnaDjbhqPvHJyJ1XaCGbuokdRC6SAv1NB1GU3FnBP9yw7F5cxJiqerZXGkRWvJdRrqGYZ8" - } - ], - "authority": { - "pub": "xpub661MyMwAqRbcFeLHVqQi8mo3Ck1yz7aDcWV6MTKpai7p8pw9fNstmqY3x4Te9hf3sKkD1mMqPiLjjiCvkaCLRm1zv2KBneudxJ4ZZZH4q92", - "path": "/1/0/0/0" - }, - "tx": "01000000011539906515adfb3e4b3127527268b74a701fa268b001f43cf91680edcb5fc65b00000000fc00473044022064eae65f425779bd2c9fc1deaaf97ba3b040788f3dce7d061409d5837ce5332202202669fc56ebb2e0d9814ae0178751c37576bc410f15afee592de62ee3a3016fb8014730440220519684f041c96859184d9364c7e63a991b4a62fcf75f902f980be4aaf3997ab502206ee68c7a8c32675dc4c3f950d50c2a7dbdcebabcbaf5ee9ecec6c0a1fa88d679014c69522102a3318eddcb8b8070798df9325208e3cb23a0a80779b9eea57dadbc07b097a5d821028ff94b0224911a4d1efa9f236e315fd394fd19393c8b62d5807da4c30f90f929210222fd97636daac00985045072cdd13b8feb5b08384d2fb9df3c8f882a1e4a692a53aeffffffff01551500000000000017a914cee83ff767d0417767d6d035e0ece8b0859f9df98700000000", - "type": "temporary", - "network": "bitcoincashTestnet", - "schema": "tbch-20180201", - "requestId": "5d55cc2a047f07004e95cf3f", - "deletedAt": -1 - }, - "leaves": [ - { - "identifier": "claim-cvc:Contact.email-v1", - "value": "urn:email.domain.name:ccbadf46768f874a143cee3cd84e5256221ffc6118a34eb75fcbef1e9b4be7ef:civic|urn:email.domain.tld:df3c5d1d8298b341e48f17b12dc74cad129c2b337b9653516ed9b04e36d3d01b:com|urn:email.username:820487c5d3a32806aa71887c0f6fe479ffff9e0eae30f20144c4b64935116a34:testUsername|", - "claimPath": "contact.email", - "targetHash": "68b90b962c5aabfdf97b9f0149441e196f0b849fa908af88dd6c1abb74e4a517", - "node": [ - { - "right": "16c0dd39f9a3da5a791010d3bb7a6e893de936586465c53d1b2d157f3ea15e7b" - }, - { - "right": "49b250f44b2bf2d204490ea686e34570f25d9612291981e6fde84f139a1e692e" - }, - { - "right": "dacdb82bac682cd4e7a15462cd0e3f2fc003e5bb88b00ce7610e5f4fa4dbbcb4" - }, - { - "right": "062cdef9d0440ae5fc8537175922017b56fff0acf23209a2270222470c1c5420" - }, - { - "right": "c12996ffd5e6f394f401dece6bb90d9576b22e6dedca11d734a80b7eb35698bd" - } - ] - }, - { - "identifier": "claim-cvc:Email.domain-v1", - "value": "urn:domain.name:ccbadf46768f874a143cee3cd84e5256221ffc6118a34eb75fcbef1e9b4be7ef:civic|urn:domain.tld:df3c5d1d8298b341e48f17b12dc74cad129c2b337b9653516ed9b04e36d3d01b:com|", - "claimPath": "contact.email.domain", - "targetHash": "16c0dd39f9a3da5a791010d3bb7a6e893de936586465c53d1b2d157f3ea15e7b", - "node": [ - { - "left": "68b90b962c5aabfdf97b9f0149441e196f0b849fa908af88dd6c1abb74e4a517" - }, - { - "right": "49b250f44b2bf2d204490ea686e34570f25d9612291981e6fde84f139a1e692e" - }, - { - "right": "dacdb82bac682cd4e7a15462cd0e3f2fc003e5bb88b00ce7610e5f4fa4dbbcb4" - }, - { - "right": "062cdef9d0440ae5fc8537175922017b56fff0acf23209a2270222470c1c5420" - }, - { - "right": "c12996ffd5e6f394f401dece6bb90d9576b22e6dedca11d734a80b7eb35698bd" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:4a7fae9e883f1902ab24c0acb2a35ae0c02cf129aa2d53b3c4eba1c2d522ee3c:did:ethr:0x1a88a35421a4a0d3e13fe4e8ebcf18e9a249dc5a|", - "claimPath": "meta.issuer", - "targetHash": "84676aff46e82e2ffd7b4863f1ea715dee3fc67783375bcc4cbfe0f1da02dcf2", - "node": [ - { - "right": "5188fbf5359a890af182b29df1aeb53aad598cd592f6e082a622f44a734bc4da" - }, - { - "left": "ddf3d00dfd62881820130196cd0ccdfb1306f7b44c1c9b60ee262aff98bc4309" - }, - { - "right": "dacdb82bac682cd4e7a15462cd0e3f2fc003e5bb88b00ce7610e5f4fa4dbbcb4" - }, - { - "right": "062cdef9d0440ae5fc8537175922017b56fff0acf23209a2270222470c1c5420" - }, - { - "right": "c12996ffd5e6f394f401dece6bb90d9576b22e6dedca11d734a80b7eb35698bd" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:50d0c175a845941df3e9120728080bd6ae8f1a6a1be59d28b09cd81467de8aa7:2019-08-15T21:18:25.058Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "5188fbf5359a890af182b29df1aeb53aad598cd592f6e082a622f44a734bc4da", - "node": [ - { - "left": "84676aff46e82e2ffd7b4863f1ea715dee3fc67783375bcc4cbfe0f1da02dcf2" - }, - { - "left": "ddf3d00dfd62881820130196cd0ccdfb1306f7b44c1c9b60ee262aff98bc4309" - }, - { - "right": "dacdb82bac682cd4e7a15462cd0e3f2fc003e5bb88b00ce7610e5f4fa4dbbcb4" - }, - { - "right": "062cdef9d0440ae5fc8537175922017b56fff0acf23209a2270222470c1c5420" - }, - { - "right": "c12996ffd5e6f394f401dece6bb90d9576b22e6dedca11d734a80b7eb35698bd" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:21f6f6515962c5c4a8826640a6cbbcc3957f6f23a53b601395fc420e240b4f78:null|", - "claimPath": "meta.expirationDate", - "targetHash": "4a6b43d606855c5c9cce702199ad89adc6792fde439522c3fb83c0acea7b7622", - "node": [ - { - "right": "43d54e401c3325b8945be4d897ceffcb36075669a5c6c7ed7e22d6b283562a8d" - }, - { - "right": "15aa5aa36659b55c297ed031a1d76df17bc3e6af3e49df4f6cfb36787c0569ac" - }, - { - "left": "bf5ac61c45ede224c6fa20b9bd0803fe3d77f5284f4a76bbe7fdff75a9123c4d" - }, - { - "right": "062cdef9d0440ae5fc8537175922017b56fff0acf23209a2270222470c1c5420" - }, - { - "right": "c12996ffd5e6f394f401dece6bb90d9576b22e6dedca11d734a80b7eb35698bd" - } - ] - } - ] - }, - "granted": null, - "user_id": "03bf176a6a4e4841ec348a8007e655e2e746806576048fc1fe4ff2e8bc6351ecc2", - "createdAt": "2019-08-15T21:18:01.774Z", - "updatedAt": "2019-08-15T21:18:34.148Z", - "deletedAt": -1 -} diff --git a/__test__/creds/proxyFixtures/Email.json b/__test__/creds/proxyFixtures/Email.json deleted file mode 100644 index 26b19f24..00000000 --- a/__test__/creds/proxyFixtures/Email.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "id": "e3dc1ceb-3899-454f-a80c-52c97a0cc9d8", - "issuer": "jest:test:fe07c3d0-e8b0-11e8-8a40-7fe4d191eb47", - "issuanceDate": "2018-11-15T08:32:30.862Z", - "identifier": "credential-cvc:Email-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Email-v1" - ], - "claim": { - "contact": { - "email": { - "domain": { - "name": "X6gQFO3QYg", - "tld": "PSsiuGIgez" - }, - "username": "b6J7B5pCWo" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "03e9bccbf5109b7b70154eddd95b089a24896d0a6b46f52549d8471febd83a3d", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:Email-v1", - "data": "03e9bccbf5109b7b70154eddd95b089a24896d0a6b46f52549d8471febd83a3d", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "claim-cvc:Contact.email-v1", - "value": "urn:email.domain.name:d8ca1591c2526a1b03e8ab9be02f32036c112b1b347e3cd7ae6bf5079ab249a2:X6gQFO3QYg|urn:email.domain.tld:58f18dc6fe5a24b3626fbd9a03548864dc380114a17f346f0d97d3b9cb0700d5:PSsiuGIgez|urn:email.username:3e19732ba77e798b6b85f55e3d5321e58108c758b865614a60b3198fb10c0d69:b6J7B5pCWo|", - "claimPath": "contact.email", - "targetHash": "1952a3a7260b286d1251f40db511d9b5cf78960a414791c96ac6437b2968a190", - "node": [ - { - "right": "5478af59d9d5633434dbcac0c4d98d65c3c23dd80fb008081aabd5c95ea40642" - }, - { - "right": "070c1ad44f28450390cd89e482bc4b8af8a41b4b1a5e112d9218bea051f6ad26" - }, - { - "right": "b826226710e04f3cfbab3e877e574489a79c84ad3acffe651cd7e95cd3e6ac60" - }, - { - "right": "b0ce0c779bce746b589a4fca78d14dc482aa1e66bf015a15321644c0cceb4735" - }, - { - "right": "322500cf2d9c6b3a1dc8a9c4cf9c0bfaddf244678395429f9f74806055224d81" - } - ] - }, - { - "identifier": "claim-cvc:Email.domain-v1", - "value": "urn:domain.name:d8ca1591c2526a1b03e8ab9be02f32036c112b1b347e3cd7ae6bf5079ab249a2:X6gQFO3QYg|urn:domain.tld:58f18dc6fe5a24b3626fbd9a03548864dc380114a17f346f0d97d3b9cb0700d5:PSsiuGIgez|", - "claimPath": "contact.email.domain", - "targetHash": "5478af59d9d5633434dbcac0c4d98d65c3c23dd80fb008081aabd5c95ea40642", - "node": [ - { - "left": "1952a3a7260b286d1251f40db511d9b5cf78960a414791c96ac6437b2968a190" - }, - { - "right": "070c1ad44f28450390cd89e482bc4b8af8a41b4b1a5e112d9218bea051f6ad26" - }, - { - "right": "b826226710e04f3cfbab3e877e574489a79c84ad3acffe651cd7e95cd3e6ac60" - }, - { - "right": "b0ce0c779bce746b589a4fca78d14dc482aa1e66bf015a15321644c0cceb4735" - }, - { - "right": "322500cf2d9c6b3a1dc8a9c4cf9c0bfaddf244678395429f9f74806055224d81" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:572ac63d41247d7b2cb3f8f344447b51e1898e11206b38750261250f976fbedf:jest:test:fe07c3d0-e8b0-11e8-8a40-7fe4d191eb47|", - "claimPath": "meta.issuer", - "targetHash": "3e2858af4f6365227b60e562e6633c48f4c11665e0f80454a88591c71d3b1983", - "node": [ - { - "right": "d20fab7ea0835b15ce3bc78118f0a044ce1f2da4fcaf06f2df465964811168b0" - }, - { - "left": "f4688dcbf2bcd091b274227f1ffcd7a55a125526871caeda08b9ca344303fec6" - }, - { - "right": "b826226710e04f3cfbab3e877e574489a79c84ad3acffe651cd7e95cd3e6ac60" - }, - { - "right": "b0ce0c779bce746b589a4fca78d14dc482aa1e66bf015a15321644c0cceb4735" - }, - { - "right": "322500cf2d9c6b3a1dc8a9c4cf9c0bfaddf244678395429f9f74806055224d81" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:34618d06738b071a224f2cf0236def1022dcfaf23827b85050cf653d27001635:2018-11-15T08:32:30.862Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "d20fab7ea0835b15ce3bc78118f0a044ce1f2da4fcaf06f2df465964811168b0", - "node": [ - { - "left": "3e2858af4f6365227b60e562e6633c48f4c11665e0f80454a88591c71d3b1983" - }, - { - "left": "f4688dcbf2bcd091b274227f1ffcd7a55a125526871caeda08b9ca344303fec6" - }, - { - "right": "b826226710e04f3cfbab3e877e574489a79c84ad3acffe651cd7e95cd3e6ac60" - }, - { - "right": "b0ce0c779bce746b589a4fca78d14dc482aa1e66bf015a15321644c0cceb4735" - }, - { - "right": "322500cf2d9c6b3a1dc8a9c4cf9c0bfaddf244678395429f9f74806055224d81" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:629bc2bb479244a518ead46215278d86241cf206a4c32d5fff0eff3ef9f881ab:null|", - "claimPath": "meta.expirationDate", - "targetHash": "56eb2aa57e7d904e37bbe4cf4d9e34cd068ceeb1a18fd09d7be56bc9f715dfd0", - "node": [ - { - "right": "856e21db11d11e74c7ca39b02adb7373283eaf205670b11a9dec9dc03f97c606" - }, - { - "right": "740f2a0682cca1c44a1973a81fa24c3eaf81cb50f4effdcc7b1d76bc0f9da60c" - }, - { - "left": "5cb4049edfe5a169032dbb4a66d01c59c64b50ef7d40ec2690d24429afd87ea4" - }, - { - "right": "b0ce0c779bce746b589a4fca78d14dc482aa1e66bf015a15321644c0cceb4735" - }, - { - "right": "322500cf2d9c6b3a1dc8a9c4cf9c0bfaddf244678395429f9f74806055224d81" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/GenericDocumentId.json b/__test__/creds/proxyFixtures/GenericDocumentId.json deleted file mode 100644 index 140a5e32..00000000 --- a/__test__/creds/proxyFixtures/GenericDocumentId.json +++ /dev/null @@ -1,636 +0,0 @@ -{ - "id": "7e984bcc-602a-478f-adaa-5a586e4abae6", - "issuer": "did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD", - "issuanceDate": "2018-11-20T20:41:59.861Z", - "identifier": "credential-cvc:GenericDocumentId-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:GenericDocumentId-v1" - ], - "claim": { - "document": { - "type": "UYOTemeop1", - "number": "hwktDQnVSM", - "name": { - "familyNames": "o74I3q0Udy", - "givenNames": "xVIkPSoKlw", - "otherNames": "90Dov8xBgR" - }, - "gender": "6ZgZaMAEC1", - "issueLocation": "qlWfJ4znwU", - "issueAuthority": "I0LM3IeIBy", - "issueCountry": "EzAXU0eTKT", - "placeOfBirth": "mPX5qQBMlU", - "dateOfBirth": { - "day": 23.509202572883346, - "month": 10.046320849916473, - "year": 1972.4471022760558 - }, - "address": { - "city": "FM7pcb3F68", - "country": "C6DK4Ad534", - "county": "7JUOzujKGo", - "postalCode": "hTmK78Pkbu", - "state": "bpPbF2Z3wS", - "street": "vBC4ibu7a3", - "unit": "iAvobg7Lah" - }, - "properties": { - "dateOfExpiry": { - "day": 9.14320914518909, - "month": 0.7636856996725372, - "year": 1956.942523652118 - }, - "dateOfIssue": { - "day": 11.923255701048788, - "month": 12.215323364578072, - "year": 1982.8838709090696 - } - }, - "image": { - "back": "Ff5sn0LlBV", - "backMD5": "MAHR7iPXPI", - "front": "DemvYiM1DD", - "frontMD5": "Txh0ap6D8u" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "384f87e62391b370752fbf9bc210512e2741c4d01d8d5787e5266729a0736bf6", - "anchor": "TBD (Civic Blockchain Attestation)", - "leaves": [ - { - "identifier": "claim-cvc:Document.type-v1", - "value": "urn:type:3c6c88d9054ff152103737d4631d508519ceb3398f4a2fdb68079feb6a8d6d22:UYOTemeop1|", - "claimPath": "document.type", - "targetHash": "862fb2fbfd5c47581c61c936fe6eb72b0f8fddc323f59d5615e8143c0f71b167", - "node": [ - { - "right": "e04a092fce6e0734feb469e4dcd6058336e61e750874ccd3081200b987669ec0" - }, - { - "right": "0e53226c66037493fa67d0af7971adee6e16aab5d7ebc7b01b6e8d7851b66f3a" - }, - { - "right": "caecab2bc73908b56ef7f0e5f6400bbad33c5bdfadfaedbd4b8feff2cd176ee4" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.number-v1", - "value": "urn:number:6a3d75f1c6ca6b30c2ec7583dc963aeb028bdd5d0b90f199c2aed131c201ba3a:hwktDQnVSM|", - "claimPath": "document.number", - "targetHash": "e04a092fce6e0734feb469e4dcd6058336e61e750874ccd3081200b987669ec0", - "node": [ - { - "left": "862fb2fbfd5c47581c61c936fe6eb72b0f8fddc323f59d5615e8143c0f71b167" - }, - { - "right": "0e53226c66037493fa67d0af7971adee6e16aab5d7ebc7b01b6e8d7851b66f3a" - }, - { - "right": "caecab2bc73908b56ef7f0e5f6400bbad33c5bdfadfaedbd4b8feff2cd176ee4" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.name-v1", - "value": "urn:name.familyNames:ae24dd60b8a4259d478d725efd12900c8b83a6c36f7b0090b8f81a51567c44c6:o74I3q0Udy|urn:name.givenNames:5bef2387e1e897fb64de2ba5c20607f704b57056939bd4258a6ddf762b5a6c7d:xVIkPSoKlw|urn:name.otherNames:1f7b6a70eba5550a47664e85286ab2fda0d9dee99908da0a88234860b29b5d7e:90Dov8xBgR|", - "claimPath": "document.name", - "targetHash": "b4bb4b697b78c253f3dbc1a0b9d5b14218616cd5ebddd8983bb231ef647db36d", - "node": [ - { - "right": "736ce485a7c50a89b1863e8dc7f24c0e2cf9bc63950408e9a539d427137d57ee" - }, - { - "left": "86899574e732b268802c3366daffea60231e3fc9b8179401c9ab9cc55c17eee1" - }, - { - "right": "caecab2bc73908b56ef7f0e5f6400bbad33c5bdfadfaedbd4b8feff2cd176ee4" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Name.givenNames-v1", - "value": "urn:givenNames:5bef2387e1e897fb64de2ba5c20607f704b57056939bd4258a6ddf762b5a6c7d:xVIkPSoKlw|", - "claimPath": "document.name.givenNames", - "targetHash": "736ce485a7c50a89b1863e8dc7f24c0e2cf9bc63950408e9a539d427137d57ee", - "node": [ - { - "left": "b4bb4b697b78c253f3dbc1a0b9d5b14218616cd5ebddd8983bb231ef647db36d" - }, - { - "left": "86899574e732b268802c3366daffea60231e3fc9b8179401c9ab9cc55c17eee1" - }, - { - "right": "caecab2bc73908b56ef7f0e5f6400bbad33c5bdfadfaedbd4b8feff2cd176ee4" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Name.familyNames-v1", - "value": "urn:familyNames:ae24dd60b8a4259d478d725efd12900c8b83a6c36f7b0090b8f81a51567c44c6:o74I3q0Udy|", - "claimPath": "document.name.familyNames", - "targetHash": "e909ecb6288af6f60261756ed591fb8e0dbfe8a23f8b17c596bfee3dbf88b1ff", - "node": [ - { - "right": "fa12c4aee6b4c9a7892d98c95f1c0341043c481f6dd1484497e6aa2b4d4fd1cf" - }, - { - "right": "63a5ac7cad14bf2c7c00708bcfc544b93bb951e28b51151dcb1bce053279689d" - }, - { - "left": "0743b6a6b33419d57f24dfd14e3c6ca7dba96eb5e34a20c5e9dfb64ed866a623" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Name.otherNames-v1", - "value": "urn:otherNames:1f7b6a70eba5550a47664e85286ab2fda0d9dee99908da0a88234860b29b5d7e:90Dov8xBgR|", - "claimPath": "document.name.otherNames", - "targetHash": "fa12c4aee6b4c9a7892d98c95f1c0341043c481f6dd1484497e6aa2b4d4fd1cf", - "node": [ - { - "left": "e909ecb6288af6f60261756ed591fb8e0dbfe8a23f8b17c596bfee3dbf88b1ff" - }, - { - "right": "63a5ac7cad14bf2c7c00708bcfc544b93bb951e28b51151dcb1bce053279689d" - }, - { - "left": "0743b6a6b33419d57f24dfd14e3c6ca7dba96eb5e34a20c5e9dfb64ed866a623" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.gender-v1", - "value": "urn:gender:11bdb5ad75545352a0adea4a740d59d98b7e0575c9bda65fcc887dfb20774cce:6ZgZaMAEC1|", - "claimPath": "document.gender", - "targetHash": "46bc6d28dced24e1b4be54fb33a95c3e0005ae4ae4ccfb4deff2129953f9d3e5", - "node": [ - { - "right": "f1761ba3e96e3040f82ab63c4f54c3fedc8b51d54bb23abf3cbfc605dfc1fa7b" - }, - { - "left": "21321446187e166b39cf6a1cffedaa3d916ea5c65c78b0264bf045b2fe5b53b4" - }, - { - "left": "0743b6a6b33419d57f24dfd14e3c6ca7dba96eb5e34a20c5e9dfb64ed866a623" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.issueLocation-v1", - "value": "urn:issueLocation:b5170635bf804356f6b11e205caed4ae82325395a3507b3309690e725f5aec67:qlWfJ4znwU|", - "claimPath": "document.issueLocation", - "targetHash": "f1761ba3e96e3040f82ab63c4f54c3fedc8b51d54bb23abf3cbfc605dfc1fa7b", - "node": [ - { - "left": "46bc6d28dced24e1b4be54fb33a95c3e0005ae4ae4ccfb4deff2129953f9d3e5" - }, - { - "left": "21321446187e166b39cf6a1cffedaa3d916ea5c65c78b0264bf045b2fe5b53b4" - }, - { - "left": "0743b6a6b33419d57f24dfd14e3c6ca7dba96eb5e34a20c5e9dfb64ed866a623" - }, - { - "right": "4d25da1de6c0ec7c5eac464a861cc07ad19d34cc8d8f52f1ce81dd498c56f68b" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.issueAuthority-v1", - "value": "urn:issueAuthority:8593ee28f4f5cbedb3a7bbf6d9827caac43c1d3d8ecc2c9d718e62446a5da269:I0LM3IeIBy|", - "claimPath": "document.issueAuthority", - "targetHash": "2b07878f4cdf087786eab97145281952430ba63e5e37d562b5985b0c011b6fe4", - "node": [ - { - "right": "ec2187615883221a545fe324b85e4b98b8b9ac8fe6c37d84d847137f9f34a8e4" - }, - { - "right": "824f6a238a9e470d0507bdd78dfb89aa06fb997665669abff593eaf85832682b" - }, - { - "right": "11f2130a4531cd0d184c39adf4d79d6fcb527c7fdf8224b1a6aeac57fdf86fad" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.issueCountry-v1", - "value": "urn:issueCountry:b213aecb4747a9019f6353e3ab75b4731daac7a77bc94785c874264591c3c11f:EzAXU0eTKT|", - "claimPath": "document.issueCountry", - "targetHash": "ec2187615883221a545fe324b85e4b98b8b9ac8fe6c37d84d847137f9f34a8e4", - "node": [ - { - "left": "2b07878f4cdf087786eab97145281952430ba63e5e37d562b5985b0c011b6fe4" - }, - { - "right": "824f6a238a9e470d0507bdd78dfb89aa06fb997665669abff593eaf85832682b" - }, - { - "right": "11f2130a4531cd0d184c39adf4d79d6fcb527c7fdf8224b1a6aeac57fdf86fad" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.placeOfBirth-v1", - "value": "urn:placeOfBirth:f5a93b9e3716946d0287dcbbb9425eb10d5c3d91bbe6433e53106271dce8c359:mPX5qQBMlU|", - "claimPath": "document.placeOfBirth", - "targetHash": "eca8173c15059da48ff863e6391a958af428f6ecc935222b52807adadb4d7e98", - "node": [ - { - "right": "90bad2d86838bd2253bac063313007397c4b5b8538f9c49467419cc491d38315" - }, - { - "left": "ae7bff07f5c239bc70d2fd3bbdf7225e641ac047d9d1d326baf917866470f642" - }, - { - "right": "11f2130a4531cd0d184c39adf4d79d6fcb527c7fdf8224b1a6aeac57fdf86fad" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.dateOfBirth-v1", - "value": "urn:dateOfBirth.day:d90296bbf0a86f74bbcb9f9b00217d2436b7596a552402f83f7b3b3b1b539106:23.509202572883346|urn:dateOfBirth.month:c60e2d34d02dec716d3419a941b601800c6c97dd4543a347b8b231966105a831:10.046320849916473|urn:dateOfBirth.year:8f02a483181f1f60c5617b861324142ca5f9ffdecc431852cfd24162e3c96225:1972.4471022760558|", - "claimPath": "document.dateOfBirth", - "targetHash": "90bad2d86838bd2253bac063313007397c4b5b8538f9c49467419cc491d38315", - "node": [ - { - "left": "eca8173c15059da48ff863e6391a958af428f6ecc935222b52807adadb4d7e98" - }, - { - "left": "ae7bff07f5c239bc70d2fd3bbdf7225e641ac047d9d1d326baf917866470f642" - }, - { - "right": "11f2130a4531cd0d184c39adf4d79d6fcb527c7fdf8224b1a6aeac57fdf86fad" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Document.address-v1", - "value": "urn:address.city:8ad2e2298eda7623d46256882306bf2eb9f20c043697e6d59fbcca1f7a30a3e2:FM7pcb3F68|urn:address.country:9bdff9437318cbee926fc1f43bf21a66b1054d1ffb7c0af0f26b6d5092617ce5:C6DK4Ad534|urn:address.county:1e2ded862696ab32a69f7ac3419583e3a97c5c3fcc658d7316f954dce5947342:7JUOzujKGo|urn:address.postalCode:949e7cc3190664424a46ad78370e9b88977f3b254b3e6eef05f9e9bfafd09e8b:hTmK78Pkbu|urn:address.state:aca9a888e7249805a906156e903523c3538fb5a54d413f4ab891e4844665a7d6:bpPbF2Z3wS|urn:address.street:d1efdf491876f7728c597aa29db0c5159cc8c6ec7c233aa0a02d8531ce060fdd:vBC4ibu7a3|urn:address.unit:0a8cfa23cf9f9c048b1629cc0607a1b5ab7f5239387007d61a0337b324016424:iAvobg7Lah|", - "claimPath": "document.address", - "targetHash": "02c108d38408c8c07f9d31719e251c12a58dae108ab0d6d78fc40e993d721b1b", - "node": [ - { - "right": "b519dbefb94f5495026a4b9c5a696d7b22d81cbd75542c9e45e84664a3d9eca0" - }, - { - "right": "f07fd97c468aa0250977aaa6ac123db52a0815eef982a609d65dac9aadb29b3b" - }, - { - "left": "15ddb91d93316ccad1a0b9a1462e1956120b7d2425fe3e5563f3423e0be5e119" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:country:9bdff9437318cbee926fc1f43bf21a66b1054d1ffb7c0af0f26b6d5092617ce5:C6DK4Ad534|", - "claimPath": "document.address.country", - "targetHash": "b519dbefb94f5495026a4b9c5a696d7b22d81cbd75542c9e45e84664a3d9eca0", - "node": [ - { - "left": "02c108d38408c8c07f9d31719e251c12a58dae108ab0d6d78fc40e993d721b1b" - }, - { - "right": "f07fd97c468aa0250977aaa6ac123db52a0815eef982a609d65dac9aadb29b3b" - }, - { - "left": "15ddb91d93316ccad1a0b9a1462e1956120b7d2425fe3e5563f3423e0be5e119" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Address.county-v1", - "value": "urn:county:1e2ded862696ab32a69f7ac3419583e3a97c5c3fcc658d7316f954dce5947342:7JUOzujKGo|", - "claimPath": "document.address.county", - "targetHash": "236e2c5e658b3d6cdc38fd1a15cb05175ea43c1ce2f45244b58bcfd8875195d2", - "node": [ - { - "right": "594d40f665ffa1c789b0c5130decccd92c740f9969d354c05d88f6d3c91f5e6b" - }, - { - "left": "670abb0403a5d619c288942bfff997dbf0156e355e1e2bb5bff14f9403b96470" - }, - { - "left": "15ddb91d93316ccad1a0b9a1462e1956120b7d2425fe3e5563f3423e0be5e119" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Address.state-v1", - "value": "urn:state:aca9a888e7249805a906156e903523c3538fb5a54d413f4ab891e4844665a7d6:bpPbF2Z3wS|", - "claimPath": "document.address.state", - "targetHash": "594d40f665ffa1c789b0c5130decccd92c740f9969d354c05d88f6d3c91f5e6b", - "node": [ - { - "left": "236e2c5e658b3d6cdc38fd1a15cb05175ea43c1ce2f45244b58bcfd8875195d2" - }, - { - "left": "670abb0403a5d619c288942bfff997dbf0156e355e1e2bb5bff14f9403b96470" - }, - { - "left": "15ddb91d93316ccad1a0b9a1462e1956120b7d2425fe3e5563f3423e0be5e119" - }, - { - "left": "186106dbcc2526d6c1a97d23c323e4255a7ff70ba3526abf60f66849f0300ec0" - }, - { - "right": "01afbce03241ff3666c6d88a2f176165f56af679177586d53819a15efad29760" - } - ] - }, - { - "identifier": "claim-cvc:Address.city-v1", - "value": "urn:city:8ad2e2298eda7623d46256882306bf2eb9f20c043697e6d59fbcca1f7a30a3e2:FM7pcb3F68|", - "claimPath": "document.address.city", - "targetHash": "76fdb32e4b242f524950bc5ffc4702276da3abd9c953fdce37b24d471508ee23", - "node": [ - { - "right": "23d512efa9f798ce35659b2efc0eb73786088105c597620b63d3b1c4c9538e63" - }, - { - "right": "d260143c4ece0ec99bb74a96d31a97132431c7f8204754a7d1472e64dc3a739d" - }, - { - "right": "ab9b58efd1151192a3c439fc7a62050bdb5d40f1c25a49cdd035e386d6ed8720" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "claim-cvc:Address.postalCode-v1", - "value": "urn:postalCode:949e7cc3190664424a46ad78370e9b88977f3b254b3e6eef05f9e9bfafd09e8b:hTmK78Pkbu|", - "claimPath": "document.address.postalCode", - "targetHash": "23d512efa9f798ce35659b2efc0eb73786088105c597620b63d3b1c4c9538e63", - "node": [ - { - "left": "76fdb32e4b242f524950bc5ffc4702276da3abd9c953fdce37b24d471508ee23" - }, - { - "right": "d260143c4ece0ec99bb74a96d31a97132431c7f8204754a7d1472e64dc3a739d" - }, - { - "right": "ab9b58efd1151192a3c439fc7a62050bdb5d40f1c25a49cdd035e386d6ed8720" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "claim-cvc:Document.properties-v1", - "value": "urn:properties.dateOfExpiry.day:36e953f09aa82006bf6d440f9254e1624c4671ae2f2239dc159185095cf7ede1:9.14320914518909|urn:properties.dateOfExpiry.month:d7613bf86aab2145bc437be871499497773257670b53059992ccbb1abf534cf3:0.7636856996725372|urn:properties.dateOfExpiry.year:bc2415865fb397d1c7ab321b1289d7b366faab01cce1332c5c1ae71eab5ffc6d:1956.942523652118|urn:properties.dateOfIssue.day:4e1cbadfa735adbe2ab85bc1543020a4cd25dd25834abcf41a66bb52337448e4:11.923255701048788|urn:properties.dateOfIssue.month:a35de497883832af0b19a2c0475d1269143611167c2d5f1054005190d2eb58fa:12.215323364578072|urn:properties.dateOfIssue.year:32084189d4aee0cabda3d31840b3b4b48024912c491d8bd82acf7019ea9dd9de:1982.8838709090696|", - "claimPath": "document.properties", - "targetHash": "998c8c996d42d7ae04447b110274a68bdf1c234a0b0f6bc6d6bff3ff4c43f4c6", - "node": [ - { - "right": "e980447ea9ce8468a0e5d820604cccf73a55cd942e2991a1b0156f384e2062d1" - }, - { - "left": "78fdc065d5687343ca163ec8e6615ad731a192aa249ebd8bf442b221e6758d0f" - }, - { - "right": "ab9b58efd1151192a3c439fc7a62050bdb5d40f1c25a49cdd035e386d6ed8720" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "cvc:Document:dateOfIssue", - "value": "urn:dateOfIssue.day:4e1cbadfa735adbe2ab85bc1543020a4cd25dd25834abcf41a66bb52337448e4:11.923255701048788|urn:dateOfIssue.month:a35de497883832af0b19a2c0475d1269143611167c2d5f1054005190d2eb58fa:12.215323364578072|urn:dateOfIssue.year:32084189d4aee0cabda3d31840b3b4b48024912c491d8bd82acf7019ea9dd9de:1982.8838709090696|", - "claimPath": "document.dateOfIssue", - "targetHash": "e980447ea9ce8468a0e5d820604cccf73a55cd942e2991a1b0156f384e2062d1", - "node": [ - { - "left": "998c8c996d42d7ae04447b110274a68bdf1c234a0b0f6bc6d6bff3ff4c43f4c6" - }, - { - "left": "78fdc065d5687343ca163ec8e6615ad731a192aa249ebd8bf442b221e6758d0f" - }, - { - "right": "ab9b58efd1151192a3c439fc7a62050bdb5d40f1c25a49cdd035e386d6ed8720" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "cvc:Document:dateOfExpiry", - "value": "urn:dateOfExpiry.day:36e953f09aa82006bf6d440f9254e1624c4671ae2f2239dc159185095cf7ede1:9.14320914518909|urn:dateOfExpiry.month:d7613bf86aab2145bc437be871499497773257670b53059992ccbb1abf534cf3:0.7636856996725372|urn:dateOfExpiry.year:bc2415865fb397d1c7ab321b1289d7b366faab01cce1332c5c1ae71eab5ffc6d:1956.942523652118|", - "claimPath": "document.dateOfExpiry", - "targetHash": "e23d070653b11f110e302ef1150c4c876c8a10c9f1a307a550e60d3edc5c3c52", - "node": [ - { - "right": "c1f238e6e7180afac91666193ed9c88baeeebc9ad90c2cd5cb8dc60ee62052d2" - }, - { - "right": "5fdbd5c479e928d0cd9a5019400547ed4c7d5405a34a1cb3c8ed4f691fcc6f2f" - }, - { - "left": "108571852d0d4617446414764ed00ff1cafbcc56b54c6c544e0730680bfac47c" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "cvc:Document:image", - "value": "urn:image.back:242e0799669d9b049b7ca1c2b07abcfb7c6d452be206c6ebe25d7112a8319600:Ff5sn0LlBV|urn:image.backMD5:ca3de0ef11f29baa78ac0097c2412d7e6311ff9c635085873f6c8eb438e3ca6f:MAHR7iPXPI|urn:image.front:0725d42eff988cbbadd1da2b995323d15d04a859b965f9462fbf369deccbd779:DemvYiM1DD|urn:image.frontMD5:af47fe13c89d49b7f8e01c9a21e1f1fe4a54214e2be12c1d4dd580c0dec8ef84:Txh0ap6D8u|", - "claimPath": "document.image", - "targetHash": "c1f238e6e7180afac91666193ed9c88baeeebc9ad90c2cd5cb8dc60ee62052d2", - "node": [ - { - "left": "e23d070653b11f110e302ef1150c4c876c8a10c9f1a307a550e60d3edc5c3c52" - }, - { - "right": "5fdbd5c479e928d0cd9a5019400547ed4c7d5405a34a1cb3c8ed4f691fcc6f2f" - }, - { - "left": "108571852d0d4617446414764ed00ff1cafbcc56b54c6c544e0730680bfac47c" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:8cc14917546619fa14745a9f7614312ddbe460c2a82062c6cc810f5298b6f24f:did:ethr:0xaf9482c84De4e2a961B98176C9f295F9b6008BfD|", - "claimPath": "meta.issuer", - "targetHash": "261ac809931f9f0b44cf1b883dd4e040448e988c7490affab4fbfc5860f80fda", - "node": [ - { - "right": "eada9867cf3399284e9ee977a332d3769ed6856c2fcd8d358e00347d6e3cb187" - }, - { - "left": "24da55912d6856030d60ead985526e3df47a8fe8494caed04eff97ac0d266f2c" - }, - { - "left": "108571852d0d4617446414764ed00ff1cafbcc56b54c6c544e0730680bfac47c" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:26d817a47ca9e083a6f70242e4b107af5edb56e287ce4d7539eb042380d73812:2018-11-20T20:41:59.861Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "eada9867cf3399284e9ee977a332d3769ed6856c2fcd8d358e00347d6e3cb187", - "node": [ - { - "left": "261ac809931f9f0b44cf1b883dd4e040448e988c7490affab4fbfc5860f80fda" - }, - { - "left": "24da55912d6856030d60ead985526e3df47a8fe8494caed04eff97ac0d266f2c" - }, - { - "left": "108571852d0d4617446414764ed00ff1cafbcc56b54c6c544e0730680bfac47c" - }, - { - "right": "adb99e21f13841760cac2b91295c657586cd963c6da0e59d6d58c45f3fa77b8b" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:a36229be9643b9db709a130847d00c74f91ff4befeca99cdd06d0558e11e2e1d:null|", - "claimPath": "meta.expirationDate", - "targetHash": "1b703aa7a808e0ace530b5e533643341baa2136418170026701cdce64eeaf471", - "node": [ - { - "right": "c9f8cb0aeca578e2ec2526638ee140882c1cf768f6d8dcb63529638480bd8885" - }, - { - "left": "de12d95d617dec249e86ce88e15016f3fe65fa4d103df8f9e27d2b0f89989256" - }, - { - "left": "2e93001e85bc4f4cf1f554f4e982a1677d731854aa7332dc9af11b742e2479ca" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/IdDocumentWithoutNonRequiredClaims.json b/__test__/creds/proxyFixtures/IdDocumentWithoutNonRequiredClaims.json deleted file mode 100644 index 0d900b17..00000000 --- a/__test__/creds/proxyFixtures/IdDocumentWithoutNonRequiredClaims.json +++ /dev/null @@ -1,487 +0,0 @@ -{ - "id": "0b41d088-03cb-4cce-b5c8-908fb6207cac", - "issuer": "", - "issuanceDate": "2019-06-18T18:40:43.324Z", - "identifier": "credential-cvc:IdDocument-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:IdDocument-v1" - ], - "claim": { - "document": { - "type": "Passport", - "number": "FP12345", - "name": { - "familyNames": "e8qak1", - "givenNames": "e8qhs4Iak1", - "otherNames": "qhs4I" - }, - "gender": "M", - "issueCountry": "Brazil", - "placeOfBirth": "Belo Horizonte", - "dateOfBirth": { - "day": 20, - "month": 3, - "year": 1978 - }, - "dateOfExpiry": { - "day": 12, - "month": 2, - "year": 2025 - }, - "nationality": "Brazilian", - "evidences": { - "idDocumentBack": { - "algorithm": "sha256", - "data": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - }, - "idDocumentFront": { - "algorithm": "sha256", - "data": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - }, - "selfie": { - "algorithm": "sha256", - "data": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - } - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "287caa502816149f9787c6ab77d7161c45045b6e06659cf6ea94575d7ba3ae2a", - "anchor": "TBD (Civic Blockchain Attestation)", - "leaves": [ - { - "identifier": "claim-cvc:Document.type-v1", - "value": "urn:type:e2e862de517ce17d552f985b44c801d56b203d53a3da611b1d13e6a860f96f4d:Passport|", - "claimPath": "document.type", - "targetHash": "7f3038b53480db16f959050ae61021933460822855204bbe9a4a1f6e8a3d0116", - "node": [ - { - "right": "30ac51aa0955500498a1b0b4771c7d762d51ba325d71f33d991f9dd9d2761560" - }, - { - "right": "bc79b4b362ba3df5631ab6abf95a9b61cc03eb287c3ebeb8284a61c030d6bbd0" - }, - { - "right": "8960a6b8304488e88f5c9a94d9eefb3a204038f68a65835d336f66eb671193a3" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.number-v1", - "value": "urn:number:5f9e5213d98a47958f0ca35ce61b719f60be3c28e6470a608bcafd6425cb26db:FP12345|", - "claimPath": "document.number", - "targetHash": "30ac51aa0955500498a1b0b4771c7d762d51ba325d71f33d991f9dd9d2761560", - "node": [ - { - "left": "7f3038b53480db16f959050ae61021933460822855204bbe9a4a1f6e8a3d0116" - }, - { - "right": "bc79b4b362ba3df5631ab6abf95a9b61cc03eb287c3ebeb8284a61c030d6bbd0" - }, - { - "right": "8960a6b8304488e88f5c9a94d9eefb3a204038f68a65835d336f66eb671193a3" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.name-v1", - "value": "urn:name.familyNames:27b5254a5a0da53721c8a19940d43b7f23ee53355339b68876ca4f026c206f67:e8qak1|urn:name.givenNames:ea26343fd3bb2ac7b38978b8a3ed979a66fdb4e51cf57c8b39ec20bb16a7a7f1:e8qhs4Iak1|urn:name.otherNames:9c0bf86efabbd942565e66ff5549a1e69316f220e5b11b74b2382efa7ef619e4:qhs4I|", - "claimPath": "document.name", - "targetHash": "1685e316cdb23cbd1c6d77fbc832f7860d207a117804cba28ac887e4fc479705", - "node": [ - { - "right": "05a43d95727cb6e14b3843e48da8cfd11634c6a4f13c72478acae8656ab8eb61" - }, - { - "left": "9c62a73848c4e5af6fd138ceeb52ad67937266707ee15be238e949ad915ddcac" - }, - { - "right": "8960a6b8304488e88f5c9a94d9eefb3a204038f68a65835d336f66eb671193a3" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Name.givenNames-v1", - "value": "urn:givenNames:ea26343fd3bb2ac7b38978b8a3ed979a66fdb4e51cf57c8b39ec20bb16a7a7f1:e8qhs4Iak1|", - "claimPath": "document.name.givenNames", - "targetHash": "05a43d95727cb6e14b3843e48da8cfd11634c6a4f13c72478acae8656ab8eb61", - "node": [ - { - "left": "1685e316cdb23cbd1c6d77fbc832f7860d207a117804cba28ac887e4fc479705" - }, - { - "left": "9c62a73848c4e5af6fd138ceeb52ad67937266707ee15be238e949ad915ddcac" - }, - { - "right": "8960a6b8304488e88f5c9a94d9eefb3a204038f68a65835d336f66eb671193a3" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Name.familyNames-v1", - "value": "urn:familyNames:27b5254a5a0da53721c8a19940d43b7f23ee53355339b68876ca4f026c206f67:e8qak1|", - "claimPath": "document.name.familyNames", - "targetHash": "d6276700ed3070f923b013c051bcd5fb6f73981a873e0b82d6f328dc4d2be4ea", - "node": [ - { - "right": "807fd50603579963b55aa117f07bab90d0882b317ea31817f4d0efc9fe74258a" - }, - { - "right": "e82cfc4a020cf3ccaf42dc07bd99b8bfebf213655ce069742cb77110b9de304d" - }, - { - "left": "d5d87dc0138b470774f7affe3a0efbadfd621bc57c00c14a62ef4caaa9d45987" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Name.otherNames-v1", - "value": "urn:otherNames:9c0bf86efabbd942565e66ff5549a1e69316f220e5b11b74b2382efa7ef619e4:qhs4I|", - "claimPath": "document.name.otherNames", - "targetHash": "807fd50603579963b55aa117f07bab90d0882b317ea31817f4d0efc9fe74258a", - "node": [ - { - "left": "d6276700ed3070f923b013c051bcd5fb6f73981a873e0b82d6f328dc4d2be4ea" - }, - { - "right": "e82cfc4a020cf3ccaf42dc07bd99b8bfebf213655ce069742cb77110b9de304d" - }, - { - "left": "d5d87dc0138b470774f7affe3a0efbadfd621bc57c00c14a62ef4caaa9d45987" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.gender-v1", - "value": "urn:gender:95f7a5eb0e64cc63d5ebc3cd2316db75541f070e426dca7e2db5690c9b20a17f:M|", - "claimPath": "document.gender", - "targetHash": "2a9b491d5e669fd4c8663cab06e896e81da82fc5927b49e1dbf7c0bd92c041f5", - "node": [ - { - "right": "8f424b01c81efb1178e9026f2247135f77ec8b2e28b8b6cd5cb3c242f9c3aff0" - }, - { - "left": "30887eb2255aa9c4790f4033c4ec750325cca28ac0f38f1d7291cbbe497e3490" - }, - { - "left": "d5d87dc0138b470774f7affe3a0efbadfd621bc57c00c14a62ef4caaa9d45987" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.issueCountry-v1", - "value": "urn:issueCountry:26015cb27ac94844cb265b55856e43e8b43ccfe8ab8e76a71654d8ee61ed1e91:Brazil|", - "claimPath": "document.issueCountry", - "targetHash": "8f424b01c81efb1178e9026f2247135f77ec8b2e28b8b6cd5cb3c242f9c3aff0", - "node": [ - { - "left": "2a9b491d5e669fd4c8663cab06e896e81da82fc5927b49e1dbf7c0bd92c041f5" - }, - { - "left": "30887eb2255aa9c4790f4033c4ec750325cca28ac0f38f1d7291cbbe497e3490" - }, - { - "left": "d5d87dc0138b470774f7affe3a0efbadfd621bc57c00c14a62ef4caaa9d45987" - }, - { - "right": "52cfc99632cdacba9c14728c7e90f25aa7109ed98b6b5446cf049b4d861a428b" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.placeOfBirth-v1", - "value": "urn:placeOfBirth:ab9ebaf999a0a7b08de876e96b1f728ae480f8b054ca81e6ee6b6eb357aaae1d:Belo Horizonte|", - "claimPath": "document.placeOfBirth", - "targetHash": "e9905e6f38a2f13985e96f305ce80f4919de9b6753a6248ade279f7b1718837b", - "node": [ - { - "right": "1d41f39d93a7c21f9a545331735f80636bd63e1d4a10538d64973e9515e2b198" - }, - { - "right": "71f311383be069133baf8af0fe381bea0aaed4d4de374c68c9ac089167699a2b" - }, - { - "right": "5f8fec66c1df66d4bca8b38c07536946640380614a0884e3422ee1eb35bdfadf" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.dateOfBirth-v1", - "value": "urn:dateOfBirth.day:11f75d1de599c5edee287ee4f4c7967ceb69a6707da0bc6a5dd97550c570d7db:20|urn:dateOfBirth.month:4a551178fdc75854ffef6e83b330156b36c423891a3f876972190a942bc265a7:3|urn:dateOfBirth.year:f12af3a4cc5cac31520e90d3cd9416b3174247fe1cf5b8c2c348249e62373f87:1978|", - "claimPath": "document.dateOfBirth", - "targetHash": "1d41f39d93a7c21f9a545331735f80636bd63e1d4a10538d64973e9515e2b198", - "node": [ - { - "left": "e9905e6f38a2f13985e96f305ce80f4919de9b6753a6248ade279f7b1718837b" - }, - { - "right": "71f311383be069133baf8af0fe381bea0aaed4d4de374c68c9ac089167699a2b" - }, - { - "right": "5f8fec66c1df66d4bca8b38c07536946640380614a0884e3422ee1eb35bdfadf" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.dateOfExpiry-v1", - "value": "urn:dateOfExpiry.day:1ac23cac425819692044482563516f24a57be63468e4f8d7b0e127a8f35bd535:12|urn:dateOfExpiry.month:9c962026289b6cc25eae1a74e2a599194ab3adf144f900b15e09dfb67887471a:2|urn:dateOfExpiry.year:fb8d624c780ac0a87b87c8e8ec5861cb902f5aa186ffc3fecb72e2b004d60fc9:2025|", - "claimPath": "document.dateOfExpiry", - "targetHash": "4ed1ed6ccad83c10ba3bf6aad4d241b5ba77b885cb7dbf51cbc2bd46063d0ccd", - "node": [ - { - "right": "cdc4c59ad08d3af4ca9fa882395ad528df8b92cd5d6960f69e0f9006095b2a23" - }, - { - "left": "bad3055592187467ef5b1caa9c6e9d637ed520cc8e2abdf72e4958a0a7b727de" - }, - { - "right": "5f8fec66c1df66d4bca8b38c07536946640380614a0884e3422ee1eb35bdfadf" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.nationality-v1", - "value": "urn:nationality:24c38aacc4a7764f0c535a8a01c19f7551ca97a88242a5c06e416593fc24c2e4:Brazilian|", - "claimPath": "document.nationality", - "targetHash": "cdc4c59ad08d3af4ca9fa882395ad528df8b92cd5d6960f69e0f9006095b2a23", - "node": [ - { - "left": "4ed1ed6ccad83c10ba3bf6aad4d241b5ba77b885cb7dbf51cbc2bd46063d0ccd" - }, - { - "left": "bad3055592187467ef5b1caa9c6e9d637ed520cc8e2abdf72e4958a0a7b727de" - }, - { - "right": "5f8fec66c1df66d4bca8b38c07536946640380614a0884e3422ee1eb35bdfadf" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Document.evidences-v1", - "value": "urn:evidences.idDocumentBack.algorithm:2d0f9636ca117366dd97dd69f2a9a63b99e634d37f612ceeffa12a30db9a86d5:sha256|urn:evidences.idDocumentBack.data:620b742575b5f52ca5d03c29efd5cf3c17ca6a52116deff07f2ea09a8ef63dbf:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|urn:evidences.idDocumentFront.algorithm:bcbd9b333241be0fb62f29dd9c9b1165cceb4408aaa955a7ef9c8ba9de952088:sha256|urn:evidences.idDocumentFront.data:273f235a2730fd2a18c5ab669fa7e2c78e63a5e2806677cd5d4075596dd9529f:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|urn:evidences.selfie.algorithm:2f79f2e31a9ce9bc774eb89468e6484a23ff9e619d2bf30a0bb23a7ba884f1af:sha256|urn:evidences.selfie.data:d44efec6c580b3b1300801e594bd4c615309d5604442b8699d34e503b0be9312:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|", - "claimPath": "document.evidences", - "targetHash": "2e19a0209d987aeff1d56ff2be7b7e2af83d3abc17cf951ddb47cb4515511305", - "node": [ - { - "right": "dadad5ed64260bebb3e2f5fdf8c66109d6faba308b2483d22251082890e9009f" - }, - { - "right": "f44b7344b7b49b9876817c52e328112f139b6443ce3dcb72ed450b6186b58dff" - }, - { - "left": "af8d81492cf8d727f2749d4b10a19c19ded0eb4d93342fde11cc7e6866b8e566" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Validation:evidences.idDocumentFront-v1", - "value": "urn:idDocumentFront.algorithm:bcbd9b333241be0fb62f29dd9c9b1165cceb4408aaa955a7ef9c8ba9de952088:sha256|urn:idDocumentFront.data:273f235a2730fd2a18c5ab669fa7e2c78e63a5e2806677cd5d4075596dd9529f:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|", - "claimPath": "validationEvidences.idDocumentFront", - "targetHash": "dadad5ed64260bebb3e2f5fdf8c66109d6faba308b2483d22251082890e9009f", - "node": [ - { - "left": "2e19a0209d987aeff1d56ff2be7b7e2af83d3abc17cf951ddb47cb4515511305" - }, - { - "right": "f44b7344b7b49b9876817c52e328112f139b6443ce3dcb72ed450b6186b58dff" - }, - { - "left": "af8d81492cf8d727f2749d4b10a19c19ded0eb4d93342fde11cc7e6866b8e566" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Validation:evidences.idDocumentBack-v1", - "value": "urn:idDocumentBack.algorithm:2d0f9636ca117366dd97dd69f2a9a63b99e634d37f612ceeffa12a30db9a86d5:sha256|urn:idDocumentBack.data:620b742575b5f52ca5d03c29efd5cf3c17ca6a52116deff07f2ea09a8ef63dbf:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|", - "claimPath": "validationEvidences.idDocumentBack", - "targetHash": "e3a604848f2bcee8f2e580c4a72bca8666421efe03deb9ad719d2513e242daf1", - "node": [ - { - "right": "6f1a450426909a5920eb9d44be17b94ad6df1b93cc9422464c1d85f01daf16bc" - }, - { - "left": "954f2146938ca577eed53690bf9776775d1634af53a8f6abeacb1805b7a92c10" - }, - { - "left": "af8d81492cf8d727f2749d4b10a19c19ded0eb4d93342fde11cc7e6866b8e566" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "claim-cvc:Validation:evidences.selfie-v1", - "value": "urn:selfie.algorithm:2f79f2e31a9ce9bc774eb89468e6484a23ff9e619d2bf30a0bb23a7ba884f1af:sha256|urn:selfie.data:d44efec6c580b3b1300801e594bd4c615309d5604442b8699d34e503b0be9312:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|", - "claimPath": "validationEvidences.selfie", - "targetHash": "6f1a450426909a5920eb9d44be17b94ad6df1b93cc9422464c1d85f01daf16bc", - "node": [ - { - "left": "e3a604848f2bcee8f2e580c4a72bca8666421efe03deb9ad719d2513e242daf1" - }, - { - "left": "954f2146938ca577eed53690bf9776775d1634af53a8f6abeacb1805b7a92c10" - }, - { - "left": "af8d81492cf8d727f2749d4b10a19c19ded0eb4d93342fde11cc7e6866b8e566" - }, - { - "left": "7928776907776ed7bece599ffcd96b65de5f5340834af968b5089b01d69f7b62" - }, - { - "right": "52e2e64063c533f9419667ced3c3a79582f9e560b9de8bd52cb5c6cd0e0f5e48" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:292b0049dfd8c15f0310c760b6fbe8a8485b9beb389ba29262604510877a5cfb:|", - "claimPath": "meta.issuer", - "targetHash": "f8fadea6eab4ae1c5e81c36778d2756c38c84b92eaa11d0ea2841577d8dbc816", - "node": [ - { - "right": "731b43aca212bd7a1de986a939c8e9fed0d079d1cc638ffa17550d78d202159a" - }, - { - "right": "765f969858f73f8722f132ed0f54ca563bf4dcf01dbb63050befc60f5c2689d6" - }, - { - "right": "57c3b18b1e5bc473a1b957ffbed2367943e17a4c46783e082ec73201422c7e0d" - }, - { - "left": "fc861ec3a17be8fd5a4b447d10516ed8721f0cc0e16dd697dc2586986c94a3ac" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:f548bd51bd8e6067af740f98e78eba10d327abf31352f902e10acac9e244d7da:2019-06-18T18:40:43.324Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "731b43aca212bd7a1de986a939c8e9fed0d079d1cc638ffa17550d78d202159a", - "node": [ - { - "left": "f8fadea6eab4ae1c5e81c36778d2756c38c84b92eaa11d0ea2841577d8dbc816" - }, - { - "right": "765f969858f73f8722f132ed0f54ca563bf4dcf01dbb63050befc60f5c2689d6" - }, - { - "right": "57c3b18b1e5bc473a1b957ffbed2367943e17a4c46783e082ec73201422c7e0d" - }, - { - "left": "fc861ec3a17be8fd5a4b447d10516ed8721f0cc0e16dd697dc2586986c94a3ac" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:54a7ae635fbc7a1f4280464724001b9b5717e075569df07f737fb67e37d84a55:null|", - "claimPath": "meta.expirationDate", - "targetHash": "c995d499a9af3ca85e519bfaa48fb72fc8f180c7cfae58f7991aa86194e20460", - "node": [ - { - "right": "d3a8e00d2496a1a4276f195d29457a9ab572f0367e807837ba1b22cefa383f5d" - }, - { - "left": "86e5e3315073bb73a898616d20e72161dd5ffe8aa6ddefab8e50e0d1e0e66c48" - }, - { - "right": "57c3b18b1e5bc473a1b957ffbed2367943e17a4c46783e082ec73201422c7e0d" - }, - { - "left": "fc861ec3a17be8fd5a4b447d10516ed8721f0cc0e16dd697dc2586986c94a3ac" - } - ] - } - ] - }, - "granted": null -} diff --git a/__test__/creds/proxyFixtures/IdDocumentWithoutRequiredClaims.json b/__test__/creds/proxyFixtures/IdDocumentWithoutRequiredClaims.json deleted file mode 100644 index cbdd0128..00000000 --- a/__test__/creds/proxyFixtures/IdDocumentWithoutRequiredClaims.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "id": "31cd46c4-7165-42bd-8a31-c20c1dc0a629", - "issuer": "", - "issuanceDate": "2019-06-05T19:20:30.688Z", - "identifier": "credential-cvc:IdDocument-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:IdDocument-v1" - ], - "claim": { - "document": { - "type": "Passport", - "name": { - "givenNames": "Lucas" - }, - "issueCountry": "Brazil" - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "e7f64a4cf0806ec7e20ec4387efa7e16bd1acbce74e313a10f103e93b3738fbf", - "anchor": "TBD (Civic Blockchain Attestation)", - "leaves": [ - { - "identifier": "claim-cvc:Document.type-v1", - "value": "urn:type:83b6896ec68e5ec2702bfa6e89b26c4a886ee73eb22e3c0c5b9c893096a351ab:Passport|", - "claimPath": "document.type", - "targetHash": "34612fc426fa8199c256f86f6fee333cff72567626fb32ab8ddce0a922b27b03", - "node": [ - { - "right": "9be5ee405cbe8c8a4f91cb0731213fcfa41b0b6b293f4b861a22ace736214674" - }, - { - "right": "2ac677d8a50069fdf69d6f24b01219f86882f62f9c16c6e82dc06746f3060d19" - }, - { - "right": "0328de70d7d76ebdd2865a4943ed394564426a8525ce532126e5f071e132136f" - }, - { - "right": "2988aad4c88123d23e03f3aa5a85089cca99f3803d694a45b175efb5969d0eb2" - }, - { - "right": "8f6f4e6cfd5feac30c987516ba35e865ed403b65595f3ea981a420055141b424" - } - ] - }, - { - "identifier": "claim-cvc:Document.name-v1", - "value": "urn:name.givenNames:284e6fb1c2d4176d9e1630c61687a029979572b45f513927bab71589fc54fa29:Lucas|", - "claimPath": "document.name", - "targetHash": "9be5ee405cbe8c8a4f91cb0731213fcfa41b0b6b293f4b861a22ace736214674", - "node": [ - { - "left": "34612fc426fa8199c256f86f6fee333cff72567626fb32ab8ddce0a922b27b03" - }, - { - "right": "2ac677d8a50069fdf69d6f24b01219f86882f62f9c16c6e82dc06746f3060d19" - }, - { - "right": "0328de70d7d76ebdd2865a4943ed394564426a8525ce532126e5f071e132136f" - }, - { - "right": "2988aad4c88123d23e03f3aa5a85089cca99f3803d694a45b175efb5969d0eb2" - }, - { - "right": "8f6f4e6cfd5feac30c987516ba35e865ed403b65595f3ea981a420055141b424" - } - ] - }, - { - "identifier": "claim-cvc:Name.givenNames-v1", - "value": "urn:givenNames:284e6fb1c2d4176d9e1630c61687a029979572b45f513927bab71589fc54fa29:Lucas|", - "claimPath": "document.name.givenNames", - "targetHash": "759bccd7fa4af7e16867b0b57710f5d4a610857ea7e8d6614faccb5ae7b20077", - "node": [ - { - "right": "da0e8cdb77405b37e09a8fd0f8c6ee7a0f18fc502748a90974951ac7929490cb" - }, - { - "left": "4a03718df9750763893e0032331650fdb4932dade6ed409f51c41253b2cd3b8b" - }, - { - "right": "0328de70d7d76ebdd2865a4943ed394564426a8525ce532126e5f071e132136f" - }, - { - "right": "2988aad4c88123d23e03f3aa5a85089cca99f3803d694a45b175efb5969d0eb2" - }, - { - "right": "8f6f4e6cfd5feac30c987516ba35e865ed403b65595f3ea981a420055141b424" - } - ] - }, - { - "identifier": "claim-cvc:Document.issueCountry-v1", - "value": "urn:issueCountry:27d7b788ad59cc383fb1cb637826e211dec7de39a5489edc0b149c0f65b9b7f6:Brazil|", - "claimPath": "document.issueCountry", - "targetHash": "da0e8cdb77405b37e09a8fd0f8c6ee7a0f18fc502748a90974951ac7929490cb", - "node": [ - { - "left": "759bccd7fa4af7e16867b0b57710f5d4a610857ea7e8d6614faccb5ae7b20077" - }, - { - "left": "4a03718df9750763893e0032331650fdb4932dade6ed409f51c41253b2cd3b8b" - }, - { - "right": "0328de70d7d76ebdd2865a4943ed394564426a8525ce532126e5f071e132136f" - }, - { - "right": "2988aad4c88123d23e03f3aa5a85089cca99f3803d694a45b175efb5969d0eb2" - }, - { - "right": "8f6f4e6cfd5feac30c987516ba35e865ed403b65595f3ea981a420055141b424" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:582e1ecbbc557e077bd0c4e827d8da0602a6a75b672aec5ecf292e8a1ca0b7b8:|", - "claimPath": "meta.issuer", - "targetHash": "9760de82d2f8ed5d64d4b2134d001f766d74c56b718c62eee495e16e0ebd4b71", - "node": [ - { - "right": "9179950900a3d5273abeffdfc6042deed5bfec286e061bc7de52e7a825192eeb" - }, - { - "right": "0be159b0efaaf9f7f53699f36e38c2a42e7416467c29ee4812c53d3aa9965eaa" - }, - { - "left": "33e5280f9473fa50a39db90042a7a3d0f44614a1f7d7aedd868fbd0022d34d9e" - }, - { - "right": "2988aad4c88123d23e03f3aa5a85089cca99f3803d694a45b175efb5969d0eb2" - }, - { - "right": "8f6f4e6cfd5feac30c987516ba35e865ed403b65595f3ea981a420055141b424" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:c1c7ccedff8518269c43a881b9eb8047c7b97521d0354c6d38e55755be9d1fcf:2019-06-05T19:20:30.688Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "9179950900a3d5273abeffdfc6042deed5bfec286e061bc7de52e7a825192eeb", - "node": [ - { - "left": "9760de82d2f8ed5d64d4b2134d001f766d74c56b718c62eee495e16e0ebd4b71" - }, - { - "right": "0be159b0efaaf9f7f53699f36e38c2a42e7416467c29ee4812c53d3aa9965eaa" - }, - { - "left": "33e5280f9473fa50a39db90042a7a3d0f44614a1f7d7aedd868fbd0022d34d9e" - }, - { - "right": "2988aad4c88123d23e03f3aa5a85089cca99f3803d694a45b175efb5969d0eb2" - }, - { - "right": "8f6f4e6cfd5feac30c987516ba35e865ed403b65595f3ea981a420055141b424" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:484b45435b363728a261ac654556d0943279a4b0a8d01f93c4f01a677273aa27:null|", - "claimPath": "meta.expirationDate", - "targetHash": "3924e82d2ed8fcb8ce8a6478f42ae5c50d3b7e9fac707531cc2ec4bc305c3cd8", - "node": [ - { - "right": "624ba87d3c589266c49166b118134209c832de54a80a540e04f517cde17bf439" - }, - { - "left": "286b28037689c42a0647d466295f66b5949231e8ef4e798ea138136913d5a982" - }, - { - "left": "33e5280f9473fa50a39db90042a7a3d0f44614a1f7d7aedd868fbd0022d34d9e" - }, - { - "right": "2988aad4c88123d23e03f3aa5a85089cca99f3803d694a45b175efb5969d0eb2" - }, - { - "right": "8f6f4e6cfd5feac30c987516ba35e865ed403b65595f3ea981a420055141b424" - } - ] - } - ] - }, - "granted": null -} diff --git a/__test__/creds/proxyFixtures/Identity.json b/__test__/creds/proxyFixtures/Identity.json deleted file mode 100644 index 950b33da..00000000 --- a/__test__/creds/proxyFixtures/Identity.json +++ /dev/null @@ -1,244 +0,0 @@ -{ - "id": "e24b2c57-3d78-42c3-9111-aaabcab8006d", - "issuer": "jest:test:fe0ca5d0-e8b0-11e8-8a40-7fe4d191eb47", - "issuanceDate": "2018-11-15T08:32:30.893Z", - "identifier": "credential-cvc:Identity-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Identity-v1" - ], - "claim": { - "identity": { - "name": { - "familyNames": "sWYglHZ6Ry", - "givenNames": "1otj7GaELc", - "otherNames": "0QpdyidiaF" - }, - "dateOfBirth": { - "day": 2.138220070139745, - "month": 9.54655376259586, - "year": 1947.6347555235777 - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "6b15fdc326568870aed3adfe73683ee6e91f1a5af11835647aec55e9c7bdd5f7", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:Identity-v1", - "data": "6b15fdc326568870aed3adfe73683ee6e91f1a5af11835647aec55e9c7bdd5f7", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "claim-cvc:Identity.name-v1", - "value": "urn:name.familyNames:b9aaf1b43b90a6636909e884977ea4e853dcc794098a7d9016094057aa0ecbbd:sWYglHZ6Ry|urn:name.givenNames:65b4fd7d6d2e99b9108c68f0d0a239a0aa6ecaa50658f2705788a9965ca3f7cf:1otj7GaELc|urn:name.otherNames:75d5ffd2e6466e5a6b6497cda5a9118676af7df99c8e00a4870b1af1adb9b451:0QpdyidiaF|", - "claimPath": "identity.name", - "targetHash": "741c9b32c0e46c7335ee6bfea3819e6df80cb49f48fe87132574a39ed8910ba2", - "node": [ - { - "right": "325c544bc8d3e303473da4cf8b9a9edb86838a3897da8f5af961ec1536e88af0" - }, - { - "right": "7b90deaaa228466fde5fdc49ac27367b705302b21c3fc4b67bf6817409a3f886" - }, - { - "right": "786ef34a150627e8245c6cfe320424b987bb40c0f811d5dbcf3a2722bce378d6" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - }, - { - "identifier": "claim-cvc:Name.givenNames-v1", - "value": "urn:givenNames:65b4fd7d6d2e99b9108c68f0d0a239a0aa6ecaa50658f2705788a9965ca3f7cf:1otj7GaELc|", - "claimPath": "identity.name.givenNames", - "targetHash": "325c544bc8d3e303473da4cf8b9a9edb86838a3897da8f5af961ec1536e88af0", - "node": [ - { - "left": "741c9b32c0e46c7335ee6bfea3819e6df80cb49f48fe87132574a39ed8910ba2" - }, - { - "right": "7b90deaaa228466fde5fdc49ac27367b705302b21c3fc4b67bf6817409a3f886" - }, - { - "right": "786ef34a150627e8245c6cfe320424b987bb40c0f811d5dbcf3a2722bce378d6" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - }, - { - "identifier": "claim-cvc:Name.familyNames-v1", - "value": "urn:familyNames:b9aaf1b43b90a6636909e884977ea4e853dcc794098a7d9016094057aa0ecbbd:sWYglHZ6Ry|", - "claimPath": "identity.name.familyNames", - "targetHash": "2e1a69df77b5abbbc0c30b1eb73a010ec5b15826417119ce001504efe16fdc52", - "node": [ - { - "right": "cee7323edd25b8d6f329854eb4b81c7eeace99609eea28db528f626da3a5ba85" - }, - { - "left": "c5cce935d2e38c9e15eab57ba3125b3b11a8062fd62786612d2b1420cff4fe10" - }, - { - "right": "786ef34a150627e8245c6cfe320424b987bb40c0f811d5dbcf3a2722bce378d6" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - }, - { - "identifier": "claim-cvc:Name.otherNames-v1", - "value": "urn:otherNames:75d5ffd2e6466e5a6b6497cda5a9118676af7df99c8e00a4870b1af1adb9b451:0QpdyidiaF|", - "claimPath": "identity.name.otherNames", - "targetHash": "cee7323edd25b8d6f329854eb4b81c7eeace99609eea28db528f626da3a5ba85", - "node": [ - { - "left": "2e1a69df77b5abbbc0c30b1eb73a010ec5b15826417119ce001504efe16fdc52" - }, - { - "left": "c5cce935d2e38c9e15eab57ba3125b3b11a8062fd62786612d2b1420cff4fe10" - }, - { - "right": "786ef34a150627e8245c6cfe320424b987bb40c0f811d5dbcf3a2722bce378d6" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - }, - { - "identifier": "claim-cvc:Identity.dateOfBirth-v1", - "value": "urn:dateOfBirth.day:fa11c23cdf7383160eaea4d9407ecce905d447ba9e7f29b1ea779c35fe3c304b:2.138220070139745|urn:dateOfBirth.month:5f5d7db849b9929a4c1691b7f3e4a0a61a77a5719bb199e3d07ee57d448cb62e:9.54655376259586|urn:dateOfBirth.year:2a07dbbde111ac2a9a62f92ad22ba9a7aa418446ae2c5cad03e5d689ff8e72bd:1947.6347555235777|", - "claimPath": "identity.dateOfBirth", - "targetHash": "028ab3dc56ff0bf8a421b666968a24efb8360283d35e5fa572f22eb399b266d8", - "node": [ - { - "right": "32402efef3cd6155a1762e4017c30960127f5ac371276fa98b4071de9e4167e2" - }, - { - "right": "b7abb6a07c3d34f93481b1640a2737b58083cb625c76cc033c082a35eeb03561" - }, - { - "left": "1a90f7b369d4110b4268715692b1d3c896476ba06b4e7c48c98452536eb5471b" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:2477fdbab78769105cfd637c53b5fe4500f1b528b4917ca371e25e32ba27ad79:jest:test:fe0ca5d0-e8b0-11e8-8a40-7fe4d191eb47|", - "claimPath": "meta.issuer", - "targetHash": "32402efef3cd6155a1762e4017c30960127f5ac371276fa98b4071de9e4167e2", - "node": [ - { - "left": "028ab3dc56ff0bf8a421b666968a24efb8360283d35e5fa572f22eb399b266d8" - }, - { - "right": "b7abb6a07c3d34f93481b1640a2737b58083cb625c76cc033c082a35eeb03561" - }, - { - "left": "1a90f7b369d4110b4268715692b1d3c896476ba06b4e7c48c98452536eb5471b" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:ca2c56221898ce1dc364c8f4cf153f5b61d3c03b4505daede5cb23a22cd6f9ba:2018-11-15T08:32:30.893Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "a6b536e9d69c7fbe30017c4d89de2e1e4501532e2f1de145a28dff904ac7fb67", - "node": [ - { - "right": "e4f5675ab686ed53b7d5fa60bc0c412e59cc312648c515cf8ff88497b0e6e971" - }, - { - "left": "dfa31fa614a9cef75da528036a11e5ca09ad521a5483b8c709d5408aaac6bd11" - }, - { - "left": "1a90f7b369d4110b4268715692b1d3c896476ba06b4e7c48c98452536eb5471b" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:27d69dde4c16a4f841236ae17d4e5839667ddcff19a6bb99e679fe64be301006:null|", - "claimPath": "meta.expirationDate", - "targetHash": "e4f5675ab686ed53b7d5fa60bc0c412e59cc312648c515cf8ff88497b0e6e971", - "node": [ - { - "left": "a6b536e9d69c7fbe30017c4d89de2e1e4501532e2f1de145a28dff904ac7fb67" - }, - { - "left": "dfa31fa614a9cef75da528036a11e5ca09ad521a5483b8c709d5408aaac6bd11" - }, - { - "left": "1a90f7b369d4110b4268715692b1d3c896476ba06b4e7c48c98452536eb5471b" - }, - { - "right": "04bef12661f9a409d18cbbb52bc58651f65e286abd8bc140e1344594841a14ed" - }, - { - "right": "da4d8a5e274061369782e64bbb86f213271f67ea21d096437bc15b05d91508f9" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/PermanentAnchor.json b/__test__/creds/proxyFixtures/PermanentAnchor.json deleted file mode 100644 index d92d1b10..00000000 --- a/__test__/creds/proxyFixtures/PermanentAnchor.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "subject": { - "pub": "xpub:dummy", - "label": "test1530668445601", - "data": "test1530668445601", - "signature": "304402204e4521f4f49baf55fb85539a2e8897e4fb05fad8bed6418e793d952ea63d559f02200f1a65d43392efe6e4388ced8694097333224685676e2c954c76efdbf87d4b55" - }, - "walletId": "5b3c25ae531deca003af947456de0316", - "cosigners": [{ - "pub": "xpub:dummy" - }, { - "pub": "xpub:dummy" - }], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "d42108e60e941483045022100bd2fe1e1958424dddfac818c1cb9cf9b4b0758bff0165dafcb6ca3fb935864b80220621f79767d8b4a144f0b371ece12704eadc4d7cf60a23687d156fffdce9f76a3414c69522102896c0bad1cba92ff30e93a3301dcaed0c4a188e3a60e1b0abc64e572b38a70a12103f53ac90200000001ac0bacc5039e659e5a22365ca5f45f6f6f43b97c7d21812f457ca8a73122dcde00000000fdfd000047304402203cdac186e4678ce837b7acffbb769740fb440b419f237b407303858b3d29e4ed02204b62e3a5071bbca7c81581ced96d519b24d39114bedc13405fa81eac48ba895619b56825e473e7b5bb72a1c473a8f3bd0000000092bf025bf8da001210261d79a240feb1ba9642068856f928e3bd21985a443631007fed2fbed8d067c5353aeffffffff02db497d0f0000000017a914f7e370d5d2af95e058985724a4fe7c2c175f423087fb1700000000000017a914cd14854e02d273af9612ae649e7d13a2f73fcfde87", - "network": "dummynet", - "value": 259876034, - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201" -} \ No newline at end of file diff --git a/__test__/creds/proxyFixtures/PhoneNumber.json b/__test__/creds/proxyFixtures/PhoneNumber.json deleted file mode 100644 index 2c348830..00000000 --- a/__test__/creds/proxyFixtures/PhoneNumber.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "id": "c409433d-53a0-413b-ab36-cf223ef11261", - "issuer": "jest:test:fe097180-e8b0-11e8-8a40-7fe4d191eb47", - "issuanceDate": "2018-11-15T08:32:30.872Z", - "identifier": "credential-cvc:PhoneNumber-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:PhoneNumber-v1" - ], - "claim": { - "contact": { - "phoneNumber": { - "country": "Y1kbIF49uq", - "countryCode": "LN0V7AMZ1R", - "extension": "MNPIrwwpt4", - "lineType": "pmu0Mibtod", - "number": "PPWP1gUyxx" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "724ae5eef62ff52a72f21b613ab05024b4d52bc3c6dc64c64af242c670e85fff", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:PhoneNumber-v1", - "data": "724ae5eef62ff52a72f21b613ab05024b4d52bc3c6dc64c64af242c670e85fff", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201", - "value": {} - }, - "leaves": [ - { - "identifier": "claim-cvc:Contact.phoneNumber-v1", - "value": "urn:phoneNumber.country:9a27746e2c234c14d80874f647ed69f491e5e19f4aee6c89f0cc8105747c2dcb:Y1kbIF49uq|urn:phoneNumber.countryCode:932d51a15a2e3079f3922d4ee77a7bb763ddda6515a790b4b79bb7c0dda8a4fd:LN0V7AMZ1R|urn:phoneNumber.extension:e22172ed0cece05274bab12d0944270c54c88203d205aae62ea3cf81fecf35c9:MNPIrwwpt4|urn:phoneNumber.lineType:65b327d40d8a19cae121a278d1fcb5dd9f89019c2eaf27544dc751c5f1bb4e2c:pmu0Mibtod|urn:phoneNumber.number:4fa664bf00f78628a95750172c4460d427cb66314504dd24dacd1e37cb560a22:PPWP1gUyxx|", - "claimPath": "contact.phoneNumber", - "targetHash": "ed75e2a2456b606010f54fc5a946e3c43d06eb2b3b6580ed180b927bcdd23342", - "node": [ - { - "right": "fa1c0349205f0afac38aa71fcab8ffc9314a05f06d17579ef5293340f21f4afd" - }, - { - "right": "17a1351eccf90d8c03ea88b6833b1ab559df152df76a0ec27444f3eec5a53355" - }, - { - "right": "1558c61d73086831c4638bbe226e8c5ed815bcac60fb543df42f1b743ed8b4ab" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - }, - { - "identifier": "claim-cvc:PhoneNumber.countryCode-v1", - "value": "urn:countryCode:932d51a15a2e3079f3922d4ee77a7bb763ddda6515a790b4b79bb7c0dda8a4fd:LN0V7AMZ1R|", - "claimPath": "contact.phoneNumber.countryCode", - "targetHash": "fa1c0349205f0afac38aa71fcab8ffc9314a05f06d17579ef5293340f21f4afd", - "node": [ - { - "left": "ed75e2a2456b606010f54fc5a946e3c43d06eb2b3b6580ed180b927bcdd23342" - }, - { - "right": "17a1351eccf90d8c03ea88b6833b1ab559df152df76a0ec27444f3eec5a53355" - }, - { - "right": "1558c61d73086831c4638bbe226e8c5ed815bcac60fb543df42f1b743ed8b4ab" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - }, - { - "identifier": "claim-cvc:PhoneNumber.number-v1", - "value": "urn:number:4fa664bf00f78628a95750172c4460d427cb66314504dd24dacd1e37cb560a22:PPWP1gUyxx|", - "claimPath": "contact.phoneNumber.number", - "targetHash": "7926d2d136e715d11cf39e1200542733f6808bd93eff9eadd2f3b811c4367372", - "node": [ - { - "right": "ae91bfc54716606456a96f3d2c4ca8c1467b295cad5fe5f37fc960c804ea292d" - }, - { - "left": "913277555b0fe34e4c35a150365d259861a6c974a6b3354f48e6c67f26a9b43f" - }, - { - "right": "1558c61d73086831c4638bbe226e8c5ed815bcac60fb543df42f1b743ed8b4ab" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - }, - { - "identifier": "claim-cvc:PhoneNumber.extension-v1", - "value": "urn:extension:e22172ed0cece05274bab12d0944270c54c88203d205aae62ea3cf81fecf35c9:MNPIrwwpt4|", - "claimPath": "contact.phoneNumber.extension", - "targetHash": "ae91bfc54716606456a96f3d2c4ca8c1467b295cad5fe5f37fc960c804ea292d", - "node": [ - { - "left": "7926d2d136e715d11cf39e1200542733f6808bd93eff9eadd2f3b811c4367372" - }, - { - "left": "913277555b0fe34e4c35a150365d259861a6c974a6b3354f48e6c67f26a9b43f" - }, - { - "right": "1558c61d73086831c4638bbe226e8c5ed815bcac60fb543df42f1b743ed8b4ab" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - }, - { - "identifier": "claim-cvc:PhoneNumber.lineType-v1", - "value": "urn:lineType:65b327d40d8a19cae121a278d1fcb5dd9f89019c2eaf27544dc751c5f1bb4e2c:pmu0Mibtod|", - "claimPath": "contact.phoneNumber.lineType", - "targetHash": "43b6ae3e8cab63b818106d18fafeed21eeb3c95018a0a4ddd630148c5bf7e357", - "node": [ - { - "right": "06576c1526b1fc221bb481158fa57ef0896207240b21d183db7b4cec2bc45e58" - }, - { - "right": "714d0da1745522318318f3efebb2d0ec16aee0753d659133d0561a2360f44d5e" - }, - { - "left": "c09f9f8fa44d9685c82ec2807e9add5498557df66aa06c2e90fb813fc6a93395" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:e22a7aacb5e25cccf68f98c4287c6fa977048b4588a5a667a6b5007c25a09cb8:jest:test:fe097180-e8b0-11e8-8a40-7fe4d191eb47|", - "claimPath": "meta.issuer", - "targetHash": "06576c1526b1fc221bb481158fa57ef0896207240b21d183db7b4cec2bc45e58", - "node": [ - { - "left": "43b6ae3e8cab63b818106d18fafeed21eeb3c95018a0a4ddd630148c5bf7e357" - }, - { - "right": "714d0da1745522318318f3efebb2d0ec16aee0753d659133d0561a2360f44d5e" - }, - { - "left": "c09f9f8fa44d9685c82ec2807e9add5498557df66aa06c2e90fb813fc6a93395" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:1a9383edbc7a0d8e4bcd791bcbbfc0c4ad79a2a4c0fef6e534c24bd618517f40:2018-11-15T08:32:30.872Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "ac9a76b08f65e397bec51050f7ba9a7dd5580a858aed6e8d6745118ab98a17ac", - "node": [ - { - "right": "4e9539df672c8789b924dc5eaf4d457ba75452e259edca9543e30130600e38f9" - }, - { - "left": "5d9dd28239cbab651e5fa085d13ac480a46c527dc9958fe65c3e0bac85e7c84d" - }, - { - "left": "c09f9f8fa44d9685c82ec2807e9add5498557df66aa06c2e90fb813fc6a93395" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:73719558c8aa661f54267f5b5aa25c334e85fd95e3decba2a196eff5e0ac3f78:null|", - "claimPath": "meta.expirationDate", - "targetHash": "4e9539df672c8789b924dc5eaf4d457ba75452e259edca9543e30130600e38f9", - "node": [ - { - "left": "ac9a76b08f65e397bec51050f7ba9a7dd5580a858aed6e8d6745118ab98a17ac" - }, - { - "left": "5d9dd28239cbab651e5fa085d13ac480a46c527dc9958fe65c3e0bac85e7c84d" - }, - { - "left": "c09f9f8fa44d9685c82ec2807e9add5498557df66aa06c2e90fb813fc6a93395" - }, - { - "right": "d255628334cca0a257bdf60d0a5788060223e70adeb8eb7b75bccfe5bfc0f135" - }, - { - "right": "e0f44c7674b99460957856b11daf7ffead8aa4c5af9e96b1452bdd4b8b8560ad" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/TempAnchor.json b/__test__/creds/proxyFixtures/TempAnchor.json deleted file mode 100644 index 4c1d1318..00000000 --- a/__test__/creds/proxyFixtures/TempAnchor.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "schema": "dummy-20180201", - "tx": "01000000018815822815dbd6c355ad40da1f2fac328a408d538638143177168b57af5d753a00000000fc004730440220424268275da66825bc99a3f487472baa0751b67355407b4a4e99da04a3186c520220578b820dd051c919c2fb57b26aa29667483b547f6766a23e3c821e47a5d1237b0147304402201316cc0ee8a968f4d86a616fcf710b663e0bb7021e95d7a300036b65e95ca34602204f05162db06278af2a8abdd7ab4d92e973dc4154a92bf37a4056f3298fa9ecad014c695221028f9205846d9b23dd9a17588ae13603aa3eda3599582750904716c827d02269db210340f8f56a56b2af2a9698f66574882068cf8bd8fa95a26136ac34edabfe5eb5d021029d52d336232eb3d4f37730822df9d3993a84c3edba20f14d3ee0f20141c0bdfd53aeffffffff01551500000000000017a91460312cbbb8ec560305a239d56398f0d8aa57ecf68700000000", - "subject": { - "label": "teste", - "pub": "xpub:dummy", - "data": "testesdsd", - "signature": "304502210089e94f11587bf7fa202817ace9664639855a146565d4e54b9f853f31f4d7ce31022077098a904e0dda7ab947db92a3e7dd7a5d52654c286151c3cc97feb0ef4a3310" - }, - "authority": { - "pub": "xpub:dummy", - "path": "/1/0/0/0" - }, - "cosigners": [{ - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "type": "temporary", - "network": "dummynet" -} \ No newline at end of file diff --git a/__test__/creds/proxyFixtures/VCPermanentAnchor.json b/__test__/creds/proxyFixtures/VCPermanentAnchor.json deleted file mode 100644 index fa5f6e05..00000000 --- a/__test__/creds/proxyFixtures/VCPermanentAnchor.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "id": "", - "issuer": "d460c90d-4032-4c29-9743-f52e0a852602", - "issuanceDate": "2018-10-08T19:46:22.364Z", - "identifier": "credential-cvc:Identity-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Identity-v1" - ], - "claim": { - "identity": { - "name": { - "familyNames": "Santos", - "givenNames": "Joao", - "otherNames": "Barbosa" - }, - "dateOfBirth": { - "day": 20, - "month": 3, - "year": 1978 - } - } - }, - "proof": { - "type": "CivicMerkleProof2018", - "merkleRoot": "1fbe357dfcb0f19b0470d1017ce617bc8f3e88ff06552f425a3e2e81d6f38c10", - "anchor": { - "subject": { - "pub": "xpub6Expk8Z75vLhdyfopBrrcmcd3NhenAuuE4GXcX8KkwKbaQqzAe4Ywbtxu9F95hRHj79PvdtYEJcoR6gesbZ79fS4bLi1PQtm81rjxAHeLL9", - "label": "credential-cvc:Identity-v1", - "data": "1fbe357dfcb0f19b0470d1017ce617bc8f3e88ff06552f425a3e2e81d6f38c10", - "signature": "3045022100cec320a177f699d1981a823c4030973d180db0b893592096b7d343531c13e3e7022064a5093c97d3372f81c7104b571c532db3b1a6eb4eb9d26bb3ac7d7be5e314b8" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "permanent", - "civicAsPrimary": false, - "schema": "dummy-20180201" - }, - "leaves": [ - { - "identifier": "claim-cvc:Identity.name-v1", - "value": "urn:familyNames:f9cebb16c7ce72cc4cb75f49e7ca4435478be80f0a03740a97fbb508c9fe26eb:Santos|urn:givenNames:3b99f45fbd9aad638f34a40d7647293ee5c955316cf2bda31b856470efb04c49:Joao|urn:otherNames:ea17e5a9b080a9684d63983c7538fd053373f3d10245130cbedff75d82d4c714:Barbosa|", - "claimPath": "identity.name", - "targetHash": "7f576a0cfa81df08b8df1937bacfea632ab2a03f3dba4e9744c22418c0557286", - "node": [ - { - "right": "5b8d77d60a05af6dcad4c96d8e451adaaeae3e352ec20b68a5307466a5d8afbd" - }, - { - "right": "cdd1ff29f8fa9248ef3d909e76faf7011a276befb631d46a9073cd61ad420446" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.givenNames-v1", - "value": "urn:givenNames:3b99f45fbd9aad638f34a40d7647293ee5c955316cf2bda31b856470efb04c49:Joao", - "claimPath": "identity.name.givenNames", - "targetHash": "5b8d77d60a05af6dcad4c96d8e451adaaeae3e352ec20b68a5307466a5d8afbd", - "node": [ - { - "left": "7f576a0cfa81df08b8df1937bacfea632ab2a03f3dba4e9744c22418c0557286" - }, - { - "right": "cdd1ff29f8fa9248ef3d909e76faf7011a276befb631d46a9073cd61ad420446" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.otherNames-v1", - "value": "urn:otherNames:ea17e5a9b080a9684d63983c7538fd053373f3d10245130cbedff75d82d4c714:Barbosa", - "claimPath": "identity.name.otherNames", - "targetHash": "b013a25bcbb6d1fafe0ac5d07dcca6964686869463a31d3adc5baceaa0538d29", - "node": [ - { - "right": "5fdafb2f464e4798e8a46d04e70ddf210960e7717ed343cf205367f89318bab3" - }, - { - "left": "191255794cb6b5314f416cfaf7f86bc9ab01fffe2c94c4852faa9169faeaaf48" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.familyNames-v1", - "value": "urn:familyNames:f9cebb16c7ce72cc4cb75f49e7ca4435478be80f0a03740a97fbb508c9fe26eb:Santos", - "claimPath": "identity.name.familyNames", - "targetHash": "5fdafb2f464e4798e8a46d04e70ddf210960e7717ed343cf205367f89318bab3", - "node": [ - { - "left": "b013a25bcbb6d1fafe0ac5d07dcca6964686869463a31d3adc5baceaa0538d29" - }, - { - "left": "191255794cb6b5314f416cfaf7f86bc9ab01fffe2c94c4852faa9169faeaaf48" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Identity.dateOfBirth-v1", - "value": "urn:day:37721c821560995d992f9f6a7859f0da13a7c06908e298ece50c1f84cd16669f:00000020|urn:month:2c5a20c2f6a1cb6c74001646eecd2015bfcde98a20d9006483a2aad3d4714a3e:00000003|urn:year:7e189630ad86951dc1160624c161f1f6227f83d926233629e4a8da2d2386ae9d:00001978|", - "claimPath": "identity.dateOfBirth", - "targetHash": "93f1faaa5af8b5f9db24f660940d5fe975d71f6d29d0ee2857b47e2cef7f11e8", - "node": [ - { - "right": "45b52663fcffbc0ef018979179d16dab408b3183a64ebf534ab109b7fe594a48" - }, - { - "right": "b213a284c598763254471aac74326af69c13355404356f794c3606f0c8d85b9c" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:769197d3d0e416dd621d75d9d0449ab30e2f501dea364cc792552df0b6e8ec05:d460c90d-4032-4c29-9743-f52e0a852602", - "claimPath": "meta.issuer", - "targetHash": "45b52663fcffbc0ef018979179d16dab408b3183a64ebf534ab109b7fe594a48", - "node": [ - { - "left": "93f1faaa5af8b5f9db24f660940d5fe975d71f6d29d0ee2857b47e2cef7f11e8" - }, - { - "right": "b213a284c598763254471aac74326af69c13355404356f794c3606f0c8d85b9c" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:dbeeebc31ea7f7371540a75479ee265dab9db6a291ae406acdf80d227a49056c:2018-10-08T19:46:22.364Z", - "claimPath": "meta.issuanceDate", - "targetHash": "1702fc187d05ee760f13e143370e09298e6bd44ad0db9c8025053839b50f7968", - "node": [ - { - "right": "3319c5ed870611c4dcd9baf2f5da3c6bc77437edcaa5721283528b231892c56d" - }, - { - "left": "5396bfaf8f82259a40a4b50723d1ae0c3332ea89f064dafc2a03c8d3a5650bf1" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:beb8164634c2a861f122a17b553ec8a35dbf1bbf8b07b921dbc752d28b12b73a:null", - "claimPath": "meta.expirationDate", - "targetHash": "3319c5ed870611c4dcd9baf2f5da3c6bc77437edcaa5721283528b231892c56d", - "node": [ - { - "left": "1702fc187d05ee760f13e143370e09298e6bd44ad0db9c8025053839b50f7968" - }, - { - "left": "5396bfaf8f82259a40a4b50723d1ae0c3332ea89f064dafc2a03c8d3a5650bf1" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/VCTempAnchor.json b/__test__/creds/proxyFixtures/VCTempAnchor.json deleted file mode 100644 index 6854e567..00000000 --- a/__test__/creds/proxyFixtures/VCTempAnchor.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "id": null, - "issuer": "d460c90d-4032-4c29-9743-f52e0a852602", - "issuanceDate": "2018-10-08T19:46:22.364Z", - "identifier": "credential-cvc:Identity-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Identity-v1" - ], - "claim": { - "identity": { - "name": { - "familyNames": "Santos", - "givenNames": "Joao", - "otherNames": "Barbosa" - }, - "dateOfBirth": { - "day": 20, - "month": 3, - "year": 1978 - } - } - }, - "proof": { - "type": "CivicMerkleProof2018", - "merkleRoot": "1fbe357dfcb0f19b0470d1017ce617bc8f3e88ff06552f425a3e2e81d6f38c10", - "anchor": { - "subject": { - "pub": "xpub:dummy", - "label": "credential-cvc:Identity-v1", - "data": "1fbe357dfcb0f19b0470d1017ce617bc8f3e88ff06552f425a3e2e81d6f38c10", - "signature": "signed:dummy" - }, - "walletId": "none", - "cosigners": [ - { - "pub": "xpub:dummy" - }, - { - "pub": "xpub:dummy" - } - ], - "authority": { - "pub": "xpub:dummy", - "path": "/" - }, - "coin": "dummycoin", - "tx": "", - "network": "dummynet", - "type": "temporary", - "civicAsPrimary": false, - "schema": "dummy-20180201" - }, - "leaves": [ - { - "identifier": "claim-cvc:Identity.name-v1", - "value": "urn:familyNames:f9cebb16c7ce72cc4cb75f49e7ca4435478be80f0a03740a97fbb508c9fe26eb:Santos|urn:givenNames:3b99f45fbd9aad638f34a40d7647293ee5c955316cf2bda31b856470efb04c49:Joao|urn:otherNames:ea17e5a9b080a9684d63983c7538fd053373f3d10245130cbedff75d82d4c714:Barbosa|", - "claimPath": "identity.name", - "targetHash": "7f576a0cfa81df08b8df1937bacfea632ab2a03f3dba4e9744c22418c0557286", - "node": [ - { - "right": "5b8d77d60a05af6dcad4c96d8e451adaaeae3e352ec20b68a5307466a5d8afbd" - }, - { - "right": "cdd1ff29f8fa9248ef3d909e76faf7011a276befb631d46a9073cd61ad420446" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.givenNames-v1", - "value": "urn:givenNames:3b99f45fbd9aad638f34a40d7647293ee5c955316cf2bda31b856470efb04c49:Joao", - "claimPath": "identity.name.givenNames", - "targetHash": "5b8d77d60a05af6dcad4c96d8e451adaaeae3e352ec20b68a5307466a5d8afbd", - "node": [ - { - "left": "7f576a0cfa81df08b8df1937bacfea632ab2a03f3dba4e9744c22418c0557286" - }, - { - "right": "cdd1ff29f8fa9248ef3d909e76faf7011a276befb631d46a9073cd61ad420446" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.otherNames-v1", - "value": "urn:otherNames:ea17e5a9b080a9684d63983c7538fd053373f3d10245130cbedff75d82d4c714:Barbosa", - "claimPath": "identity.name.otherNames", - "targetHash": "b013a25bcbb6d1fafe0ac5d07dcca6964686869463a31d3adc5baceaa0538d29", - "node": [ - { - "right": "5fdafb2f464e4798e8a46d04e70ddf210960e7717ed343cf205367f89318bab3" - }, - { - "left": "191255794cb6b5314f416cfaf7f86bc9ab01fffe2c94c4852faa9169faeaaf48" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Name.familyNames-v1", - "value": "urn:familyNames:f9cebb16c7ce72cc4cb75f49e7ca4435478be80f0a03740a97fbb508c9fe26eb:Santos", - "claimPath": "identity.name.familyNames", - "targetHash": "5fdafb2f464e4798e8a46d04e70ddf210960e7717ed343cf205367f89318bab3", - "node": [ - { - "left": "b013a25bcbb6d1fafe0ac5d07dcca6964686869463a31d3adc5baceaa0538d29" - }, - { - "left": "191255794cb6b5314f416cfaf7f86bc9ab01fffe2c94c4852faa9169faeaaf48" - }, - { - "right": "7e68e0871dc4504629bcde9669c500a9d0fc6bf1aaa701efb996943320ef2d89" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "claim-cvc:Identity.dateOfBirth-v1", - "value": "urn:day:37721c821560995d992f9f6a7859f0da13a7c06908e298ece50c1f84cd16669f:00000020|urn:month:2c5a20c2f6a1cb6c74001646eecd2015bfcde98a20d9006483a2aad3d4714a3e:00000003|urn:year:7e189630ad86951dc1160624c161f1f6227f83d926233629e4a8da2d2386ae9d:00001978|", - "claimPath": "identity.dateOfBirth", - "targetHash": "93f1faaa5af8b5f9db24f660940d5fe975d71f6d29d0ee2857b47e2cef7f11e8", - "node": [ - { - "right": "45b52663fcffbc0ef018979179d16dab408b3183a64ebf534ab109b7fe594a48" - }, - { - "right": "b213a284c598763254471aac74326af69c13355404356f794c3606f0c8d85b9c" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:769197d3d0e416dd621d75d9d0449ab30e2f501dea364cc792552df0b6e8ec05:d460c90d-4032-4c29-9743-f52e0a852602", - "claimPath": "meta.issuer", - "targetHash": "45b52663fcffbc0ef018979179d16dab408b3183a64ebf534ab109b7fe594a48", - "node": [ - { - "left": "93f1faaa5af8b5f9db24f660940d5fe975d71f6d29d0ee2857b47e2cef7f11e8" - }, - { - "right": "b213a284c598763254471aac74326af69c13355404356f794c3606f0c8d85b9c" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:dbeeebc31ea7f7371540a75479ee265dab9db6a291ae406acdf80d227a49056c:2018-10-08T19:46:22.364Z", - "claimPath": "meta.issuanceDate", - "targetHash": "1702fc187d05ee760f13e143370e09298e6bd44ad0db9c8025053839b50f7968", - "node": [ - { - "right": "3319c5ed870611c4dcd9baf2f5da3c6bc77437edcaa5721283528b231892c56d" - }, - { - "left": "5396bfaf8f82259a40a4b50723d1ae0c3332ea89f064dafc2a03c8d3a5650bf1" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:beb8164634c2a861f122a17b553ec8a35dbf1bbf8b07b921dbc752d28b12b73a:null", - "claimPath": "meta.expirationDate", - "targetHash": "3319c5ed870611c4dcd9baf2f5da3c6bc77437edcaa5721283528b231892c56d", - "node": [ - { - "left": "1702fc187d05ee760f13e143370e09298e6bd44ad0db9c8025053839b50f7968" - }, - { - "left": "5396bfaf8f82259a40a4b50723d1ae0c3332ea89f064dafc2a03c8d3a5650bf1" - }, - { - "left": "f89530e2b7e3e5e243674f1fe0ced3d4e660b4b3d9d2f78dc74afe7aa2069e8b" - }, - { - "right": "f0bea436f87b9b691324e18afaf800411d6d2e213d180fc2721782fb393a36f0" - }, - { - "right": "efb0034a22c3f78c5435f0b33dfa120f9720313ced0b2defe465e087f3fe470b" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/VCWithTamperedLeafValue.json b/__test__/creds/proxyFixtures/VCWithTamperedLeafValue.json deleted file mode 100644 index 6e16101c..00000000 --- a/__test__/creds/proxyFixtures/VCWithTamperedLeafValue.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "id": "3636227c-5adf-4135-b81c-6dd1da53fd67", - "issuer": "", - "issuanceDate": "2018-11-13T18:54:11.665Z", - "identifier": "credential-cvc:Email-v1", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:Email-v1" - ], - "claim": { - "contact": { - "email": { - "domain": { - "name": "UTpHKFyaaB", - "tld": "oVaPsceZ4C" - }, - "username": "ZcMpCBQ0lE" - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "7f62f719275f47331782c57d98e138c2c063065476f73a38c99023ddf9009287", - "anchor": "TBD (Civic Blockchain Attestation)", - "leaves": [ - { - "identifier": "claim-cvc:Contact.email-v1", - "value": "urn:email.domain.name:65572f78625ca98197745bd560fc5d8e6a7be7d8d9fcf6344947b697b73cd676:UTpHKFyaB|urn:email.domain.tld:199c3b2cbc991cf024860f3cdfb71c956f0dea1fe397efb10ad1d8621163a9a1:oVaPsceZ4C|urn:email.username:705e41988a3659d943eeaaa5e6c91cc8de401674c4e130a7c44f5b4b2e8d7736:ZcMpCBQ0lE|", - "claimPath": "contact.email", - "targetHash": "dbd7c2e9f6369bdc1653cd29484b23324bac5cc2681bc956d5621163d10c82e7", - "node": [ - { - "right": "e3662aeff5df76694848bf529ec9e52f4a981d5a0afa27e48bfeae37992d7" - }, - { - "right": "43a08a21a85219f2964a5473e270698296aeda22c08299ba61523d6b51bab102" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "claim-cvc:Email.domain-v1", - "value": "urn:domain.name:65572f78625ca98197745bd560fc5d8e6a7be7d8d9fcf6344947b697b73cd676:UTpHKFyaaB|urn:domain.tld:199c3b2cbc991cf024860f3cdfb71c956f0dea1fe397efb10ad1d8621163a9a1:oVaPsceZ4C|", - "claimPath": "contact.email.domain", - "targetHash": "e3662aeff5df76f0a694848bf529ec9e52f4a981d5a0afa27e48bfeae37992d7", - "node": [ - { - "left": "dbd7c2e9f6369bdc1653cd29484b23324bac5cc2681bc956d5621163d10c82e7" - }, - { - "right": "43a08a21a85219f2964a5473e270698296aeda22c08299ba61523d6b51bab102" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "cvc:Meta:issuer", - "value": "urn:issuer:3c1d9cc9f8bd5dd7f4845c18017c559ecee758c6dc2f5a3b63385bf3f681e13a:|", - "claimPath": "meta.issuer", - "targetHash": "321c8608ee0b80eab76db4d753e1f5311e722d0d77468e376bc25a78b8560b1b", - "node": [ - { - "right": "2820718fc34e3e07c40c4c0c0985937a193a63839695768f38630acfbecaf85d" - }, - { - "left": "b13aa2fb81649ae46142393ef503c7dea123f60e0909002f9f5d19a49cf8c787" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "cvc:Meta:issuanceDate", - "value": "urn:issuanceDate:0029acb02ff26faf7775883957e9a5271b358f56734496b7ffde2760ace9ddce:2018-11-13T18:54:11.665Z|", - "claimPath": "meta.issuanceDate", - "targetHash": "2820718fc34e3e07c40c4c0c098937a193a63839695768f38630acfbecaf85d", - "node": [ - { - "left": "321c8608ee0b80eab76db4d753e1f5311e722d0d77468e376bc25a78b8560b1b" - }, - { - "left": "b13aa2fb81649ae46142393ef503c7dea123f60e0909002f9f5d19a49cf8c787" - }, - { - "right": "825986e22e786f431106b7e262bda5a2b8d7794a5ad6158727d77c978b47d290" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - }, - { - "identifier": "cvc:Meta:expirationDate", - "value": "urn:expirationDate:f437c1d530d5422b3df947b7d97da82c5abfee582c1be15bd2900ff35e8d0624:null|", - "claimPath": "meta.expirationDate", - "targetHash": "c73ce4be4e264f366dfc8a95abf7e507e75d13a2a06af5e50d2dc09e6c71d9cd", - "node": [ - { - "right": "8c741ed5a929697f02cfb47019d1e60ed038ac40b4f32ef52ae48ea0fa93c0fe" - }, - { - "right": "9740db43522f2170c4ad18230f53ac4dbdb9f7e423687e320767b569d6ee12be" - }, - { - "left": "63866d32feddce9393a91d54b85d370c5cfc38641ce3b4db2df73499b9347918" - }, - { - "right": "15442a3233e960fb6165bad383a9e7eca948a70576e42c627c1d71ca4bf15644" - }, - { - "right": "81c3ed3f0c3da91e4d8d8d0143c2ef10ee92f911d5f1c941d67c8545f251d5d4" - } - ] - } - ] - } -} diff --git a/__test__/creds/proxyFixtures/filteredIdDocument-v2.json b/__test__/creds/proxyFixtures/filteredIdDocument-v2.json deleted file mode 100644 index 3359a515..00000000 --- a/__test__/creds/proxyFixtures/filteredIdDocument-v2.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "f471b5f8-6ad6-4782-968d-f2924145fa54", - "issuer": "", - "issuanceDate": "2021-05-26T20:11:12.082Z", - "identifier": "credential-cvc:IdDocument-v2", - "expirationDate": null, - "version": "1", - "type": [ - "Credential", - "credential-cvc:IdDocument-v2" - ], - "transient": false, - "claim": { - "document": { - "type": "passport", - "dateOfBirth": { - "day": 20, - "month": 3, - "year": 1978 - } - } - }, - "proof": { - "type": "CvcMerkleProof2018", - "merkleRoot": "9d424cbc30d418ed42f1b1031fa4fdef273e6b371637b4c8e5184a566b9d27cc", - "anchor": "TBD (Civic Blockchain Attestation)", - "leaves": [ - { - "identifier": "claim-cvc:Document.dateOfBirth-v1", - "value": "urn:dateOfBirth.day:f0bbfa2a35fc0dfa27a2620691feedde6fff1c522817b546e730740f7339354d:20|urn:dateOfBirth.month:75e6e5fa1f03d6b985862e7ad1467405e0c482df64e6ed1692312aaba7d4d951:3|urn:dateOfBirth.year:c4d7200e945ef41009be24127cdd394d17a7bc0330d3b1b19270372543ff6517:1978|", - "claimPath": "document.dateOfBirth", - "targetHash": "3fdb18a8022d009da8eda7b353ebfdaad91ad4d6256f647e174ac16448d42f6d", - "node": [ - { - "left": "72e6f2e8c817048bb82442371202c9c078cabbacb7739ce4781f68855b362ca8" - }, - { - "right": "aae76d0dd2b272496a4ccc799cd60a329da4d78742b9e4f8792c4a3b4259d414" - }, - { - "right": "9c4a9d7c1d1a76dd3c8aa274d6cf8de8cd5ed4658162c84db409e8c0dab422ea" - }, - { - "left": "03024ff54437b7d65ad908229977e8603f3f5451a611ec88235775db23d522f5" - }, - { - "right": "b8dc070cacd5d604ec328cfee7d396e3a6ba5011a616049126d37460f7280154" - } - ] - } - ] - }, - "granted": null -} \ No newline at end of file diff --git a/__test__/schema/fixtures/credential-test:Social-v1.json b/__test__/schema/fixtures/credential-test:Social-v1.json new file mode 100644 index 00000000..91724e05 --- /dev/null +++ b/__test__/schema/fixtures/credential-test:Social-v1.json @@ -0,0 +1,177 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://identity.com/schemas/credential-test:Social-v1", + "title": "credential-test:Social-v1", + "type": "object", + "properties": { + "@context": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + }, + "issuer": { + "type": "string" + }, + "issuanceDate": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "expirationDate": { + "type": [ + "null", + "string" + ] + }, + "type": { + "type": "array", + "items": { + "type": "string" + } + }, + "transient": { + "type": "boolean" + }, + "credentialSubject": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "identifier": { + "type": "string" + } + }, + "required": [ + "id", + "type", + "identifier" + ], + "additionalProperties": false + }, + "proof": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "merkleRoot": { + "type": "string" + }, + "anchor": { + "type": [ + "object", + "string" + ], + "properties": { + "subject": { + "type": "object", + "properties": { + "pub": { + "type": "string" + }, + "label": { + "type": "string" + }, + "data": { + "type": "string" + }, + "signature": { + "type": "string" + } + }, + "additionalProperties": false + }, + "walletId": { + "type": "string" + }, + "cosigners": { + "type": "array", + "items": { + "type": "object" + } + }, + "authority": { + "type": "object", + "properties": { + "pub": { + "type": "string" + }, + "path": { + "type": "string" + } + }, + "additionalProperties": false + }, + "coin": { + "type": "string" + }, + "tx": { + "type": "string" + }, + "network": { + "type": "string" + }, + "type": { + "type": "string" + }, + "civicAsPrimary": { + "type": "boolean" + }, + "schema": { + "type": "string" + }, + "value": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "leaves": { + "type": "array", + "items": { + "type": "object" + } + }, + "merkleRootSignature": { + "type": "object", + "properties": { + "algo": { + "type": "string" + }, + "pubBase58": { + "type": "string" + }, + "signature": { + "type": "string" + } + } + }, + "granted": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false + }, + "granted": { + "type": [ + "null", + "string" + ] + } + }, + "additionalProperties": false +} \ No newline at end of file diff --git a/__test__/schemaLoader.test.js b/__test__/schemaLoader.test.js index 598f903b..c5cafba6 100644 --- a/__test__/schemaLoader.test.js +++ b/__test__/schemaLoader.test.js @@ -1,18 +1,36 @@ +/* eslint-disable class-methods-use-this */ const { Claim, VC, schemaLoader, CVCSchemaLoader } = require("../src/index"); const claimDefinitions = require("../src/claim/definitions"); const credentialDefinitions = require("../src/creds/definitions"); +const simpleSchema = require("./schema/fixtures/credential-test:Social-v1.json"); +const { + SimpleSchemaLoader, +} = require("../src/schemas/jsonSchema/loaders/simple"); const credentialSubject = "did:sol:J2vss1hB3kgEfQMSSdvvjwRm3JdyFWp7S7dbX5mudS4V"; -const { summaryMap } = schemaLoader; - jest.setTimeout(30000); describe("schema loading tests", () => { - beforeAll(() => { + beforeEach(() => { schemaLoader.addLoader(new CVCSchemaLoader()); }); + afterEach(() => { + schemaLoader.reset(); + }); + + it("can load a simple schema", async () => { + const { title } = simpleSchema; + const loader = new SimpleSchemaLoader({ + [title]: simpleSchema, + }); + + schemaLoader.addLoader(loader); + const result = await schemaLoader.loadSchemaFromTitle(title); + + expect(result).toBeDefined(); + }); it("test claim definition creation", async () => { expect(claimDefinitions).toHaveLength(0); @@ -132,7 +150,7 @@ describe("schema loading tests", () => { familyNames: "Family", }); - expect(summaryMap).toEqual( + expect(schemaLoader.summaryMap).toEqual( expect.objectContaining({ "name.givennames.claim": expect.objectContaining({ identifier: "claim-cvc:Name.givenNames-v1", @@ -189,7 +207,7 @@ describe("schema loading tests", () => { [name, dob], ); - expect(summaryMap).toEqual( + expect(schemaLoader.summaryMap).toEqual( expect.objectContaining({ "identity.credential": { identifier: "credential-cvc:Identity-v3", diff --git a/package.json b/package.json index 913364f6..3d98c0a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@identity.com/credential-commons", - "version": "3.0.2", + "version": "4.0.0-alpha.4", "author": "Identity.com Community", "license": "MIT", "description": "Verifiable Credential and Attestation Library", diff --git a/src/claim/Claim.js b/src/claim/Claim.js index 720b9045..24f98288 100644 --- a/src/claim/Claim.js +++ b/src/claim/Claim.js @@ -73,7 +73,7 @@ class Claim extends UserCollectableAttribute { await schemaLoader.validateSchema(currentIdentifier, value); } - // Load the schema and it's references from a source to be used for validation and defining the schema definitions + // Load the schema and its references from a source to be used for validation and defining the schema definitions await schemaLoader.loadSchemaFromTitle(currentIdentifier); return new Claim(currentIdentifier, value, version); diff --git a/src/creds/ClaimModel.js b/src/creds/ClaimModel.js index 827e5e1b..e635ae8a 100644 --- a/src/creds/ClaimModel.js +++ b/src/creds/ClaimModel.js @@ -6,16 +6,21 @@ const _ = require("lodash"); class ClaimModel { constructor(ucas) { _.forEach(ucas, (uca) => { - const rootPropertyName = uca.getClaimRootPropertyName(); - if (!_.isEmpty(rootPropertyName)) { - if (!this[rootPropertyName]) { - this[rootPropertyName] = {}; - } - - this[rootPropertyName][uca.getClaimPropertyName()] = - uca.getPlainValue(); + if (uca.key && uca.value) { + // simple UCA + this[uca.key] = uca.value; } else { - this[uca.getClaimPropertyName()] = uca.getPlainValue(); + const rootPropertyName = uca.getClaimRootPropertyName(); + if (!_.isEmpty(rootPropertyName)) { + if (!this[rootPropertyName]) { + this[rootPropertyName] = {}; + } + + this[rootPropertyName][uca.getClaimPropertyName()] = + uca.getPlainValue(); + } else { + this[uca.getClaimPropertyName()] = uca.getPlainValue(); + } } }); } diff --git a/src/creds/CvcMerkleProof.js b/src/creds/CvcMerkleProof.js index 2a74d6c7..f65b4f18 100644 --- a/src/creds/CvcMerkleProof.js +++ b/src/creds/CvcMerkleProof.js @@ -61,7 +61,15 @@ class CvcMerkleProof { static getAllAttestableValue(ucas) { let values = []; _.forEach(ucas, (uca) => { - const innerValues = uca.getAttestableValues(); + const innerValues = uca.id + ? uca.getAttestableValues() + : [ + { + identifier: uca.key, + value: uca.value, + claimPath: uca.key, + }, + ]; values = _.concat(values, innerValues); }); return values; diff --git a/src/creds/VerifiableCredential.js b/src/creds/VerifiableCredential.js index 882f477b..e72a635e 100644 --- a/src/creds/VerifiableCredential.js +++ b/src/creds/VerifiableCredential.js @@ -417,6 +417,10 @@ function getCredentialDefinition(identifier, version) { return definition; } +// A credential is a cvc credential if its identifier starts with cvc: or contains -cvc: +const isCvcType = (identifier) => + /^cvc:.*$/.test(identifier) || /-cvc:/.test(identifier); + /** * Creates a new Verifiable Credential based on an well-known identifier and it's claims dependencies * @param {*} identifier @@ -439,21 +443,31 @@ function VerifiableCredentialBaseConstructor( this.id = uuidv4(); this.issuer = issuer; - const issuerUCA = new Claim("cvc:Meta:issuer", this.issuer); + this.issuanceDate = new Date().toISOString(); - const issuanceDateUCA = new Claim("cvc:Meta:issuanceDate", this.issuanceDate); + this.identifier = identifier; this.expirationDate = expiryIn ? timestamp.toDate(timestamp.now(expiryIn)).toISOString() : null; - const expiryUCA = new Claim( - "cvc:Meta:expirationDate", - this.expirationDate ? this.expirationDate : "null", - ); - const proofUCAs = expiryUCA - ? _.concat(ucas, issuerUCA, issuanceDateUCA, expiryUCA) - : _.concat(ucas, issuerUCA, issuanceDateUCA); + const additionalUcas = []; + if (isCvcType(identifier)) { + // these UCAs should only be added if the credential is a cvc credential + // TODO rather than adding them here, they should be in the credential itself already I think + const issuerUCA = new Claim("cvc:Meta:issuer", this.issuer); + const issuanceDateUCA = new Claim( + "cvc:Meta:issuanceDate", + this.issuanceDate, + ); + const expiryUCA = new Claim( + "cvc:Meta:expirationDate", + this.expirationDate ? this.expirationDate : "null", + ); + additionalUcas.push(issuerUCA, issuanceDateUCA, expiryUCA); + } + + const proofUCAs = _.concat(ucas, additionalUcas); if (!_.includes(validIdentifiers(), identifier)) { throw new Error(`${identifier} is not defined`); @@ -927,13 +941,17 @@ VerifiableCredentialBaseConstructor.create = async ( signerOptions = null, validate = true, ) => { - // Load the schema and it's references from a source to be used for validation and defining the schema definitions + // Load the schema and its references from a source to be used for validation and defining the schema definitions await schemaLoader.loadSchemaFromTitle(identifier); - // Load the meta schema's from a source - await schemaLoader.loadSchemaFromTitle("cvc:Meta:issuer"); - await schemaLoader.loadSchemaFromTitle("cvc:Meta:issuanceDate"); - await schemaLoader.loadSchemaFromTitle("cvc:Meta:expirationDate"); + if (isCvcType(identifier)) { + // Load the meta schemas from a source + await schemaLoader.loadSchemaFromTitle("cvc:Meta:issuer"); + await schemaLoader.loadSchemaFromTitle("cvc:Meta:issuanceDate"); + await schemaLoader.loadSchemaFromTitle("cvc:Meta:expirationDate"); + } + + // load builtins: await schemaLoader.loadSchemaFromTitle("cvc:Random:node"); if (signerOptions) { diff --git a/src/schemas/jsonSchema/index.js b/src/schemas/jsonSchema/index.js index 66e11b31..de970ad4 100644 --- a/src/schemas/jsonSchema/index.js +++ b/src/schemas/jsonSchema/index.js @@ -6,6 +6,7 @@ const { definitions: ucaDefinitions } = require("@identity.com/uca"); const addFormats = require("ajv-formats").default; const definitions = require("../../claim/definitions"); const credentialDefinitions = require("../../creds/definitions"); +const { BuiltinSchemaLoader } = require("./loaders/builtin"); let summaryMap = {}; @@ -176,6 +177,12 @@ class SchemaLoader { this.ajv.addKeyword("credentialItem"); this.ajv.addKeyword("alias"); this.ajv.addKeyword("deambiguify"); + + this.loadBuiltins(); + } + + loadBuiltins() { + this.loaders.push(new BuiltinSchemaLoader()); } reset() { @@ -200,9 +207,7 @@ class SchemaLoader { async loadSchemaFromUri(uri) { const title = uri.split("#")[0].match("[^/]+$", uri); - const schema = await this.loadSchemaFromTitle(title[0]); - - return schema; + return this.loadSchemaFromTitle(title[0]); } async loadPropertySchema(schema, definition, ref, property) { @@ -304,7 +309,9 @@ class SchemaLoader { const references = []; _.forEach(credentialSubjectDefinition.properties, (vo) => { _.forEach(vo.properties, (vi, ki) => { - references.push({ ref: vo.properties[ki].$ref, property: ki }); + if (vo.properties[ki].$ref) { + references.push({ ref: vo.properties[ki].$ref, property: ki }); + } }); }); diff --git a/src/schemas/jsonSchema/loaders/builtin.js b/src/schemas/jsonSchema/loaders/builtin.js new file mode 100644 index 00000000..a70660fa --- /dev/null +++ b/src/schemas/jsonSchema/loaders/builtin.js @@ -0,0 +1,36 @@ +const { definitions } = require("@identity.com/uca"); + +const getDefinition = (identifier) => { + const foundDefinition = definitions.find((d) => d.identifier === identifier); + if (!foundDefinition) + throw new Error(`Definition not found for ${identifier}`); + return { + title: foundDefinition.identifier, + ...foundDefinition, + }; +}; +/** + * Loads schemas that the credential-commons library cannot do without. + */ +class BuiltinSchemaLoader { + constructor() { + this.schemas = { + "cvc:Random:node": getDefinition("cvc:Random:node"), + }; + } + + loadSchema(identifier) { + return this.schemas[identifier]; + } + + valid(identifier) { + return !!this.schemas[identifier]; + } + + // eslint-disable-next-line class-methods-use-this + schemaId(identifier) { + return `http://identity.com/schemas/${identifier}`; + } +} + +module.exports = { BuiltinSchemaLoader }; diff --git a/src/schemas/jsonSchema/loaders/simple.js b/src/schemas/jsonSchema/loaders/simple.js new file mode 100644 index 00000000..6057d475 --- /dev/null +++ b/src/schemas/jsonSchema/loaders/simple.js @@ -0,0 +1,20 @@ +class SimpleSchemaLoader { + constructor(schemas) { + this.schemas = schemas; + } + + loadSchema(identifier) { + return this.schemas[identifier]; + } + + valid(identifier) { + return !!this.schemas[identifier]; + } + + // eslint-disable-next-line class-methods-use-this + schemaId(identifier) { + return `http://identity.com/schemas/${identifier}`; + } +} + +module.exports = { SimpleSchemaLoader }; From 8ed2dfb1571805a40fd0d7f9dc782d35e12144fc Mon Sep 17 00:00:00 2001 From: Lucas Date: Tue, 24 Oct 2023 17:19:28 -0300 Subject: [PATCH 6/6] fix fromJSON failing with required fields and verifyProofs --- .../creds/SimpleVerifiableCredential.test.js | 103 ++++++++++++++++-- src/creds/VerifiableCredential.js | 93 +++++++++------- 2 files changed, 148 insertions(+), 48 deletions(-) diff --git a/__test__/creds/SimpleVerifiableCredential.test.js b/__test__/creds/SimpleVerifiableCredential.test.js index 2bfeed2f..7b91899b 100644 --- a/__test__/creds/SimpleVerifiableCredential.test.js +++ b/__test__/creds/SimpleVerifiableCredential.test.js @@ -1,9 +1,7 @@ /* eslint-disable max-len */ const _ = require("lodash"); -const fs = require("fs"); const { v4: uuidv4 } = require("uuid"); const sjcl = require("sjcl"); -const { Claim } = require("../../src/claim/Claim"); const VC = require("../../src/creds/VerifiableCredential"); const MiniCryptoManagerImpl = require("../../src/services/MiniCryptoManagerImpl"); const didTestUtil = require("../lib/util/did"); @@ -14,7 +12,6 @@ const { } = require("../../src/schemas/jsonSchema/loaders/simple"); const simpleSchema = require("../schema/fixtures/credential-test:Social-v1.json"); -const signerVerifier = require("../../src/lib/signerVerifier"); const { stubResolver } = require("../lib/util/did"); const credentialSubject = @@ -26,6 +23,7 @@ const XPVT1 = 'xprvA1yULd2DFYnQRVbLiAKrFdftVLsANiC3rqLvp8iiCbnchcWqd6kJPoaV3sy7R const XPUB1 = 'xpub6Expk8Z75vLhdyfopBrrcmcd3NhenAuuE4GXcX8KkwKbaQqzAe4Ywbtxu9F95hRHj79PvdtYEJcoR6gesbZ79fS4bLi1PQtm81rjxAHeLL9'; // eslint-disable-line const miniCryptoManager = new MiniCryptoManagerImpl(); + const signAttestationSubject = (subject, xprv, xpub) => { const { label } = subject; const { data } = subject; @@ -46,6 +44,20 @@ const signAttestationSubject = (subject, xprv, xpub) => { }; const toValueObject = (obj) => JSON.parse(JSON.stringify(obj)); + +const rawClaimsArray = (rawClaims) => _.map(rawClaims, (value, key) => ({ key, value })); + +const twitterHandle = "@abc"; + +const rawClaims = { + type: "twitter", + identifier: twitterHandle, +}; + +const issuer = didTestUtil.DID_CONTROLLER; +const verificationMethod = `${didTestUtil.DID_CONTROLLER}#default`; +const keypair = didTestUtil.keyPair(didTestUtil.DID_CONTROLLER); + describe("Unit tests for Verifiable Credentials", () => { beforeAll(() => { const { title } = simpleSchema; @@ -63,23 +75,92 @@ describe("Unit tests for Verifiable Credentials", () => { }); it("should create a simple credential", async () => { - const twitterHandle = "@abc"; - const rawClaims = { - type: "twitter", - identifier: twitterHandle, - }; - const rawClaimsArray = _.map(rawClaims, (value, key) => ({ key, value })); - const cred = await VC.create( "credential-test:Social-v1", uuidv4(), null, credentialSubject, - rawClaimsArray, + rawClaimsArray(rawClaims), ); expect(cred.credentialSubject.type).toBe('twitter'); expect(cred.credentialSubject.identifier).toBe(twitterHandle); expect(cred.proof.leaves).toHaveLength(2); }); + + it("should create and verify a simple credential", async () => { + const cred = await VC.create( + "credential-test:Social-v1", + issuer, + null, + credentialSubject, + rawClaimsArray(rawClaims), + null, + { + verificationMethod, + keypair, + } + ); + const credJSON = toValueObject(cred); + + const credObj = await VC.fromJSON(credJSON, true); + let isValidProof = await credObj.verifyProofs(); + let isSignatureValid = await credObj.verifyMerkletreeSignature(); + + expect(isValidProof).toBeTruthy(); + expect(isSignatureValid).toBeTruthy(); + }); + + it("should fail proof validation if the simple credential is tempered", async () => { + const cred = await VC.create( + "credential-test:Social-v1", + issuer, + null, + credentialSubject, + rawClaimsArray(rawClaims), + null, + { + verificationMethod, + keypair, + } + ); + const credJSON = toValueObject(cred); + + // temper the credential + credJSON.credentialSubject.identifier = "fake-identifier"; + + const credObj = await VC.fromJSON(credJSON, true); + let isValidProof = await credObj.verifyProofs(); + let isSignatureValid = await credObj.verifyMerkletreeSignature(); + + expect(isValidProof).toBeFalsy(); + expect(isSignatureValid).toBeTruthy(); + }); + + it("should fail proof validation if the simple credential signature is invalid", async () => { + const cred = await VC.create( + "credential-test:Social-v1", + issuer, + null, + credentialSubject, + rawClaimsArray(rawClaims), + null, + { + verificationMethod, + keypair, + } + ); + const credJSON = toValueObject(cred); + + // update with an invalid signature + credJSON.proof.merkleRootSignature.signature = + "6b986e01211bf2ebd0dbc6c2b401403121d227046371e30765b585f64d0941294ff9713bc58fde54316bf56602ca2166ce83b27a2ecb372d52b763ed6021660d"; + + const credObj = await VC.fromJSON(credJSON, true); + let isValidProof = await credObj.verifyProofs(); + let isSignatureValid = await credObj.verifyMerkletreeSignature(); + + expect(isValidProof).toBeTruthy(); + expect(isSignatureValid).toBeFalsy(); + }); }); diff --git a/src/creds/VerifiableCredential.js b/src/creds/VerifiableCredential.js index e72a635e..39e2fb80 100644 --- a/src/creds/VerifiableCredential.js +++ b/src/creds/VerifiableCredential.js @@ -51,52 +51,62 @@ function verifyLeave( ) { // 1. verify valid targetHashs // 1.1 "leave.value" should be equal claim values - const ucaValue = new Claim(leave.identifier, { - attestableValue: leave.value, - }); - let providedClaimValue = _.get(claims, leave.claimPath); - if (!providedClaimValue) providedClaimValue = null; - - if (ucaValue.type === "String" || ucaValue.type === "Number") { - if (ucaValue.value !== providedClaimValue) { - invalidValues.push(leave.value); - } - } else if (ucaValue.type === "Object") { - const ucaValueValue = ucaValue.value; - const innerClaimValue = providedClaimValue; - const claimPathSufix = _.last(_.split(leave.claimPath, ".")); - - const claimValue = {}; - claimValue[claimPathSufix] = innerClaimValue; - const ucaValueKeys = _.keys(ucaValue.value); - _.each(ucaValueKeys, (k) => { - const expectedClaimValue = _.get(claimValue, k); - if ( - expectedClaimValue && - `${_.get(ucaValueValue[k], "value")}` !== `${expectedClaimValue}` - ) { - invalidValues.push(claimValue[k]); - } + if (/^claim-cvc:(.*)\.(.*)-v\d*$/.test(leave.identifier)) { + // handle claims with a schema definition + const ucaValue = new Claim(leave.identifier, { + attestableValue: leave.value, }); - } else if (ucaValue.type === "Array") { - const innerClaimValue = providedClaimValue; + let providedClaimValue = _.get(claims, leave.claimPath); + if (!providedClaimValue) providedClaimValue = null; - _.forEach(ucaValue.value, (arrayItem, idx) => { - const itemInnerClaimValue = innerClaimValue[idx]; - const ucaValueKeys = _.keys(arrayItem.value); + if (ucaValue.type === "String" || ucaValue.type === "Number") { + if (ucaValue.value !== providedClaimValue) { + invalidValues.push(leave.value); + } + } else if (ucaValue.type === "Object") { + const ucaValueValue = ucaValue.value; + const innerClaimValue = providedClaimValue; + const claimPathSufix = _.last(_.split(leave.claimPath, ".")); + + const claimValue = {}; + claimValue[claimPathSufix] = innerClaimValue; + const ucaValueKeys = _.keys(ucaValue.value); _.each(ucaValueKeys, (k) => { - const expectedClaimValue = _.get(itemInnerClaimValue, k); + const expectedClaimValue = _.get(claimValue, k); if ( expectedClaimValue && - `${_.get(arrayItem.value, [k, "value"])}` !== `${expectedClaimValue}` + `${_.get(ucaValueValue[k], "value")}` !== `${expectedClaimValue}` ) { - invalidValues.push(itemInnerClaimValue[k]); + invalidValues.push(claimValue[k]); } }); - }); + } else if (ucaValue.type === "Array") { + const innerClaimValue = providedClaimValue; + + _.forEach(ucaValue.value, (arrayItem, idx) => { + const itemInnerClaimValue = innerClaimValue[idx]; + const ucaValueKeys = _.keys(arrayItem.value); + _.each(ucaValueKeys, (k) => { + const expectedClaimValue = _.get(itemInnerClaimValue, k); + if ( + expectedClaimValue && + `${_.get(arrayItem.value, [k, "value"])}` !== `${expectedClaimValue}` + ) { + invalidValues.push(itemInnerClaimValue[k]); + } + }); + }); + } else { + // Invalid ucaValue.type + invalidValues.push(leave.value); + } } else { - // Invalid ucaValue.type - invalidValues.push(leave.value); + // handle simple claim (without a schema definition) + // TODO handle array? + let providedClaimValue = _.get(claims, leave.claimPath); + if (leave.value !== providedClaimValue) { + invalidValues.push(leave.value); + } } // 1.2 hash(leave.value) should be equal leave.targetHash @@ -1007,6 +1017,12 @@ VerifiableCredentialBaseConstructor.fromJSON = async ( const newObj = await VerifiableCredentialBaseConstructor.create( verifiableCredentialJSON.identifier, verifiableCredentialJSON.issuer, + null, + null, + null, + null, + null, + false, // dont validate as not all fields are set yet ); newObj.id = _.clone(verifiableCredentialJSON.id); @@ -1019,6 +1035,9 @@ VerifiableCredentialBaseConstructor.fromJSON = async ( ); newObj.proof = _.cloneDeep(verifiableCredentialJSON.proof); + // after the VC is built and populated, validate it against the schema + await schemaLoader.validateSchema(verifiableCredentialJSON.identifier, newObj.toJSON()); + return newObj; };