diff --git a/.env b/.env deleted file mode 100644 index 26df29a1..00000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -API_URL = http://localhost:5103/api/v1 -CORD_API_TOKEN = 'testToken' \ No newline at end of file diff --git a/demo/src/bench.ts b/demo/src/bench.ts index d6529e35..10b6ebfc 100644 --- a/demo/src/bench.ts +++ b/demo/src/bench.ts @@ -1,10 +1,7 @@ import * as Cord from '@cord.network/sdk' import moment from 'moment' import Keyring from '@polkadot/keyring' -import { Crypto } from '@cord.network/utils' - -import { cordApiTx } from '../../helper' - +import { Crypto, cordApiTx } from '@cord.network/utils' export const sleep = (ms: number): Promise => { return new Promise((resolve) => { @@ -75,9 +72,12 @@ async function main() { let BatchAuthor = keyring.addFromUri('//Charlie') let batchAncStartTime = moment() try { - // api.tx.utility.batchAll(tx_batch).signAndSend(BatchAuthor) const tx = api.tx.utility.batchAll(tx_batch) - await cordApiTx(tx, 'signAndSend') + const value = await cordApiTx(tx, 'signAndSend') + + if (!value) { + api.tx.utility.batchAll(tx_batch).signAndSend(BatchAuthor) + } } catch (e: any) { console.log(e.errorCode, '-', e.message) } diff --git a/demo/src/demo-score-batch.ts b/demo/src/demo-score-batch.ts index 58bef1fa..f8f717d0 100644 --- a/demo/src/demo-score-batch.ts +++ b/demo/src/demo-score-batch.ts @@ -3,8 +3,7 @@ import moment from 'moment' import Keyring from '@polkadot/keyring' import { ApiPromise, WsProvider } from '@polkadot/api' import { ScoreType } from '@cord.network/types' -import { UUID } from '@cord.network/utils' -import { cordApiTx } from '../../helper' +import { UUID, cordApiTx } from '@cord.network/utils' export const sleep = (ms: number): Promise => { return new Promise((resolve) => { @@ -185,9 +184,12 @@ async function main() { } } try { - // api.tx.utility.batchAll(txBatch).signAndSend(batchTransactionAuthor) const tx = api.tx.utility.batchAll(txBatch) - await cordApiTx(tx, 'signAndSend') + const value = await cordApiTx(tx, 'signAndSend') + + if (!value) { + api.tx.utility.batchAll(txBatch).signAndSend(batchTransactionAuthor) + } } catch (e: any) { console.log(e.errorCode, '-', e.message) } diff --git a/demo/src/demo-staging.ts b/demo/src/demo-staging.ts index e2ecbdf0..e0b69135 100644 --- a/demo/src/demo-staging.ts +++ b/demo/src/demo-staging.ts @@ -22,8 +22,6 @@ import { generateRequestCredentialMessage } from './utils/request_credential_mes import { getChainCredits, addAuthority } from './utils/createAuthorities' import { createAccount } from './utils/createAccount' -const { CORD_WSS_URL, CORD_API_URL, CORD_API_TOKEN } = process.env - function getChallenge(): string { return Cord.Utils.UUID.generate() } @@ -33,7 +31,6 @@ async function main() { //const networkAddress = 'wss://staging.cord.network' Cord.ConfigService.set({ submitTxResolveOn: Cord.Chain.IS_IN_BLOCK, - token: CORD_API_TOKEN, }) await Cord.connect(networkAddress) diff --git a/demo/src/utils/generateDid.ts b/demo/src/utils/generateDid.ts index ff01b5e4..2980772c 100644 --- a/demo/src/utils/generateDid.ts +++ b/demo/src/utils/generateDid.ts @@ -1,8 +1,7 @@ import * as Cord from '@cord.network/sdk' import { mnemonicGenerate } from '@polkadot/util-crypto' import { generateKeypairs } from './generateKeypairs' -import { API_URL } from '../../../packages/network/src/chain/Chain' -import { cord_api_query } from '../../../helper' +import { cord_api_query } from '@cord.network/utils' /** * It creates a DID on chain, and returns the mnemonic and DID document @@ -15,7 +14,7 @@ export async function createDid( mnemonic: string document: Cord.DidDocument }> { - // const api = Cord.ConfigService.get('api') + const api = Cord.ConfigService.get('api') const mnemonic = mnemonicGenerate(24) const { @@ -50,15 +49,17 @@ export async function createDid( const didUri = Cord.Did.getDidUriFromKey(authentication) - const document = await cord_api_query('did', 'query', didUri) + let document: any - // const encodedDid = await api.call.did.query(Cord.Did.toChain(didUri)) - // const { document } = Cord.Did.linkedInfoFromChain(encodedDid) + document = await cord_api_query('did', 'query', didUri) - // if (!document) { - // throw new Error('DID was not successfully created.') - // } + if (!document) { + const encodedDid = await api.call.did.query(Cord.Did.toChain(didUri)) + document = Cord.Did.linkedInfoFromChain(encodedDid) + if (!document) { + throw new Error('DID was not successfully created.') + } + } - - return { mnemonic, document: document } + return { mnemonic, document: document.document } } diff --git a/demo/src/utils/queryDidName.ts b/demo/src/utils/queryDidName.ts index ccead5eb..54bd50b6 100644 --- a/demo/src/utils/queryDidName.ts +++ b/demo/src/utils/queryDidName.ts @@ -13,11 +13,12 @@ export async function getDidDocFromName( // Query the owner of the provided didName. const encodedDidNameOwner = await api.call.did.queryByName(didName) + if (encodedDidNameOwner.isSome) { + const { + document: { uri }, + } = Cord.Did.linkedInfoFromChain(encodedDidNameOwner) - const { - document: { uri }, - } = Cord.Did.linkedInfoFromChain(encodedDidNameOwner) - - console.log(` uri: ${uri}`) - console.log('✅ DID name resolved!') + console.log(` uri: ${uri}`) + console.log('✅ DID name resolved!') + } } diff --git a/demo/src/utils/verifyPresentation.ts b/demo/src/utils/verifyPresentation.ts index 4e50aef8..3c06f37f 100644 --- a/demo/src/utils/verifyPresentation.ts +++ b/demo/src/utils/verifyPresentation.ts @@ -1,6 +1,5 @@ import * as Cord from '@cord.network/sdk' -import { API_URL } from '../../../packages/network/src/chain/Chain' -import { cord_api_query } from '../../../helper' +import {cord_api_query} from '@cord.network/utils' /** * It verifies a presentation by checking the stream on the blockchain and verifying the presentation @@ -20,19 +19,22 @@ export async function verifyPresentation( } = {} ): Promise { try { + let stream: any // Verify the presentation with the provided challenge. await Cord.Document.verifyPresentation(presentation, { challenge }) // Verify the credential by checking the stream on the blockchain. - // const api = Cord.ConfigService.get('api') + const api = Cord.ConfigService.get('api') const chainIdentifier = Cord.Stream.idToChain(presentation.identifier) - const stream = await cord_api_query('stream', 'streams', chainIdentifier) + stream = await cord_api_query('stream', 'streams', chainIdentifier) + + if (!stream) { + const streamOnChain = await api.query.stream.streams(chainIdentifier) + stream = Cord.Stream.fromChain(streamOnChain, chainIdentifier) + } - // const streamOnChain = await api.query.stream.streams(chainIdentifier) - // const stream = Cord.Stream.fromChain(streamOnChai, chainIdentifier) - if (stream.revoked) { return false } diff --git a/helper.ts b/helper.ts deleted file mode 100644 index 0d4b304f..00000000 --- a/helper.ts +++ /dev/null @@ -1,58 +0,0 @@ -import fetch from 'node-fetch' -import type { SubmittableExtrinsic } from '@cord.network/types' -import { API_URL } from './packages/network/src/chain/Chain' - -const { CORD_WSS_URL, CORD_API_URL, CORD_API_TOKEN } = process.env - -export async function cord_api_query( - modules: any, - section: any, - identifier: any -) { - const url = API_URL - const cordApiUrl = `${url}/query/${modules}/${section}/${identifier}` - - if (url) { - try { - const resp = await fetch(cordApiUrl, { - method: 'GET', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${CORD_API_TOKEN}`, - }, - }) - const data = resp.json() - return data - } catch (error) { - return error - } - } else { - console.log('URL not found') - } -} - -export async function cordApiTx(tx: SubmittableExtrinsic, modules: any) { - const url = API_URL - const cordApiUrl = `${url}/${modules}/extrinsic` - - if (url) { - try { - const submit = await fetch(cordApiUrl, { - body: JSON.stringify({ - extrinsic: tx.toHex(), - }), - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${CORD_API_TOKEN}`, - }, - }) - const data = submit.json() - return data - } catch (error) { - return error - } - } else { - console.log('URL not found') - } -} diff --git a/package.json b/package.json index fafaffaf..d56dc91e 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,6 @@ "version": "0.8.0-3", "packageManager": "yarn@3.3.1", "dependencies": { - "dotenv": "^16.1.4", "node-fetch": "^3.3.1" } } diff --git a/packages/config/src/ConfigService.ts b/packages/config/src/ConfigService.ts index 23d2bbde..60f3a770 100644 --- a/packages/config/src/ConfigService.ts +++ b/packages/config/src/ConfigService.ts @@ -32,9 +32,9 @@ export type configOpts = { api: ApiPromise logLevel: LogLevel submitTxResolveOn: SubscriptionPromise.ResultEvaluator - apiUrl: string - wssUrl: string - token: string | undefined + apiUrl: string | null + wssUrl: string | null + token: string | null } & { [key: string]: any } /** @@ -57,9 +57,9 @@ export function modifyLogLevel(level: LogLevel): LogLevel { const defaultConfig: Partial = { logLevel: DEFAULT_DEBUG_LEVEL, - apiUrl: CORD_API_URL ?? 'localhost:3009', - wssUrl: CORD_WSS_URL ?? 'localhost:9944', - token: CORD_API_TOKEN ?? 'dummyToken', + apiUrl: CORD_API_URL ?? null, + wssUrl: CORD_WSS_URL ?? null, + token: CORD_API_TOKEN ?? null, } let configuration: Partial = { ...defaultConfig } diff --git a/packages/did/src/Did.chain.ts b/packages/did/src/Did.chain.ts index 0d3008ff..281480e0 100644 --- a/packages/did/src/Did.chain.ts +++ b/packages/did/src/Did.chain.ts @@ -3,9 +3,6 @@ import type { AccountId32, Extrinsic, Hash } from '@polkadot/types/interfaces' import type { AnyNumber } from '@polkadot/types/types' import { BN } from '@polkadot/util' -import fetch from 'node-fetch' -import { API_URL } from '../../network/src/chain/Chain' - import type { DidDocument, DidEncryptionKey, @@ -24,7 +21,12 @@ import type { VerificationKeyRelationship, } from '@cord.network/types' import { verificationKeyTypes } from '@cord.network/types' -import { Crypto, SDKErrors, ss58Format } from '@cord.network/utils' +import { + Crypto, + SDKErrors, + ss58Format, + cord_api_query, +} from '@cord.network/utils' import { ConfigService } from '@cord.network/config' import type { PalletDidDidDetails, @@ -33,7 +35,6 @@ import type { PalletDidDidDetailsDidPublicKeyDetails, PalletDidServiceEndpointsDidEndpoint, } from '@cord.network/augment-api' -import { cord_api_query } from '../../../helper' import { EncodedEncryptionKey, @@ -435,8 +436,13 @@ export async function generateDidAuthenticatedTx({ blockNumber, }: AuthorizeCallInput & SigningOptions): Promise { const api = ConfigService.get('api') + let number: any - const number = await cord_api_query('system', 'section', 'number') + number = await cord_api_query('system', 'section', 'number') + + if (!number) { + number = await api.query.system.number() + } const signableCall = api.registry.createType( diff --git a/packages/did/src/DidDetails/FullDidDetails.ts b/packages/did/src/DidDetails/FullDidDetails.ts index 0c45bd6b..ab54f8a4 100644 --- a/packages/did/src/DidDetails/FullDidDetails.ts +++ b/packages/did/src/DidDetails/FullDidDetails.ts @@ -1,6 +1,7 @@ import type { Extrinsic } from '@polkadot/types/interfaces' import type { SubmittableExtrinsicFunction } from '@polkadot/api/types' import { BN } from '@polkadot/util' +import { ConfigService } from '@cord.network/config' import type { DidUri, @@ -10,13 +11,13 @@ import type { VerificationKeyRelationship, } from '@cord.network/types' -import { SDKErrors } from '@cord.network/utils' +import { SDKErrors, cord_api_query } from '@cord.network/utils' -import fetch from 'node-fetch' -import { API_URL } from '../../../network/src/chain/Chain' - -import { generateDidAuthenticatedTx } from '../Did.chain.js' -import { cord_api_query } from '../../../../helper' +import { + documentFromChain, + generateDidAuthenticatedTx, + toChain, +} from '../Did.chain.js' const methodMapping: Record = { stream: 'assertionMethod', @@ -90,11 +91,18 @@ function increaseNonce(currentNonce: BN, increment = 1): BN { * @returns The next valid nonce, i.e., the nonce currently stored on the blockchain + 1, wrapping around the max value when reached. */ async function getNextNonce(did: DidUri): Promise { - // const api = ConfigService.get('api') + const api = ConfigService.get('api') + let queried: any - const queried = await cord_api_query('did', 'did', did) + queried = await cord_api_query('did', 'did', did) - // const queried = await api.query.did.did(toChain(did)) + if (!queried) { + queried = await api.query.did.did(toChain(did)) + const currentNonce = queried.isSome + ? documentFromChain(queried).lastTxCounter + : new BN(0) + return increaseNonce(currentNonce) + } const currentNonce = queried ? new BN(queried.lastTxCounter) : new BN(0) return increaseNonce(currentNonce) diff --git a/packages/did/src/DidResolver/DidResolver.ts b/packages/did/src/DidResolver/DidResolver.ts index b11d1eae..8c4456a2 100644 --- a/packages/did/src/DidResolver/DidResolver.ts +++ b/packages/did/src/DidResolver/DidResolver.ts @@ -9,17 +9,14 @@ import type { ResolvedDidServiceEndpoint, UriFragment, } from '@cord.network/types' -import { SDKErrors } from '@cord.network/utils' +import { SDKErrors, cord_api_query } from '@cord.network/utils' import { ConfigService } from '@cord.network/config' -import fetch from 'node-fetch' -import { API_URL } from '../../../network/src/chain/Chain' import * as Did from '../index.js' import { toChain } from '../Did.chain.js' import { linkedInfoFromChain } from '../Did.rpc.js' import { getDidUri, parse } from '../Did.utils.js' import { exportToDidDocument } from '../DidDocumentExporter/DidDocumentExporter.js' -import { cord_api_query } from '../../../../helper' /** * Resolve a DID URI to the DID document and its metadata. @@ -33,16 +30,24 @@ export async function resolve( did: DidUri ): Promise { const api = ConfigService.get('api') - const queryFunction = api.call.did?.query + let encodedDid: any - const { section, version } = queryFunction?.meta ?? {} - if (version > 2) - throw new Error( - `This version of the sdk supports runtime api '${section}' <=v2 , but the blockchain runtime implements ${version}. Please upgrade!` - ) - const { document, didName } = await queryFunction(toChain(did)) - .then(linkedInfoFromChain) - .catch(() => ({ document: undefined, didName: undefined })) + encodedDid = await cord_api_query('did', 'query', did) + + if (!encodedDid) { + const queryFunction = api.call.did?.query + const { section, version } = queryFunction?.meta ?? {} + if (version > 2) + throw new Error( + `This version of the sdk supports runtime api '${section}' <=v2 , but the blockchain runtime implements ${version}. Please upgrade!` + ) + + encodedDid = await queryFunction(toChain(did)) + .then(linkedInfoFromChain) + .catch(() => ({ document: undefined, didName: undefined })) + } + + const { document, didName }: any = encodedDid if (document) { return { @@ -55,10 +60,13 @@ export async function resolve( } // If theDID has been deleted return the info in the resolution metadata. + let isdidDeleted: any - const isdidDeleted = await cord_api_query('did', 'didBlacklist', did) + isdidDeleted = await cord_api_query('did', 'didBlacklist', did) - // const isdidDeleted = (await api.query.did.didBlacklist(toChain(did))).isSome + if (!isdidDeleted) { + isdidDeleted = (await api.query.did.didBlacklist(toChain(did))).isSome + } if (isdidDeleted) { return { diff --git a/packages/modules/src/registry/Registry.ts b/packages/modules/src/registry/Registry.ts index a8c70817..53d8f48f 100644 --- a/packages/modules/src/registry/Registry.ts +++ b/packages/modules/src/registry/Registry.ts @@ -21,6 +21,7 @@ import { jsonabc, DataUtils, DecoderUtils, + cord_api_query, } from '@cord.network/utils' import { REGISTRY_IDENT, @@ -34,7 +35,6 @@ import { Bytes, Option } from '@polkadot/types' import * as Did from '@cord.network/did' import { blake2AsHex } from '@polkadot/util-crypto' import type { PalletRegistryRegistryAuthorization } from '@cord.network/augment-api' -import { cord_api_query } from '../../../../helper' /** * Checks whether the input meets all the required criteria of an [[IRegistry]] object. * Throws on invalid input. @@ -186,10 +186,15 @@ export function isIRegistry(input: unknown): input is IRegistry { */ export async function verifyStored(registry: IRegistry): Promise { - // const api = ConfigService.get('api') + const api = ConfigService.get('api') + let encoded: any + const identifier = Identifier.uriToIdentifier(registry.identifier) - // const encoded: any = await api.query.registry.registries(identifier) - const encoded = await cord_api_query('registry', 'registries', identifier) + encoded = await cord_api_query('registry', 'registries', identifier) + + if (!encoded) { + encoded = await api.query.registry.registries(identifier) + } if (encoded.isNone) throw new SDKErrors.RegistryIdentifierMissingError( `Registry with identifier ${identifier} is not registered on chain` @@ -206,9 +211,14 @@ export async function verifyAuthorization( auth: AuthorizationId ): Promise { const api = ConfigService.get('api') + let encoded: any + const identifier = Identifier.uriToIdentifier(auth) - // const encoded: any = await api.query.registry.authorizations(identifier) - const encoded = await cord_api_query('registry', 'authorizations', identifier) + encoded = await cord_api_query('registry', 'authorizations', identifier) + + if (!encoded) { + encoded = await api.query.registry.authorizations(identifier) + } if (encoded.isNone) throw new SDKErrors.AuthorizationIdMissingError( `Authorization with identifier ${identifier} is not registered on chain` @@ -225,10 +235,20 @@ export async function fetchAuthorizationDetailsfromChain( auth: AuthorizationId ): Promise> { const api = ConfigService.get('api') + let registryAuthoriation: any + const authorizationId = Identifier.uriToIdentifier(auth) - const registryAuthoriation: Option = - // await api.query.registry.authorizations(authorizationId) - await cord_api_query('registry', 'fetchAuthorizations', authorizationId) + registryAuthoriation = await cord_api_query( + 'registry', + 'fetchAuthorizations', + authorizationId + ) + + if (!registryAuthoriation) { + registryAuthoriation = await api.query.registry.authorizations( + authorizationId + ) + } if (registryAuthoriation.isNone) { throw new SDKErrors.AuthorizationIdentifierMissingError( diff --git a/packages/modules/src/schema/Schema.chain.ts b/packages/modules/src/schema/Schema.chain.ts index 08a23b8a..ba6bcb6a 100644 --- a/packages/modules/src/schema/Schema.chain.ts +++ b/packages/modules/src/schema/Schema.chain.ts @@ -12,11 +12,9 @@ import { import { ConfigService } from '@cord.network/config' import * as Did from '@cord.network/did' -import { SDKErrors } from '@cord.network/utils' -import { Identifier } from '@cord.network/utils' +import { SDKErrors, Identifier, cord_api_query } from '@cord.network/utils' import { serializeForHash, verifyDataStructure } from './Schema.js' -import { cord_api_query } from '../../../../helper.js' /** * Encodes the provided Schema for use in `api.tx.schema.add()`. @@ -121,10 +119,14 @@ export async function fetchFromChain( schemaId: ISchema['$id'] ): Promise { const api = ConfigService.get('api') + let schemaEntry: any + const cordSchemaId = Identifier.uriToIdentifier(schemaId) + schemaEntry = await cord_api_query('schema', 'schemas', cordSchemaId) - // const schemaEntry = await api.query.schema.schemas(cordSchemaId) - const schemaEntry = await cord_api_query('schema', 'schemas', cordSchemaId) + if (!schemaEntry) { + schemaEntry = await api.query.schema.schemas(cordSchemaId) + } const decodedSchema = fromChain(schemaEntry, schemaId) if (decodedSchema === null) { diff --git a/packages/modules/src/schema/Schema.ts b/packages/modules/src/schema/Schema.ts index 1d516dc5..9e6b8f1e 100644 --- a/packages/modules/src/schema/Schema.ts +++ b/packages/modules/src/schema/Schema.ts @@ -23,15 +23,15 @@ import { JsonSchema, SDKErrors, jsonabc, + cord_api_query, } from '@cord.network/utils' import { SCHEMA_IDENT, SCHEMA_PREFIX } from '@cord.network/types' -import { SchemaModel, MetadataModel, SchemaModelV1 } from './Schema.types.js' import { ConfigService } from '@cord.network/config' import { Bytes } from '@polkadot/types' import type { AccountId } from '@polkadot/types/interfaces' import * as Did from '@cord.network/did' import { blake2AsHex } from '@polkadot/util-crypto' -import { cord_api_query } from '../../../../helper.js' +import { SchemaModel, MetadataModel, SchemaModelV1 } from './Schema.types.js' /** * Utility for (re)creating Schema hashes. Sorts the schema and strips the $id property (which contains the Schema hash) before stringifying. @@ -141,9 +141,14 @@ export function verifyContentAganistSchema( export async function verifyStored(schema: ISchema): Promise { const api = ConfigService.get('api') + let encoded: any + const identifier = Identifier.uriToIdentifier(schema.$id) - // const encoded: any = await api.query.schema.schemas(identifier) - const encoded = await cord_api_query('schema', 'fetchSchema', identifier) + encoded = await cord_api_query('schema', 'fetchSchema', identifier) + + if (!encoded) { + encoded = await api.query.schema.schemas(identifier) + } if (encoded.isNone) throw new SDKErrors.SchemaIdMissingError( diff --git a/packages/network/src/chain/Chain.ts b/packages/network/src/chain/Chain.ts index a255727a..023f0fb1 100644 --- a/packages/network/src/chain/Chain.ts +++ b/packages/network/src/chain/Chain.ts @@ -9,7 +9,6 @@ */ import { SubmittableResult } from '@polkadot/api' import { AnyNumber } from '@polkadot/types/types' -import fetch from 'node-fetch' import { ConfigService } from '@cord.network/config' import type { @@ -18,15 +17,9 @@ import type { SubmittableExtrinsic, SubscriptionPromise, } from '@cord.network/types' -import dotenv from 'dotenv' -import { SDKErrors } from '@cord.network/utils' +import { SDKErrors, cordApiTx } from '@cord.network/utils' import { ErrorHandler } from '../errorhandling/index.js' import { makeSubscriptionPromise } from './SubscriptionPromise.js' -import { cordApiTx } from '../../../../helper.js' - -dotenv.config() - -export const { API_URL } = process.env const log = ConfigService.LoggingFactory.getLogger('Chain') @@ -184,11 +177,14 @@ export async function signAndSubmitTx( ...opts }: Partial & Partial<{ tip: AnyNumber }> = {} ): Promise { - // : Promise - // const signedTx = await tx.signAsync(signer, { tip, nonce: -1 }) - // return submitSignedTx(signedTx, opts) try { const submit = await cordApiTx(tx, 'signAndSubmit') + + if (!submit) { + const signedTx = await tx.signAsync(signer, { tip, nonce: -1 }) + return submitSignedTx(signedTx, opts) + } + return submit } catch (error) { return error diff --git a/packages/utils/src/helper.ts b/packages/utils/src/helper.ts new file mode 100644 index 00000000..06b45e17 --- /dev/null +++ b/packages/utils/src/helper.ts @@ -0,0 +1,60 @@ +import * as Cord from '@cord.network/sdk' +import fetch from 'node-fetch' +import type { SubmittableExtrinsic } from '@cord.network/types' + +export async function cord_api_query( + modules: any, + section: any, + identifier: any +) { + const url = Cord.ConfigService.get('apiUrl') + const token = Cord.ConfigService.get('token') + + if (!url || !token) { + return null + } + + try { + const cordApiUrl = `${url}/query/${modules}/${section}/${identifier}` + + const resp = await fetch(cordApiUrl, { + method: 'GET', + headers: { + 'Content-Type': 'application/json', + Authorization: `Bearer ${token}`, + }, + }) + const data = resp.json() + return data + } catch (error) { + return error + } +} + +export async function cordApiTx(tx: SubmittableExtrinsic, modules: any) { + const url = Cord.ConfigService.get('apiUrl') + const token = Cord.ConfigService.get('token') + + if (!url || !token) { + return null + } + + try { + const cordApiUrl = `${url}/${modules}/extrinsic` + + const submit = await fetch(cordApiUrl, { + body: JSON.stringify({ + extrinsic: tx.toHex(), + }), + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Authorization: `Bearer ${token}`, + }, + }) + const data = submit.json() + return data + } catch (error) { + return error + } +} diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index f4279bfd..14796460 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -9,3 +9,4 @@ export * as JsonSchema from './json-schema/index.js' export * as Identifier from './Identifier.js' export { ss58Format } from './ss58Format.js' export { Keyring } from '@polkadot/keyring' +export { cord_api_query, cordApiTx } from './helper.js' diff --git a/yarn.lock b/yarn.lock index 6a9c62f9..15fb393a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,6 +5,13 @@ __metadata: version: 6 cacheKey: 8 +"@aashutoshrathi/word-wrap@npm:^1.2.3": + version: 1.2.5 + resolution: "@aashutoshrathi/word-wrap@npm:1.2.5" + checksum: 06e2e20959a4dbbb06f9d324dc2f877c7fb1b5317237daf08a2ddfcbca6ddcaec67bcf0c9e8e1b7764d5b17b480dc4ef61ecb4f362644d0db5a33192df27680b + languageName: node + linkType: hard + "@ampproject/remapping@npm:^2.2.0": version: 2.2.1 resolution: "@ampproject/remapping@npm:2.2.1" @@ -849,13 +856,6 @@ __metadata: languageName: node linkType: hard -"@gar/promisify@npm:^1.1.3": - version: 1.1.3 - resolution: "@gar/promisify@npm:1.1.3" - checksum: 4059f790e2d07bf3c3ff3e0fec0daa8144fe35c1f6e0111c9921bd32106adaa97a4ab096ad7dab1e28ee6a9060083c4d1a4ada42a7f5f3f7a96b8812e2b757c1 - languageName: node - linkType: hard - "@humanwhocodes/config-array@npm:^0.5.0": version: 0.5.0 resolution: "@humanwhocodes/config-array@npm:0.5.0" @@ -874,6 +874,20 @@ __metadata: languageName: node linkType: hard +"@isaacs/cliui@npm:^8.0.2": + version: 8.0.2 + resolution: "@isaacs/cliui@npm:8.0.2" + 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" + checksum: 4a473b9b32a7d4d3cfb7a614226e555091ff0c5a29a1734c28c72a182c2f6699b26fc6b5c2131dfd841e86b185aea714c72201d7c98c2fba5f17709333a67aeb + languageName: node + linkType: hard + "@istanbuljs/load-nyc-config@npm:^1.0.0": version: 1.1.0 resolution: "@istanbuljs/load-nyc-config@npm:1.1.0" @@ -1235,39 +1249,35 @@ __metadata: languageName: node linkType: hard -"@npmcli/fs@npm:^2.1.0": - version: 2.1.2 - resolution: "@npmcli/fs@npm:2.1.2" +"@npmcli/fs@npm:^3.1.0": + version: 3.1.0 + resolution: "@npmcli/fs@npm:3.1.0" dependencies: - "@gar/promisify": ^1.1.3 semver: ^7.3.5 - checksum: 405074965e72d4c9d728931b64d2d38e6ea12066d4fad651ac253d175e413c06fe4350970c783db0d749181da8fe49c42d3880bd1cbc12cd68e3a7964d820225 + checksum: a50a6818de5fc557d0b0e6f50ec780a7a02ab8ad07e5ac8b16bf519e0ad60a144ac64f97d05c443c3367235d337182e1d012bbac0eb8dbae8dc7b40b193efd0e languageName: node linkType: hard -"@npmcli/move-file@npm:^2.0.0": - version: 2.0.1 - resolution: "@npmcli/move-file@npm:2.0.1" - dependencies: - mkdirp: ^1.0.4 - rimraf: ^3.0.2 - checksum: 52dc02259d98da517fae4cb3a0a3850227bdae4939dda1980b788a7670636ca2b4a01b58df03dd5f65c1e3cb70c50fa8ce5762b582b3f499ec30ee5ce1fd9380 +"@pkgjs/parseargs@npm:^0.11.0": + version: 0.11.0 + resolution: "@pkgjs/parseargs@npm:0.11.0" + checksum: 6ad6a00fc4f2f2cfc6bff76fb1d88b8ee20bc0601e18ebb01b6d4be583733a860239a521a7fbca73b612e66705078809483549d2b18f370eb346c5155c8e4a0f languageName: node linkType: hard "@playwright/test@npm:^1.21.1": - version: 1.35.0 - resolution: "@playwright/test@npm:1.35.0" + version: 1.35.1 + resolution: "@playwright/test@npm:1.35.1" dependencies: "@types/node": "*" fsevents: 2.3.2 - playwright-core: 1.35.0 + playwright-core: 1.35.1 dependenciesMeta: fsevents: optional: true bin: playwright: cli.js - checksum: c63a281d8711ec817906d7618563709842aaa013ac02919bb7bbef7f7162d4ace0fc1351c6aac94a8957df4d107b38440e55488e99455a07f55e1ace6bb07959 + checksum: 3509d2f2c7397f9b0d4f49088cab8625f17d186f7e9b3389ddebf7c52ee8aae6407eab48f66b300b7bf6a33f6e3533fd5951e72bfdb001b68838af98596d5a53 languageName: node linkType: hard @@ -1910,12 +1920,12 @@ __metadata: linkType: hard "@types/eslint@npm:*": - version: 8.40.1 - resolution: "@types/eslint@npm:8.40.1" + version: 8.40.2 + resolution: "@types/eslint@npm:8.40.2" dependencies: "@types/estree": "*" "@types/json-schema": "*" - checksum: c210e4741f11d9fda0e06f4444a43f64af79ea72d60cd11ec4acc232374b34cbb49634286f949783d55d8a66b44fa0da041b6a90cfe37fcdf7f796b81776318b + checksum: a4780e45e677e3af21c44a900846996cb6d9ae8f71d51940942a047163ae93a05444392c005f491ed46aa169f3b25f8be125ab42c5d8bdb571154bf62a7c828a languageName: node linkType: hard @@ -1995,16 +2005,16 @@ __metadata: linkType: hard "@types/node@npm:*": - version: 20.2.6 - resolution: "@types/node@npm:20.2.6" - checksum: 5222bceb188ca36947ac20b1fdbb39eabb599bb57d46d010182299a959ad38e3a6abc5167d81e685538b1aed1702e62df9a61ac473cafacd6a0a5f73bd627abf + version: 20.3.2 + resolution: "@types/node@npm:20.3.2" + checksum: 5929ce2b9b12b1e2a2304a0921a953c72a81f5753ad39ac43b99ce6312fbb2b4fb5bc6b60d64a2550704e3223cd5de1299467d36085ac69888899db978f2653a languageName: node linkType: hard "@types/node@npm:^18.11.18": - version: 18.16.17 - resolution: "@types/node@npm:18.16.17" - checksum: 2f7e3a552d525ef4b7a2620ef5ef59b3fdfb1d8ab20627b537e090732b35c2bd103944933d347a319cc7d478b3866b0d1bc3d629ee5899ca663a4547ca078cee + version: 18.16.18 + resolution: "@types/node@npm:18.16.18" + checksum: d32d8a0a04cd3f5ecb361bcb42f3a07623881ac90d680e06bf626defb3c663a94860d11690babe607cfe67265eceeb8a59ba5fe40c0e49f5a1b01e0088640469 languageName: node linkType: hard @@ -2108,13 +2118,13 @@ __metadata: linkType: hard "@typescript-eslint/eslint-plugin@npm:^5.7.0": - version: 5.59.9 - resolution: "@typescript-eslint/eslint-plugin@npm:5.59.9" + version: 5.60.1 + resolution: "@typescript-eslint/eslint-plugin@npm:5.60.1" dependencies: "@eslint-community/regexpp": ^4.4.0 - "@typescript-eslint/scope-manager": 5.59.9 - "@typescript-eslint/type-utils": 5.59.9 - "@typescript-eslint/utils": 5.59.9 + "@typescript-eslint/scope-manager": 5.60.1 + "@typescript-eslint/type-utils": 5.60.1 + "@typescript-eslint/utils": 5.60.1 debug: ^4.3.4 grapheme-splitter: ^1.0.4 ignore: ^5.2.0 @@ -2127,43 +2137,43 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: bd2428e307085d7fa6699913b6e61d65eb450bbcd26f884390cbf16722b80e1d80dc289c72774be1cdffd022744894204c3242f40ba3ffdfa05d3f210c4130bb + checksum: 6ea3fdc64b216ee709318bfce1573cd8d90836150f0075aaa8755c347541af9ec026043e538a3264d28d1b32ff49b1fd7c6163826b8513f19f0957fefccf7752 languageName: node linkType: hard "@typescript-eslint/parser@npm:^5.7.0": - version: 5.59.9 - resolution: "@typescript-eslint/parser@npm:5.59.9" + version: 5.60.1 + resolution: "@typescript-eslint/parser@npm:5.60.1" dependencies: - "@typescript-eslint/scope-manager": 5.59.9 - "@typescript-eslint/types": 5.59.9 - "@typescript-eslint/typescript-estree": 5.59.9 + "@typescript-eslint/scope-manager": 5.60.1 + "@typescript-eslint/types": 5.60.1 + "@typescript-eslint/typescript-estree": 5.60.1 debug: ^4.3.4 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 69b07d0a5bc6e1d24d23916c057ea9f2f53a0e7fb6dabadff92987c299640edee2c013fb93269322c7124e87b5c515529001397eae33006dfb40e1dcdf1902d7 + checksum: 08f1552ab0da178524a8de3654d2fb7c8ecb9efdad8e771c9cbf4af555c42e77d17b2c182d139a531cc76c3cabd091d1d25024c2c215cb809dca8b147c8a493c languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:5.59.9": - version: 5.59.9 - resolution: "@typescript-eslint/scope-manager@npm:5.59.9" +"@typescript-eslint/scope-manager@npm:5.60.1": + version: 5.60.1 + resolution: "@typescript-eslint/scope-manager@npm:5.60.1" dependencies: - "@typescript-eslint/types": 5.59.9 - "@typescript-eslint/visitor-keys": 5.59.9 - checksum: 362c22662d844440a7e14223d8cc0722f77ff21ad8f78deb0ee3b3f21de01b8846bf25fbbf527544677e83d8ff48008b3f7d40b39ddec55994ea4a1863e9ec0a + "@typescript-eslint/types": 5.60.1 + "@typescript-eslint/visitor-keys": 5.60.1 + checksum: 32c0786123f12fbb861aba3527471134a2e9978c7f712e0d7650080651870903482aed72a55f81deba9493118c1ca3c57edaaaa75d7acd9892818e3e9cc341ef languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:5.59.9": - version: 5.59.9 - resolution: "@typescript-eslint/type-utils@npm:5.59.9" +"@typescript-eslint/type-utils@npm:5.60.1": + version: 5.60.1 + resolution: "@typescript-eslint/type-utils@npm:5.60.1" dependencies: - "@typescript-eslint/typescript-estree": 5.59.9 - "@typescript-eslint/utils": 5.59.9 + "@typescript-eslint/typescript-estree": 5.60.1 + "@typescript-eslint/utils": 5.60.1 debug: ^4.3.4 tsutils: ^3.21.0 peerDependencies: @@ -2171,23 +2181,23 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 6bc2619c5024c152b181eff1f44c9b5e7d0fc75ce9403f03b39d59fc1e13191b2fbaf6730f26a1caae22922ac47489f39c2cebccdd713588f6963169ed2a7958 + checksum: f8d5f87b5441d5c671f69631efd103f5f45e0cb7dbe0131a5b4234a5208ac845041219e8baaa3adc341e82a602165dd6fabf4fd06964d0109d0875425c8ac918 languageName: node linkType: hard -"@typescript-eslint/types@npm:5.59.9": - version: 5.59.9 - resolution: "@typescript-eslint/types@npm:5.59.9" - checksum: 283f8fee1ee590eeccc2e0fcd3526c856c4b1e2841af2cdcd09eeac842a42cfb32f6bc8b40385380f3dbc3ee29da30f1819115eedf9e16f69ff5a160aeddd8fa +"@typescript-eslint/types@npm:5.60.1": + version: 5.60.1 + resolution: "@typescript-eslint/types@npm:5.60.1" + checksum: 766b6c857493b72a8f515e6a8e409476a317b7a7f0401fbcdf18f417839fca004dcaf06f58eb5ba00777e3ca9c68cd2f56fda79f3a8eb8a418095b5b1f625712 languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:5.59.9": - version: 5.59.9 - resolution: "@typescript-eslint/typescript-estree@npm:5.59.9" +"@typescript-eslint/typescript-estree@npm:5.60.1": + version: 5.60.1 + resolution: "@typescript-eslint/typescript-estree@npm:5.60.1" dependencies: - "@typescript-eslint/types": 5.59.9 - "@typescript-eslint/visitor-keys": 5.59.9 + "@typescript-eslint/types": 5.60.1 + "@typescript-eslint/visitor-keys": 5.60.1 debug: ^4.3.4 globby: ^11.1.0 is-glob: ^4.0.3 @@ -2196,35 +2206,35 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: c0c9b81f20a2a4337f07bc3ccdc9c1dabd765f59096255ed9a149e91e5c9517b25c2b6655f8f073807cfc13500c7451fbd9bb62e5e572c07cc07945ab042db89 + checksum: 5bb9d08c3cbc303fc64647878cae37283c4cfa9e3ed00da02ee25dc2e46798a1ad6964c9f04086f0134716671357e6569a65ea0ae75f0f3ff94ae67666385c6f languageName: node linkType: hard -"@typescript-eslint/utils@npm:5.59.9": - version: 5.59.9 - resolution: "@typescript-eslint/utils@npm:5.59.9" +"@typescript-eslint/utils@npm:5.60.1": + version: 5.60.1 + resolution: "@typescript-eslint/utils@npm:5.60.1" dependencies: "@eslint-community/eslint-utils": ^4.2.0 "@types/json-schema": ^7.0.9 "@types/semver": ^7.3.12 - "@typescript-eslint/scope-manager": 5.59.9 - "@typescript-eslint/types": 5.59.9 - "@typescript-eslint/typescript-estree": 5.59.9 + "@typescript-eslint/scope-manager": 5.60.1 + "@typescript-eslint/types": 5.60.1 + "@typescript-eslint/typescript-estree": 5.60.1 eslint-scope: ^5.1.1 semver: ^7.3.7 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 22ec5962886de7dcf65f99c37aad9fb189a3bef6b2b07c81887fb82a0e8bf137246da58e64fb02141352285708440be13acd7f6db1ca19e96f86724813ac4646 + checksum: 00c1adaa09d5d5be947e98962a78c21ed08c3ac46dd5ddd7b78f6102537d50afd4578a42a3e09a24dd51f5bc493f0b968627b4423647540164b2d2380afa9246 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:5.59.9": - version: 5.59.9 - resolution: "@typescript-eslint/visitor-keys@npm:5.59.9" +"@typescript-eslint/visitor-keys@npm:5.60.1": + version: 5.60.1 + resolution: "@typescript-eslint/visitor-keys@npm:5.60.1" dependencies: - "@typescript-eslint/types": 5.59.9 + "@typescript-eslint/types": 5.60.1 eslint-visitor-keys: ^3.3.0 - checksum: 2909ce761f7fe546592cd3c43e33263d8a5fa619375fd2fdffbc72ffc33e40d6feacafb28c79f36c638fcc2225048e7cc08c61cbac6ca63723dc68610d80e3e6 + checksum: 137f6a6f8efb398969087147b59f99f7d0deed044d89d7efce3631bb90bc32e3a13a5cee6a65e1c9830862c5c4402ac1a9b2c9e31fe46d1716602af2813bffae languageName: node linkType: hard @@ -2492,11 +2502,11 @@ __metadata: linkType: hard "acorn@npm:^8.2.4, acorn@npm:^8.4.1, acorn@npm:^8.7.1, acorn@npm:^8.8.2": - version: 8.8.2 - resolution: "acorn@npm:8.8.2" + version: 8.9.0 + resolution: "acorn@npm:8.9.0" bin: acorn: bin/acorn - checksum: f790b99a1bf63ef160c967e23c46feea7787e531292bb827126334612c234ed489a0dc2c7ba33156416f0ffa8d25bf2b0fdb7f35c2ba60eb3e960572bece4001 + checksum: 25dfb94952386ecfb847e61934de04a4e7c2dc21c2e700fc4e2ef27ce78cb717700c4c4f279cd630bb4774948633c3859fc16063ec8573bda4568e0a312e6744 languageName: node linkType: hard @@ -2586,6 +2596,13 @@ __metadata: languageName: node linkType: hard +"ansi-regex@npm:^6.0.1": + version: 6.0.1 + resolution: "ansi-regex@npm:6.0.1" + checksum: 1ff8b7667cded1de4fa2c9ae283e979fc87036864317da86a2e546725f96406746411d0d85e87a2d12fa5abd715d90006de7fa4fa0477c92321ad3b4c7d4e169 + languageName: node + linkType: hard + "ansi-sequence-parser@npm:^1.1.0": version: 1.1.0 resolution: "ansi-sequence-parser@npm:1.1.0" @@ -2618,6 +2635,13 @@ __metadata: languageName: node linkType: hard +"ansi-styles@npm:^6.1.0": + version: 6.2.1 + resolution: "ansi-styles@npm:6.2.1" + checksum: ef940f2f0ced1a6347398da88a91da7930c33ecac3c77b72c5905f8b8fe402c52e6fde304ff5347f616e27a742da3f1dc76de98f6866c69251ad0b07a66776d9 + languageName: node + linkType: hard + "anymatch@npm:^3.0.3": version: 3.1.3 resolution: "anymatch@npm:3.1.3" @@ -3029,16 +3053,16 @@ __metadata: linkType: hard "browserslist@npm:^4.14.5, browserslist@npm:^4.21.3": - version: 4.21.7 - resolution: "browserslist@npm:4.21.7" + version: 4.21.9 + resolution: "browserslist@npm:4.21.9" dependencies: - caniuse-lite: ^1.0.30001489 - electron-to-chromium: ^1.4.411 + caniuse-lite: ^1.0.30001503 + electron-to-chromium: ^1.4.431 node-releases: ^2.0.12 update-browserslist-db: ^1.0.11 bin: browserslist: cli.js - checksum: 3d0d025e6d381c4db5e71b538258952660ba574c060832095f182a9877ca798836fa550736269e669a2080e486f0cfdf5d3bcf2769b9f7cf123f6c6b8c005f8f + checksum: 80d3820584e211484ad1b1a5cfdeca1dd00442f47be87e117e1dda34b628c87e18b81ae7986fa5977b3e6a03154f6d13cd763baa6b8bf5dd9dd19f4926603698 languageName: node linkType: hard @@ -3125,29 +3149,23 @@ __metadata: languageName: node linkType: hard -"cacache@npm:^16.1.0": - version: 16.1.3 - resolution: "cacache@npm:16.1.3" +"cacache@npm:^17.0.0": + version: 17.1.3 + resolution: "cacache@npm:17.1.3" dependencies: - "@npmcli/fs": ^2.1.0 - "@npmcli/move-file": ^2.0.0 - chownr: ^2.0.0 - fs-minipass: ^2.1.0 - glob: ^8.0.1 - infer-owner: ^1.0.4 + "@npmcli/fs": ^3.1.0 + fs-minipass: ^3.0.0 + glob: ^10.2.2 lru-cache: ^7.7.1 - minipass: ^3.1.6 + minipass: ^5.0.0 minipass-collect: ^1.0.2 minipass-flush: ^1.0.5 minipass-pipeline: ^1.2.4 - mkdirp: ^1.0.4 p-map: ^4.0.0 - promise-inflight: ^1.0.1 - rimraf: ^3.0.2 - ssri: ^9.0.0 + ssri: ^10.0.0 tar: ^6.1.11 - unique-filename: ^2.0.0 - checksum: d91409e6e57d7d9a3a25e5dcc589c84e75b178ae8ea7de05cbf6b783f77a5fae938f6e8fda6f5257ed70000be27a681e1e44829251bfffe4c10216002f8f14e6 + unique-filename: ^3.0.0 + checksum: 385756781e1e21af089160d89d7462b7ed9883c978e848c7075b90b73cb823680e66092d61513050164588387d2ca87dd6d910e28d64bc13a9ac82cd8580c796 languageName: node linkType: hard @@ -3182,10 +3200,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30001489": - version: 1.0.30001497 - resolution: "caniuse-lite@npm:1.0.30001497" - checksum: 6721120f9a588c442a81cf32f911b4e97a88cb129c27bd2cb0fce6447ad058baa12affa1ee09c517f9e088c7ce74964154d032b6631f66d75dd37c6bc59a67f6 +"caniuse-lite@npm:^1.0.30001503": + version: 1.0.30001509 + resolution: "caniuse-lite@npm:1.0.30001509" + checksum: b08a98bf884182741d015569173162e5dfb804da22a14cb18c052be6b5f04e32312ff849b31f787b85091d1b1dfd58b128d9878c96e3bb632a1a0a8761548407 languageName: node linkType: hard @@ -3256,9 +3274,9 @@ __metadata: linkType: hard "cjs-module-lexer@npm:^1.0.0": - version: 1.2.2 - resolution: "cjs-module-lexer@npm:1.2.2" - checksum: 977f3f042bd4f08e368c890d91eecfbc4f91da0bc009a3c557bc4dfbf32022ad1141244ac1178d44de70fc9f3dea7add7cd9a658a34b9fae98a55d8f92331ce5 + version: 1.2.3 + resolution: "cjs-module-lexer@npm:1.2.3" + checksum: 5ea3cb867a9bb609b6d476cd86590d105f3cfd6514db38ff71f63992ab40939c2feb68967faa15a6d2b1f90daa6416b79ea2de486e9e2485a6f8b66a21b4fb0a languageName: node linkType: hard @@ -3448,7 +3466,7 @@ __metadata: languageName: node linkType: hard -"cpu-features@npm:~0.0.7": +"cpu-features@npm:~0.0.8": version: 0.0.8 resolution: "cpu-features@npm:0.0.8" dependencies: @@ -3522,7 +3540,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": +"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" dependencies: @@ -3802,10 +3820,10 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:^16.1.4": - version: 16.1.4 - resolution: "dotenv@npm:16.1.4" - checksum: c1b2e13df4d374a6a29e134c56c7b040ba20500677fe8b9939ea654f3b3badb9aaa0b172e40e4dfa1233a4177dbb8fb79d84cc79a50ac9c9641fe2ad98c14876 +"eastasianwidth@npm:^0.2.0": + version: 0.2.0 + resolution: "eastasianwidth@npm:0.2.0" + checksum: 7d00d7cd8e49b9afa762a813faac332dee781932d6f2c848dc348939c4253f1d4564341b7af1d041853bc3f32c2ef141b58e0a4d9862c17a7f08f68df1e0f1ed languageName: node linkType: hard @@ -3818,10 +3836,10 @@ __metadata: languageName: node linkType: hard -"electron-to-chromium@npm:^1.4.411": - version: 1.4.427 - resolution: "electron-to-chromium@npm:1.4.427" - checksum: 5f8493e6071bed2f34c701a62bd81453e41cee7ab9bda0f93b6039d1456d15f9aa6a4b59eda4e5afe5e035311b6b9043c7c9275c631c690bd202ae3226a1df66 +"electron-to-chromium@npm:^1.4.431": + version: 1.4.442 + resolution: "electron-to-chromium@npm:1.4.442" + checksum: 2905d01dc9b888ec2b3687801d130e868e951052d856727843e1ed22377e7887d472fd67854392c3944ea329865581a634e1e32e9c077dac63e1542fbc9847d2 languageName: node linkType: hard @@ -3854,6 +3872,13 @@ __metadata: languageName: node linkType: hard +"emoji-regex@npm:^9.2.2": + version: 9.2.2 + resolution: "emoji-regex@npm:9.2.2" + checksum: 8487182da74aabd810ac6d6f1994111dfc0e331b01271ae01ec1eb0ad7b5ecc2bbbbd2f053c05cb55a1ac30449527d819bbfbf0e3de1023db308cbcb47f86601 + languageName: node + linkType: hard + "encoding@npm:^0.1.13": version: 0.1.13 resolution: "encoding@npm:0.1.13" @@ -3872,13 +3897,13 @@ __metadata: languageName: node linkType: hard -"enhanced-resolve@npm:^5.14.1": - version: 5.14.1 - resolution: "enhanced-resolve@npm:5.14.1" +"enhanced-resolve@npm:^5.15.0": + version: 5.15.0 + resolution: "enhanced-resolve@npm:5.15.0" dependencies: graceful-fs: ^4.2.4 tapable: ^2.2.0 - checksum: ad2a31928b6649eed40d364838449587f731baa63863e83d2629bebaa8be1eabac18b90f89c1784bc805b0818363e99b22547159edd485d7e5ccf18cdc640642 + checksum: fbd8cdc9263be71cc737aa8a7d6c57b43d6aa38f6cc75dde6fcd3598a130cc465f979d2f4d01bb3bf475acb43817749c79f8eef9be048683602ca91ab52e4f11 languageName: node linkType: hard @@ -3899,11 +3924,11 @@ __metadata: linkType: hard "envinfo@npm:^7.7.3": - version: 7.8.1 - resolution: "envinfo@npm:7.8.1" + version: 7.10.0 + resolution: "envinfo@npm:7.10.0" bin: envinfo: dist/cli.js - checksum: de736c98d6311c78523628ff127af138451b162e57af5293c1b984ca821d0aeb9c849537d2fde0434011bed33f6bca5310ca2aab8a51a3f28fc719e89045d648 + checksum: 05e81a5768c42cbd5c580dc3f274db3401facadd53e9bd52e2aa49dfbb5d8b26f6181c25a6652d79618a6994185bd2b1c137673101690b147f758e4e71d42f7d languageName: node linkType: hard @@ -3975,9 +4000,9 @@ __metadata: linkType: hard "es-module-lexer@npm:^1.2.1": - version: 1.2.1 - resolution: "es-module-lexer@npm:1.2.1" - checksum: c4145b853e1491eaa5d591e4580926d242978c38071ad3d09165c3b6d50314cc0ae3bf6e1dec81a9e53768b9299df2063d2e4a67d7742a5029ddeae6c4fc26f0 + version: 1.3.0 + resolution: "es-module-lexer@npm:1.3.0" + checksum: 48fd9f504a9d2a894126f75c8b7ccc6273a289983e9b67255f165bfd9ae765d50100218251e94e702ca567826905ea2f7b3b4a0c4d74d3ce99cce3a2a606a238 languageName: node linkType: hard @@ -4503,6 +4528,13 @@ __metadata: languageName: node linkType: hard +"exponential-backoff@npm:^3.1.1": + version: 3.1.1 + resolution: "exponential-backoff@npm:3.1.1" + checksum: 3d21519a4f8207c99f7457287291316306255a328770d320b401114ec8481986e4e467e854cb9914dd965e0a1ca810a23ccb559c642c88f4c7f55c55778a9b48 + languageName: node + linkType: hard + "ext@npm:^1.1.2": version: 1.7.0 resolution: "ext@npm:1.7.0" @@ -4662,6 +4694,16 @@ __metadata: languageName: node linkType: hard +"foreground-child@npm:^3.1.0": + version: 3.1.1 + resolution: "foreground-child@npm:3.1.1" + dependencies: + cross-spawn: ^7.0.0 + signal-exit: ^4.0.1 + checksum: 139d270bc82dc9e6f8bc045fe2aae4001dc2472157044fdfad376d0a3457f77857fa883c1c8b21b491c6caade9a926a4bed3d3d2e8d3c9202b151a4cbbd0bcd5 + languageName: node + linkType: hard + "form-data@npm:^3.0.0": version: 3.0.1 resolution: "form-data@npm:3.0.1" @@ -4689,7 +4731,7 @@ __metadata: languageName: node linkType: hard -"fs-minipass@npm:^2.0.0, fs-minipass@npm:^2.1.0": +"fs-minipass@npm:^2.0.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" dependencies: @@ -4698,6 +4740,15 @@ __metadata: languageName: node linkType: hard +"fs-minipass@npm:^3.0.0": + version: 3.0.2 + resolution: "fs-minipass@npm:3.0.2" + dependencies: + minipass: ^5.0.0 + checksum: e9cc0e1f2d01c6f6f62f567aee59530aba65c6c7b2ae88c5027bc34c711ebcfcfaefd0caf254afa6adfe7d1fba16bc2537508a6235196bac7276747d078aef0a + languageName: node + linkType: hard + "fs.realpath@npm:^1.0.0": version: 1.0.0 resolution: "fs.realpath@npm:1.0.0" @@ -4838,11 +4889,11 @@ __metadata: linkType: hard "get-tsconfig@npm:^4.4.0": - version: 4.6.0 - resolution: "get-tsconfig@npm:4.6.0" + version: 4.6.2 + resolution: "get-tsconfig@npm:4.6.2" dependencies: resolve-pkg-maps: ^1.0.0 - checksum: fd2589a50e21543cf416285e5c4ac605359f49209b6c2e66bb8698fac907356e060de0a681e40881f00182b6f19771377411a88adcc78fd3954732ff54f4a54d + checksum: e791e671a9b55e91efea3ca819ecd7a25beae679e31c83234bf3dd62ddd93df070c1b95ae7e29d206358ebb6408f6f79ac6d83a32a3bbd6a6d217babe23de077 languageName: node linkType: hard @@ -4862,6 +4913,21 @@ __metadata: languageName: node linkType: hard +"glob@npm:^10.2.2": + version: 10.3.1 + resolution: "glob@npm:10.3.1" + dependencies: + foreground-child: ^3.1.0 + jackspeak: ^2.0.3 + minimatch: ^9.0.1 + minipass: ^5.0.0 || ^6.0.2 + path-scurry: ^1.10.0 + bin: + glob: dist/cjs/src/bin.js + checksum: 19c8c2805658b1002fecf0722cd609a33153d756a0d5260676bd0e9c5e6ef889ec9cce6d3dac0411aa90bce8de3d14f25b6f5589a3292582cccbfeddd0e98cc4 + languageName: node + linkType: hard + "glob@npm:^7.1.1, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4": version: 7.2.3 resolution: "glob@npm:7.2.3" @@ -4876,19 +4942,6 @@ __metadata: languageName: node linkType: hard -"glob@npm:^8.0.1": - version: 8.1.0 - resolution: "glob@npm:8.1.0" - dependencies: - fs.realpath: ^1.0.0 - inflight: ^1.0.4 - inherits: 2 - minimatch: ^5.0.1 - once: ^1.3.0 - checksum: 92fbea3221a7d12075f26f0227abac435de868dd0736a17170663783296d0dd8d3d532a5672b4488a439bf5d7fb85cdd07c11185d6cd39184f0385cbdfb86a47 - languageName: node - linkType: hard - "globals@npm:^11.1.0": version: 11.12.0 resolution: "globals@npm:11.12.0" @@ -5086,7 +5139,7 @@ __metadata: languageName: node linkType: hard -"http-cache-semantics@npm:^4.1.0": +"http-cache-semantics@npm:^4.1.1": version: 4.1.1 resolution: "http-cache-semantics@npm:4.1.1" checksum: 83ac0bc60b17a3a36f9953e7be55e5c8f41acc61b22583060e8dedc9dd5e3607c823a88d0926f9150e571f90946835c7fe150732801010845c72cd8bbff1a236 @@ -5225,13 +5278,6 @@ __metadata: languageName: node linkType: hard -"infer-owner@npm:^1.0.4": - version: 1.0.4 - resolution: "infer-owner@npm:1.0.4" - checksum: 181e732764e4a0611576466b4b87dac338972b839920b2a8cde43642e4ed6bd54dc1fb0b40874728f2a2df9a1b097b8ff83b56d5f8f8e3927f837fdcb47d8a89 - languageName: node - linkType: hard - "inflight@npm:^1.0.4": version: 1.0.6 resolution: "inflight@npm:1.0.6" @@ -5577,6 +5623,19 @@ __metadata: languageName: node linkType: hard +"jackspeak@npm:^2.0.3": + version: 2.2.1 + resolution: "jackspeak@npm:2.2.1" + dependencies: + "@isaacs/cliui": ^8.0.2 + "@pkgjs/parseargs": ^0.11.0 + dependenciesMeta: + "@pkgjs/parseargs": + optional: true + checksum: e29291c0d0f280a063fa18fbd1e891ab8c2d7519fd34052c0ebde38538a15c603140d60c2c7f432375ff7ee4c5f1c10daa8b2ae19a97c3d4affe308c8360c1df + languageName: node + linkType: hard + "jest-changed-files@npm:^27.5.1": version: 27.5.1 resolution: "jest-changed-files@npm:27.5.1" @@ -6478,6 +6537,13 @@ __metadata: languageName: node linkType: hard +"lru-cache@npm:^9.1.1 || ^10.0.0": + version: 10.0.0 + resolution: "lru-cache@npm:10.0.0" + checksum: 18f101675fe283bc09cda0ef1e3cc83781aeb8373b439f086f758d1d91b28730950db785999cd060d3c825a8571c03073e8c14512b6655af2188d623031baf50 + languageName: node + linkType: hard + "lunr@npm:^2.3.9": version: 2.3.9 resolution: "lunr@npm:2.3.9" @@ -6511,27 +6577,26 @@ __metadata: languageName: node linkType: hard -"make-fetch-happen@npm:^10.0.3": - version: 10.2.1 - resolution: "make-fetch-happen@npm:10.2.1" +"make-fetch-happen@npm:^11.0.3": + version: 11.1.1 + resolution: "make-fetch-happen@npm:11.1.1" dependencies: agentkeepalive: ^4.2.1 - cacache: ^16.1.0 - http-cache-semantics: ^4.1.0 + 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: ^3.1.6 - minipass-collect: ^1.0.2 - minipass-fetch: ^2.0.3 + 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: ^9.0.0 - checksum: 2332eb9a8ec96f1ffeeea56ccefabcb4193693597b132cd110734d50f2928842e22b84cfa1508e921b8385cdfd06dda9ad68645fed62b50fff629a580f5fb72c + ssri: ^10.0.0 + checksum: 7268bf274a0f6dcf0343829489a4506603ff34bd0649c12058753900b0eb29191dce5dba12680719a5d0a983d3e57810f594a12f3c18494e93a1fbc6348a4540 languageName: node linkType: hard @@ -6646,7 +6711,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^5.0.1, minimatch@npm:^5.1.0": +"minimatch@npm:^5.1.0": version: 5.1.6 resolution: "minimatch@npm:5.1.6" dependencies: @@ -6664,6 +6729,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^9.0.1": + version: 9.0.2 + resolution: "minimatch@npm:9.0.2" + dependencies: + brace-expansion: ^2.0.1 + checksum: 2eb12e2047a062fdb973fb51b9803f2455e3a00977858c038d66646d303a5a15bbcbc6ed5a2fc403bc869b1309f829ed3acd881d3246faf044ea7a494974b924 + languageName: node + linkType: hard + "minimist@npm:^1.2.0, minimist@npm:^1.2.5, minimist@npm:^1.2.6": version: 1.2.8 resolution: "minimist@npm:1.2.8" @@ -6680,18 +6754,18 @@ __metadata: languageName: node linkType: hard -"minipass-fetch@npm:^2.0.3": - version: 2.1.2 - resolution: "minipass-fetch@npm:2.1.2" +"minipass-fetch@npm:^3.0.0": + version: 3.0.3 + resolution: "minipass-fetch@npm:3.0.3" dependencies: encoding: ^0.1.13 - minipass: ^3.1.6 + minipass: ^5.0.0 minipass-sized: ^1.0.3 minizlib: ^2.1.2 dependenciesMeta: encoding: optional: true - checksum: 3f216be79164e915fc91210cea1850e488793c740534985da017a4cbc7a5ff50506956d0f73bb0cb60e4fe91be08b6b61ef35101706d3ef5da2c8709b5f08f91 + checksum: af5ab2552a16fcf505d35fd7ffb84b57f4a0eeb269e6e1d9a2a75824dda48b36e527083250b7cca4a4def21d9544e2ade441e4730e233c0bc2133f6abda31e18 languageName: node linkType: hard @@ -6722,7 +6796,7 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^3.0.0, minipass@npm:^3.1.1, minipass@npm:^3.1.6": +"minipass@npm:^3.0.0": version: 3.3.6 resolution: "minipass@npm:3.3.6" dependencies: @@ -6738,6 +6812,13 @@ __metadata: languageName: node linkType: hard +"minipass@npm:^5.0.0 || ^6.0.2": + version: 6.0.2 + resolution: "minipass@npm:6.0.2" + checksum: d140b91f4ab2e5ce5a9b6c468c0e82223504acc89114c1a120d4495188b81fedf8cade72a9f4793642b4e66672f990f1e0d902dd858485216a07cd3c8a62fac9 + languageName: node + linkType: hard + "minizlib@npm:^2.1.1, minizlib@npm:^2.1.2": version: 2.1.2 resolution: "minizlib@npm:2.1.2" @@ -6885,13 +6966,14 @@ __metadata: linkType: hard "node-gyp@npm:latest": - version: 9.3.1 - resolution: "node-gyp@npm:9.3.1" + version: 9.4.0 + resolution: "node-gyp@npm:9.4.0" dependencies: env-paths: ^2.2.0 + exponential-backoff: ^3.1.1 glob: ^7.1.4 graceful-fs: ^4.2.6 - make-fetch-happen: ^10.0.3 + make-fetch-happen: ^11.0.3 nopt: ^6.0.0 npmlog: ^6.0.0 rimraf: ^3.0.2 @@ -6900,7 +6982,7 @@ __metadata: which: ^2.0.2 bin: node-gyp: bin/node-gyp.js - checksum: b860e9976fa645ca0789c69e25387401b4396b93c8375489b5151a6c55cf2640a3b6183c212b38625ef7c508994930b72198338e3d09b9d7ade5acc4aaf51ea7 + checksum: 78b404e2e0639d64e145845f7f5a3cb20c0520cdaf6dda2f6e025e9b644077202ea7de1232396ba5bde3fee84cdc79604feebe6ba3ec84d464c85d407bb5da99 languageName: node linkType: hard @@ -7045,16 +7127,16 @@ __metadata: linkType: hard "optionator@npm:^0.9.1": - version: 0.9.1 - resolution: "optionator@npm:0.9.1" + version: 0.9.3 + resolution: "optionator@npm:0.9.3" 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 - word-wrap: ^1.2.3 - checksum: dbc6fa065604b24ea57d734261914e697bd73b69eff7f18e967e8912aa2a40a19a9f599a507fa805be6c13c24c4eae8c71306c239d517d42d4c041c942f508a0 + checksum: 09281999441f2fe9c33a5eeab76700795365a061563d66b098923eb719251a42bdbe432790d35064d0816ead9296dbeb1ad51a733edf4167c96bd5d0882e428a languageName: node linkType: hard @@ -7184,6 +7266,16 @@ __metadata: languageName: node linkType: hard +"path-scurry@npm:^1.10.0": + version: 1.10.0 + resolution: "path-scurry@npm:1.10.0" + dependencies: + lru-cache: ^9.1.1 || ^10.0.0 + minipass: ^5.0.0 || ^6.0.2 + checksum: 3b66a4a6ab66e45755b577c966ecf0da92d3e068b3c992d8f69aa2cc908ef4eda9358253e9b4f86cad43d3ad810ec445be164105975f5cb3fdab68459c59dc6e + languageName: node + linkType: hard + "path-type@npm:^4.0.0": version: 4.0.0 resolution: "path-type@npm:4.0.0" @@ -7226,9 +7318,9 @@ __metadata: linkType: hard "pirates@npm:^4.0.4, pirates@npm:^4.0.5": - version: 4.0.5 - resolution: "pirates@npm:4.0.5" - checksum: c9994e61b85260bec6c4fc0307016340d9b0c4f4b6550a957afaaff0c9b1ad58fbbea5cfcf083860a25cb27a375442e2b0edf52e2e1e40e69934e08dcc52d227 + version: 4.0.6 + resolution: "pirates@npm:4.0.6" + checksum: 46a65fefaf19c6f57460388a5af9ab81e3d7fd0e7bc44ca59d753cb5c4d0df97c6c6e583674869762101836d68675f027d60f841c105d72734df9dfca97cbcc6 languageName: node linkType: hard @@ -7250,12 +7342,12 @@ __metadata: languageName: node linkType: hard -"playwright-core@npm:1.35.0": - version: 1.35.0 - resolution: "playwright-core@npm:1.35.0" +"playwright-core@npm:1.35.1": + version: 1.35.1 + resolution: "playwright-core@npm:1.35.1" bin: playwright-core: cli.js - checksum: e23050c9de128e02b16ffbeb1adaca6dddd85a6fd581e71da38947f66b3c910504d628285340e3d6de8c099a488ab9dad14241aefe615f65c01a5a3e3b6e633d + checksum: 179abc0051f00474e528935b507fa8cedc986b2803b020d7679878ba28cdd7036ad5a779792aad2ad281f8dc625eb1d2fb77663cb8de0d20c7ffbda7c18febdd languageName: node linkType: hard @@ -7334,13 +7426,6 @@ __metadata: languageName: node linkType: hard -"promise-inflight@npm:^1.0.1": - version: 1.0.1 - resolution: "promise-inflight@npm:1.0.1" - checksum: 22749483091d2c594261517f4f80e05226d4d5ecc1fc917e1886929da56e22b5718b7f2a75f3807e7a7d471bc3be2907fe92e6e8f373ddf5c64bae35b5af3981 - languageName: node - linkType: hard - "promise-retry@npm:^2.0.1": version: 2.0.1 resolution: "promise-retry@npm:2.0.1" @@ -7408,10 +7493,10 @@ __metadata: languageName: node linkType: hard -"punycode@npm:1.3.2": - version: 1.3.2 - resolution: "punycode@npm:1.3.2" - checksum: b8807fd594b1db33335692d1f03e8beeddde6fda7fbb4a2e32925d88d20a3aa4cd8dcc0c109ccaccbd2ba761c208dfaaada83007087ea8bfb0129c9ef1b99ed6 +"punycode@npm:^1.4.1": + version: 1.4.1 + resolution: "punycode@npm:1.4.1" + checksum: fa6e698cb53db45e4628559e557ddaf554103d2a96a1d62892c8f4032cd3bc8871796cae9eabc1bc700e2b6677611521ce5bb1d9a27700086039965d0cf34518 languageName: node linkType: hard @@ -7422,10 +7507,12 @@ __metadata: languageName: node linkType: hard -"querystring@npm:0.2.0": - version: 0.2.0 - resolution: "querystring@npm:0.2.0" - checksum: 8258d6734f19be27e93f601758858c299bdebe71147909e367101ba459b95446fbe5b975bf9beb76390156a592b6f4ac3a68b6087cea165c259705b8b4e56a69 +"qs@npm:^6.11.0": + version: 6.11.2 + resolution: "qs@npm:6.11.2" + dependencies: + side-channel: ^1.0.4 + checksum: e812f3c590b2262548647d62f1637b6989cc56656dc960b893fe2098d96e1bd633f36576f4cd7564dfbff9db42e17775884db96d846bebe4f37420d073ecdc0b languageName: node linkType: hard @@ -7693,7 +7780,6 @@ __metadata: "@types/jest": ^27.4.0 "@typescript-eslint/eslint-plugin": ^5.7.0 "@typescript-eslint/parser": ^5.7.0 - dotenv: ^16.1.4 eslint: ^7.32.0 eslint-config-airbnb-base: 14.2.1 eslint-config-prettier: ^6.15.0 @@ -7778,25 +7864,25 @@ __metadata: languageName: node linkType: hard -"schema-utils@npm:^3.1.1, schema-utils@npm:^3.1.2": - version: 3.2.0 - resolution: "schema-utils@npm:3.2.0" +"schema-utils@npm:^3.1.1, schema-utils@npm:^3.2.0": + version: 3.3.0 + resolution: "schema-utils@npm:3.3.0" dependencies: "@types/json-schema": ^7.0.8 ajv: ^6.12.5 ajv-keywords: ^3.5.2 - checksum: e8c590c525a58e135658dbe614c60e4821f98eb4c257c962ad61f72ad1e48b23148c7edd9295dbd5f9fc525ff8c6f448af0a932871fe9c9e1f523d1dbef917c8 + checksum: ea56971926fac2487f0757da939a871388891bc87c6a82220d125d587b388f1704788f3706e7f63a7b70e49fc2db974c41343528caea60444afd5ce0fe4b85c0 languageName: node linkType: hard "semver@npm:7.x, semver@npm:^7.2.1, semver@npm:^7.3.2, semver@npm:^7.3.5, semver@npm:^7.3.7": - version: 7.5.1 - resolution: "semver@npm:7.5.1" + version: 7.5.3 + resolution: "semver@npm:7.5.3" dependencies: lru-cache: ^6.0.0 bin: semver: bin/semver.js - checksum: d16dbedad53c65b086f79524b9ef766bf38670b2395bdad5c957f824dcc566b624988013564f4812bcace3f9d405355c3635e2007396a39d1bffc71cfec4a2fc + checksum: 9d58db16525e9f749ad0a696a1f27deabaa51f66e91d2fa2b0db3de3e9644e8677de3b7d7a03f4c15bc81521e0c3916d7369e0572dbde250d9bedf5194e2a8a7 languageName: node linkType: hard @@ -7872,14 +7958,14 @@ __metadata: linkType: hard "shiki@npm:^0.14.1": - version: 0.14.2 - resolution: "shiki@npm:0.14.2" + version: 0.14.3 + resolution: "shiki@npm:0.14.3" dependencies: ansi-sequence-parser: ^1.1.0 jsonc-parser: ^3.2.0 vscode-oniguruma: ^1.7.0 vscode-textmate: ^8.0.0 - checksum: f2a14302b1803617e3ff1b751a5c87b4af4ad15214dc00e9215402e42940a84a0b956cf55d628f25dbf1296b18e277b8529571cd9359b971ac599a0ab11303e7 + checksum: a4dd98e3b2a5dd8be207448f111ffb9ad2ed6c530f215714d8b61cbf91ec3edbabb09109b8ec58a26678aacd24e8161d5a9bc0c1fa1b4f64b27ceb180cbd0c89 languageName: node linkType: hard @@ -7901,6 +7987,13 @@ __metadata: languageName: node linkType: hard +"signal-exit@npm:^4.0.1": + version: 4.0.2 + resolution: "signal-exit@npm:4.0.2" + checksum: 41f5928431cc6e91087bf0343db786a6313dd7c6fd7e551dbc141c95bb5fb26663444fd9df8ea47c5d7fc202f60aa7468c3162a9365cbb0615fc5e1b1328fe31 + languageName: node + linkType: hard + "sisteransi@npm:^1.0.5": version: 1.0.5 resolution: "sisteransi@npm:1.0.5" @@ -8034,28 +8127,28 @@ __metadata: linkType: hard "ssh2@npm:^1.11.0, ssh2@npm:^1.4.0": - version: 1.13.0 - resolution: "ssh2@npm:1.13.0" + version: 1.14.0 + resolution: "ssh2@npm:1.14.0" dependencies: asn1: ^0.2.6 bcrypt-pbkdf: ^1.0.2 - cpu-features: ~0.0.7 + cpu-features: ~0.0.8 nan: ^2.17.0 dependenciesMeta: cpu-features: optional: true nan: optional: true - checksum: 56df3eb9d0c579230001af99b8b83cec12c3cc393720f27af59eefbe542b453a3190ecd1ab56fbb8b71ae3e5381b39387dc3587bc7b413c495ccb74e62f7689f + checksum: c583527950312716f1b620d5120e3c3e241f8cc221f19fc88fd3d561c6020c1009532438f2177a2e706223d91842deff137d93e00832b7b9016593da9a00fb89 languageName: node linkType: hard -"ssri@npm:^9.0.0": - version: 9.0.1 - resolution: "ssri@npm:9.0.1" +"ssri@npm:^10.0.0": + version: 10.0.4 + resolution: "ssri@npm:10.0.4" dependencies: - minipass: ^3.1.1 - checksum: fb58f5e46b6923ae67b87ad5ef1c5ab6d427a17db0bead84570c2df3cd50b4ceb880ebdba2d60726588272890bae842a744e1ecce5bd2a2a582fccd5068309eb + minipass: ^5.0.0 + checksum: fb14da9f8a72b04eab163eb13a9dda11d5962cd2317f85457c4e0b575e9a6e0e3a6a87b5bf122c75cb36565830cd5f263fb457571bf6f1587eb5f95d095d6165 languageName: node linkType: hard @@ -8132,7 +8225,7 @@ __metadata: languageName: node linkType: hard -"string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": +"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" dependencies: @@ -8143,6 +8236,17 @@ __metadata: languageName: node linkType: hard +"string-width@npm:^5.0.1, string-width@npm:^5.1.2": + version: 5.1.2 + resolution: "string-width@npm:5.1.2" + dependencies: + eastasianwidth: ^0.2.0 + emoji-regex: ^9.2.2 + strip-ansi: ^7.0.1 + checksum: 7369deaa29f21dda9a438686154b62c2c5f661f8dda60449088f9f980196f7908fc39fdd1803e3e01541970287cf5deae336798337e9319a7055af89dafa7193 + languageName: node + linkType: hard + "string.prototype.trim@npm:^1.2.7": version: 1.2.7 resolution: "string.prototype.trim@npm:1.2.7" @@ -8194,7 +8298,7 @@ __metadata: languageName: node linkType: hard -"strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": +"strip-ansi-cjs@npm:strip-ansi@^6.0.1, strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": version: 6.0.1 resolution: "strip-ansi@npm:6.0.1" dependencies: @@ -8203,6 +8307,15 @@ __metadata: languageName: node linkType: hard +"strip-ansi@npm:^7.0.1": + version: 7.1.0 + resolution: "strip-ansi@npm:7.1.0" + dependencies: + ansi-regex: ^6.0.1 + checksum: 859c73fcf27869c22a4e4d8c6acfe690064659e84bef9458aa6d13719d09ca88dcfd40cbf31fd0be63518ea1a643fe070b4827d353e09533a5b0b9fd4553d64d + languageName: node + linkType: hard + "strip-bom@npm:^3.0.0": version: 3.0.0 resolution: "strip-bom@npm:3.0.0" @@ -8386,8 +8499,8 @@ __metadata: linkType: hard "terser@npm:^5.16.8": - version: 5.17.7 - resolution: "terser@npm:5.17.7" + version: 5.18.2 + resolution: "terser@npm:5.18.2" dependencies: "@jridgewell/source-map": ^0.3.3 acorn: ^8.8.2 @@ -8395,7 +8508,7 @@ __metadata: source-map-support: ~0.5.20 bin: terser: bin/terser - checksum: b7b17b281febadf3bea9b9412d699fa24edf9b3e20fc7ad4e1a9cec276bdb65ddaa291c9663d5ab66b58834e433377477f73328574ccab2da1637a15b095811d + checksum: 50988412533bfd5a07294df002d772ad5b1277a9d1164dd19c8876a2094ced7b78fcf36cb32122a9a5238ba2597d77178a2385dfc6c4d506622309493f613cf4 languageName: node linkType: hard @@ -8588,9 +8701,9 @@ __metadata: linkType: hard "tslib@npm:^2.0.0, tslib@npm:^2.1.0": - version: 2.5.3 - resolution: "tslib@npm:2.5.3" - checksum: 88902b309afaf83259131c1e13da1dceb0ad1682a213143a1346a649143924d78cf3760c448b84d796938fd76127183894f8d85cbb3bf9c4fddbfcc140c0003c + version: 2.6.0 + resolution: "tslib@npm:2.6.0" + checksum: c01066038f950016a18106ddeca4649b4d76caa76ec5a31e2a26e10586a59fceb4ee45e96719bf6c715648e7c14085a81fee5c62f7e9ebee68e77a5396e5538f languageName: node linkType: hard @@ -8775,21 +8888,21 @@ __metadata: languageName: node linkType: hard -"unique-filename@npm:^2.0.0": - version: 2.0.1 - resolution: "unique-filename@npm:2.0.1" +"unique-filename@npm:^3.0.0": + version: 3.0.0 + resolution: "unique-filename@npm:3.0.0" dependencies: - unique-slug: ^3.0.0 - checksum: 807acf3381aff319086b64dc7125a9a37c09c44af7620bd4f7f3247fcd5565660ac12d8b80534dcbfd067e6fe88a67e621386dd796a8af828d1337a8420a255f + unique-slug: ^4.0.0 + checksum: 8e2f59b356cb2e54aab14ff98a51ac6c45781d15ceaab6d4f1c2228b780193dc70fae4463ce9e1df4479cb9d3304d7c2043a3fb905bdeca71cc7e8ce27e063df languageName: node linkType: hard -"unique-slug@npm:^3.0.0": - version: 3.0.0 - resolution: "unique-slug@npm:3.0.0" +"unique-slug@npm:^4.0.0": + version: 4.0.0 + resolution: "unique-slug@npm:4.0.0" dependencies: imurmurhash: ^0.1.4 - checksum: 49f8d915ba7f0101801b922062ee46b7953256c93ceca74303bd8e6413ae10aa7e8216556b54dc5382895e8221d04f1efaf75f945c2e4a515b4139f77aa6640c + checksum: 0884b58365af59f89739e6f71e3feacb5b1b41f2df2d842d0757933620e6de08eff347d27e9d499b43c40476cbaf7988638d3acb2ffbcb9d35fd035591adfd15 languageName: node linkType: hard @@ -8834,12 +8947,12 @@ __metadata: linkType: hard "url@npm:^0.11.0": - version: 0.11.0 - resolution: "url@npm:0.11.0" + version: 0.11.1 + resolution: "url@npm:0.11.1" dependencies: - punycode: 1.3.2 - querystring: 0.2.0 - checksum: 50d100d3dd2d98b9fe3ada48cadb0b08aa6be6d3ac64112b867b56b19be4bfcba03c2a9a0d7922bfd7ac17d4834e88537749fe182430dfd9b68e520175900d90 + punycode: ^1.4.1 + qs: ^6.11.0 + checksum: a7de4b37bbcbe60ef199acda4ce437ef843c0ef3a4b34ec3e3d97e0446a5f50dc7bfeafbe33ad118cf4e5aa04805e1328f0d0126e254f2b77bb8498fa395c596 languageName: node linkType: hard @@ -9030,8 +9143,8 @@ __metadata: linkType: hard "webpack@npm:^5.70.0": - version: 5.86.0 - resolution: "webpack@npm:5.86.0" + version: 5.88.0 + resolution: "webpack@npm:5.88.0" dependencies: "@types/eslint-scope": ^3.7.3 "@types/estree": ^1.0.0 @@ -9042,7 +9155,7 @@ __metadata: acorn-import-assertions: ^1.9.0 browserslist: ^4.14.5 chrome-trace-event: ^1.0.2 - enhanced-resolve: ^5.14.1 + enhanced-resolve: ^5.15.0 es-module-lexer: ^1.2.1 eslint-scope: 5.1.1 events: ^3.2.0 @@ -9052,7 +9165,7 @@ __metadata: loader-runner: ^4.2.0 mime-types: ^2.1.27 neo-async: ^2.6.2 - schema-utils: ^3.1.2 + schema-utils: ^3.2.0 tapable: ^2.1.1 terser-webpack-plugin: ^5.3.7 watchpack: ^2.4.0 @@ -9062,7 +9175,7 @@ __metadata: optional: true bin: webpack: bin/webpack.js - checksum: 682b1aa8328bb9d52ae66a1d0a1078af88f9e3b3b3a9c9e1ce203e669581a8e61d522420ef253130eacd510d24d7275b840c1311d50bd048d6fd7c1af186ce55 + checksum: 9fd1568b34ec2e99ba97c8509a15ab2576ec80c396e7015551ec814b24cfc11de173acba3e114dafe95f1a6d460781b09d6201e6a1fb15110e1d01a09f61a283 languageName: node linkType: hard @@ -9161,7 +9274,7 @@ __metadata: languageName: node linkType: hard -"word-wrap@npm:^1.2.3, word-wrap@npm:~1.2.3": +"word-wrap@npm:~1.2.3": version: 1.2.3 resolution: "word-wrap@npm:1.2.3" checksum: 30b48f91fcf12106ed3186ae4fa86a6a1842416df425be7b60485de14bec665a54a68e4b5156647dec3a70f25e84d270ca8bc8cd23182ed095f5c7206a938c1f @@ -9175,7 +9288,7 @@ __metadata: languageName: node linkType: hard -"wrap-ansi@npm:^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0, wrap-ansi@npm:^7.0.0": version: 7.0.0 resolution: "wrap-ansi@npm:7.0.0" dependencies: @@ -9186,6 +9299,17 @@ __metadata: languageName: node linkType: hard +"wrap-ansi@npm:^8.1.0": + version: 8.1.0 + resolution: "wrap-ansi@npm:8.1.0" + dependencies: + ansi-styles: ^6.1.0 + string-width: ^5.0.1 + strip-ansi: ^7.0.1 + checksum: 371733296dc2d616900ce15a0049dca0ef67597d6394c57347ba334393599e800bab03c41d4d45221b6bc967b8c453ec3ae4749eff3894202d16800fdfe0e238 + languageName: node + linkType: hard + "wrappy@npm:1": version: 1.0.2 resolution: "wrappy@npm:1.0.2"