From 3ebf7eb4243e260e3a689da6698fd173fc1bb66b Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 27 Feb 2021 15:25:05 +0100 Subject: [PATCH] Adjust detectPackage for direct dependencies (#3227) * Dependency detection * packageInfo imports * Dependency array * Bump common * Remove detectPackage comments (available in util) * Bump --- package.json | 6 +- packages/api-contract/package.json | 11 +- packages/api-contract/src/detectPackage.ts | 10 + packages/api-contract/src/index.ts | 5 +- packages/api-derive/package.json | 15 +- packages/api-derive/src/detectPackage.ts | 11 + packages/api-derive/src/index.ts | 3 + packages/api/package.json | 10 +- packages/api/src/detectPackage.ts | 23 +- packages/api/src/index.ts | 1 + packages/metadata/package.json | 8 +- packages/metadata/src/detectPackage.ts | 19 +- packages/metadata/src/index.ts | 1 + packages/rpc-core/package.json | 13 +- packages/rpc-core/src/detectPackage.ts | 11 + packages/rpc-core/src/index.ts | 4 + packages/rpc-provider/package.json | 21 +- packages/rpc-provider/src/detectPackage.ts | 9 + packages/rpc-provider/src/index.ts | 3 + packages/typegen/package.json | 13 +- packages/typegen/src/detectPackage.ts | 12 + packages/typegen/src/index.ts | 3 + packages/types-known/package.json | 11 +- packages/types-known/src/detectPackage.ts | 9 + packages/types-known/src/index.ts | 4 + packages/types/package.json | 10 +- packages/types/src/detectPackage.ts | 18 +- packages/types/src/index.ts | 1 + yarn.lock | 288 ++++++++++----------- 29 files changed, 310 insertions(+), 243 deletions(-) create mode 100644 packages/api-contract/src/detectPackage.ts create mode 100644 packages/api-derive/src/detectPackage.ts create mode 100644 packages/rpc-core/src/detectPackage.ts create mode 100644 packages/rpc-provider/src/detectPackage.ts create mode 100644 packages/typegen/src/detectPackage.ts create mode 100644 packages/types-known/src/detectPackage.ts diff --git a/package.json b/package.json index 479f8550ee..eb773556e5 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,9 @@ "test:watch": "polkadot-dev-run-test --watch" }, "devDependencies": { - "@babel/core": "^7.13.1", - "@babel/register": "^7.13.0", - "@babel/runtime": "^7.13.7", + "@babel/core": "^7.13.8", + "@babel/register": "^7.13.8", + "@babel/runtime": "^7.13.8", "@polkadot/dev": "^0.61.30", "@polkadot/ts": "^0.3.59", "@polkadot/typegen": "workspace:packages/typegen", diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 20da44b32d..0d3f38ddac 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -3,7 +3,10 @@ "version": "3.10.3-12", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "author": "Jaco Greeff ", "maintainers": [], "contributors": [], @@ -12,11 +15,11 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { - "@babel/runtime": "^7.13.7", + "@babel/runtime": "^7.13.8", "@polkadot/api": "3.10.3-12", "@polkadot/types": "3.10.3-12", - "@polkadot/util": "^5.8.1", - "@polkadot/x-rxjs": "^5.8.1", + "@polkadot/util": "^5.8.2-5", + "@polkadot/x-rxjs": "^5.8.2-5", "bn.js": "^4.11.9" } } diff --git a/packages/api-contract/src/detectPackage.ts b/packages/api-contract/src/detectPackage.ts new file mode 100644 index 0000000000..45d9a9972c --- /dev/null +++ b/packages/api-contract/src/detectPackage.ts @@ -0,0 +1,10 @@ +// Copyright 2017-2021 @polkadot/api-contract authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import { packageInfo as apiInfo } from '@polkadot/api/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo'; + +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [apiInfo, typesInfo]); diff --git a/packages/api-contract/src/index.ts b/packages/api-contract/src/index.ts index f18b887016..51974d88d3 100644 --- a/packages/api-contract/src/index.ts +++ b/packages/api-contract/src/index.ts @@ -1,6 +1,9 @@ // Copyright 2017-2021 @polkadot/api-contract authors & contributors // SPDX-License-Identifier: Apache-2.0 +import './detectPackage'; + export { Abi } from './Abi'; -export { Blueprint as BlueprintRx, Code as CodeRx, Contract as ContractRx } from './rx'; +export { packageInfo } from './packageInfo'; export { Blueprint as BlueprintPromise, Code as CodePromise, Contract as ContractPromise } from './promise'; +export { Blueprint as BlueprintRx, Code as CodeRx, Contract as ContractRx } from './rx'; diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 2fdb5d0000..5306aaf3b4 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -3,7 +3,10 @@ "version": "3.10.3-12", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "author": "Jaco Greeff ", "maintainers": [], "contributors": [], @@ -12,17 +15,17 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { - "@babel/runtime": "^7.13.7", + "@babel/runtime": "^7.13.8", "@polkadot/api": "3.10.3-12", "@polkadot/rpc-core": "3.10.3-12", "@polkadot/types": "3.10.3-12", - "@polkadot/util": "^5.8.1", - "@polkadot/util-crypto": "^5.8.1", - "@polkadot/x-rxjs": "^5.8.1", + "@polkadot/util": "^5.8.2-5", + "@polkadot/util-crypto": "^5.8.2-5", + "@polkadot/x-rxjs": "^5.8.2-5", "bn.js": "^4.11.9" }, "devDependencies": { - "@polkadot/keyring": "^5.8.1", + "@polkadot/keyring": "^5.8.2-5", "@polkadot/rpc-provider": "3.10.3-12" } } diff --git a/packages/api-derive/src/detectPackage.ts b/packages/api-derive/src/detectPackage.ts new file mode 100644 index 0000000000..408d5f45f9 --- /dev/null +++ b/packages/api-derive/src/detectPackage.ts @@ -0,0 +1,11 @@ +// Copyright 2017-2021 @polkadot/api-derive authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import { packageInfo as apiInfo } from '@polkadot/api/packageInfo'; +import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo'; + +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [apiInfo, coreInfo, typesInfo]); diff --git a/packages/api-derive/src/index.ts b/packages/api-derive/src/index.ts index a3c97d3759..6cb6aeee70 100644 --- a/packages/api-derive/src/index.ts +++ b/packages/api-derive/src/index.ts @@ -1,6 +1,8 @@ // Copyright 2017-2021 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 +import './detectPackage'; + import type { ApiInterfaceRx } from '@polkadot/api/types'; import type { AnyFunction } from '@polkadot/types/types'; import type { Observable } from '@polkadot/x-rxjs'; @@ -22,6 +24,7 @@ import * as technicalCommittee from './technicalCommittee'; import * as treasury from './treasury'; import * as tx from './tx'; +export { packageInfo } from './packageInfo'; export * from './type'; export const derive = { accounts, balances, bounties, chain, contracts, council, democracy, elections, imOnline, parachains, session, society, staking, technicalCommittee, treasury, tx }; diff --git a/packages/api/package.json b/packages/api/package.json index f592c6d418..90552a21dd 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -15,17 +15,17 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { - "@babel/runtime": "^7.13.7", + "@babel/runtime": "^7.13.8", "@polkadot/api-derive": "3.10.3-12", - "@polkadot/keyring": "^5.8.1", + "@polkadot/keyring": "^5.8.2-5", "@polkadot/metadata": "3.10.3-12", "@polkadot/rpc-core": "3.10.3-12", "@polkadot/rpc-provider": "3.10.3-12", "@polkadot/types": "3.10.3-12", "@polkadot/types-known": "3.10.3-12", - "@polkadot/util": "^5.8.1", - "@polkadot/util-crypto": "^5.8.1", - "@polkadot/x-rxjs": "^5.8.1", + "@polkadot/util": "^5.8.2-5", + "@polkadot/util-crypto": "^5.8.2-5", + "@polkadot/x-rxjs": "^5.8.2-5", "bn.js": "^4.11.9", "eventemitter3": "^4.0.7" } diff --git a/packages/api/src/detectPackage.ts b/packages/api/src/detectPackage.ts index 75f6a1f176..d8b3caebbb 100644 --- a/packages/api/src/detectPackage.ts +++ b/packages/api/src/detectPackage.ts @@ -1,23 +1,14 @@ // Copyright 2017-2021 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 -// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use -// -// new URL(import.meta.url).pathname) -// -// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have -// nice things... In this case it is even worse since import.meta.url won't even make it compile, so -// there is a complete dead end with usage thereof -// -// When that is fixed, a solution is to have both .js & .mjs files, with the following content - -// -// cjs: util.detectPackage(packageInfo, () => __dirname); -// esm: detectPackage(packageInfo, () => import.meta.url); -// -// With the above we additionally need a .d.ts to just export the packageInfo - +import { packageInfo as deriveInfo } from '@polkadot/api-derive/packageInfo'; +import { packageInfo as metaInfo } from '@polkadot/metadata/packageInfo'; +import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo'; +import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { packageInfo as knownInfo } from '@polkadot/types-known/packageInfo'; import { detectPackage } from '@polkadot/util'; import { packageInfo } from './packageInfo'; -detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname); +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [deriveInfo, metaInfo, coreInfo, providerInfo, typesInfo, knownInfo]); diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 7fdd20cb85..c49984c342 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -6,6 +6,7 @@ import './detectPackage'; export { Keyring } from '@polkadot/keyring'; export { WsProvider } from '@polkadot/rpc-provider/ws'; +export { packageInfo } from './packageInfo'; export { ApiPromise } from './promise'; export { SubmittableResult } from './submittable'; export { ApiRx } from './rx'; diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 35bf6a677c..e63206ea48 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -15,14 +15,14 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { - "@babel/runtime": "^7.13.7", + "@babel/runtime": "^7.13.8", "@polkadot/types": "3.10.3-12", "@polkadot/types-known": "3.10.3-12", - "@polkadot/util": "^5.8.1", - "@polkadot/util-crypto": "^5.8.1", + "@polkadot/util": "^5.8.2-5", + "@polkadot/util-crypto": "^5.8.2-5", "bn.js": "^4.11.9" }, "devDependencies": { - "@polkadot/keyring": "^5.8.1" + "@polkadot/keyring": "^5.8.2-5" } } diff --git a/packages/metadata/src/detectPackage.ts b/packages/metadata/src/detectPackage.ts index 3387d13f3d..fa056dfa09 100644 --- a/packages/metadata/src/detectPackage.ts +++ b/packages/metadata/src/detectPackage.ts @@ -1,23 +1,10 @@ // Copyright 2017-2021 @polkadot/metadata authors & contributors // SPDX-License-Identifier: Apache-2.0 -// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use -// -// new URL(import.meta.url).pathname) -// -// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have -// nice things... In this case it is even worse since import.meta.url won't even make it compile, so -// there is a complete dead end with usage thereof -// -// When that is fixed, a solution is to have both .js & .mjs files, with the following content - -// -// cjs: util.detectPackage(packageInfo, () => __dirname); -// esm: detectPackage(packageInfo, () => import.meta.url); -// -// With the above we additionally need a .d.ts to just export the packageInfo - +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { packageInfo as knownInfo } from '@polkadot/types-known/packageInfo'; import { detectPackage } from '@polkadot/util'; import { packageInfo } from './packageInfo'; -detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname); +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [typesInfo, knownInfo]); diff --git a/packages/metadata/src/index.ts b/packages/metadata/src/index.ts index cfc335e0ec..20b2f6e2cd 100644 --- a/packages/metadata/src/index.ts +++ b/packages/metadata/src/index.ts @@ -5,3 +5,4 @@ import './detectPackage'; export { Metadata } from './Metadata'; export { decorateConstants, decorateExtrinsics, decorateStorage, expandMetadata } from './decorate'; +export { packageInfo } from './packageInfo'; diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 3f317cc308..4219651c27 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -3,7 +3,10 @@ "version": "3.10.3-12", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "author": "Jaco Greeff ", "maintainers": [], "contributors": [], @@ -12,14 +15,14 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { - "@babel/runtime": "^7.13.7", + "@babel/runtime": "^7.13.8", "@polkadot/metadata": "3.10.3-12", "@polkadot/rpc-provider": "3.10.3-12", "@polkadot/types": "3.10.3-12", - "@polkadot/util": "^5.8.1", - "@polkadot/x-rxjs": "^5.8.1" + "@polkadot/util": "^5.8.2-5", + "@polkadot/x-rxjs": "^5.8.2-5" }, "devDependencies": { - "@polkadot/keyring": "^5.8.1" + "@polkadot/keyring": "^5.8.2-5" } } diff --git a/packages/rpc-core/src/detectPackage.ts b/packages/rpc-core/src/detectPackage.ts new file mode 100644 index 0000000000..f70ecafef3 --- /dev/null +++ b/packages/rpc-core/src/detectPackage.ts @@ -0,0 +1,11 @@ +// Copyright 2017-2021 @polkadot/rpc-core authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import { packageInfo as metaInfo } from '@polkadot/metadata/packageInfo'; +import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo'; + +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [metaInfo, providerInfo, typesInfo]); diff --git a/packages/rpc-core/src/index.ts b/packages/rpc-core/src/index.ts index a67ca1fac1..7deed71e8f 100644 --- a/packages/rpc-core/src/index.ts +++ b/packages/rpc-core/src/index.ts @@ -1,6 +1,8 @@ // Copyright 2017-2021 @polkadot/rpc-core authors & contributors // SPDX-License-Identifier: Apache-2.0 +import './detectPackage'; + import type { ProviderInterface, ProviderInterfaceCallback } from '@polkadot/rpc-provider/types'; import type { StorageKey, Vec } from '@polkadot/types'; import type { Hash } from '@polkadot/types/interfaces'; @@ -18,6 +20,8 @@ import { publishReplay, refCount } from '@polkadot/x-rxjs/operators'; import { drr, refCountDelay } from './util'; +export { packageInfo } from './packageInfo'; + interface StorageChangeSetJSON { block: string; changes: [string, string | null][]; diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 981260fd69..192fcf35ea 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -3,7 +3,10 @@ "version": "3.10.3-12", "description": "Transport providers for the API", "main": "index.js", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "author": "Jaco Greeff ", "maintainers": [], "contributors": [], @@ -12,20 +15,20 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { - "@babel/runtime": "^7.13.7", + "@babel/runtime": "^7.13.8", "@polkadot/types": "3.10.3-12", - "@polkadot/util": "^5.8.1", - "@polkadot/util-crypto": "^5.8.1", - "@polkadot/x-fetch": "^5.8.1", - "@polkadot/x-global": "^5.8.1", - "@polkadot/x-ws": "^5.8.1", + "@polkadot/util": "^5.8.2-5", + "@polkadot/util-crypto": "^5.8.2-5", + "@polkadot/x-fetch": "^5.8.2-5", + "@polkadot/x-global": "^5.8.2-5", + "@polkadot/x-ws": "^5.8.2-5", "bn.js": "^4.11.9", "eventemitter3": "^4.0.7" }, "devDependencies": { - "@polkadot/keyring": "^5.8.1", + "@polkadot/keyring": "^5.8.2-5", "@polkadot/metadata": "3.10.3-12", "mock-socket": "^9.0.3", - "nock": "^13.0.8" + "nock": "^13.0.9" } } diff --git a/packages/rpc-provider/src/detectPackage.ts b/packages/rpc-provider/src/detectPackage.ts new file mode 100644 index 0000000000..62d3f26567 --- /dev/null +++ b/packages/rpc-provider/src/detectPackage.ts @@ -0,0 +1,9 @@ +// Copyright 2017-2021 @polkadot/rpc-provider authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo'; + +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [typesInfo]); diff --git a/packages/rpc-provider/src/index.ts b/packages/rpc-provider/src/index.ts index f9721591f0..f2d749a170 100644 --- a/packages/rpc-provider/src/index.ts +++ b/packages/rpc-provider/src/index.ts @@ -1,5 +1,8 @@ // Copyright 2017-2021 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 +import './detectPackage'; + export { HttpProvider } from './http'; +export { packageInfo } from './packageInfo'; export { WsProvider } from './ws'; diff --git a/packages/typegen/package.json b/packages/typegen/package.json index f8e1997fe8..51f09ae636 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -3,7 +3,10 @@ "version": "3.10.3-12", "description": "Type generation scripts", "main": "index.js", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "bin": { "polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.js", "polkadot-types-from-chain": "./scripts/polkadot-types-from-chain.js", @@ -19,14 +22,14 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme", "dependencies": { - "@babel/core": "^7.13.1", - "@babel/register": "^7.13.0", - "@babel/runtime": "^7.13.7", + "@babel/core": "^7.13.8", + "@babel/register": "^7.13.8", + "@babel/runtime": "^7.13.8", "@polkadot/api": "3.10.3-12", "@polkadot/metadata": "3.10.3-12", "@polkadot/rpc-provider": "3.10.3-12", "@polkadot/types": "3.10.3-12", - "@polkadot/util": "^5.8.1", + "@polkadot/util": "^5.8.2-5", "handlebars": "^4.7.7", "websocket": "^1.0.33", "yargs": "^16.2.0" diff --git a/packages/typegen/src/detectPackage.ts b/packages/typegen/src/detectPackage.ts new file mode 100644 index 0000000000..9a7f34070f --- /dev/null +++ b/packages/typegen/src/detectPackage.ts @@ -0,0 +1,12 @@ +// Copyright 2017-2021 @polkadot/typegen authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import { packageInfo as apiInfo } from '@polkadot/api/packageInfo'; +import { packageInfo as metaInfo } from '@polkadot/metadata/packageInfo'; +import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo'; + +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [apiInfo, metaInfo, providerInfo, typesInfo]); diff --git a/packages/typegen/src/index.ts b/packages/typegen/src/index.ts index cf36bcdc23..0b14cd7fe1 100644 --- a/packages/typegen/src/index.ts +++ b/packages/typegen/src/index.ts @@ -1,4 +1,7 @@ // Copyright 2017-2021 @polkadot/typegen authors & contributors // SPDX-License-Identifier: Apache-2.0 +import './detectPackage'; + +export { packageInfo } from './packageInfo'; export { formatType } from './util/formatting'; diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 0d1ec6de96..931a93f4ef 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -3,7 +3,10 @@ "version": "3.10.3-12", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", - "sideEffects": false, + "sideEffects": [ + "./detectPackage.js", + "./detectPackage.mjs" + ], "author": "Jaco Greeff ", "maintainers": [], "contributors": [], @@ -12,10 +15,10 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { - "@babel/runtime": "^7.13.7", - "@polkadot/networks": "^5.8.1", + "@babel/runtime": "^7.13.8", + "@polkadot/networks": "^5.8.2-5", "@polkadot/types": "3.10.3-12", - "@polkadot/util": "^5.8.1", + "@polkadot/util": "^5.8.2-5", "bn.js": "^4.11.9" }, "devDependencies": { diff --git a/packages/types-known/src/detectPackage.ts b/packages/types-known/src/detectPackage.ts new file mode 100644 index 0000000000..e8277b30d3 --- /dev/null +++ b/packages/types-known/src/detectPackage.ts @@ -0,0 +1,9 @@ +// Copyright 2017-2021 @polkadot/types-known authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo'; + +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [typesInfo]); diff --git a/packages/types-known/src/index.ts b/packages/types-known/src/index.ts index 7b9845f6b7..f896d4e5bb 100644 --- a/packages/types-known/src/index.ts +++ b/packages/types-known/src/index.ts @@ -1,6 +1,8 @@ // Copyright 2017-2021 @polkadot/types-known authors & contributors // SPDX-License-Identifier: Apache-2.0 +import './detectPackage'; + import type BN from 'bn.js'; import type { Text } from '@polkadot/types'; import type { ExtDef } from '@polkadot/types/extrinsic/signedExtensions/types'; @@ -14,6 +16,8 @@ import typesModules from './modules'; import typesSpec from './spec'; import upgrades from './upgrades'; +export { packageInfo } from './packageInfo'; + // flatten a VersionedType[] into a Record /** @internal */ function filterVersions (versions: OverrideVersionedType[] = [], specVersion: number): RegistryTypes { diff --git a/packages/types/package.json b/packages/types/package.json index 573442cd7f..0375a1e850 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -15,15 +15,15 @@ "bugs": "https://github.com/polkadot-js/api/issues", "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { - "@babel/runtime": "^7.13.7", + "@babel/runtime": "^7.13.8", "@polkadot/metadata": "3.10.3-12", - "@polkadot/util": "^5.8.1", - "@polkadot/util-crypto": "^5.8.1", - "@polkadot/x-rxjs": "^5.8.1", + "@polkadot/util": "^5.8.2-5", + "@polkadot/util-crypto": "^5.8.2-5", + "@polkadot/x-rxjs": "^5.8.2-5", "@types/bn.js": "^4.11.6", "bn.js": "^4.11.9" }, "devDependencies": { - "@polkadot/keyring": "^5.8.1" + "@polkadot/keyring": "^5.8.2-5" } } diff --git a/packages/types/src/detectPackage.ts b/packages/types/src/detectPackage.ts index e66b6eb0a4..86f414184a 100644 --- a/packages/types/src/detectPackage.ts +++ b/packages/types/src/detectPackage.ts @@ -1,23 +1,9 @@ // Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -// For esm, this should be import.meta.url or to get the same behavior as __dirname, we can use -// -// new URL(import.meta.url).pathname) -// -// The issue is the WP4 has "some" issues with import.meta.url. So because of bundlers, we can't have -// nice things... In this case it is even worse since import.meta.url won't even make it compile, so -// there is a complete dead end with usage thereof -// -// When that is fixed, a solution is to have both .js & .mjs files, with the following content - -// -// cjs: util.detectPackage(packageInfo, () => __dirname); -// esm: detectPackage(packageInfo, () => import.meta.url); -// -// With the above we additionally need a .d.ts to just export the packageInfo - +import { packageInfo as metaInfo } from '@polkadot/metadata/packageInfo'; import { detectPackage } from '@polkadot/util'; import { packageInfo } from './packageInfo'; -detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname); +detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [metaInfo]); diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 828bfe5ca4..f27968cd91 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -6,3 +6,4 @@ import './detectPackage'; export * from './codec'; export * from './create'; export * from './index.types'; +export { packageInfo } from './packageInfo'; diff --git a/yarn.lock b/yarn.lock index 9d67dce1a0..bf3afa1a09 100644 --- a/yarn.lock +++ b/yarn.lock @@ -51,23 +51,23 @@ __metadata: languageName: node linkType: hard -"@babel/compat-data@npm:^7.13.0, @babel/compat-data@npm:^7.13.5": - version: 7.13.6 - resolution: "@babel/compat-data@npm:7.13.6" - checksum: 0bed7ac3e2c4597140e56db034e2b7a664516c7f094ee521a15efee814a208e3937fd9a5ac12e8d3d6ccfcbbfd35ceced75163fc7b2d9ca71b48d8fcfbc6f990 +"@babel/compat-data@npm:^7.13.0, @babel/compat-data@npm:^7.13.5, @babel/compat-data@npm:^7.13.8": + version: 7.13.8 + resolution: "@babel/compat-data@npm:7.13.8" + checksum: e07e24737973206dd17439224945a354352ce0896d5a0bdd22fc637464eb650bdf6651a42352dc35fa8d55842ce1b66e545a1e3c096ee8f45947dcc32a44be44 languageName: node linkType: hard -"@babel/core@npm:7.13.1, @babel/core@npm:^7.1.0, @babel/core@npm:^7.13.1, @babel/core@npm:^7.7.5": - version: 7.13.1 - resolution: "@babel/core@npm:7.13.1" +"@babel/core@npm:7.13.8, @babel/core@npm:^7.1.0, @babel/core@npm:^7.13.1, @babel/core@npm:^7.13.8, @babel/core@npm:^7.7.5": + version: 7.13.8 + resolution: "@babel/core@npm:7.13.8" dependencies: "@babel/code-frame": ^7.12.13 "@babel/generator": ^7.13.0 - "@babel/helper-compilation-targets": ^7.13.0 + "@babel/helper-compilation-targets": ^7.13.8 "@babel/helper-module-transforms": ^7.13.0 "@babel/helpers": ^7.13.0 - "@babel/parser": ^7.13.0 + "@babel/parser": ^7.13.4 "@babel/template": ^7.12.13 "@babel/traverse": ^7.13.0 "@babel/types": ^7.13.0 @@ -76,9 +76,9 @@ __metadata: gensync: ^1.0.0-beta.2 json5: ^2.1.2 lodash: ^4.17.19 - semver: 7.0.0 + semver: ^6.3.0 source-map: ^0.5.0 - checksum: 3adc8e8ce201f7e45a83c6715b11b353e5083339cf32dc84db10bda63b63e4cd785b57ee8d51e0e049a60ebbbf7cd45d594475b6511607b57917076fd5acd888 + checksum: f3c61e635aa41e127775d1191a65aedd4cf90008625eb93ddbd86214ebae6b0793cefd10503b2a4df8aa510d0e1108dfd15e29bde9bbffc899a50015f56f49c4 languageName: node linkType: hard @@ -112,17 +112,17 @@ __metadata: languageName: node linkType: hard -"@babel/helper-compilation-targets@npm:^7.13.0": - version: 7.13.0 - resolution: "@babel/helper-compilation-targets@npm:7.13.0" +"@babel/helper-compilation-targets@npm:^7.13.0, @babel/helper-compilation-targets@npm:^7.13.8": + version: 7.13.8 + resolution: "@babel/helper-compilation-targets@npm:7.13.8" dependencies: - "@babel/compat-data": ^7.13.0 + "@babel/compat-data": ^7.13.8 "@babel/helper-validator-option": ^7.12.17 browserslist: ^4.14.5 - semver: 7.0.0 + semver: ^6.3.0 peerDependencies: "@babel/core": ^7.0.0 - checksum: 55a5af52e24e21ad8033178e55e6fd480375f0c1558ab80de9927c62635fc10ba9e7345020a3c8ad254b8312f21aa9b1198c65043a50671a520c9439bac03fcc + checksum: dbee371e5ff226bb03a036d1af858f038ab6e71fac1ff5014bf69411b71af187bcdb0e49d5352ec5ef5e83186c9b88ee83b74295ba900691095b31017ec59f89 languageName: node linkType: hard @@ -358,7 +358,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.12.13, @babel/parser@npm:^7.13.0": +"@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.12.13, @babel/parser@npm:^7.13.0, @babel/parser@npm:^7.13.4": version: 7.13.4 resolution: "@babel/parser@npm:7.13.4" bin: @@ -1277,9 +1277,9 @@ __metadata: languageName: node linkType: hard -"@babel/register@npm:^7.13.0": - version: 7.13.0 - resolution: "@babel/register@npm:7.13.0" +"@babel/register@npm:^7.13.0, @babel/register@npm:^7.13.8": + version: 7.13.8 + resolution: "@babel/register@npm:7.13.8" dependencies: find-cache-dir: ^2.0.0 lodash: ^4.17.19 @@ -1288,16 +1288,16 @@ __metadata: source-map-support: ^0.5.16 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 07e00399bfa6b1bda544afc828b59d46608f3385c4e6152e459437ccbed521829feddaf5371e8d67cea346502d12b945a4f75965a2fc4d2d642ea185009b343c + checksum: fd56cd563849b63c2467ec4454cab560a1140762ce5c31676c6194b924949a5a0b5dd67bef87c1685e7000167572b303259501ba81c65346d33215a21673222c languageName: node linkType: hard -"@babel/runtime@npm:^7.13.7, @babel/runtime@npm:^7.8.4": - version: 7.13.7 - resolution: "@babel/runtime@npm:7.13.7" +"@babel/runtime@npm:^7.13.7, @babel/runtime@npm:^7.13.8, @babel/runtime@npm:^7.8.4": + version: 7.13.8 + resolution: "@babel/runtime@npm:7.13.8" dependencies: regenerator-runtime: ^0.13.4 - checksum: 8be9fd44bb684ad42069170ca1bce9e225af7bc13861f5ac9c2517b6f1c585fb167cedb54f1a0c5b3f26a8391a9e1afef874829df494d945398d3f67b39e6116 + checksum: d8db125d3629c4000322e8264d7510640ac671136f416d1fcd4b74d26d7e703bf671820fab81a29a5ee0bd11e981de518666619398ec29b1ab5e155ab8131812 languageName: node linkType: hard @@ -1775,11 +1775,11 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: - "@babel/runtime": ^7.13.7 + "@babel/runtime": ^7.13.8 "@polkadot/api": 3.10.3-12 "@polkadot/types": 3.10.3-12 - "@polkadot/util": ^5.8.1 - "@polkadot/x-rxjs": ^5.8.1 + "@polkadot/util": ^5.8.2-5 + "@polkadot/x-rxjs": ^5.8.2-5 bn.js: ^4.11.9 languageName: unknown linkType: soft @@ -1788,15 +1788,15 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: - "@babel/runtime": ^7.13.7 + "@babel/runtime": ^7.13.8 "@polkadot/api": 3.10.3-12 - "@polkadot/keyring": ^5.8.1 + "@polkadot/keyring": ^5.8.2-5 "@polkadot/rpc-core": 3.10.3-12 "@polkadot/rpc-provider": 3.10.3-12 "@polkadot/types": 3.10.3-12 - "@polkadot/util": ^5.8.1 - "@polkadot/util-crypto": ^5.8.1 - "@polkadot/x-rxjs": ^5.8.1 + "@polkadot/util": ^5.8.2-5 + "@polkadot/util-crypto": ^5.8.2-5 + "@polkadot/x-rxjs": ^5.8.2-5 bn.js: ^4.11.9 languageName: unknown linkType: soft @@ -1805,17 +1805,17 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: - "@babel/runtime": ^7.13.7 + "@babel/runtime": ^7.13.8 "@polkadot/api-derive": 3.10.3-12 - "@polkadot/keyring": ^5.8.1 + "@polkadot/keyring": ^5.8.2-5 "@polkadot/metadata": 3.10.3-12 "@polkadot/rpc-core": 3.10.3-12 "@polkadot/rpc-provider": 3.10.3-12 "@polkadot/types": 3.10.3-12 "@polkadot/types-known": 3.10.3-12 - "@polkadot/util": ^5.8.1 - "@polkadot/util-crypto": ^5.8.1 - "@polkadot/x-rxjs": ^5.8.1 + "@polkadot/util": ^5.8.2-5 + "@polkadot/util-crypto": ^5.8.2-5 + "@polkadot/x-rxjs": ^5.8.2-5 bn.js: ^4.11.9 eventemitter3: ^4.0.7 languageName: unknown @@ -1911,17 +1911,17 @@ __metadata: languageName: node linkType: hard -"@polkadot/keyring@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/keyring@npm:5.8.1" +"@polkadot/keyring@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/keyring@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/util": 5.8.1 - "@polkadot/util-crypto": 5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/util": 5.8.2-5 + "@polkadot/util-crypto": 5.8.2-5 peerDependencies: - "@polkadot/util": 5.8.1 - "@polkadot/util-crypto": 5.8.1 - checksum: 9471bf4453566d1231b5532f49be474d65d69012474bf696c68c64452b32c9169027d1282472167c3813fe78860aa808e184351d6af0dbae8582693e729a25fc + "@polkadot/util": 5.8.2-5 + "@polkadot/util-crypto": 5.8.2-5 + checksum: f4e818e0f5f97d8e7bd12569d30a24ea975f5ded3a1d536b05bc1347a3501a02439f1f3930d8604fc1034c81853b44979e1c1ddfd9aa8b9b2f6a575a6540cd36 languageName: node linkType: hard @@ -1929,22 +1929,22 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/keyring": ^5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/keyring": ^5.8.2-5 "@polkadot/types": 3.10.3-12 "@polkadot/types-known": 3.10.3-12 - "@polkadot/util": ^5.8.1 - "@polkadot/util-crypto": ^5.8.1 + "@polkadot/util": ^5.8.2-5 + "@polkadot/util-crypto": ^5.8.2-5 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/networks@npm:5.8.1, @polkadot/networks@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/networks@npm:5.8.1" +"@polkadot/networks@npm:5.8.2-5, @polkadot/networks@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/networks@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - checksum: f67abcbf423400ea627ab0fe3599d3f9a50248cc90f3aa21956e4afc651313ffb98eedfc1d040de551d353f25b8d79555894875461b266084f39a8adbdb5b907 + "@babel/runtime": ^7.13.8 + checksum: d1c8f8fe0738553214a28e2a5806866cdd6062ee2623366ffbf906d3329381e13464be0cbe50164ad6a4204f0dca7470c96253dd82350be9521d33ca979214eb languageName: node linkType: hard @@ -1952,13 +1952,13 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/keyring": ^5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/keyring": ^5.8.2-5 "@polkadot/metadata": 3.10.3-12 "@polkadot/rpc-provider": 3.10.3-12 "@polkadot/types": 3.10.3-12 - "@polkadot/util": ^5.8.1 - "@polkadot/x-rxjs": ^5.8.1 + "@polkadot/util": ^5.8.2-5 + "@polkadot/x-rxjs": ^5.8.2-5 languageName: unknown linkType: soft @@ -1966,19 +1966,19 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/keyring": ^5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/keyring": ^5.8.2-5 "@polkadot/metadata": 3.10.3-12 "@polkadot/types": 3.10.3-12 - "@polkadot/util": ^5.8.1 - "@polkadot/util-crypto": ^5.8.1 - "@polkadot/x-fetch": ^5.8.1 - "@polkadot/x-global": ^5.8.1 - "@polkadot/x-ws": ^5.8.1 + "@polkadot/util": ^5.8.2-5 + "@polkadot/util-crypto": ^5.8.2-5 + "@polkadot/x-fetch": ^5.8.2-5 + "@polkadot/x-global": ^5.8.2-5 + "@polkadot/x-ws": ^5.8.2-5 bn.js: ^4.11.9 eventemitter3: ^4.0.7 mock-socket: ^9.0.3 - nock: ^13.0.8 + nock: ^13.0.9 languageName: unknown linkType: soft @@ -1995,14 +1995,14 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/typegen@workspace:packages/typegen" dependencies: - "@babel/core": ^7.13.1 - "@babel/register": ^7.13.0 - "@babel/runtime": ^7.13.7 + "@babel/core": ^7.13.8 + "@babel/register": ^7.13.8 + "@babel/runtime": ^7.13.8 "@polkadot/api": 3.10.3-12 "@polkadot/metadata": 3.10.3-12 "@polkadot/rpc-provider": 3.10.3-12 "@polkadot/types": 3.10.3-12 - "@polkadot/util": ^5.8.1 + "@polkadot/util": ^5.8.2-5 "@types/websocket": ^1.0.1 "@types/yargs": ^16.0.0 handlebars: ^4.7.7 @@ -2021,10 +2021,10 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/types-known@workspace:packages/types-known" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/networks": ^5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/networks": ^5.8.2-5 "@polkadot/types": 3.10.3-12 - "@polkadot/util": ^5.8.1 + "@polkadot/util": ^5.8.2-5 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown @@ -2034,26 +2034,26 @@ __metadata: version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/keyring": ^5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/keyring": ^5.8.2-5 "@polkadot/metadata": 3.10.3-12 - "@polkadot/util": ^5.8.1 - "@polkadot/util-crypto": ^5.8.1 - "@polkadot/x-rxjs": ^5.8.1 + "@polkadot/util": ^5.8.2-5 + "@polkadot/util-crypto": ^5.8.2-5 + "@polkadot/x-rxjs": ^5.8.2-5 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 languageName: unknown linkType: soft -"@polkadot/util-crypto@npm:5.8.1, @polkadot/util-crypto@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/util-crypto@npm:5.8.1" +"@polkadot/util-crypto@npm:5.8.2-5, @polkadot/util-crypto@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/util-crypto@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/networks": 5.8.1 - "@polkadot/util": 5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/networks": 5.8.2-5 + "@polkadot/util": 5.8.2-5 "@polkadot/wasm-crypto": ^3.2.4 - "@polkadot/x-randomvalues": 5.8.1 + "@polkadot/x-randomvalues": 5.8.2-5 base-x: ^3.0.8 base64-js: ^1.5.1 blakejs: ^1.1.0 @@ -2066,23 +2066,23 @@ __metadata: tweetnacl: ^1.0.3 xxhashjs: ^0.2.2 peerDependencies: - "@polkadot/util": 5.8.1 - checksum: b6f70d92079474852558a1e8aef01852ede94577dd836cf84ce7f19d6f10b717236c4961431d86de5c0d0aaafedaad51a3a44a6e57224c27f760382e3aba2a0d + "@polkadot/util": 5.8.2-5 + checksum: 6817085ad07ff450d6d01fd1d6b606511bda9dcf30252dfe08e65aa5ef496600f3289812c8e6bae9d7df070d1247b383e424d5f8cdcb448ec05a3c09eb1bb0ec languageName: node linkType: hard -"@polkadot/util@npm:5.8.1, @polkadot/util@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/util@npm:5.8.1" +"@polkadot/util@npm:5.8.2-5, @polkadot/util@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/util@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/x-textdecoder": 5.8.1 - "@polkadot/x-textencoder": 5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/x-textdecoder": 5.8.2-5 + "@polkadot/x-textencoder": 5.8.2-5 "@types/bn.js": ^4.11.6 bn.js: ^4.11.9 camelcase: ^5.3.1 ip-regex: ^4.3.0 - checksum: a269d11eb87aa66394ac825063c1888f85c3ec727f8878d183674e4b4cdf86d4b2982c74f1195a146af30a9116340c5c272063e4d0a0068d7cca203506c5ad20 + checksum: 8a285a5d0ae20dbc50b2a6ae30a4661bd570588a37809670bfc40709609f80b11c75d7c4995c3f9461bfa528fa9883ebf40cf5c42906e2b50a06020af62ffb25 languageName: node linkType: hard @@ -2118,78 +2118,78 @@ __metadata: languageName: node linkType: hard -"@polkadot/x-fetch@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/x-fetch@npm:5.8.1" +"@polkadot/x-fetch@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/x-fetch@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/x-global": 5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/x-global": 5.8.2-5 "@types/node-fetch": ^2.5.8 node-fetch: ^2.6.1 - checksum: 7b9f549cbe352cd7123f20371327d84c3fba562819a8e168d01d20190a2674d716ace5159b0d9ef9a9615acffec4780ef08658490c8d32fdfc81ca43fe4d37dd + checksum: 3eb32dd33bbf0d2545f312e35a80f14363e2bf4d906878de87772dcc33d7b07db46258c5525bfd4f36fc37f2b5f526a646a1e75da5f262ed0f6807eed4dedee1 languageName: node linkType: hard -"@polkadot/x-global@npm:5.8.1, @polkadot/x-global@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/x-global@npm:5.8.1" +"@polkadot/x-global@npm:5.8.2-5, @polkadot/x-global@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/x-global@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 + "@babel/runtime": ^7.13.8 "@types/node-fetch": ^2.5.8 node-fetch: ^2.6.1 - checksum: 9cb6c6607cf3d3eb4a1c8237fec299df0b91e6be2c3295c1bbc8e286adc66189fd1410ea5f5ba339580981b6bda3773fff04e2415c120258042f6f3b7f62d972 + checksum: 3b4a883e5675695b211f3d865c274b00f9b6246be6f4f2be0d1cf4598c03417f6f91f7d8d7a9be2b4e542a738ef98eb2e73df3df9d3c7f9e95ec141b59815b1c languageName: node linkType: hard -"@polkadot/x-randomvalues@npm:5.8.1": - version: 5.8.1 - resolution: "@polkadot/x-randomvalues@npm:5.8.1" +"@polkadot/x-randomvalues@npm:5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/x-randomvalues@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/x-global": 5.8.1 - checksum: 15520a3930349dc5859a0c0e7b4cee4d6e86a69b7f872450b5f5a65d7940e39a43f633c16696e584e9fa67c803769986e9e741aefbf42f2f85a5518067937f21 + "@babel/runtime": ^7.13.8 + "@polkadot/x-global": 5.8.2-5 + checksum: ebec9a8f05528942bd078cb517c4a4ed7cb13c727dfd8a018f897a8b75b03105a62a0eae059fa722ce825eb1656c9648567ee077f6a54c79ffaa415caed94618 languageName: node linkType: hard -"@polkadot/x-rxjs@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/x-rxjs@npm:5.8.1" +"@polkadot/x-rxjs@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/x-rxjs@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 + "@babel/runtime": ^7.13.8 rxjs: ^6.6.6 - checksum: 4bbbdf39b8c54a37d68fd250ba60e868348cb1d5bf49c592ab78e1c4ea05b944880b8c26b094585ba966e38586dfe3d2d3a41688dbd23871e91ccfc4dc442ff8 + checksum: ef058bf1720e476c02f71e8e664a0f6ffbe4db042d46624956a1c2420b95820f88f02f4f8af752b782d7f7deea8164e345b5c768954cbf540674a63ebc3ed303 languageName: node linkType: hard -"@polkadot/x-textdecoder@npm:5.8.1": - version: 5.8.1 - resolution: "@polkadot/x-textdecoder@npm:5.8.1" +"@polkadot/x-textdecoder@npm:5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/x-textdecoder@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/x-global": 5.8.1 - checksum: 2a48c6e84d1ad951d9c7ee683018050c10a2699e2ebe849023b70b2bde54e95b12765133eb6afbc7fa3b551274760b864c38593654fbcf6b6cd0d05b13032ee9 + "@babel/runtime": ^7.13.8 + "@polkadot/x-global": 5.8.2-5 + checksum: 3c33261e29afd3877e4c06abb6cf17b57410909e01b6c1196fa40c474d521b516d0595622967b3a6fe34ed662d162d58ffb650f28c4127235290d3a4ff234132 languageName: node linkType: hard -"@polkadot/x-textencoder@npm:5.8.1": - version: 5.8.1 - resolution: "@polkadot/x-textencoder@npm:5.8.1" +"@polkadot/x-textencoder@npm:5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/x-textencoder@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/x-global": 5.8.1 - checksum: 96b8c0891f359bde9b4568b857273e5a1e3a1d244187a0c6cddc8602d2acd92906262b944d385f840464ec0a101e9e3233a9c7811a1d1a5e173a40266fee8ef8 + "@babel/runtime": ^7.13.8 + "@polkadot/x-global": 5.8.2-5 + checksum: a512a11fa1000a5232cb707629dc5e6bf1da1d44f1ab57e7c5ff450999d5a334845c56cc5975fdd9cdabad9b0699f2feab873070c80c231b5f706fea63c326c8 languageName: node linkType: hard -"@polkadot/x-ws@npm:^5.8.1": - version: 5.8.1 - resolution: "@polkadot/x-ws@npm:5.8.1" +"@polkadot/x-ws@npm:^5.8.2-5": + version: 5.8.2-5 + resolution: "@polkadot/x-ws@npm:5.8.2-5" dependencies: - "@babel/runtime": ^7.13.7 - "@polkadot/x-global": 5.8.1 + "@babel/runtime": ^7.13.8 + "@polkadot/x-global": 5.8.2-5 "@types/websocket": ^1.0.1 websocket: ^1.0.33 - checksum: 7866cb4b9cecb5681564af0c480726c4b4cf96164be6a699d231e887d257caf3bcd90d19f487759052a222249010fffeb135d76fb0161bc03ce41b5ec3f0138a + checksum: 07aed6fe508d634f64bd1e8b58d7d3d59f79605f66f5fb59baf80af04f77e471a858b5c829877e38cb38d5928cb0ed541177a3d78de47664b5152b80b9941eaf languageName: node linkType: hard @@ -7916,15 +7916,15 @@ fsevents@~2.1.2: languageName: node linkType: hard -"nock@npm:^13.0.8": - version: 13.0.8 - resolution: "nock@npm:13.0.8" +"nock@npm:^13.0.9": + version: 13.0.9 + resolution: "nock@npm:13.0.9" dependencies: debug: ^4.1.0 json-stringify-safe: ^5.0.1 lodash.set: ^4.3.2 propagate: ^2.0.0 - checksum: a112509dcf9a7b629a250ec043d6595a5779e115f112d9606a67db280fdb3798fc66318e835ef6475a208137aaafcee18ebed42d893c94165763bbac35d2cd66 + checksum: 20899df4a51e88f8a3d305efe98cd05707cbce398e5b4b2a9e1e45dfbbcdb5f2b6d6ae68ab8a73779435ec44b353ec5674a14f23c498841cd1aff24d395f48ce languageName: node linkType: hard @@ -9401,9 +9401,9 @@ fsevents@~2.1.2: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@babel/core": ^7.13.1 - "@babel/register": ^7.13.0 - "@babel/runtime": ^7.13.7 + "@babel/core": ^7.13.8 + "@babel/register": ^7.13.8 + "@babel/runtime": ^7.13.8 "@polkadot/dev": ^0.61.30 "@polkadot/ts": ^0.3.59 "@polkadot/typegen": "workspace:packages/typegen"