Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04a28967c7 | ||
|
|
47c831d672 | ||
|
|
3c4c2cf540 | ||
|
|
f383487764 | ||
|
|
d900dec667 | ||
|
|
49d200fb85 |
@@ -1,5 +1,14 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 6.9.1 Jun 19, 2021
|
||||
|
||||
Changes:
|
||||
|
||||
- Added `u8aCmp(a, b)` to do sorting compares
|
||||
- Added `arrayRange(size, startAt = 0)` to create a range of numbers
|
||||
- Added extensive mnemonic compare test (optional, skipped)
|
||||
|
||||
|
||||
## 6.8.1 Jun 14, 2021
|
||||
|
||||
Contributed:
|
||||
|
||||
+3
-2
@@ -17,7 +17,8 @@
|
||||
"networks:crosscheck": "polkadot-dev-run-test packages/networks/src/crosscheck",
|
||||
"networks:sync": "node packages/networks/scripts/fromSubstrate.mjs",
|
||||
"postinstall": "polkadot-dev-yarn-only",
|
||||
"test": "polkadot-dev-run-test --coverage --runInBand --testPathIgnorePatterns crosscheck",
|
||||
"test": "polkadot-dev-run-test --coverage --runInBand --testPathIgnorePatterns crosscheck --testPathIgnorePatterns toMiniSecretCmp",
|
||||
"test:mnemonicCmp": "polkadot-dev-run-test packages/util-crypto/src/mnemonic/toMiniSecretCmp.spec.ts",
|
||||
"test:one": "polkadot-dev-run-test"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -26,5 +27,5 @@
|
||||
"@polkadot/ts": "^0.3.90",
|
||||
"@types/jest": "^26.0.23"
|
||||
},
|
||||
"version": "6.8.1"
|
||||
"version": "6.9.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/hw-ledger-transports",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"repository": "github:polkadot-js/common",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger-transports', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger-transports', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/hw-ledger",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"repository": "github:polkadot-js/common",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -17,8 +17,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/hw-ledger-transports": "6.8.1",
|
||||
"@polkadot/util": "^6.8.1",
|
||||
"@polkadot/hw-ledger-transports": "6.9.1",
|
||||
"@polkadot/util": "^6.9.1",
|
||||
"@zondax/ledger-polkadot": "^0.14.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/hw-ledger', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/keyring",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "Keyring management",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -20,11 +20,11 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/util": "6.8.1",
|
||||
"@polkadot/util-crypto": "6.8.1"
|
||||
"@polkadot/util": "6.9.1",
|
||||
"@polkadot/util-crypto": "6.9.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "6.8.1",
|
||||
"@polkadot/util-crypto": "6.8.1"
|
||||
"@polkadot/util": "6.9.1",
|
||||
"@polkadot/util-crypto": "6.9.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/keyring', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/keyring', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/networks",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A list of all available Substrate networks and their applicable prefixes",
|
||||
"main": "index.js",
|
||||
@@ -19,7 +19,7 @@
|
||||
"@babel/runtime": "^7.14.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/util": "6.8.1",
|
||||
"@polkadot/x-fetch": "6.8.1"
|
||||
"@polkadot/util": "6.9.1",
|
||||
"@polkadot/x-fetch": "6.9.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
// Copyright 2017-2021 @polkadot/networks authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { isHex } from '@polkadot/util';
|
||||
|
||||
import { knownGenesis, knownLedger } from './defaults';
|
||||
|
||||
describe('defaults', (): void => {
|
||||
it('has hex values for all genesis chains', (): void => {
|
||||
expect(
|
||||
Object.keys(knownGenesis).filter((network) =>
|
||||
!knownGenesis[network].length ||
|
||||
knownGenesis[network].some((g) => !isHex(g, 256))
|
||||
)
|
||||
).toEqual([]);
|
||||
});
|
||||
|
||||
it('has genesis for all Ledger chains', (): void => {
|
||||
expect(
|
||||
Object.keys(knownLedger).filter((network) =>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/networks', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/networks', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-crypto",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A collection of useful crypto utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
@@ -20,10 +20,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/networks": "6.8.1",
|
||||
"@polkadot/util": "6.8.1",
|
||||
"@polkadot/networks": "6.9.1",
|
||||
"@polkadot/util": "6.9.1",
|
||||
"@polkadot/wasm-crypto": "^4.0.2",
|
||||
"@polkadot/x-randomvalues": "6.8.1",
|
||||
"@polkadot/x-randomvalues": "6.9.1",
|
||||
"base-x": "^3.0.8",
|
||||
"base64-js": "^1.5.1",
|
||||
"blakejs": "^1.1.0",
|
||||
@@ -44,6 +44,6 @@
|
||||
"@types/xxhashjs": "^0.2.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/util": "6.8.1"
|
||||
"@polkadot/util": "6.9.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
// Copyright 2017-2021 @polkadot/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { arrayRange, u8aEq } from '@polkadot/util';
|
||||
|
||||
import { cryptoWaitReady, mnemonicGenerate, mnemonicToMiniSecret, naclKeypairFromSeed, schnorrkelKeypairFromSeed } from '..';
|
||||
|
||||
// NOTE: This basically controls how long stuff runs for, YMMV
|
||||
//
|
||||
// - 100 runs with 5 checks, takes 2mins on _my_ machine
|
||||
// - 10_000 runs with 5 checks should be ~3hrs
|
||||
const NUM_RUNS = 100;
|
||||
const NUM_CHECKS = 5;
|
||||
|
||||
// generate either a JS or WASM mnemonic
|
||||
describe.each([true, false])('mnemonicToMiniSecret (compare), onlyJsMnemonic=%p', (onlyJsMnemonic): void => {
|
||||
beforeAll(async (): Promise<void> => {
|
||||
await cryptoWaitReady();
|
||||
});
|
||||
|
||||
// loop through lots of mnemonics
|
||||
describe.each(arrayRange(NUM_RUNS))('run=%p', (): void => {
|
||||
// compare both JS and WASM outputs against original
|
||||
describe.each([true, false])('onlyJsMini=%p', (onlyJsMini): void => {
|
||||
// NOTE we cannot actually use the onlyJsMnemonic flag here
|
||||
const mnemonic = mnemonicGenerate(12);
|
||||
|
||||
describe(mnemonic, (): void => {
|
||||
// do iterations to check and re-check that all matches
|
||||
it.concurrent.each(arrayRange(NUM_CHECKS))('check=%p', (count): void => {
|
||||
const minisecret = mnemonicToMiniSecret(mnemonic, count ? `${count}` : '', onlyJsMnemonic);
|
||||
const edpub = naclKeypairFromSeed(minisecret).publicKey;
|
||||
const srpub = schnorrkelKeypairFromSeed(minisecret).publicKey;
|
||||
|
||||
const testmini = mnemonicToMiniSecret(mnemonic, count ? `${count}` : '', onlyJsMini);
|
||||
|
||||
// explicit minisecret compare
|
||||
expect(
|
||||
u8aEq(minisecret, testmini)
|
||||
).toEqual(true);
|
||||
|
||||
// compare the sr25519 keypair generated
|
||||
expect(
|
||||
u8aEq(srpub, schnorrkelKeypairFromSeed(testmini).publicKey)
|
||||
).toEqual(true);
|
||||
|
||||
// compare ed both in WASM and JS
|
||||
[true, false].forEach((onlyJsEd): void => {
|
||||
expect(
|
||||
u8aEq(edpub, naclKeypairFromSeed(testmini, onlyJsEd).publicKey)
|
||||
).toEqual(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -31,8 +31,10 @@ describe('naclKeypairFromSeed', (): void => {
|
||||
});
|
||||
|
||||
it('generates a valid publicKey/secretKey pair (u8a)', (): void => {
|
||||
expect(
|
||||
naclKeypairFromSeed(TEST)
|
||||
).toEqual(RESULT);
|
||||
[true, false].forEach((onlyJs): void => {
|
||||
expect(
|
||||
naclKeypairFromSeed(TEST, onlyJs)
|
||||
).toEqual(RESULT);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,8 +21,8 @@ import { ed25519KeypairFromSeed, isReady } from '@polkadot/wasm-crypto';
|
||||
* naclKeypairFromSeed(...); // => { secretKey: [...], publicKey: [...] }
|
||||
* ```
|
||||
*/
|
||||
export function naclKeypairFromSeed (seed: Uint8Array): Keypair {
|
||||
if (isReady()) {
|
||||
export function naclKeypairFromSeed (seed: Uint8Array, onlyJs = false): Keypair {
|
||||
if (!onlyJs && isReady()) {
|
||||
const full = ed25519KeypairFromSeed(seed);
|
||||
|
||||
return {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/util-crypto', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/util-crypto', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A collection of useful utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
@@ -20,8 +20,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/x-textdecoder": "6.8.1",
|
||||
"@polkadot/x-textencoder": "6.8.1",
|
||||
"@polkadot/x-textdecoder": "6.9.1",
|
||||
"@polkadot/x-textencoder": "6.9.1",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.11.9",
|
||||
"camelcase": "^5.3.1",
|
||||
|
||||
@@ -8,3 +8,4 @@
|
||||
export { arrayChunk } from './chunk';
|
||||
export { arrayFilter } from './filter';
|
||||
export { arrayFlatten } from './flatten';
|
||||
export { arrayRange } from './range';
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { arrayRange } from '.';
|
||||
|
||||
describe('arrayRange', (): void => {
|
||||
it('does not allow 0 values', (): void => {
|
||||
expect(
|
||||
() => arrayRange(0)
|
||||
).toThrow(/Expected non-zero, positive number as a range size/);
|
||||
});
|
||||
|
||||
it('it creates a range of the specified length', (): void => {
|
||||
expect(
|
||||
arrayRange(10)
|
||||
).toEqual([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
||||
});
|
||||
|
||||
it('it creates a range of the specified length, with offset', (): void => {
|
||||
expect(
|
||||
arrayRange(7, 3)
|
||||
).toEqual([3, 4, 5, 6, 7, 8, 9]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,25 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { assert } from '../assert';
|
||||
|
||||
/**
|
||||
* @name arrayRange
|
||||
* @summary Returns a range of numbers ith the size and the specified offset
|
||||
* @description
|
||||
* Returns a new array of numbers with the specific size. Optionally, when `startAt`, is provided, it generates the range to start at a specific value.
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { arrayRange } from '@polkadot/util';
|
||||
*
|
||||
* arrayRange(5); // [0, 1, 2, 3, 4]
|
||||
* arrayRange(3, 5); // [5, 6, 7]
|
||||
* ```
|
||||
*/
|
||||
export function arrayRange (size: number, startAt = 0): number[] {
|
||||
assert(size > 0, 'Expected non-zero, positive number as a range size');
|
||||
|
||||
return new Array(size).fill(0).map((_, i) => i + startAt);
|
||||
}
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/util', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/util', version: '6.9.1' };
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { u8aCmp } from '.';
|
||||
|
||||
describe('u8aCmp', (): void => {
|
||||
it('has the same result as localCompare (equal length)', (): void => {
|
||||
const a = 'test abc';
|
||||
const b = 'test def';
|
||||
|
||||
expect(
|
||||
u8aCmp(a, b)
|
||||
).toEqual(a.localeCompare(b));
|
||||
expect(
|
||||
u8aCmp(b, a)
|
||||
).toEqual(b.localeCompare(a));
|
||||
});
|
||||
|
||||
it('has the same result as localCompare (diff length)', (): void => {
|
||||
const a = 'test';
|
||||
const b = 'test abc';
|
||||
|
||||
expect(
|
||||
u8aCmp(a, b)
|
||||
).toEqual(a.localeCompare(b));
|
||||
expect(
|
||||
u8aCmp(b, a)
|
||||
).toEqual(b.localeCompare(a));
|
||||
});
|
||||
|
||||
it('compares between string and Uint8Array', (): void => {
|
||||
expect(
|
||||
u8aCmp(
|
||||
'0x12345678',
|
||||
new Uint8Array([0x12, 0x34, 0x56, 0x78])
|
||||
)
|
||||
).toEqual(0);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,51 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { u8aToU8a } from './toU8a';
|
||||
|
||||
function compare (a: Uint8Array, b: Uint8Array): number {
|
||||
let i = 0;
|
||||
|
||||
while (true) {
|
||||
const overA = i >= a.length;
|
||||
const overB = i >= b.length;
|
||||
|
||||
if (overA && overB) {
|
||||
// both ends reached
|
||||
return 0;
|
||||
} else if (overA) {
|
||||
// a has no more data, b has data
|
||||
return -1;
|
||||
} else if (overB) {
|
||||
// b has no more data, a has data
|
||||
return 1;
|
||||
} else if (a[i] !== b[i]) {
|
||||
// the number in this index doesn't match
|
||||
return a[i] > b[i]
|
||||
? 1
|
||||
: -1;
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @name u8aCmp
|
||||
* @summary Compares two Uint8Arrays for sorting.
|
||||
* @description
|
||||
* For `UInt8Array` (or hex string) input values returning -1, 0 or +1
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { u8aCmp } from '@polkadot/util';
|
||||
*
|
||||
* u8aCmp(new Uint8Array([0x67, 0x65]), new Uint8Array([0x68, 0x65])); // -1
|
||||
* u8aCmp(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // 0
|
||||
* u8aCmp(new Uint8Array([0x69, 0x65]), new Uint8Array([0x68, 0x65])); // +1
|
||||
* ```
|
||||
*/
|
||||
export function u8aCmp (a: Uint8Array | string, b: Uint8Array | string): number {
|
||||
return compare(u8aToU8a(a), u8aToU8a(b));
|
||||
}
|
||||
@@ -1,32 +1,23 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { u8aCmp } from './cmp';
|
||||
import { u8aToU8a } from './toU8a';
|
||||
|
||||
function equals (a: Uint8Array, b: Uint8Array): boolean {
|
||||
if (a.length !== b.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (let i = 0; i < a.length; i++) {
|
||||
if (a[i] !== b[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
return (a.length === b.length) && (u8aCmp(a, b) === 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @name u8aEq
|
||||
* @summary Compares two Uint8Arrays.
|
||||
* @summary Compares two Uint8Arrays for equality.
|
||||
* @description
|
||||
* For `UInt8Array` (or hex string) input values true if there is a match.
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { { u8aEq } from '@polkadot/util';
|
||||
* import { u8aEq } from '@polkadot/util';
|
||||
*
|
||||
* u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true
|
||||
* ```
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* @summary Utility methods to convert to and from `Uint8Array` objects
|
||||
*/
|
||||
|
||||
export { u8aCmp } from './cmp';
|
||||
export { u8aConcat } from './concat';
|
||||
export { u8aEq } from './eq';
|
||||
export { u8aFixLength } from './fixLength';
|
||||
|
||||
@@ -1,28 +1,22 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { isUndefined } from '../is/undefined';
|
||||
import { u8aCmp } from './cmp';
|
||||
|
||||
/**
|
||||
* @name u8aSorted
|
||||
* @summary Sorts an array of Uint8Arrays
|
||||
* @description
|
||||
* For input `UInt8Array[]` return the sorted result
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import { u8aSorted} from '@polkadot/util';
|
||||
*
|
||||
* u8aSorted([new Uint8Array([0x69]), new Uint8Array([0x68])]); // [0x68, 0x69]
|
||||
* ```
|
||||
*/
|
||||
export function u8aSorted (u8as: Uint8Array[]): Uint8Array[] {
|
||||
return u8as.sort((a, b): number => {
|
||||
let i = 0;
|
||||
|
||||
while (true) {
|
||||
if (isUndefined(a[i]) && isUndefined(b[i])) {
|
||||
return 0;
|
||||
} else if (isUndefined(a[i])) {
|
||||
return -1;
|
||||
} else if (isUndefined(b[i])) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
const cmp = a[i] - b[i];
|
||||
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
i++;
|
||||
}
|
||||
});
|
||||
return u8as.sort(u8aCmp);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
// Copyright 2017-2021 @polkadot/util authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
const ALPHABET = new Array(256).fill(0).map((_, n) => n.toString(16).padStart(2, '0'));
|
||||
import { arrayRange } from '../array';
|
||||
|
||||
const ALPHABET = arrayRange(256).map((n) => n.toString(16).padStart(2, '0'));
|
||||
|
||||
/** @internal */
|
||||
function extract (value: Uint8Array): string {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-fetch",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment fetch replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -19,7 +19,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-fetch#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/x-global": "6.8.1",
|
||||
"@polkadot/x-global": "6.9.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.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-fetch', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-global",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment global replacement",
|
||||
"main": "index.js",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-global', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-global', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-randomvalues",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment window.crypto.getRandomValues replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -19,7 +19,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-randomvalues#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/x-global": "6.8.1"
|
||||
"@polkadot/x-global": "6.9.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-native": "^0.64.10"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-randomvalues', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-randomvalues', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-rxjs",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A pass-through interface for RxJs (allowing node + mjs usage)",
|
||||
"main": "index.js",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-rxjs', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-rxjs', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-textdecoder",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A TextDecoder replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -19,6 +19,6 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textdecoder#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/x-global": "6.8.1"
|
||||
"@polkadot/x-global": "6.9.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-textdecoder', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-textdecoder', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-textencoder",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A TextDecoder replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -19,6 +19,6 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textencoder#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/x-global": "6.8.1"
|
||||
"@polkadot/x-global": "6.9.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/x-textencoder', version: '6.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-textencoder', version: '6.9.1' };
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/x-ws",
|
||||
"version": "6.8.1",
|
||||
"version": "6.9.1",
|
||||
"type": "module",
|
||||
"description": "A cross-environment WebSocket replacement",
|
||||
"browser": "browser.js",
|
||||
@@ -19,7 +19,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-ws#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.14.5",
|
||||
"@polkadot/x-global": "6.8.1",
|
||||
"@polkadot/x-global": "6.9.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.8.1' };
|
||||
export const packageInfo = { name: '@polkadot/x-ws', version: '6.9.1' };
|
||||
|
||||
@@ -2020,7 +2020,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/hw-ledger-transports@6.8.1, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
|
||||
"@polkadot/hw-ledger-transports@6.9.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:
|
||||
@@ -2041,8 +2041,8 @@ __metadata:
|
||||
resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.5
|
||||
"@polkadot/hw-ledger-transports": 6.8.1
|
||||
"@polkadot/util": ^6.8.1
|
||||
"@polkadot/hw-ledger-transports": 6.9.1
|
||||
"@polkadot/util": ^6.9.1
|
||||
"@zondax/ledger-polkadot": ^0.14.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -2052,21 +2052,21 @@ __metadata:
|
||||
resolution: "@polkadot/keyring@workspace:packages/keyring"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.5
|
||||
"@polkadot/util": 6.8.1
|
||||
"@polkadot/util-crypto": 6.8.1
|
||||
"@polkadot/util": 6.9.1
|
||||
"@polkadot/util-crypto": 6.9.1
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.8.1
|
||||
"@polkadot/util-crypto": 6.8.1
|
||||
"@polkadot/util": 6.9.1
|
||||
"@polkadot/util-crypto": 6.9.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/networks@6.8.1, @polkadot/networks@workspace:packages/networks":
|
||||
"@polkadot/networks@6.9.1, @polkadot/networks@workspace:packages/networks":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/networks@workspace:packages/networks"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.5
|
||||
"@polkadot/util": 6.8.1
|
||||
"@polkadot/x-fetch": 6.8.1
|
||||
"@polkadot/util": 6.9.1
|
||||
"@polkadot/x-fetch": 6.9.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2079,15 +2079,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util-crypto@6.8.1, @polkadot/util-crypto@workspace:packages/util-crypto":
|
||||
"@polkadot/util-crypto@6.9.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.14.5
|
||||
"@polkadot/networks": 6.8.1
|
||||
"@polkadot/util": 6.8.1
|
||||
"@polkadot/networks": 6.9.1
|
||||
"@polkadot/util": 6.9.1
|
||||
"@polkadot/wasm-crypto": ^4.0.2
|
||||
"@polkadot/x-randomvalues": 6.8.1
|
||||
"@polkadot/x-randomvalues": 6.9.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
"@types/create-hash": ^1.2.2
|
||||
"@types/elliptic": ^6.4.12
|
||||
@@ -2105,17 +2105,17 @@ __metadata:
|
||||
tweetnacl: ^1.0.3
|
||||
xxhashjs: ^0.2.2
|
||||
peerDependencies:
|
||||
"@polkadot/util": 6.8.1
|
||||
"@polkadot/util": 6.9.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util@6.8.1, @polkadot/util@^6.8.1, @polkadot/util@workspace:packages/util":
|
||||
"@polkadot/util@6.9.1, @polkadot/util@^6.9.1, @polkadot/util@workspace:packages/util":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/util@workspace:packages/util"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.5
|
||||
"@polkadot/x-textdecoder": 6.8.1
|
||||
"@polkadot/x-textencoder": 6.8.1
|
||||
"@polkadot/x-textdecoder": 6.9.1
|
||||
"@polkadot/x-textencoder": 6.9.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^4.11.9
|
||||
camelcase: ^5.3.1
|
||||
@@ -2155,18 +2155,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-fetch@6.8.1, @polkadot/x-fetch@workspace:packages/x-fetch":
|
||||
"@polkadot/x-fetch@6.9.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.14.5
|
||||
"@polkadot/x-global": 6.8.1
|
||||
"@polkadot/x-global": 6.9.1
|
||||
"@types/node-fetch": ^2.5.10
|
||||
node-fetch: ^2.6.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-global@6.8.1, @polkadot/x-global@workspace:packages/x-global":
|
||||
"@polkadot/x-global@6.9.1, @polkadot/x-global@workspace:packages/x-global":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/x-global@workspace:packages/x-global"
|
||||
dependencies:
|
||||
@@ -2176,12 +2176,12 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-randomvalues@6.8.1, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
|
||||
"@polkadot/x-randomvalues@6.9.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.14.5
|
||||
"@polkadot/x-global": 6.8.1
|
||||
"@polkadot/x-global": 6.9.1
|
||||
"@types/react-native": ^0.64.10
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@@ -2195,21 +2195,21 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-textdecoder@6.8.1, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
|
||||
"@polkadot/x-textdecoder@6.9.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.14.5
|
||||
"@polkadot/x-global": 6.8.1
|
||||
"@polkadot/x-global": 6.9.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/x-textencoder@6.8.1, @polkadot/x-textencoder@workspace:packages/x-textencoder":
|
||||
"@polkadot/x-textencoder@6.9.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.14.5
|
||||
"@polkadot/x-global": 6.8.1
|
||||
"@polkadot/x-global": 6.9.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2218,7 +2218,7 @@ __metadata:
|
||||
resolution: "@polkadot/x-ws@workspace:packages/x-ws"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.14.5
|
||||
"@polkadot/x-global": 6.8.1
|
||||
"@polkadot/x-global": 6.9.1
|
||||
"@types/websocket": ^1.0.2
|
||||
websocket: ^1.0.34
|
||||
languageName: unknown
|
||||
|
||||
Reference in New Issue
Block a user