Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92d3a2e208 | ||
|
|
286d7a036e | ||
|
|
4556822a8a | ||
|
|
be227926c8 | ||
|
|
42626a780c | ||
|
|
afd8a9610f | ||
|
|
393334409f | ||
|
|
0fb52a929d | ||
|
|
50b10e214c | ||
|
|
bbadfbebfa | ||
|
|
a52a6253b5 | ||
|
|
4ca010cc99 | ||
|
|
a136d938df | ||
|
|
132ba0128d | ||
|
|
6b705a9838 | ||
|
|
f3381b0aae | ||
|
|
ba086159ad | ||
|
|
3a98323e8b | ||
|
|
1de30914c2 | ||
|
|
984bb7c04f |
+1
-1
@@ -1,4 +1,4 @@
|
||||
6
|
||||
7
|
||||
|
||||
2.6.2
|
||||
2.12.2
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 6.3.1 Apr 25, 2021
|
||||
|
||||
Changes:
|
||||
|
||||
- Added `stringify` util to correctly handle `JSON.stringify` with `BigInt` values
|
||||
- Additional input asserts for non-convertible values in `u8aToU8a`
|
||||
- Adapt `@polkadot/x-global` to return `globalThis` as available
|
||||
- Minor readability cleanups
|
||||
- BN manipulation via in-place shifts (as applicable)
|
||||
- Add explicit `engines` config to `package.json`
|
||||
|
||||
|
||||
## 6.2.1 Apr 18, 2021
|
||||
|
||||
Contributed:
|
||||
|
||||
+4
-4
@@ -21,10 +21,10 @@
|
||||
"test:one": "polkadot-dev-run-test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.13.15",
|
||||
"@polkadot/dev": "^0.62.8",
|
||||
"@polkadot/ts": "^0.3.62",
|
||||
"@babel/core": "^7.13.16",
|
||||
"@polkadot/dev": "^0.62.10",
|
||||
"@polkadot/ts": "^0.3.63",
|
||||
"@types/jest": "^26.0.22"
|
||||
},
|
||||
"version": "6.2.1"
|
||||
"version": "6.3.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/hw-ledger-transports",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"repository": "github:polkadot-js/common",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -11,8 +11,11 @@
|
||||
"browser": "browser.js",
|
||||
"react-native": "react-native.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@ledgerhq/hw-transport-webusb": "^5.49.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger-transports', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger-transports', version: '6.3.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/hw-ledger",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"repository": "github:polkadot-js/common",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -12,10 +12,13 @@
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/hw-ledger-transports": "6.2.1",
|
||||
"@polkadot/util": "^6.2.1",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/hw-ledger-transports": "6.3.1",
|
||||
"@polkadot/util": "^6.3.1",
|
||||
"@zondax/ledger-polkadot": "^0.13.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ export class Ledger {
|
||||
|
||||
constructor (transport: LedgerTypes, chain: Chain) {
|
||||
// u2f is deprecated
|
||||
assert(['hid', 'webusb'].includes(transport), `Unsupported transport ${transport}`);
|
||||
assert(Object.keys(ledgerApps).includes(chain), `Unsupported chain ${chain}`);
|
||||
assert(['hid', 'webusb'].includes(transport), () => `Unsupported transport ${transport}`);
|
||||
assert(Object.keys(ledgerApps).includes(chain), () => `Unsupported chain ${chain}`);
|
||||
|
||||
this.#chain = chain;
|
||||
this.#transport = transport;
|
||||
@@ -73,7 +73,7 @@ export class Ledger {
|
||||
if (!this.#app) {
|
||||
const def = transports.find(({ type }) => type === this.#transport);
|
||||
|
||||
assert(def, `Unable to find a transport for ${this.#transport}`);
|
||||
assert(def, () => `Unable to find a transport for ${this.#transport}`);
|
||||
|
||||
const transport = await def.create();
|
||||
|
||||
@@ -98,7 +98,7 @@ export class Ledger {
|
||||
#wrapError = async <T extends ResponseBase> (promise: Promise<T>): Promise<T> => {
|
||||
const result = await promise;
|
||||
|
||||
assert(result.return_code === LEDGER_SUCCESS_CODE, result.error_message);
|
||||
assert(result.return_code === LEDGER_SUCCESS_CODE, () => result.error_message);
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger', version: '6.3.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/keyring",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "Keyring management",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -12,16 +12,19 @@
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"repository": "github:polkadot-js/common",
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/util": "6.2.1",
|
||||
"@polkadot/util-crypto": "6.2.1"
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/util": "6.3.1",
|
||||
"@polkadot/util-crypto": "6.3.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "6.2.1",
|
||||
"@polkadot/util-crypto": "6.2.1"
|
||||
"@polkadot/util": "6.3.1",
|
||||
"@polkadot/util-crypto": "6.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export class Keyring implements KeyringInstance {
|
||||
constructor (options: KeyringOptions = {}) {
|
||||
options.type = options.type || 'ed25519';
|
||||
|
||||
assert(options && ['ecdsa', 'ethereum', 'ed25519', 'sr25519'].includes(options.type || 'undefined'), `Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${options.type}`);
|
||||
assert(['ecdsa', 'ethereum', 'ed25519', 'sr25519'].includes(options.type || 'undefined'), () => `Expected a keyring type of either 'ed25519', 'sr25519', 'ethereum' or 'ecdsa', found '${options.type || 'unknown'}`);
|
||||
|
||||
this.#pairs = new Pairs();
|
||||
this.#ss58 = options.ss58Format;
|
||||
@@ -168,7 +168,7 @@ export class Keyring implements KeyringInstance {
|
||||
? [type]
|
||||
: type;
|
||||
|
||||
assert(['ed25519', 'sr25519', 'ecdsa', 'ethereum'].includes(cryptoType), `Unknown crypto type ${cryptoType}`);
|
||||
assert(['ed25519', 'sr25519', 'ecdsa', 'ethereum'].includes(cryptoType), () => `Unknown crypto type ${cryptoType}`);
|
||||
|
||||
// Here the address and publicKey are 32 bytes and isomorphic. This is why the address field needs to be the public key for ethereum type pairs
|
||||
const publicKey = isHex(address)
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/keyring', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/keyring', version: '6.3.1' };
|
||||
|
||||
@@ -24,13 +24,11 @@ export class Pairs implements KeyringPairs {
|
||||
public get (address: string | Uint8Array): KeyringPair {
|
||||
const pair = this.#map[decodeAddress(address).toString()];
|
||||
|
||||
assert(pair, (): string => {
|
||||
const formatted: string = isU8a(address) || isHex(address)
|
||||
assert(pair, () => `Unable to retrieve keypair '${
|
||||
isU8a(address) || isHex(address)
|
||||
? u8aToHex(u8aToU8a(address))
|
||||
: address;
|
||||
|
||||
return `Unable to retrieve keypair '${formatted}'`;
|
||||
});
|
||||
: address
|
||||
}'`);
|
||||
|
||||
return pair;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
{
|
||||
"name": "@polkadot/networks",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A list of all available Substrate networks and their applicable prefixes",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"repository": "github:polkadot-js/common",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
@@ -13,10 +16,10 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/networks#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10"
|
||||
"@babel/runtime": "^7.13.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "6.2.1",
|
||||
"@polkadot/x-fetch": "6.2.1"
|
||||
"@polkadot/util": "6.3.1",
|
||||
"@polkadot/x-fetch": "6.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/networks', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/networks', version: '6.3.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-crypto",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A collection of useful crypto utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
@@ -8,6 +8,9 @@
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -16,11 +19,11 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/networks": "6.2.1",
|
||||
"@polkadot/util": "6.2.1",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/networks": "6.3.1",
|
||||
"@polkadot/util": "6.3.1",
|
||||
"@polkadot/wasm-crypto": "^4.0.2",
|
||||
"@polkadot/x-randomvalues": "6.2.1",
|
||||
"@polkadot/x-randomvalues": "6.3.1",
|
||||
"base-x": "^3.0.8",
|
||||
"base64-js": "^1.5.1",
|
||||
"blakejs": "^1.1.0",
|
||||
@@ -41,6 +44,6 @@
|
||||
"@types/xxhashjs": "^0.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "6.2.1"
|
||||
"@polkadot/util": "6.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export function decodeAddress (encoded?: string | Uint8Array | null, ignoreCheck
|
||||
const [isValid, endPos, ss58Length, ss58Decoded] = checkAddressChecksum(decoded);
|
||||
|
||||
assert(ignoreChecksum || isValid, 'Invalid decoded address checksum');
|
||||
assert([-1, ss58Decoded].includes(ss58Format), `Expected ss58Format ${ss58Format}, received ${ss58Decoded}`);
|
||||
assert([-1, ss58Decoded].includes(ss58Format), () => `Expected ss58Format ${ss58Format}, received ${ss58Decoded}`);
|
||||
|
||||
return decoded.slice(ss58Length, endPos);
|
||||
} catch (error) {
|
||||
|
||||
@@ -11,27 +11,27 @@ import { decodeAddress } from './decode';
|
||||
import { defaults } from './defaults';
|
||||
import { sshash } from './sshash';
|
||||
|
||||
export function encodeAddress (_key: Uint8Array | string, ss58Format: Prefix = defaults.prefix): string {
|
||||
export function encodeAddress (key: Uint8Array | string, ss58Format: Prefix = defaults.prefix): string {
|
||||
// decode it, this means we can re-encode an address
|
||||
const key = decodeAddress(_key);
|
||||
const u8a = decodeAddress(key);
|
||||
|
||||
assert(ss58Format >= 0 && ss58Format <= 16383 && ![46, 47].includes(ss58Format), 'Out of range ss58Format specified');
|
||||
assert(defaults.allowedDecodedLengths.includes(key.length), `Expected a valid key to convert, with length ${defaults.allowedDecodedLengths.join(', ')}`);
|
||||
assert(defaults.allowedDecodedLengths.includes(u8a.length), () => `Expected a valid key to convert, with length ${defaults.allowedDecodedLengths.join(', ')}`);
|
||||
|
||||
const isPublicKey = [32, 33].includes(key.length);
|
||||
const input = u8aConcat(
|
||||
new Uint8Array(
|
||||
ss58Format < 64
|
||||
? [ss58Format]
|
||||
: [
|
||||
((ss58Format & 0b0000_0000_1111_1100) >> 2) | 0b0100_0000,
|
||||
(ss58Format >> 8) | ((ss58Format & 0b0000_0000_0000_0011) << 6)
|
||||
]
|
||||
),
|
||||
key
|
||||
ss58Format < 64
|
||||
? [ss58Format]
|
||||
: [
|
||||
((ss58Format & 0b0000_0000_1111_1100) >> 2) | 0b0100_0000,
|
||||
(ss58Format >> 8) | ((ss58Format & 0b0000_0000_0000_0011) << 6)
|
||||
],
|
||||
u8a
|
||||
);
|
||||
|
||||
return base58Encode(
|
||||
u8aConcat(input, sshash(input).subarray(0, isPublicKey ? 2 : 1))
|
||||
u8aConcat(
|
||||
input,
|
||||
sshash(input).subarray(0, [32, 33].includes(u8a.length) ? 2 : 1)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ interface CheckConfig {
|
||||
const BASE_CONFIG = { alphabet: BASE58_ALPHABET, ipfsChar: 'z', type: 'base58' };
|
||||
|
||||
export function validateChars ({ alphabet, ipfsChar, type }: CheckConfig, value?: string | null, ipfsCompat?: boolean): true {
|
||||
assert(value, `Expected non-null, non-empty ${type} input`);
|
||||
assert(!ipfsCompat || value[0] === ipfsChar, `Expected ${type} to start with '${ipfsChar}'`);
|
||||
assert(value, () => `Expected non-null, non-empty ${type} input`);
|
||||
assert(!ipfsCompat || value[0] === ipfsChar, () => `Expected ${type} to start with '${ipfsChar}'`);
|
||||
|
||||
for (let i = (ipfsCompat ? 1 : 0); i < value.length; i++) {
|
||||
assert(alphabet.includes(value[i]), `Invalid ${type} character "${value[i]}" (0x${value.charCodeAt(i).toString(16)}) at index ${i}`);
|
||||
assert(alphabet.includes(value[i]), () => `Invalid ${type} character "${value[i]}" (0x${value.charCodeAt(i).toString(16)}) at index ${i}`);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -28,7 +28,7 @@ export function keyExtractPath (derivePath: string): ExtractResult {
|
||||
});
|
||||
}
|
||||
|
||||
assert(constructed === derivePath, `Re-constructed path "${constructed}" does not match input`);
|
||||
assert(constructed === derivePath, () => `Re-constructed path "${constructed}" does not match input`);
|
||||
|
||||
return {
|
||||
parts,
|
||||
|
||||
@@ -26,7 +26,7 @@ import { mnemonicValidate } from './validate';
|
||||
*/
|
||||
export function mnemonicToLegacySeed (mnemonic: string, password = '', onlyJs = false, byteLength: 32 | 64 = 32): Uint8Array {
|
||||
assert(mnemonicValidate(mnemonic), 'Invalid bip39 mnemonic specified');
|
||||
assert([32, 64].includes(byteLength), `Invalid seed length ${byteLength}, expected 32 or 64`);
|
||||
assert([32, 64].includes(byteLength), () => `Invalid seed length ${byteLength}, expected 32 or 64`);
|
||||
|
||||
if (byteLength && byteLength === 32) {
|
||||
return isReady() && !onlyJs
|
||||
|
||||
@@ -25,8 +25,8 @@ export function naclVerify (message: Uint8Array | string, signature: Uint8Array
|
||||
const publicKeyU8a = u8aToU8a(publicKey);
|
||||
const signatureU8a = u8aToU8a(signature);
|
||||
|
||||
assert(publicKeyU8a.length === 32, `Invalid publicKey, received ${publicKeyU8a.length}, expected 32`);
|
||||
assert(signatureU8a.length === 64, `Invalid signature, received ${signatureU8a.length} bytes, expected 64`);
|
||||
assert(publicKeyU8a.length === 32, () => `Invalid publicKey, received ${publicKeyU8a.length}, expected 32`);
|
||||
assert(signatureU8a.length === 64, () => `Invalid signature, received ${signatureU8a.length} bytes, expected 64`);
|
||||
|
||||
return isReady() && !onlyJs
|
||||
? ed25519Verify(signatureU8a, messageU8a, publicKeyU8a)
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/util-crypto', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/util-crypto', version: '6.3.1' };
|
||||
|
||||
@@ -12,8 +12,8 @@ export function schnorrkelVerify (message: Uint8Array | string, signature: Uint8
|
||||
const publicKeyU8a = u8aToU8a(publicKey);
|
||||
const signatureU8a = u8aToU8a(signature);
|
||||
|
||||
assert(publicKeyU8a.length === 32, `Invalid publicKey, received ${publicKeyU8a.length} bytes, expected 32`);
|
||||
assert(signatureU8a.length === 64, `Invalid signature, received ${signatureU8a.length} bytes, expected 64`);
|
||||
assert(publicKeyU8a.length === 32, () => `Invalid publicKey, received ${publicKeyU8a.length} bytes, expected 32`);
|
||||
assert(signatureU8a.length === 64, () => `Invalid signature, received ${signatureU8a.length} bytes, expected 64`);
|
||||
|
||||
return sr25519Verify(signatureU8a, u8aToU8a(message), publicKeyU8a);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ function verifyDetect (result: VerifyResult, { message, publicKey, signature }:
|
||||
}
|
||||
|
||||
function verifyMultisig (result: VerifyResult, { message, publicKey, signature }: VerifyInput): VerifyResult {
|
||||
assert([0, 1, 2].includes(signature[0]), `Unknown crypto type, expected signature prefix [0..2], found ${signature[0]}`);
|
||||
assert([0, 1, 2].includes(signature[0]), () => `Unknown crypto type, expected signature prefix [0..2], found ${signature[0]}`);
|
||||
|
||||
const type = CRYPTO_TYPES[signature[0]] || 'none';
|
||||
|
||||
@@ -77,7 +77,7 @@ function verifyMultisig (result: VerifyResult, { message, publicKey, signature }
|
||||
export function signatureVerify (message: Uint8Array | string, signature: Uint8Array | string, addressOrPublicKey: Uint8Array | string): VerifyResult {
|
||||
const signatureU8a = u8aToU8a(signature);
|
||||
|
||||
assert([64, 65, 66].includes(signatureU8a.length), `Invalid signature length, expected [64..66] bytes, found ${signatureU8a.length}`);
|
||||
assert([64, 65, 66].includes(signatureU8a.length), () => `Invalid signature length, expected [64..66] bytes, found ${signatureU8a.length}`);
|
||||
|
||||
const publicKey = decodeAddress(addressOrPublicKey);
|
||||
const input = { message, publicKey, signature: signatureU8a };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A collection of useful utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
@@ -8,6 +8,9 @@
|
||||
"./detectPackage.js",
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -16,9 +19,9 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/x-textdecoder": "6.2.1",
|
||||
"@polkadot/x-textencoder": "6.2.1",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/x-textdecoder": "6.3.1",
|
||||
"@polkadot/x-textencoder": "6.3.1",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.11.9",
|
||||
"camelcase": "^5.3.1",
|
||||
|
||||
@@ -9,6 +9,8 @@ import { assert } from '../assert';
|
||||
import { BN_MAX_INTEGER, BN_ONE, BN_ZERO } from '../bn';
|
||||
import { bnToBn } from './toBn';
|
||||
|
||||
const SQRT_MAX_SAFE_INTEGER = new BN(94906265);
|
||||
|
||||
/**
|
||||
* @name bnSqrt
|
||||
* @summary Calculates the integer square root of a BN
|
||||
@@ -35,7 +37,7 @@ export function bnSqrt <ExtToBn extends ToBn> (value: ExtToBn | BN | BigInt | st
|
||||
|
||||
// Use sqrt(MAX_SAFE_INTEGER) as starting point. since we already know the
|
||||
// output will be larger than this, we expect this to be a safe start
|
||||
let x0 = new BN(94906265);
|
||||
let x0 = SQRT_MAX_SAFE_INTEGER.clone();
|
||||
|
||||
while (true) {
|
||||
const x1 = n.div(x0).iadd(x0).ishrn(1);
|
||||
|
||||
@@ -10,14 +10,6 @@ import { isBigInt } from '../is/bigInt';
|
||||
import { isHex } from '../is/hex';
|
||||
import { isToBn } from '../is/toBn';
|
||||
|
||||
function numberToBn <ExtToBn extends ToBn> (value: number | ExtToBn | BN): BN {
|
||||
return BN.isBN(value)
|
||||
? value
|
||||
: isToBn(value)
|
||||
? value.toBn()
|
||||
: new BN(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @name bnToBn
|
||||
* @summary Creates a BN value from a BN, BigInt, string (base 10 or hex) or number input.
|
||||
@@ -43,5 +35,9 @@ export function bnToBn <ExtToBn extends ToBn> (value?: ExtToBn | BN | BigInt | s
|
||||
return new BN(value.toString());
|
||||
}
|
||||
|
||||
return numberToBn(value);
|
||||
return BN.isBN(value)
|
||||
? value
|
||||
: isToBn(value)
|
||||
? value.toBn()
|
||||
: new BN(value);
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ import { assert } from '../assert';
|
||||
export function checkMaxMin (type: 'max' | 'min', items: BN[]): BN {
|
||||
assert(items.length >= 1, 'Must provide one or more BN arguments');
|
||||
|
||||
return items.reduce((acc: BN, val: BN) => BN[type](acc, val), items[0]);
|
||||
return items.reduce<BN>((a, v) => BN[type](a, v), items[0]);
|
||||
}
|
||||
|
||||
@@ -15,25 +15,28 @@ describe('compactFromU8a', (): void => {
|
||||
|
||||
it('decodes from same u16 encoded value', (): void => {
|
||||
expect(
|
||||
compactFromU8a(new Uint8Array([0b11111101, 0b00000111]), 32)
|
||||
compactFromU8a(new Uint8Array([0b11111101, 0b00000111]))
|
||||
).toEqual([2, new BN(511)]);
|
||||
});
|
||||
|
||||
it('decodes from same u32 encoded value (short)', (): void => {
|
||||
expect(
|
||||
compactFromU8a(new Uint8Array([254, 255, 3, 0]), 32)
|
||||
).toEqual([4, new BN(0xffff)]);
|
||||
compactFromU8a(new Uint8Array([254, 255, 3, 0]))
|
||||
).toEqual(
|
||||
// since we use in-place, the words are different... HACK it
|
||||
[4, new BN(0xffff).ishln(16).ishrn(16)]
|
||||
);
|
||||
});
|
||||
|
||||
it('decodes from same u32 encoded value (full)', (): void => {
|
||||
expect(
|
||||
compactFromU8a(new Uint8Array([3, 249, 255, 255, 255]), 32)
|
||||
compactFromU8a(new Uint8Array([3, 249, 255, 255, 255]))
|
||||
).toEqual([5, new BN(0xfffffff9)]);
|
||||
});
|
||||
|
||||
it('decodes from same u32 as u64 encoded value (full, default)', (): void => {
|
||||
expect(
|
||||
compactFromU8a(new Uint8Array([3 + ((4 - 4) << 2), 249, 255, 255, 255]), 64)
|
||||
compactFromU8a(new Uint8Array([3 + ((4 - 4) << 2), 249, 255, 255, 255]))
|
||||
).toEqual([5, new BN(0xfffffff9)]);
|
||||
});
|
||||
|
||||
@@ -44,4 +47,12 @@ describe('compactFromU8a', (): void => {
|
||||
)
|
||||
).toEqual([7, new BN('5af3107a4000', 16)]);
|
||||
});
|
||||
|
||||
it('decodes an actual value', (): void => {
|
||||
expect(
|
||||
compactFromU8a(
|
||||
hexToU8a('0x0284d717')
|
||||
)[1].toString()
|
||||
).toEqual('100000000');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BitLength } from './types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { BN_FOUR } from '../bn';
|
||||
import { u8aToBn, u8aToU8a } from '../u8a';
|
||||
import { DEFAULT_BITLENGTH } from './defaults';
|
||||
|
||||
/**
|
||||
* @name compactFromU8a
|
||||
@@ -17,29 +15,29 @@ import { DEFAULT_BITLENGTH } from './defaults';
|
||||
* ```javascript
|
||||
* import { compactFromU8a } from '@polkadot/util';
|
||||
*
|
||||
* const [offset, length] = compactFromU8a(new Uint8Array([254, 255, 3, 0]), 32));
|
||||
* const [offset, length] = compactFromU8a(new Uint8Array([254, 255, 3, 0]));
|
||||
*
|
||||
* console.log('value offset=', offset, 'length=', length); // 4, 0xffff
|
||||
* ```
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export function compactFromU8a (_input: Uint8Array | string, bitLength: BitLength = DEFAULT_BITLENGTH): [number, BN] {
|
||||
export function compactFromU8a (_input: Buffer | Uint8Array | string | number[]): [number, BN] {
|
||||
const input = u8aToU8a(_input);
|
||||
const flag = input[0] & 0b11;
|
||||
|
||||
if (flag === 0b00) {
|
||||
return [1, new BN(input[0]).shrn(2)];
|
||||
return [1, new BN(input[0]).ishrn(2)];
|
||||
} else if (flag === 0b01) {
|
||||
return [2, u8aToBn(input.slice(0, 2), true).shrn(2)];
|
||||
return [2, u8aToBn(input.slice(0, 2), true).ishrn(2)];
|
||||
} else if (flag === 0b10) {
|
||||
return [4, u8aToBn(input.slice(0, 4), true).shrn(2)];
|
||||
return [4, u8aToBn(input.slice(0, 4), true).ishrn(2)];
|
||||
}
|
||||
|
||||
const length = new BN(input[0])
|
||||
.shrn(2) // clear flag
|
||||
.addn(4) // add 4 for base length
|
||||
.toNumber();
|
||||
const offset = 1 + length;
|
||||
const offset = 1 + (
|
||||
new BN(input[0])
|
||||
.ishrn(2) // clear flag
|
||||
.iadd(BN_FOUR) // add 4 for base length
|
||||
.toNumber()
|
||||
);
|
||||
|
||||
return [offset, u8aToBn(input.subarray(1, offset), true)];
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { BitLength } from './types';
|
||||
|
||||
import { DEFAULT_BITLENGTH } from './defaults';
|
||||
import { compactFromU8a } from './fromU8a';
|
||||
|
||||
/**
|
||||
@@ -18,8 +15,8 @@ import { compactFromU8a } from './fromU8a';
|
||||
* console.log(compactStripLength(new Uint8Array([2 << 2, 0xde, 0xad]))); // [2, Uint8Array[0xde, 0xad]]
|
||||
* ```
|
||||
*/
|
||||
export function compactStripLength (input: Uint8Array, bitLength: BitLength = DEFAULT_BITLENGTH): [number, Uint8Array] {
|
||||
const [offset, length] = compactFromU8a(input, bitLength);
|
||||
export function compactStripLength (input: Uint8Array): [number, Uint8Array] {
|
||||
const [offset, length] = compactFromU8a(input);
|
||||
const total = offset + length.toNumber();
|
||||
|
||||
return [
|
||||
|
||||
@@ -72,6 +72,13 @@ describe('encode', (): void => {
|
||||
);
|
||||
});
|
||||
|
||||
it('does not modify the original', (): void => {
|
||||
const original = new BN(123456);
|
||||
|
||||
expect(compactToU8a(original)).toEqual(new Uint8Array([2, 137, 7, 0]));
|
||||
expect(original.toString()).toEqual('123456');
|
||||
});
|
||||
|
||||
describe('from Rust', (): void => {
|
||||
// Copied from https://github.com/paritytech/parity-codec/blob/master/src/codec.rs
|
||||
const testCases = [
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { assert } from '../assert';
|
||||
import { bnToBn, bnToU8a } from '../bn';
|
||||
import { BN_ONE, BN_TWO, bnToBn, bnToU8a } from '../bn';
|
||||
import { u8aConcat } from '../u8a';
|
||||
|
||||
const MAX_U8 = new BN(2).pow(new BN(8 - 2)).subn(1);
|
||||
@@ -29,9 +29,9 @@ export function compactToU8a (_value: BN | BigInt | number): Uint8Array {
|
||||
if (value.lte(MAX_U8)) {
|
||||
return new Uint8Array([value.toNumber() << 2]);
|
||||
} else if (value.lte(MAX_U16)) {
|
||||
return bnToU8a(value.shln(2).addn(0b01), 16, true);
|
||||
return bnToU8a(value.shln(2).iadd(BN_ONE), 16, true);
|
||||
} else if (value.lte(MAX_U32)) {
|
||||
return bnToU8a(value.shln(2).addn(0b10), 32, true);
|
||||
return bnToU8a(value.shln(2).iadd(BN_TWO), 32, true);
|
||||
}
|
||||
|
||||
const u8a = bnToU8a(value);
|
||||
@@ -42,13 +42,11 @@ export function compactToU8a (_value: BN | BigInt | number): Uint8Array {
|
||||
length--;
|
||||
}
|
||||
|
||||
assert(length >= 4, 'Previous tests match anyting less than 2^30; qed');
|
||||
assert(length >= 4, 'Invalid length, previous checks match anything less than 2^30');
|
||||
|
||||
return u8aConcat(
|
||||
new Uint8Array([
|
||||
// substract 4 as minimum (also catered for in decoding)
|
||||
((length - 4) << 2) + 0b11
|
||||
]),
|
||||
// subtract 4 as minimum (also catered for in decoding)
|
||||
[((length - 4) << 2) + 0b11],
|
||||
u8a.subarray(0, length)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -22,9 +22,5 @@ export function hexAddPrefix (value?: string | null): string {
|
||||
return value;
|
||||
}
|
||||
|
||||
const prefix = value && value.length % 2 === 1
|
||||
? '0'
|
||||
: '';
|
||||
|
||||
return `0x${prefix}${value || ''}`;
|
||||
return `0x${value && value.length % 2 === 1 ? '0' : ''}${value || ''}`;
|
||||
}
|
||||
|
||||
@@ -22,13 +22,9 @@ const UNPREFIX_HEX_REGEX = /^[a-fA-F0-9]+$/;
|
||||
export function hexStripPrefix (value?: string | null): string {
|
||||
if (!value) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (hexHasPrefix(value)) {
|
||||
} else if (hexHasPrefix(value)) {
|
||||
return value.substr(2);
|
||||
}
|
||||
|
||||
if (UNPREFIX_HEX_REGEX.test(value)) {
|
||||
} else if (UNPREFIX_HEX_REGEX.test(value)) {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ function reverse (value: string): string {
|
||||
|
||||
/**
|
||||
* @name hexToBn
|
||||
* @summary Creates a BN.js bignumber object from a hex string.
|
||||
* @summary Creates a BN.js object from a hex string.
|
||||
* @description
|
||||
* `null` inputs returns a `BN(0)` result. Hex input values return the actual value converted to a BN. Anything that is not a hex string (including the `0x` prefix) throws an error.
|
||||
* @param _value The value to convert
|
||||
@@ -43,7 +43,6 @@ export function hexToBn (value?: string | number | null, options: ToBnOptions |
|
||||
// Backwards-compatibility
|
||||
...(isBoolean(options) ? { isLe: options } : options)
|
||||
};
|
||||
|
||||
const _value = hexStripPrefix(value as string);
|
||||
|
||||
// FIXME: Use BN's 3rd argument `isLe` once this issue is fixed
|
||||
|
||||
@@ -25,7 +25,7 @@ export function hexToU8a (_value?: string | null, bitLength = -1): Uint8Array {
|
||||
return new Uint8Array();
|
||||
}
|
||||
|
||||
assert(isHex(_value), `Expected hex value to convert, found '${_value}'`);
|
||||
assert(isHex(_value), () => `Expected hex value to convert, found '${_value}'`);
|
||||
|
||||
const value = hexStripPrefix(_value);
|
||||
const valLength = value.length / 2;
|
||||
|
||||
@@ -22,5 +22,6 @@ export * from './memoize';
|
||||
export * from './number';
|
||||
export * from './promisify';
|
||||
export * from './string';
|
||||
export * from './stringify';
|
||||
export * from './u8a';
|
||||
export * from './versionDetect';
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { stringify } from '../stringify';
|
||||
|
||||
interface ObjectIndexed {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
[index: string]: any;
|
||||
@@ -32,13 +34,13 @@ interface ObjectIndexed {
|
||||
*/
|
||||
export function isJsonObject (value: unknown): value is ObjectIndexed {
|
||||
const str = typeof value !== 'string'
|
||||
? JSON.stringify(value)
|
||||
? stringify(value)
|
||||
: value;
|
||||
|
||||
try {
|
||||
const obj = JSON.parse(str) as unknown;
|
||||
|
||||
return (typeof obj === 'object' && obj !== null);
|
||||
return typeof obj === 'object' && obj !== null;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
import type { Memoized } from './types';
|
||||
|
||||
import { isBigInt } from './is/bigInt';
|
||||
import { isUndefined } from './is/undefined';
|
||||
import { stringify } from './stringify';
|
||||
|
||||
interface Options {
|
||||
getInstanceId?: () => string;
|
||||
@@ -14,20 +14,12 @@ function defaultGetId (): string {
|
||||
return 'none';
|
||||
}
|
||||
|
||||
function normalize (args: unknown[]): string {
|
||||
return JSON.stringify(args, (_, value: unknown) =>
|
||||
isBigInt(value)
|
||||
? value.toString()
|
||||
: value
|
||||
);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function memoize <T, F extends (...args: any[]) => T> (fn: F, { getInstanceId = defaultGetId }: Options = {}): Memoized<F> {
|
||||
const cache: Record<string, Record<string, T>> = {};
|
||||
|
||||
const memoized = (...args: unknown[]): T => {
|
||||
const stringParams = normalize(args);
|
||||
const stringParams = stringify(args);
|
||||
const instanceId = getInstanceId();
|
||||
|
||||
if (!cache[instanceId]) {
|
||||
@@ -42,7 +34,7 @@ export function memoize <T, F extends (...args: any[]) => T> (fn: F, { getInstan
|
||||
};
|
||||
|
||||
memoized.unmemoize = (...args: unknown[]): void => {
|
||||
const stringParams = normalize(args);
|
||||
const stringParams = stringify(args);
|
||||
const instanceId = getInstanceId();
|
||||
|
||||
if (cache[instanceId] && !isUndefined(cache[instanceId][stringParams])) {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/util', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/util', version: '6.3.1' };
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { stringify } from './stringify';
|
||||
|
||||
describe('stringify', (): void => {
|
||||
it('stringifies a BigInt', (): void => {
|
||||
expect(
|
||||
stringify(1234n)
|
||||
).toEqual('"1234"');
|
||||
});
|
||||
|
||||
it('stringifies an array of values', (): void => {
|
||||
expect(
|
||||
stringify(['a', 1, 2n, new BN(3)])
|
||||
).toEqual('["a",1,"2","3"]');
|
||||
});
|
||||
|
||||
it('stringifies an array of values (with spaces)', (): void => {
|
||||
expect(
|
||||
stringify(['a', 1, 2n, new BN(3)], 2)
|
||||
).toEqual('[\n "a",\n 1,\n "2",\n "3"\n]');
|
||||
});
|
||||
|
||||
it('stringifies a nested object', (): void => {
|
||||
expect(
|
||||
stringify({ a: 'a', b: 1, c: { d: 2n, e: new BN(3) } })
|
||||
).toEqual('{"a":"a","b":1,"c":{"d":"2","e":"3"}}');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { isBigInt } from './is/bigInt';
|
||||
|
||||
export function stringify (args: unknown, space?: string | number): string {
|
||||
return JSON.stringify(
|
||||
args,
|
||||
(_, value: unknown) =>
|
||||
isBigInt(value)
|
||||
? value.toString()
|
||||
: value,
|
||||
space
|
||||
);
|
||||
}
|
||||
@@ -23,11 +23,10 @@ import { u8aToU8a } from './toU8a';
|
||||
export function u8aConcat (...list: (Buffer | Uint8Array | number[] | string)[]): Uint8Array {
|
||||
let length = 0;
|
||||
let offset = 0;
|
||||
const u8as = new Array(list.length) as Uint8Array[];
|
||||
const u8as = new Array<Uint8Array>(list.length);
|
||||
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
u8as[i] = u8aToU8a(list[i]);
|
||||
|
||||
length += u8as[i].length;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,5 @@
|
||||
* ```
|
||||
*/
|
||||
export function u8aToBuffer (value?: Uint8Array | null): Buffer {
|
||||
return !value
|
||||
? Buffer.from([])
|
||||
: Buffer.from(value);
|
||||
return Buffer.from(value || []);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ const ALPHABET = new Array(256).fill(0).map((_, n) => n.toString(16).padStart(2,
|
||||
|
||||
/** @internal */
|
||||
function extract (value: Uint8Array): string {
|
||||
const result = new Array(value.length) as string[];
|
||||
const result = new Array<string>(value.length);
|
||||
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
result[i] = ALPHABET[value[i]];
|
||||
@@ -44,8 +44,9 @@ export function u8aToHex (value?: Uint8Array | null, bitLength = -1, isPrefixed
|
||||
|
||||
const byteLength = Math.ceil(bitLength / 8);
|
||||
|
||||
return prefix + ((byteLength > 0 && value.length > byteLength)
|
||||
? trim(value, Math.ceil(byteLength / 2))
|
||||
: extract(value)
|
||||
return prefix + (
|
||||
(byteLength > 0 && value.length > byteLength)
|
||||
? trim(value, Math.ceil(byteLength / 2))
|
||||
: extract(value)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -40,6 +40,14 @@ describe('u8aToU8a', (): void => {
|
||||
);
|
||||
});
|
||||
|
||||
it('creates from a Buffer', (): void => {
|
||||
expect(
|
||||
u8aToU8a(Buffer.from([1, 2, 3, 128, 0, 10, 11, 12]))
|
||||
).toEqual(
|
||||
new Uint8Array([1, 2, 3, 128, 0, 10, 11, 12])
|
||||
);
|
||||
});
|
||||
|
||||
it('returns a Uint8Array as-is (u8a input)', (): void => {
|
||||
expect(
|
||||
u8aToU8a(new Uint8Array([128, 0, 10]))
|
||||
@@ -47,4 +55,11 @@ describe('u8aToU8a', (): void => {
|
||||
new Uint8Array([128, 0, 10])
|
||||
);
|
||||
});
|
||||
|
||||
it('fails to create from unknown typed values', (): void => {
|
||||
expect(
|
||||
// this is where completely invalid data is being passed
|
||||
() => u8aToU8a(123 as unknown as Uint8Array)
|
||||
).toThrow('Unable to convert 123 (typeof number) to a Uint8Array');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,25 +1,14 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { bufferToU8a } from '../buffer/toU8a';
|
||||
import { assert } from '../assert';
|
||||
import { hexToU8a } from '../hex/toU8a';
|
||||
import { isBuffer } from '../is/buffer';
|
||||
import { isHex } from '../is/hex';
|
||||
import { isString } from '../is/string';
|
||||
import { isU8a } from '../is/u8a';
|
||||
import { stringToU8a } from '../string/toU8a';
|
||||
|
||||
function convertArray (value: number[] | Uint8Array): Uint8Array {
|
||||
return Array.isArray(value)
|
||||
? Uint8Array.from(value)
|
||||
: value;
|
||||
}
|
||||
|
||||
function convertString (value: string): Uint8Array {
|
||||
return isHex(value)
|
||||
? hexToU8a(value)
|
||||
: stringToU8a(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @name u8aToU8a
|
||||
* @summary Creates a Uint8Array value from a Uint8Array, Buffer, string or hex input.
|
||||
@@ -29,7 +18,7 @@ function convertString (value: string): Uint8Array {
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { { u8aToU8a } from '@polkadot/util';
|
||||
* import { u8aToU8a } from '@polkadot/util';
|
||||
*
|
||||
* u8aToU8a(new Uint8Array([0x12, 0x34]); // => Uint8Array([0x12, 0x34])
|
||||
* u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])
|
||||
@@ -38,11 +27,15 @@ function convertString (value: string): Uint8Array {
|
||||
export function u8aToU8a (value?: number[] | Buffer | Uint8Array | string | null): Uint8Array {
|
||||
if (!value) {
|
||||
return new Uint8Array();
|
||||
} else if (isBuffer(value)) {
|
||||
return bufferToU8a(value);
|
||||
} else if (isString(value)) {
|
||||
return convertString(value);
|
||||
return isHex(value)
|
||||
? hexToU8a(value)
|
||||
: stringToU8a(value);
|
||||
} else if (Array.isArray(value) || isBuffer(value)) {
|
||||
return new Uint8Array(value);
|
||||
}
|
||||
|
||||
return convertArray(value);
|
||||
assert(isU8a(value), () => `Unable to convert ${value.toString()} (typeof ${typeof value}) to a Uint8Array`);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ function getPath (pathOrFn?: FnString | string | false): string {
|
||||
* @summary Checks that a specific package is only imported once
|
||||
*/
|
||||
export function detectPackage ({ name, version }: PackageJson, pathOrFn?: FnString | string | false, deps: PackageJson[] = []): void {
|
||||
assert(name.startsWith('@polkadot'), `Invalid package descriptor ${name}`);
|
||||
assert(name.startsWith('@polkadot'), () => `Invalid package descriptor ${name}`);
|
||||
|
||||
const entry = getEntry(name);
|
||||
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{
|
||||
"name": "@polkadot/x-fetch",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment fetch replacement",
|
||||
"browser": "browser.js",
|
||||
"main": "node.js",
|
||||
"react-native": "react-native.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -15,8 +18,8 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-fetch#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/x-global": "6.2.1",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/x-global": "6.3.1",
|
||||
"@types/node-fetch": "^2.5.10",
|
||||
"node-fetch": "^2.6.1"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-fetch', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-fetch', version: '6.3.1' };
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
{
|
||||
"name": "@polkadot/x-global",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment global replacement",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -13,7 +16,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-global#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@types/node-fetch": "^2.5.10",
|
||||
"node-fetch": "^2.6.1"
|
||||
}
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
export { packageInfo } from './packageInfo';
|
||||
|
||||
export const xglobal = (
|
||||
typeof global !== 'undefined'
|
||||
? global
|
||||
: typeof self !== 'undefined'
|
||||
? self
|
||||
: typeof window !== 'undefined'
|
||||
? window
|
||||
: this as unknown as (Window & typeof globalThis)
|
||||
typeof globalThis !== 'undefined'
|
||||
? globalThis
|
||||
: typeof global !== 'undefined'
|
||||
? global
|
||||
: typeof self !== 'undefined'
|
||||
? self
|
||||
: typeof window !== 'undefined'
|
||||
? window
|
||||
: this as unknown as (Window & typeof globalThis)
|
||||
);
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-global', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-global', version: '6.3.1' };
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{
|
||||
"name": "@polkadot/x-randomvalues",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment window.crypto.getRandomValues replacement",
|
||||
"browser": "browser.js",
|
||||
"main": "node.js",
|
||||
"react-native": "react-native.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -15,10 +18,10 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-randomvalues#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/x-global": "6.2.1"
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/x-global": "6.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-native": "^0.64.2"
|
||||
"@types/react-native": "^0.64.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-randomvalues', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-randomvalues', version: '6.3.1' };
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
{
|
||||
"name": "@polkadot/x-rxjs",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A pass-through interface for RxJs (allowing node + mjs usage)",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -13,7 +16,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-rxjs#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"rxjs": "^6.6.7"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-rxjs', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-rxjs', version: '6.3.1' };
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{
|
||||
"name": "@polkadot/x-textdecoder",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A TextDecoder replacement",
|
||||
"browser": "browser.js",
|
||||
"main": "node.js",
|
||||
"react-native": "react-native.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -15,7 +18,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textdecoder#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/x-global": "6.2.1"
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/x-global": "6.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-textdecoder', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-textdecoder', version: '6.3.1' };
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{
|
||||
"name": "@polkadot/x-textencoder",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A TextDecoder replacement",
|
||||
"browser": "browser.js",
|
||||
"main": "node.js",
|
||||
"react-native": "react-native.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -15,7 +18,7 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textencoder#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/x-global": "6.2.1"
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/x-global": "6.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-textencoder', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-textencoder', version: '6.3.1' };
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{
|
||||
"name": "@polkadot/x-ws",
|
||||
"version": "6.2.1",
|
||||
"version": "6.3.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment WebSocket replacement",
|
||||
"browser": "browser.js",
|
||||
"main": "node.js",
|
||||
"react-native": "react-native.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"maintainers": [],
|
||||
"contributors": [],
|
||||
@@ -15,8 +18,8 @@
|
||||
"bugs": "https://github.com/polkadot-js/common/issues",
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-ws#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.13.10",
|
||||
"@polkadot/x-global": "6.2.1",
|
||||
"@babel/runtime": "^7.13.17",
|
||||
"@polkadot/x-global": "6.3.1",
|
||||
"@types/websocket": "^1.0.2",
|
||||
"websocket": "^1.0.34"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-ws', version: '6.2.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-ws', version: '6.3.1' };
|
||||
|
||||
@@ -5,9 +5,9 @@ __metadata:
|
||||
version: 4
|
||||
cacheKey: 7
|
||||
|
||||
"@babel/cli@npm:^7.13.14":
|
||||
version: 7.13.14
|
||||
resolution: "@babel/cli@npm:7.13.14"
|
||||
"@babel/cli@npm:^7.13.16":
|
||||
version: 7.13.16
|
||||
resolution: "@babel/cli@npm:7.13.16"
|
||||
dependencies:
|
||||
"@nicolo-ribaudo/chokidar-2": 2.1.8-no-fsevents
|
||||
chokidar: ^3.4.0
|
||||
@@ -15,7 +15,6 @@ __metadata:
|
||||
convert-source-map: ^1.1.0
|
||||
fs-readdir-recursive: ^1.1.0
|
||||
glob: ^7.0.0
|
||||
lodash: ^4.17.19
|
||||
make-dir: ^2.1.0
|
||||
slash: ^2.0.0
|
||||
source-map: ^0.5.0
|
||||
@@ -29,7 +28,7 @@ __metadata:
|
||||
bin:
|
||||
babel: ./bin/babel.js
|
||||
babel-external-helpers: ./bin/babel-external-helpers.js
|
||||
checksum: 6259a752460c92685ce6c4d4a63f2010081add799388bce003b8a2278e9ce94fd6b470ab511fbab509da2034631539d030932059ca343b1a09433ed88032e91f
|
||||
checksum: 97324cb2b8469b61452bc189a7de4b4d248a4b5fb9a697a3a2f9388f85f1291ac58fe8f5eeb9d419652d4e9e242d970db845578a31a1a118227625faf955ca7f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -51,44 +50,44 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/compat-data@npm:^7.13.11, @babel/compat-data@npm:^7.13.12, @babel/compat-data@npm:^7.13.15, @babel/compat-data@npm:^7.13.8":
|
||||
"@babel/compat-data@npm:^7.13.11, @babel/compat-data@npm:^7.13.15, @babel/compat-data@npm:^7.13.8":
|
||||
version: 7.13.15
|
||||
resolution: "@babel/compat-data@npm:7.13.15"
|
||||
checksum: 6abe95cbd36e54217cdcc51829e377cf31451ed0a64ff43cc82e0ce728d9e265990c5e079d5c3f9ee0afd49e20d6c90112fe2093ed0699c2ffc62f5172df24fa
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/core@npm:7.13.15, @babel/core@npm:^7.1.0, @babel/core@npm:^7.13.15, @babel/core@npm:^7.7.5":
|
||||
version: 7.13.15
|
||||
resolution: "@babel/core@npm:7.13.15"
|
||||
"@babel/core@npm:7.13.16, @babel/core@npm:^7.1.0, @babel/core@npm:^7.13.16, @babel/core@npm:^7.7.5":
|
||||
version: 7.13.16
|
||||
resolution: "@babel/core@npm:7.13.16"
|
||||
dependencies:
|
||||
"@babel/code-frame": ^7.12.13
|
||||
"@babel/generator": ^7.13.9
|
||||
"@babel/helper-compilation-targets": ^7.13.13
|
||||
"@babel/generator": ^7.13.16
|
||||
"@babel/helper-compilation-targets": ^7.13.16
|
||||
"@babel/helper-module-transforms": ^7.13.14
|
||||
"@babel/helpers": ^7.13.10
|
||||
"@babel/parser": ^7.13.15
|
||||
"@babel/helpers": ^7.13.16
|
||||
"@babel/parser": ^7.13.16
|
||||
"@babel/template": ^7.12.13
|
||||
"@babel/traverse": ^7.13.15
|
||||
"@babel/types": ^7.13.14
|
||||
"@babel/types": ^7.13.16
|
||||
convert-source-map: ^1.7.0
|
||||
debug: ^4.1.0
|
||||
gensync: ^1.0.0-beta.2
|
||||
json5: ^2.1.2
|
||||
semver: ^6.3.0
|
||||
source-map: ^0.5.0
|
||||
checksum: 818377633fa89d9b333c1a71625f9398e9e5a92270209cc8b5392e36385b5fe61210b2b31fb114ffe255974a3341cdfaa9e89a0fa81fabba9f6c14332fb72a02
|
||||
checksum: 1a53b70629fae3c5b714af1c582a92ffbb1a87d0f8fe705292faed6281476bf0a35ffa19d9d28ad791610d203fdbb8928e28aedb52a02023a561caaa44a9ee61
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/generator@npm:^7.13.9":
|
||||
version: 7.13.9
|
||||
resolution: "@babel/generator@npm:7.13.9"
|
||||
"@babel/generator@npm:^7.13.16":
|
||||
version: 7.13.16
|
||||
resolution: "@babel/generator@npm:7.13.16"
|
||||
dependencies:
|
||||
"@babel/types": ^7.13.0
|
||||
"@babel/types": ^7.13.16
|
||||
jsesc: ^2.5.1
|
||||
source-map: ^0.5.0
|
||||
checksum: d9cf7db910dd703a55c3ba147a8024564d51de06f5e3e61aef6ca197bcd80a6cb0a633fe4688c8c9f6226c70ee6f32a747050a8e420972b45cc98a6b3fc5ae66
|
||||
checksum: 299bf875ea550f52d157260804bf5b1acdc27269ae7287e53a1a5a602ff6052a466f4a4c03dc7377b3f2d5240eea5ee92162e2a943acb4d28e017ac89ab89e9d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -111,17 +110,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helper-compilation-targets@npm:^7.13.0, @babel/helper-compilation-targets@npm:^7.13.13, @babel/helper-compilation-targets@npm:^7.13.8":
|
||||
version: 7.13.13
|
||||
resolution: "@babel/helper-compilation-targets@npm:7.13.13"
|
||||
"@babel/helper-compilation-targets@npm:^7.13.0, @babel/helper-compilation-targets@npm:^7.13.13, @babel/helper-compilation-targets@npm:^7.13.16, @babel/helper-compilation-targets@npm:^7.13.8":
|
||||
version: 7.13.16
|
||||
resolution: "@babel/helper-compilation-targets@npm:7.13.16"
|
||||
dependencies:
|
||||
"@babel/compat-data": ^7.13.12
|
||||
"@babel/compat-data": ^7.13.15
|
||||
"@babel/helper-validator-option": ^7.12.17
|
||||
browserslist: ^4.14.5
|
||||
semver: ^6.3.0
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0
|
||||
checksum: 2d77381d5fa0e488e86b2abbf5c299a6c1b0e490c95d3ca9a63fac8d45713a182a32fedabceb207588681ae09fc1c19c5418c26e686ae752d46102c9537f9ec7
|
||||
checksum: baa1e4cdd562996c6af0a8cedb097cd72f67c44577faf4b657015f477d4930ebcc40ca21dc1e5fcffe91a1517de6e4114bc21f805ca701dfac2ddd2e9b006228
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -335,14 +334,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/helpers@npm:^7.13.10":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/helpers@npm:7.13.10"
|
||||
"@babel/helpers@npm:^7.13.16":
|
||||
version: 7.13.17
|
||||
resolution: "@babel/helpers@npm:7.13.17"
|
||||
dependencies:
|
||||
"@babel/template": ^7.12.13
|
||||
"@babel/traverse": ^7.13.0
|
||||
"@babel/types": ^7.13.0
|
||||
checksum: 1bc93126957b51108080ab1aa24997a9a10d5f395de54621ce9df7825cdbce878ad9d26886c927c3d9bcfd75d24972037ed5fb904fcd83fb92e5c8f8628f6b40
|
||||
"@babel/traverse": ^7.13.17
|
||||
"@babel/types": ^7.13.17
|
||||
checksum: 3e2b18d6bad7e7fa4e268a4e28f7ba5a15893efd39a57af9ae38613fe11bf4cff03cb2a56d4e6e18eeabe0934bfa689432ce3578bf59bb43bf926c956771b4b4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -357,12 +356,12 @@ __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.15":
|
||||
version: 7.13.15
|
||||
resolution: "@babel/parser@npm:7.13.15"
|
||||
"@babel/parser@npm:^7.0.0, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.12.13, @babel/parser@npm:^7.13.16":
|
||||
version: 7.13.16
|
||||
resolution: "@babel/parser@npm:7.13.16"
|
||||
bin:
|
||||
parser: ./bin/babel-parser.js
|
||||
checksum: 74e9edc72f187c3956a52b3bb7dad22769fa9bf91c0107d6d5f1841ad5f655e6d12e0380a5b296f8c61c4471b200cdfea490969b75d5dff6b942157a26a1a9ac
|
||||
checksum: 4f02b226686ad98684128d64082388c8af3a2cd0bb986e8eb0339235d99f9a6bb55ba225da953291d975f341fe6d5d5dc006706d515f999be5ad49dd99f815e3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1293,27 +1292,27 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/register@npm:^7.13.14":
|
||||
version: 7.13.14
|
||||
resolution: "@babel/register@npm:7.13.14"
|
||||
"@babel/register@npm:^7.13.16":
|
||||
version: 7.13.16
|
||||
resolution: "@babel/register@npm:7.13.16"
|
||||
dependencies:
|
||||
clone-deep: ^4.0.1
|
||||
find-cache-dir: ^2.0.0
|
||||
lodash: ^4.17.19
|
||||
make-dir: ^2.1.0
|
||||
pirates: ^4.0.0
|
||||
source-map-support: ^0.5.16
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.0.0-0
|
||||
checksum: 0dacbad9a231907c71ade15952bb9cfdc7bea35e22dac9190fa7bd3328ebae34f3fe16e957e4b8a6f10e50e1a614957195a4a9dbe4245018c8a986bc386fd2ec
|
||||
checksum: 9a859b9fb5301525450638d57a7db72f0364a14b3e433f62062140b45ce13e5c92d9618f1f0413c6b41336937062e3cbd7fad88f2938b030e1b4331c11a74f23
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.8.4":
|
||||
version: 7.13.10
|
||||
resolution: "@babel/runtime@npm:7.13.10"
|
||||
"@babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.13.17, @babel/runtime@npm:^7.13.9, @babel/runtime@npm:^7.8.4":
|
||||
version: 7.13.17
|
||||
resolution: "@babel/runtime@npm:7.13.17"
|
||||
dependencies:
|
||||
regenerator-runtime: ^0.13.4
|
||||
checksum: 22014226b96a8c8e8d4e8bcdb011f317d1b32881aef424a669dc6ceaee14993d3609172967853cbf9c25c724c25145d45885b6c9df56ba241c12820776607f1f
|
||||
checksum: c32e5e2833348b586bc919c0fbc8efbd2fdd79451cce56ed5962ace6ff74ea44fbb8723dcd3f08e52ce07e88e37f4c02cd5021855417d365558e41de38d277a8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1328,30 +1327,29 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/traverse@npm:^7.1.0, @babel/traverse@npm:^7.13.0, @babel/traverse@npm:^7.13.13, @babel/traverse@npm:^7.13.15":
|
||||
version: 7.13.15
|
||||
resolution: "@babel/traverse@npm:7.13.15"
|
||||
"@babel/traverse@npm:^7.1.0, @babel/traverse@npm:^7.13.0, @babel/traverse@npm:^7.13.13, @babel/traverse@npm:^7.13.15, @babel/traverse@npm:^7.13.17":
|
||||
version: 7.13.17
|
||||
resolution: "@babel/traverse@npm:7.13.17"
|
||||
dependencies:
|
||||
"@babel/code-frame": ^7.12.13
|
||||
"@babel/generator": ^7.13.9
|
||||
"@babel/generator": ^7.13.16
|
||||
"@babel/helper-function-name": ^7.12.13
|
||||
"@babel/helper-split-export-declaration": ^7.12.13
|
||||
"@babel/parser": ^7.13.15
|
||||
"@babel/types": ^7.13.14
|
||||
"@babel/parser": ^7.13.16
|
||||
"@babel/types": ^7.13.17
|
||||
debug: ^4.1.0
|
||||
globals: ^11.1.0
|
||||
checksum: 4ee49a25e7875e0a05e09ca685ac4f92316aeacfa81526aa947cdfdddb49e595ddb0459b3566dac100e85069ec08bcdce66f4897cc22fee341fb83cf10dbfd14
|
||||
checksum: e50e3a97a5704ed76558c00a632fbbee888a864054772361323075f436b3e767b7441c53fec34333a0c5ed2a88b856c76de8770932a050bb6a1553ece998b0c1
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.12.1, @babel/types@npm:^7.12.13, @babel/types@npm:^7.13.0, @babel/types@npm:^7.13.12, @babel/types@npm:^7.13.14, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3":
|
||||
version: 7.13.14
|
||||
resolution: "@babel/types@npm:7.13.14"
|
||||
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.12.1, @babel/types@npm:^7.12.13, @babel/types@npm:^7.13.0, @babel/types@npm:^7.13.12, @babel/types@npm:^7.13.14, @babel/types@npm:^7.13.16, @babel/types@npm:^7.13.17, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3":
|
||||
version: 7.13.17
|
||||
resolution: "@babel/types@npm:7.13.17"
|
||||
dependencies:
|
||||
"@babel/helper-validator-identifier": ^7.12.11
|
||||
lodash: ^4.17.19
|
||||
to-fast-properties: ^2.0.0
|
||||
checksum: 0dda1e774076c763ad38d77a2292524556be0629f5b7a2078bddb40ae4a2fd059d10197029a988926dc314f7519e17daa8a714656e0faa207f2bb5339b57410c
|
||||
checksum: d75193ea37008a039b2383f8ba3cbe492a092550c6656721f6aa76bd8565a9286b56165a0c82ea5a8423d6f65bd803eb2c73561a5fc7a098b97d19f692bc79a6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -1863,12 +1861,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev@npm:^0.62.8":
|
||||
version: 0.62.8
|
||||
resolution: "@polkadot/dev@npm:0.62.8"
|
||||
"@polkadot/dev@npm:^0.62.10":
|
||||
version: 0.62.10
|
||||
resolution: "@polkadot/dev@npm:0.62.10"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.13.14
|
||||
"@babel/core": ^7.13.15
|
||||
"@babel/cli": ^7.13.16
|
||||
"@babel/core": ^7.13.16
|
||||
"@babel/plugin-proposal-class-properties": ^7.13.0
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": ^7.13.8
|
||||
"@babel/plugin-proposal-numeric-separator": ^7.12.13
|
||||
@@ -1884,8 +1882,8 @@ __metadata:
|
||||
"@babel/preset-env": ^7.13.15
|
||||
"@babel/preset-react": ^7.13.13
|
||||
"@babel/preset-typescript": ^7.13.0
|
||||
"@babel/register": ^7.13.14
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@babel/register": ^7.13.16
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@rushstack/eslint-patch": ^1.0.6
|
||||
"@typescript-eslint/eslint-plugin": 4.22.0
|
||||
"@typescript-eslint/parser": 4.22.0
|
||||
@@ -1894,10 +1892,10 @@ __metadata:
|
||||
babel-plugin-module-extension-resolver: ^1.0.0-rc.2
|
||||
babel-plugin-module-resolver: ^4.1.0
|
||||
babel-plugin-styled-components: ^1.12.0
|
||||
browserslist: ^4.16.4
|
||||
chalk: ^4.1.0
|
||||
browserslist: ^4.16.5
|
||||
chalk: ^4.1.1
|
||||
coveralls: ^3.1.0
|
||||
eslint: ^7.24.0
|
||||
eslint: ^7.25.0
|
||||
eslint-config-standard: ^16.0.2
|
||||
eslint-import-resolver-node: ^0.3.4
|
||||
eslint-plugin-header: ^3.1.1
|
||||
@@ -1945,15 +1943,15 @@ __metadata:
|
||||
polkadot-exec-prettier: scripts/polkadot-exec-prettier.cjs
|
||||
polkadot-exec-tsc: scripts/polkadot-exec-tsc.cjs
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.cjs
|
||||
checksum: d4aa8b1da1e7da2ac3ebe7141b10d5da3544e114b2447322676496cd62a360c7b60c7388dba44177e143e7f3bfc7c2d128b370314f0909cf6443394bc7d42dea
|
||||
checksum: e197e64ed55ffd9809835afbaa0f4d3495adf16d246885a5ea98459f658a587f74481049f472b752f0b0666a41c236159fcd9f8cf623b66363fff1cca2526f4f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/hw-ledger-transports@6.2.1, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
|
||||
"@polkadot/hw-ledger-transports@6.3.1, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@ledgerhq/hw-transport-node-hid-singleton": ^5.49.0
|
||||
"@ledgerhq/hw-transport-webusb": ^5.49.0
|
||||
"@types/ledgerhq__hw-transport-node-hid": ^4.22.2
|
||||
@@ -1968,9 +1966,9 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/hw-ledger-transports": 6.2.1
|
||||
"@polkadot/util": ^6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/hw-ledger-transports": 6.3.1
|
||||
"@polkadot/util": ^6.3.1
|
||||
"@zondax/ledger-polkadot": ^0.13.6
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -1979,43 +1977,43 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/keyring@workspace:packages/keyring"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/util": 6.2.1
|
||||
"@polkadot/util-crypto": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/util": 6.3.1
|
||||
"@polkadot/util-crypto": 6.3.1
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.2.1
|
||||
"@polkadot/util-crypto": 6.2.1
|
||||
"@polkadot/util": 6.3.1
|
||||
"@polkadot/util-crypto": 6.3.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/networks@6.2.1, @polkadot/networks@workspace:packages/networks":
|
||||
"@polkadot/networks@6.3.1, @polkadot/networks@workspace:packages/networks":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/networks@workspace:packages/networks"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/util": 6.2.1
|
||||
"@polkadot/x-fetch": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/util": 6.3.1
|
||||
"@polkadot/x-fetch": 6.3.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/ts@npm:^0.3.62":
|
||||
version: 0.3.62
|
||||
resolution: "@polkadot/ts@npm:0.3.62"
|
||||
"@polkadot/ts@npm:^0.3.63":
|
||||
version: 0.3.63
|
||||
resolution: "@polkadot/ts@npm:0.3.63"
|
||||
dependencies:
|
||||
"@types/chrome": ^0.0.133
|
||||
checksum: 0ee98e5cfbdd78574a07d1232bc8ac51d3cfee439c200b944e5e3909241067361b4dfa59be7af03fecd27db473d33c9a458b9b91a155d44ecab7e2eb40a47cad
|
||||
"@types/chrome": ^0.0.135
|
||||
checksum: b5614968b9a3b558347ff9f4b7c52767fc08b3f8ecf8c82f808d37ffcaf2be4f8a1791bb327d3dcdfe064be4ee1811b648e984bc3a329188ae4a9a24b7391884
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util-crypto@6.2.1, @polkadot/util-crypto@workspace:packages/util-crypto":
|
||||
"@polkadot/util-crypto@6.3.1, @polkadot/util-crypto@workspace:packages/util-crypto":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/util-crypto@workspace:packages/util-crypto"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/networks": 6.2.1
|
||||
"@polkadot/util": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/networks": 6.3.1
|
||||
"@polkadot/util": 6.3.1
|
||||
"@polkadot/wasm-crypto": ^4.0.2
|
||||
"@polkadot/x-randomvalues": 6.2.1
|
||||
"@polkadot/x-randomvalues": 6.3.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
"@types/create-hash": ^1.2.2
|
||||
"@types/elliptic": ^6.4.12
|
||||
@@ -2033,17 +2031,17 @@ __metadata:
|
||||
tweetnacl: ^1.0.3
|
||||
xxhashjs: ^0.2.2
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.2.1
|
||||
"@polkadot/util": 6.3.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util@6.2.1, @polkadot/util@^6.2.1, @polkadot/util@workspace:packages/util":
|
||||
"@polkadot/util@6.3.1, @polkadot/util@^6.3.1, @polkadot/util@workspace:packages/util":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/util@workspace:packages/util"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/x-textdecoder": 6.2.1
|
||||
"@polkadot/x-textencoder": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-textdecoder": 6.3.1
|
||||
"@polkadot/x-textencoder": 6.3.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
camelcase: ^5.3.1
|
||||
@@ -2083,34 +2081,34 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-fetch@6.2.1, @polkadot/x-fetch@workspace:packages/x-fetch":
|
||||
"@polkadot/x-fetch@6.3.1, @polkadot/x-fetch@workspace:packages/x-fetch":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-fetch@workspace:packages/x-fetch"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/x-global": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
"@types/node-fetch": ^2.5.10
|
||||
node-fetch: ^2.6.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-global@6.2.1, @polkadot/x-global@workspace:packages/x-global":
|
||||
"@polkadot/x-global@6.3.1, @polkadot/x-global@workspace:packages/x-global":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-global@workspace:packages/x-global"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@types/node-fetch": ^2.5.10
|
||||
node-fetch: ^2.6.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-randomvalues@6.2.1, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
|
||||
"@polkadot/x-randomvalues@6.3.1, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-randomvalues@workspace:packages/x-randomvalues"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/x-global": 6.2.1
|
||||
"@types/react-native": ^0.64.2
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
"@types/react-native": ^0.64.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2118,26 +2116,26 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-rxjs@workspace:packages/x-rxjs"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@babel/runtime": ^7.13.17
|
||||
rxjs: ^6.6.7
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-textdecoder@6.2.1, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
|
||||
"@polkadot/x-textdecoder@6.3.1, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-textdecoder@workspace:packages/x-textdecoder"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/x-global": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-textencoder@6.2.1, @polkadot/x-textencoder@workspace:packages/x-textencoder":
|
||||
"@polkadot/x-textencoder@6.3.1, @polkadot/x-textencoder@workspace:packages/x-textencoder":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-textencoder@workspace:packages/x-textencoder"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/x-global": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2145,8 +2143,8 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-ws@workspace:packages/x-ws"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.13.10
|
||||
"@polkadot/x-global": 6.2.1
|
||||
"@babel/runtime": ^7.13.17
|
||||
"@polkadot/x-global": 6.3.1
|
||||
"@types/websocket": ^1.0.2
|
||||
websocket: ^1.0.34
|
||||
languageName: unknown
|
||||
@@ -2243,13 +2241,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/chrome@npm:^0.0.133":
|
||||
version: 0.0.133
|
||||
resolution: "@types/chrome@npm:0.0.133"
|
||||
"@types/chrome@npm:^0.0.135":
|
||||
version: 0.0.135
|
||||
resolution: "@types/chrome@npm:0.0.135"
|
||||
dependencies:
|
||||
"@types/filesystem": "*"
|
||||
"@types/har-format": "*"
|
||||
checksum: f4ea13de2c09514b67af8454dc5cec897e4c8ffaecf894ba4e871f5e3fb6c1c40faffd8ebb059d08e57961f1b218cb4a6dbc1fe44989378a4c6600dde59e8e9b
|
||||
checksum: 0619796ce1a174d807d82c412f4c988447d3b3f4195a993dd88166864ed568623e8bad9f7aaae96c99b2cefcf9532ead978ae36ade21dc6dfd8435a34db277ec
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2452,12 +2450,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-native@npm:^0.64.2":
|
||||
version: 0.64.2
|
||||
resolution: "@types/react-native@npm:0.64.2"
|
||||
"@types/react-native@npm:^0.64.4":
|
||||
version: 0.64.4
|
||||
resolution: "@types/react-native@npm:0.64.4"
|
||||
dependencies:
|
||||
"@types/react": "*"
|
||||
checksum: 6536667ffc06fc87580be381146ef393b5e695ce6d176df46bf1dcda2470625480113bf13352b5ad2df833f6e888ab8a2564a225e825a2888056e565750f060c
|
||||
checksum: 21b2e31746f251d38d280af640df78dd76d288d951681088afb75606101befcabb5529958e5b3c8f117ee3b77164982e3714c35185ba3b8227db197649455fa9
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3448,18 +3446,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"browserslist@npm:^4.14.5, browserslist@npm:^4.16.3, browserslist@npm:^4.16.4":
|
||||
version: 4.16.4
|
||||
resolution: "browserslist@npm:4.16.4"
|
||||
"browserslist@npm:^4.14.5, browserslist@npm:^4.16.3, browserslist@npm:^4.16.5":
|
||||
version: 4.16.5
|
||||
resolution: "browserslist@npm:4.16.5"
|
||||
dependencies:
|
||||
caniuse-lite: ^1.0.30001208
|
||||
caniuse-lite: ^1.0.30001214
|
||||
colorette: ^1.2.2
|
||||
electron-to-chromium: ^1.3.712
|
||||
electron-to-chromium: ^1.3.719
|
||||
escalade: ^3.1.1
|
||||
node-releases: ^1.1.71
|
||||
bin:
|
||||
browserslist: cli.js
|
||||
checksum: 00071f51695eae0d33c6193f37af87c690e5049dc615aeebae32bd0a60ad64698f29b8a579667012a177bff532f6235f22d1a96bfb30bf6364631914e2d64294
|
||||
checksum: ea06cb8262a69d1479ab2c288eb939250ea0a6b172a181ce7ce9410f1ee29701095c8c13bd575b70baead87743866471814f8c0247c9785b229b04bef399e4c8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3582,10 +3580,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"caniuse-lite@npm:^1.0.30001208":
|
||||
version: 1.0.30001208
|
||||
resolution: "caniuse-lite@npm:1.0.30001208"
|
||||
checksum: c8c9ffbd57fe0f39e1cde2211b685f4a16babe73ab2bb50b22b9f267e29ca4843b5df83d518fae2c2e79347eab6d7da86027d649cb984e6f151a5650f592c03b
|
||||
"caniuse-lite@npm:^1.0.30001214":
|
||||
version: 1.0.30001214
|
||||
resolution: "caniuse-lite@npm:1.0.30001214"
|
||||
checksum: 96c09af8989fe03e6aa0cc0130be3392c4a871093f0ae7190cb1185862a63b54de14483561578564d034cf993c315d4939727badee39ed76144e94ae4ab2a0f7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3626,13 +3624,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"chalk@npm:^4.0.0, chalk@npm:^4.1.0":
|
||||
version: 4.1.0
|
||||
resolution: "chalk@npm:4.1.0"
|
||||
"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.1":
|
||||
version: 4.1.1
|
||||
resolution: "chalk@npm:4.1.1"
|
||||
dependencies:
|
||||
ansi-styles: ^4.1.0
|
||||
supports-color: ^7.1.0
|
||||
checksum: f860285b419f9e925c2db0f45ffa88aa8794c14b80cc5d01ff30930bcfc384996606362706f0829cf557f6d36152a5fb2d227ad63c4bc90e2ec9e9dbed4a3c07
|
||||
checksum: 445c12db7aeed0046500a1e4184d31209a77d165654c885a789c41c8598a6a95bd2392180987cac572c967b93a2a730dda778bb7f87fa06ca63fd8592f8cc59f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3783,6 +3781,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"clone-deep@npm:^4.0.1":
|
||||
version: 4.0.1
|
||||
resolution: "clone-deep@npm:4.0.1"
|
||||
dependencies:
|
||||
is-plain-object: ^2.0.4
|
||||
kind-of: ^6.0.2
|
||||
shallow-clone: ^3.0.0
|
||||
checksum: b0146d66cabc7e609d23d10155dcc88e2f74b03539b3b65f8a05f889500e2a78b6c6265a744445d009d512a1afa16836f62aa5737d462027142984c2d41130c8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"clone-response@npm:^1.0.2":
|
||||
version: 1.0.2
|
||||
resolution: "clone-response@npm:1.0.2"
|
||||
@@ -4550,10 +4559,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"electron-to-chromium@npm:^1.3.712":
|
||||
version: 1.3.713
|
||||
resolution: "electron-to-chromium@npm:1.3.713"
|
||||
checksum: eea4e393ac6d9fcd53a6f16f355c2dd9690d8324afc7f33aac5f98981f1ce1094f7f704b718a7f5f13001ef4609cebd4bb97c95d1ad12c82b0db0501d0bbf71e
|
||||
"electron-to-chromium@npm:^1.3.719":
|
||||
version: 1.3.720
|
||||
resolution: "electron-to-chromium@npm:1.3.720"
|
||||
checksum: 51bb3720af1ffe2ac04e0760f4cdcf319c2e371625e7ed9e433ee962c1c7ae09e65b44afbe7ddf5c71dc9a01583c8e0015ff04b86f0222ed7cc5b5871494078d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -4943,9 +4952,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint@npm:^7.24.0":
|
||||
version: 7.24.0
|
||||
resolution: "eslint@npm:7.24.0"
|
||||
"eslint@npm:^7.25.0":
|
||||
version: 7.25.0
|
||||
resolution: "eslint@npm:7.25.0"
|
||||
dependencies:
|
||||
"@babel/code-frame": 7.12.11
|
||||
"@eslint/eslintrc": ^0.4.0
|
||||
@@ -4986,7 +4995,7 @@ __metadata:
|
||||
v8-compile-cache: ^2.0.3
|
||||
bin:
|
||||
eslint: bin/eslint.js
|
||||
checksum: 8130aacc3698a730ba8fa10ac9e1436151181c34cad265c21c97708e62dba714b6f3cc4cb7a1d343918da3d35a5913505ccf53cfbdc1fa8d62d326b7e35b7aae
|
||||
checksum: 6e1782e2264ebf987504746ee82e996bf0ef2c29a2eaea869b54cb8aa1eaf10945b1d563618515e65ac934ca626f3609282127773f45868ad4a98744458a3c62
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -9675,9 +9684,9 @@ resolve@^2.0.0-next.3:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
"@babel/core": ^7.13.15
|
||||
"@polkadot/dev": ^0.62.8
|
||||
"@polkadot/ts": ^0.3.62
|
||||
"@babel/core": ^7.13.16
|
||||
"@polkadot/dev": ^0.62.10
|
||||
"@polkadot/ts": ^0.3.63
|
||||
"@types/jest": ^26.0.22
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -9866,6 +9875,15 @@ resolve@^2.0.0-next.3:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"shallow-clone@npm:^3.0.0":
|
||||
version: 3.0.1
|
||||
resolution: "shallow-clone@npm:3.0.1"
|
||||
dependencies:
|
||||
kind-of: ^6.0.2
|
||||
checksum: e329e054c286f0681fd8a9e5c353999519332f12510a99e189ea9cfa0337adb6f1414639d44493418ef6790a693b78c354525269f5db25a9feddd8b4d7891a62
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"shebang-command@npm:^1.2.0":
|
||||
version: 1.2.0
|
||||
resolution: "shebang-command@npm:1.2.0"
|
||||
|
||||
Reference in New Issue
Block a user