Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a598fdf92 | ||
|
|
659b896ee7 | ||
|
|
7cda007a30 | ||
|
|
2288c4da8a | ||
|
|
fbfc21be1c | ||
|
|
787beb2aea | ||
|
|
6234e16c37 | ||
|
|
e9cbc0a0d9 | ||
|
|
166eeb8852 | ||
|
|
b321f92161 |
@@ -1,5 +1,12 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 2.18.1 Jul 13, 2020
|
||||
|
||||
- Add `base64{Decode, Encode, Validate}` as crypto utils
|
||||
- Extract `base58Validate` from base58 decode checks
|
||||
- Add `isAscii` to allow detection of printable ASCII sequences (including tab, newline)
|
||||
- Add `isUtf8` to allow detection of valid Utf8 sequences
|
||||
|
||||
## 2.17.1 Jul 6, 2020
|
||||
|
||||
- Add `encode{Derived, Multi}Address` to encode derived/multi addresses
|
||||
|
||||
+1
-1
@@ -9,5 +9,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "2.17.1"
|
||||
"version": "2.18.1"
|
||||
}
|
||||
|
||||
+3
-3
@@ -22,9 +22,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.10.4",
|
||||
"@polkadot/dev": "^0.55.19",
|
||||
"@polkadot/dev": "^0.55.21",
|
||||
"@polkadot/ts": "^0.3.27",
|
||||
"@types/jest": "^26.0.3"
|
||||
"@types/jest": "^26.0.4"
|
||||
},
|
||||
"version": "2.17.1"
|
||||
"version": "2.18.1"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/keyring",
|
||||
"version": "2.17.1",
|
||||
"version": "2.18.1",
|
||||
"description": "Keyring management",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
@@ -28,7 +28,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.4",
|
||||
"@polkadot/util": "2.17.1",
|
||||
"@polkadot/util-crypto": "2.17.1"
|
||||
"@polkadot/util": "2.18.1",
|
||||
"@polkadot/util-crypto": "2.18.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-crypto",
|
||||
"version": "2.17.1",
|
||||
"version": "2.18.1",
|
||||
"description": "A collection of useful crypto utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -26,7 +26,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.10.4",
|
||||
"@polkadot/util": "2.17.1",
|
||||
"@polkadot/util": "2.18.1",
|
||||
"@polkadot/wasm-crypto": "^1.2.1",
|
||||
"base-x": "^3.0.8",
|
||||
"bip39": "^3.0.2",
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
import { bufferToU8a } from '@polkadot/util';
|
||||
|
||||
import { BASE58_ALPHABET, bs58 } from './bs58';
|
||||
import { bs58 } from './bs58';
|
||||
import validate from './validate';
|
||||
|
||||
/**
|
||||
* @name base58Decode
|
||||
@@ -13,11 +14,7 @@ import { BASE58_ALPHABET, bs58 } from './bs58';
|
||||
* From the provided input, decode the base58 and return the result as an `Uint8Array`.
|
||||
*/
|
||||
export default function base58Decode (value: string): Uint8Array {
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
if (!BASE58_ALPHABET.includes(value[i])) {
|
||||
throw new Error(`Invalid base58 character "${value[i]}" (0x${value.charCodeAt(i).toString(16)}) at index ${i}`);
|
||||
}
|
||||
}
|
||||
validate(value);
|
||||
|
||||
return bufferToU8a(bs58.decode(value));
|
||||
}
|
||||
|
||||
@@ -8,3 +8,4 @@
|
||||
|
||||
export { default as base58Decode } from './decode';
|
||||
export { default as base58Encode } from './encode';
|
||||
export { default as base58Validate } from './validate';
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { BASE58_ALPHABET } from './bs58';
|
||||
|
||||
/**
|
||||
* @name base58Validate
|
||||
* @summary Validates a base58 value.
|
||||
* @description
|
||||
* Validates the the supplied value is valid base58
|
||||
*/
|
||||
export default function base58Validate (value: string): true {
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
if (!BASE58_ALPHABET.includes(value[i])) {
|
||||
throw new TypeError(`Invalid base58 character "${value[i]}" (0x${value.charCodeAt(i).toString(16)}) at index ${i}`);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { stringToU8a } from '@polkadot/util';
|
||||
|
||||
import { base64Decode } from '.';
|
||||
|
||||
describe('base64Decode', (): void => {
|
||||
it('decodes a mixed base64 utf8 string', (): void => {
|
||||
expect(
|
||||
base64Decode('aGVsbG8gd29ybGQg0J/RgNC40LLQtdGC0YHRgtCy0YPRjiDQvNC4IOS9oOWlvQ==')
|
||||
).toEqual(
|
||||
stringToU8a('hello world Приветствую ми 你好')
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { bufferToU8a } from '@polkadot/util';
|
||||
|
||||
import validate from './validate';
|
||||
|
||||
/**
|
||||
* @name base64Decode
|
||||
* @summary Decodes a base64 value.
|
||||
* @description
|
||||
* From the provided input, decode the base64 and return the result as an `Uint8Array`.
|
||||
*/
|
||||
export default function base64Decode (value: string): Uint8Array {
|
||||
validate(value);
|
||||
|
||||
return bufferToU8a(Buffer.from(value, 'base64'));
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { base64Encode } from '.';
|
||||
|
||||
describe('base64Encode', (): void => {
|
||||
it('encodes a mixed base64 utf8 string', (): void => {
|
||||
expect(
|
||||
base64Encode('hello world Приветствую ми 你好')
|
||||
).toEqual('aGVsbG8gd29ybGQg0J/RgNC40LLQtdGC0YHRgtCy0YPRjiDQvNC4IOS9oOWlvQ==');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { u8aToBuffer, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
/**
|
||||
* @name base64Encode
|
||||
* @summary Creates a base64 value.
|
||||
* @description
|
||||
* From the provided input, create the base64 and return the result as a string.
|
||||
*/
|
||||
export default function base58Encode (value: Uint8Array | string | Buffer | number[]): string {
|
||||
return u8aToBuffer(u8aToU8a(value)).toString('base64');
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
/**
|
||||
* @summary Encode and decode base64 values
|
||||
*/
|
||||
|
||||
export { default as base64Decode } from './decode';
|
||||
export { default as base64Encode } from './encode';
|
||||
export { default as base64Validate } from './validate';
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { base64Validate } from '.';
|
||||
|
||||
describe('base64Validate', (): void => {
|
||||
it('decodes a mixed base64 utf8 string', (): void => {
|
||||
expect(
|
||||
() => base64Validate('aGVsbG8gd29ybGQg0J/RgNC40LLQtd^GC0YHRgtCy0YPRjiDQvNC4IOS9oOWlvQ==')
|
||||
).toThrow(/Invalid base64 encoding/);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright 2017-2020 @polkadot/util-crypto authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
/**
|
||||
* @name base64Validate
|
||||
* @summary Validates a base64 value.
|
||||
* @description
|
||||
* Validates the the supplied value is valid base64
|
||||
*/
|
||||
export default function base64Validate (value: string): true {
|
||||
if (!(/^(?:[A-Za-z0-9+/]{2}[A-Za-z0-9+/]{2})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(value))) {
|
||||
throw new TypeError('Invalid base64 encoding');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -11,6 +11,7 @@ export * from './init';
|
||||
// all internal exports
|
||||
export * from './address';
|
||||
export * from './base58';
|
||||
export * from './base64';
|
||||
export * from './blake2';
|
||||
export * from './keccak';
|
||||
export * from './key';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util",
|
||||
"version": "2.17.1",
|
||||
"version": "2.18.1",
|
||||
"description": "A collection of useful utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
// Copyright 2017-2020 @polkadot/util authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { isAscii } from '.';
|
||||
|
||||
describe('isAscii', (): void => {
|
||||
it('returns true for an ASCII string', (): void => {
|
||||
expect(isAscii('Hello\tWorld!\n\rTesting')).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true for ASCII bytes', (): void => {
|
||||
expect(isAscii(new Uint8Array([0x31, 0x32, 0x20, 10]))).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true for empty string inputs', (): void => {
|
||||
expect(isAscii('')).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true for empty U8a inputs', (): void => {
|
||||
expect(isAscii(new Uint8Array())).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns false for empty undefined inputs', (): void => {
|
||||
expect(isAscii()).toEqual(false);
|
||||
});
|
||||
|
||||
it('returns false for non-printable characters', (): void => {
|
||||
expect(isAscii(new Uint8Array([5]))).toEqual(false);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2020 @polkadot/util authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import u8aToU8a from '../u8a/toU8a';
|
||||
import isString from './string';
|
||||
|
||||
const FORMAT = [9, 10, 13];
|
||||
|
||||
/**
|
||||
* @name isAscii
|
||||
* @summary Tests if the input is printable ASCII
|
||||
* @description
|
||||
* Checks to see if the input string or Uint8Array is printable ASCII, 32-127 + formatters
|
||||
*/
|
||||
export default function isAscii (value?: number[] | Buffer | Uint8Array | string | null): boolean {
|
||||
if (!value) {
|
||||
return isString(value);
|
||||
}
|
||||
|
||||
const u8a = u8aToU8a(value);
|
||||
|
||||
return !u8a.some((byte) => (byte >= 127) || (byte < 32 && !FORMAT.includes(byte)));
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
/**
|
||||
* @summary Type checking utilities
|
||||
*/
|
||||
export { default as isAscii } from './ascii';
|
||||
export { default as isBigInt } from './bigInt';
|
||||
export { default as isBn } from './bn';
|
||||
export { default as isBuffer } from './buffer';
|
||||
@@ -25,3 +26,4 @@ export { default as isTestChain } from './testChain';
|
||||
export { default as isToBn } from './toBn';
|
||||
export { default as isU8a } from './u8a';
|
||||
export { default as isUndefined } from './undefined';
|
||||
export { default as isUtf8 } from './utf8';
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
// Copyright 2017-2020 @polkadot/util authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { isUtf8 } from '.';
|
||||
|
||||
describe('isUtf8', (): void => {
|
||||
it('returns true for an ASCII string', (): void => {
|
||||
expect(isUtf8('Hello\tWorld!\n\rTesting')).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true for ASCII bytes', (): void => {
|
||||
expect(isUtf8(new Uint8Array([0x31, 0x32, 0x20, 10]))).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true for empty string inputs', (): void => {
|
||||
expect(isUtf8('')).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true for empty U8a inputs', (): void => {
|
||||
expect(isUtf8(new Uint8Array())).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns false for empty undefined inputs', (): void => {
|
||||
expect(isUtf8()).toEqual(false);
|
||||
});
|
||||
|
||||
it('it is valid for ru', (): void => {
|
||||
expect(isUtf8('Приветствую, ми')).toEqual(true);
|
||||
});
|
||||
|
||||
it('is valid for zh', (): void => {
|
||||
expect(isUtf8('你好')).toEqual(true);
|
||||
});
|
||||
|
||||
it('is invalid for something random', (): void => {
|
||||
expect(isUtf8('0x7f07b1f87709608bee603bbc79a0dfc29cd315c1351a83aa31adf7458d7d3003')).toEqual(false);
|
||||
expect(isUtf8('0xc9ec51351beec59b52db06b3dd4685004013035df080358c319553ced597ca05')).toEqual(false);
|
||||
expect(isUtf8('0xd12cef06e90a05b63737d542aaee1389ff9f5c25e461b362180f025c3b2d5635')).toEqual(false);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,208 @@
|
||||
// Copyright 2017-2020 @polkadot/util authors & contributors
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
// Adapted from https://github.com/JulienPalard/is_utf8/blob/master/is_utf8.c
|
||||
|
||||
import u8aToU8a from '../u8a/toU8a';
|
||||
import isString from './string';
|
||||
|
||||
/**
|
||||
* @name isUtf8
|
||||
* @summary Tests if the input is valid Utf8
|
||||
* @description
|
||||
* Checks to see if the input string or Uint8Array is valid Utf8
|
||||
*/
|
||||
export default function isUtf8 (value?: number[] | Buffer | Uint8Array | string | null): boolean {
|
||||
if (!value) {
|
||||
return isString(value);
|
||||
}
|
||||
|
||||
const u8a = u8aToU8a(value);
|
||||
const len = u8a.length;
|
||||
let i = 0;
|
||||
|
||||
while (i < len) {
|
||||
if (u8a[i] <= 0x7F) /* 00..7F */ {
|
||||
i += 1;
|
||||
} else if (u8a[i] >= 0xC2 && u8a[i] <= 0xDF) /* C2..DF 80..BF */ {
|
||||
if (i + 1 < len) /* Expect a 2nd byte */ {
|
||||
if (u8a[i + 1] < 0x80 || u8a[i + 1] > 0xBF) {
|
||||
// *message = "After a first byte between C2 and DF, expecting a 2nd byte between 80 and BF";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte between C2 and DF, expecting a 2nd byte.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 2;
|
||||
} else if (u8a[i] === 0xE0) /* E0 A0..BF 80..BF */ {
|
||||
if (i + 2 < len) /* Expect a 2nd and 3rd byte */ {
|
||||
if (u8a[i + 1] < 0xA0 || u8a[i + 1] > 0xBF) {
|
||||
// *message = "After a first byte of E0, expecting a 2nd byte between A0 and BF.";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 2] < 0x80 || u8a[i + 2] > 0xBF) {
|
||||
// *message = "After a first byte of E0, expecting a 3nd byte between 80 and BF.";
|
||||
// *faulty_bytes = 3;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte of E0, expecting two following bytes.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 3;
|
||||
} else if (u8a[i] >= 0xE1 && u8a[i] <= 0xEC) /* E1..EC 80..BF 80..BF */ {
|
||||
if (i + 2 < len) /* Expect a 2nd and 3rd byte */ {
|
||||
if (u8a[i + 1] < 0x80 || u8a[i + 1] > 0xBF) {
|
||||
// *message = "After a first byte between E1 and EC, expecting the 2nd byte between 80 and BF.";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 2] < 0x80 || u8a[i + 2] > 0xBF) {
|
||||
// *message = "After a first byte between E1 and EC, expecting the 3rd byte between 80 and BF.";
|
||||
// *faulty_bytes = 3;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte between E1 and EC, expecting two following bytes.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 3;
|
||||
} else if (u8a[i] === 0xED) /* ED 80..9F 80..BF */ {
|
||||
if (i + 2 < len) /* Expect a 2nd and 3rd byte */ {
|
||||
if (u8a[i + 1] < 0x80 || u8a[i + 1] > 0x9F) {
|
||||
// *message = "After a first byte of ED, expecting 2nd byte between 80 and 9F.";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 2] < 0x80 || u8a[i + 2] > 0xBF) {
|
||||
// *message = "After a first byte of ED, expecting 3rd byte between 80 and BF.";
|
||||
// *faulty_bytes = 3;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte of ED, expecting two following bytes.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 3;
|
||||
} else if (u8a[i] >= 0xEE && u8a[i] <= 0xEF) /* EE..EF 80..BF 80..BF */ {
|
||||
if (i + 2 < len) /* Expect a 2nd and 3rd byte */ {
|
||||
if (u8a[i + 1] < 0x80 || u8a[i + 1] > 0xBF) {
|
||||
// *message = "After a first byte between EE and EF, expecting 2nd byte between 80 and BF.";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 2] < 0x80 || u8a[i + 2] > 0xBF) {
|
||||
// *message = "After a first byte between EE and EF, expecting 3rd byte between 80 and BF.";
|
||||
// *faulty_bytes = 3;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte between EE and EF, two following bytes.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 3;
|
||||
} else if (u8a[i] === 0xF0) /* F0 90..BF 80..BF 80..BF */ {
|
||||
if (i + 3 < len) /* Expect a 2nd, 3rd 3th byte */ {
|
||||
if (u8a[i + 1] < 0x90 || u8a[i + 1] > 0xBF) {
|
||||
// *message = "After a first byte of F0, expecting 2nd byte between 90 and BF.";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 2] < 0x80 || u8a[i + 2] > 0xBF) {
|
||||
// *message = "After a first byte of F0, expecting 3rd byte between 80 and BF.";
|
||||
// *faulty_bytes = 3;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 3] < 0x80 || u8a[i + 3] > 0xBF) {
|
||||
// *message = "After a first byte of F0, expecting 4th byte between 80 and BF.";
|
||||
// *faulty_bytes = 4;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte of F0, expecting three following bytes.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 4;
|
||||
} else if (u8a[i] >= 0xF1 && u8a[i] <= 0xF3) /* F1..F3 80..BF 80..BF 80..BF */ {
|
||||
if (i + 3 < len) /* Expect a 2nd, 3rd 3th byte */ {
|
||||
if (u8a[i + 1] < 0x80 || u8a[i + 1] > 0xBF) {
|
||||
// *message = "After a first byte of F1, F2, or F3, expecting a 2nd byte between 80 and BF.";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 2] < 0x80 || u8a[i + 2] > 0xBF) {
|
||||
// *message = "After a first byte of F1, F2, or F3, expecting a 3rd byte between 80 and BF.";
|
||||
// *faulty_bytes = 3;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 3] < 0x80 || u8a[i + 3] > 0xBF) {
|
||||
// *message = "After a first byte of F1, F2, or F3, expecting a 4th byte between 80 and BF.";
|
||||
// *faulty_bytes = 4;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte of F1, F2, or F3, expecting three following bytes.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 4;
|
||||
} else if (u8a[i] === 0xF4) /* F4 80..8F 80..BF 80..BF */ {
|
||||
if (i + 3 < len) /* Expect a 2nd, 3rd 3th byte */ {
|
||||
if (u8a[i + 1] < 0x80 || u8a[i + 1] > 0x8F) {
|
||||
// *message = "After a first byte of F4, expecting 2nd byte between 80 and 8F.";
|
||||
// *faulty_bytes = 2;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 2] < 0x80 || u8a[i + 2] > 0xBF) {
|
||||
// *message = "After a first byte of F4, expecting 3rd byte between 80 and BF.";
|
||||
// *faulty_bytes = 3;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (u8a[i + 3] < 0x80 || u8a[i + 3] > 0xBF) {
|
||||
// *message = "After a first byte of F4, expecting 4th byte between 80 and BF.";
|
||||
// *faulty_bytes = 4;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// *message = "After a first byte of F4, expecting three following bytes.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
i += 4;
|
||||
} else {
|
||||
// *message = "Expecting bytes in the following ranges: 00..7F C2..F4.";
|
||||
// *faulty_bytes = 1;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -1330,6 +1330,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/runtime-corejs3@npm:^7.8.3":
|
||||
version: 7.10.4
|
||||
resolution: "@babel/runtime-corejs3@npm:7.10.4"
|
||||
dependencies:
|
||||
core-js-pure: ^3.0.0
|
||||
regenerator-runtime: ^0.13.4
|
||||
checksum: 3/5621e6b5c680751b14c9827f8569153646c43335d4cfc9d7ee22b576a7a8455b1029b2b9d8f64c39fd3ce574e4e311cccafdf1ece484538529db37dd14560b0d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/runtime@npm:^7.10.4, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.6":
|
||||
version: 7.10.4
|
||||
resolution: "@babel/runtime@npm:7.10.4"
|
||||
@@ -2654,9 +2664,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev@npm:^0.55.19":
|
||||
version: 0.55.19
|
||||
resolution: "@polkadot/dev@npm:0.55.19"
|
||||
"@polkadot/dev@npm:^0.55.21":
|
||||
version: 0.55.21
|
||||
resolution: "@polkadot/dev@npm:0.55.21"
|
||||
dependencies:
|
||||
"@babel/cli": ^7.10.4
|
||||
"@babel/core": ^7.10.4
|
||||
@@ -2678,17 +2688,17 @@ __metadata:
|
||||
"@babel/preset-typescript": ^7.10.4
|
||||
"@babel/register": ^7.10.4
|
||||
"@babel/runtime": ^7.10.4
|
||||
"@typescript-eslint/eslint-plugin": 3.5.0
|
||||
"@typescript-eslint/parser": 3.5.0
|
||||
"@typescript-eslint/eslint-plugin": 3.6.0
|
||||
"@typescript-eslint/parser": 3.6.0
|
||||
"@vue/component-compiler-utils": ^3.1.2
|
||||
babel-core: ^7.0.0-bridge.0
|
||||
babel-jest: ^26.1.0
|
||||
babel-plugin-module-resolver: ^4.0.0
|
||||
babel-plugin-styled-components: ^1.10.7
|
||||
browserslist: ^4.12.2
|
||||
browserslist: ^4.13.0
|
||||
coveralls: ^3.1.0
|
||||
cpx: ^1.5.0
|
||||
eslint: ^7.3.1
|
||||
eslint: ^7.4.0
|
||||
eslint-config-standard: ^14.1.1
|
||||
eslint-import-resolver-node: ^0.3.4
|
||||
eslint-plugin-header: ^3.0.0
|
||||
@@ -2696,7 +2706,7 @@ __metadata:
|
||||
eslint-plugin-node: ^11.1.0
|
||||
eslint-plugin-promise: ^4.2.1
|
||||
eslint-plugin-react: ^7.20.3
|
||||
eslint-plugin-react-hooks: ^4.0.5
|
||||
eslint-plugin-react-hooks: ^4.0.6
|
||||
eslint-plugin-sort-destructure-keys: ^1.3.5
|
||||
eslint-plugin-standard: ^4.0.1
|
||||
fs-extra: ^9.0.1
|
||||
@@ -2718,7 +2728,7 @@ __metadata:
|
||||
vuepress: ^1.5.2
|
||||
webpack: ^4.43.0
|
||||
webpack-cli: ^3.3.12
|
||||
yargs: ^15.3.1
|
||||
yargs: ^15.4.0
|
||||
bin:
|
||||
polkadot-ci-ghact-build: scripts/polkadot-ci-ghact-build.js
|
||||
polkadot-ci-ghact-docs: scripts/polkadot-ci-ghact-docs.js
|
||||
@@ -2739,7 +2749,7 @@ __metadata:
|
||||
polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js
|
||||
polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.js
|
||||
checksum: 3/5f690f0995be5cbbf0b3522f7e494c3a23c1e35632918af0c34842363b5c93431192b058878c9cc91a1110a84c5aef1fd3100ed84ea2371d2c5af5322f877d31
|
||||
checksum: 3/14d6ac5059faa517cacc4a5d22885af2f35af3645ed4bc958d3a2fd59d02b2723df29800145e067e4bb162f1ec1deab0ff24d41cabdf5e55cf9d3ea3b21d2487
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2748,8 +2758,8 @@ __metadata:
|
||||
resolution: "@polkadot/keyring@workspace:packages/keyring"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.10.4
|
||||
"@polkadot/util": 2.17.1
|
||||
"@polkadot/util-crypto": 2.17.1
|
||||
"@polkadot/util": 2.18.1
|
||||
"@polkadot/util-crypto": 2.18.1
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2762,12 +2772,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util-crypto@2.17.1, @polkadot/util-crypto@workspace:packages/util-crypto":
|
||||
"@polkadot/util-crypto@2.18.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.10.4
|
||||
"@polkadot/util": 2.17.1
|
||||
"@polkadot/util": 2.18.1
|
||||
"@polkadot/wasm-crypto": ^1.2.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
"@types/elliptic": ^6.4.12
|
||||
@@ -2785,7 +2795,7 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util@2.17.1, @polkadot/util@workspace:packages/util":
|
||||
"@polkadot/util@2.18.1, @polkadot/util@workspace:packages/util":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/util@workspace:packages/util"
|
||||
dependencies:
|
||||
@@ -2874,11 +2884,11 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"@types/babel__traverse@npm:*, @types/babel__traverse@npm:^7.0.6":
|
||||
version: 7.0.12
|
||||
resolution: "@types/babel__traverse@npm:7.0.12"
|
||||
version: 7.0.13
|
||||
resolution: "@types/babel__traverse@npm:7.0.13"
|
||||
dependencies:
|
||||
"@babel/types": ^7.3.0
|
||||
checksum: 3/b59b0c196d7b37966b49471b517bbbe227705ba6a939d4a9d30a9667dd9aae8683bf2abf17ebdf6791a118da461d90fbc1c044f0c0a71271e17ae1d3b8dc05d7
|
||||
checksum: 3/25d3cf96fcae3755d2d79ee5f696df56eba082cfc424a0b9d190dfad5c8e9167d1a4e2abbcb00bc5cd39853e4d638457caf894549ff583679dcb1b18b6a6ebc5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2941,12 +2951,12 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"@types/glob@npm:^7.1.1":
|
||||
version: 7.1.2
|
||||
resolution: "@types/glob@npm:7.1.2"
|
||||
version: 7.1.3
|
||||
resolution: "@types/glob@npm:7.1.3"
|
||||
dependencies:
|
||||
"@types/minimatch": "*"
|
||||
"@types/node": "*"
|
||||
checksum: 3/28bc8b1c10b141173c0d8f287729e727bd864c652c8887fd471b2841de5227b08757a13dd7090133e915cd0e1753800cb69cb251525171972140655c390737b3
|
||||
checksum: 3/633bf1dda9a30899b233ed6b97c75cdd59f2ee856a12240c85474ce6889e26b3b3520b62de56f6bb61824af0ef51b311a0cae305f27ba0de8ddc4898a3673d42
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -2992,13 +3002,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/jest@npm:^26.0.3":
|
||||
version: 26.0.3
|
||||
resolution: "@types/jest@npm:26.0.3"
|
||||
"@types/jest@npm:^26.0.4":
|
||||
version: 26.0.4
|
||||
resolution: "@types/jest@npm:26.0.4"
|
||||
dependencies:
|
||||
jest-diff: ^25.2.1
|
||||
pretty-format: ^25.2.1
|
||||
checksum: 3/8a8a98865cce9d454bc0b5332e9caa5d7cfb3f9f608dfb355c12a5e5eb14ce0626854329d5046015098dcb5fb022cf9fe18c5ad72d7b4563ad3f44ad1ab84050
|
||||
checksum: 3/f815792ecc2191410bf541740b834bafb608b9a5be0b77b21770d8728e87b2bdd55843999bc9236ebd027e11a4cabbec90da7612fb9a620cf8bd858ae3774bd2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3040,9 +3050,9 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"@types/node@npm:*, @types/node@npm:>= 8":
|
||||
version: 14.0.14
|
||||
resolution: "@types/node@npm:14.0.14"
|
||||
checksum: 3/0a2072aa7de32e6535ce6bc7383965fc0a4b7bbf6d76f69027db72e86381921c820a8a2173f75fa210d9fb3286c707079d3804ef33c76a065bcb890858e50ee9
|
||||
version: 14.0.19
|
||||
resolution: "@types/node@npm:14.0.19"
|
||||
checksum: 3/a744f848984b947032acd53161bf33da3df6db60c108b0316b15b7349e14be95d80e281cedd3af4fd3a2679bcab8a77d003241aa24e6e0b745c07223fb9817fa
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3070,9 +3080,9 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"@types/prettier@npm:^2.0.0":
|
||||
version: 2.0.1
|
||||
resolution: "@types/prettier@npm:2.0.1"
|
||||
checksum: 3/fba408d98574b9790446bd5d5f1200a1baf164beea676eaad139320a1d1cdf54f2e411a865b253fc75fbadd1a096bb7eacbf13083fa7d26785e98dca57932b47
|
||||
version: 2.0.2
|
||||
resolution: "@types/prettier@npm:2.0.2"
|
||||
checksum: 3/f661ba2c6312724a9513e63891c668cba33547e259e28ddca97c8107a9d5094aab51b4dd83e17fc8fa37e69c7ac6f2c447b8da36a7e579abf8b804c1e0593767
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3124,11 +3134,11 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/eslint-plugin@npm:3.5.0":
|
||||
version: 3.5.0
|
||||
resolution: "@typescript-eslint/eslint-plugin@npm:3.5.0"
|
||||
"@typescript-eslint/eslint-plugin@npm:3.6.0":
|
||||
version: 3.6.0
|
||||
resolution: "@typescript-eslint/eslint-plugin@npm:3.6.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/experimental-utils": 3.5.0
|
||||
"@typescript-eslint/experimental-utils": 3.6.0
|
||||
debug: ^4.1.1
|
||||
functional-red-black-tree: ^1.0.1
|
||||
regexpp: ^3.0.0
|
||||
@@ -3141,33 +3151,33 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 3/a95bb4484833ca0d433a66cb9dc24b11d36333746d1c01f3def414b752284b7b06d66cb22d22f82484dd2a0725af621f039c28303ed846f3b453e1a39f121e3b
|
||||
checksum: 3/e20dfe9b849216b64bb97dc63fb82dc8f3b2afd87d4548cf45606ea2fc897c175f1c5f8971801053ac2c761fc2483c3732ac884ca6d1b6bfea70cf589b8366ed
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/experimental-utils@npm:3.5.0":
|
||||
version: 3.5.0
|
||||
resolution: "@typescript-eslint/experimental-utils@npm:3.5.0"
|
||||
"@typescript-eslint/experimental-utils@npm:3.6.0":
|
||||
version: 3.6.0
|
||||
resolution: "@typescript-eslint/experimental-utils@npm:3.6.0"
|
||||
dependencies:
|
||||
"@types/json-schema": ^7.0.3
|
||||
"@typescript-eslint/types": 3.5.0
|
||||
"@typescript-eslint/typescript-estree": 3.5.0
|
||||
"@typescript-eslint/types": 3.6.0
|
||||
"@typescript-eslint/typescript-estree": 3.6.0
|
||||
eslint-scope: ^5.0.0
|
||||
eslint-utils: ^2.0.0
|
||||
peerDependencies:
|
||||
eslint: "*"
|
||||
checksum: 3/2366fa0765c16f79e9c3c6659e7e3551462f4670e043a8a52b1a7f0bf780912151c86dd06e6ac98954ec1ba5a33b8f97a4f01471cf1d04d6470c9aab387d3226
|
||||
checksum: 3/472e776263cb4b10066bbd938cc56957461d45bccb8043329295acfbec4f4603919cabc6389ae3805d2fe0ab1c3d258b079cb4315c01cce91b0becc7a7e9d67b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/parser@npm:3.5.0":
|
||||
version: 3.5.0
|
||||
resolution: "@typescript-eslint/parser@npm:3.5.0"
|
||||
"@typescript-eslint/parser@npm:3.6.0":
|
||||
version: 3.6.0
|
||||
resolution: "@typescript-eslint/parser@npm:3.6.0"
|
||||
dependencies:
|
||||
"@types/eslint-visitor-keys": ^1.0.0
|
||||
"@typescript-eslint/experimental-utils": 3.5.0
|
||||
"@typescript-eslint/types": 3.5.0
|
||||
"@typescript-eslint/typescript-estree": 3.5.0
|
||||
"@typescript-eslint/experimental-utils": 3.6.0
|
||||
"@typescript-eslint/types": 3.6.0
|
||||
"@typescript-eslint/typescript-estree": 3.6.0
|
||||
eslint-visitor-keys: ^1.1.0
|
||||
peerDependencies:
|
||||
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
|
||||
@@ -3175,23 +3185,23 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 3/559013ca760695a820e9ad808c3c61567ab800b1d604c4dea47069d560b89bfc74568efb2af649b1da8d74ab87753212cdfd8ea918a4b7722e8581a4bd31fd01
|
||||
checksum: 3/df547aa5bfecb2d820eb4ab9e1d40e909cd469d42ed2ff40d2f18909545c358e49baa6cdfaaa4d4f213167fdf56e9354d3169d2de2534e00f439d721d447ddb2
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/types@npm:3.5.0":
|
||||
version: 3.5.0
|
||||
resolution: "@typescript-eslint/types@npm:3.5.0"
|
||||
checksum: 3/c4c9edbbbc5affdae2e7a92fea5ed4f1e414dffab52d34901bb74b38bec7caa79003f8c339c88931f77d7e16f28ce9b2cc11db2aef22bb4cf138254bdaec7958
|
||||
"@typescript-eslint/types@npm:3.6.0":
|
||||
version: 3.6.0
|
||||
resolution: "@typescript-eslint/types@npm:3.6.0"
|
||||
checksum: 3/2da9710a8cf1afc02ca80788f29e2644f609b67ffaedc0bafc7afb88fd63445e44c115f6661ee1e596b74aa4bb0221b645f2cd254303b2ed08171ee94cfc5af3
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/typescript-estree@npm:3.5.0":
|
||||
version: 3.5.0
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:3.5.0"
|
||||
"@typescript-eslint/typescript-estree@npm:3.6.0":
|
||||
version: 3.6.0
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:3.6.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 3.5.0
|
||||
"@typescript-eslint/visitor-keys": 3.5.0
|
||||
"@typescript-eslint/types": 3.6.0
|
||||
"@typescript-eslint/visitor-keys": 3.6.0
|
||||
debug: ^4.1.1
|
||||
glob: ^7.1.6
|
||||
is-glob: ^4.0.1
|
||||
@@ -3203,7 +3213,7 @@ __metadata:
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 3/649b40515a15030c6b6060e7137627c64bd9a2b3b4ea04403044ca07e563cd2cba989b696b65fbe08228bc5fe46adfd1d9ea55dfeb1ce695c1e0529306d82b59
|
||||
checksum: 3/9e5a854af797b54248b27ef116a57e05625c8987f2bf5c43fefccf8ba7d4fe09b6c2699637b46fdc7b4d2b6d56c930c65137c875ff89ecb47abaa60e0a7065a6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3227,12 +3237,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/visitor-keys@npm:3.5.0":
|
||||
version: 3.5.0
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:3.5.0"
|
||||
"@typescript-eslint/visitor-keys@npm:3.6.0":
|
||||
version: 3.6.0
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:3.6.0"
|
||||
dependencies:
|
||||
eslint-visitor-keys: ^1.1.0
|
||||
checksum: 3/64042963f3724f7c3793da5573c3cf1162a5fa035f9137381d12fe45e6c63d75f0800950bae7234d0324512628dc5f7ea2c798f281fafff35f0cbc3172838526
|
||||
checksum: 3/2dc08e0a57dc24c44418de31c6b2db0669a92ac5ac728b9fe6e7641e649ec7f5a19c5ea0718b928239b964ee290aa12331c0915b55a4d330c0a69427ff878206
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3854,23 +3864,23 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"ajv-keywords@npm:^3.1.0, ajv-keywords@npm:^3.4.1":
|
||||
version: 3.5.0
|
||||
resolution: "ajv-keywords@npm:3.5.0"
|
||||
version: 3.5.1
|
||||
resolution: "ajv-keywords@npm:3.5.1"
|
||||
peerDependencies:
|
||||
ajv: ^6.9.1
|
||||
checksum: 3/8e1823247156cea3169366299eb9e71b3f89e8b8c26e8a3157873613686bacc949743a84a9348cc20d090eccf8190332b5dae89dc79495f2170d9f6fc5bd2df8
|
||||
checksum: 3/f91a8a5304d1f314f5ec1429c9bd895964df50eb8455430ce51d79d38fd2ed63e807dbd1966eb759ac25c06b32485ccc8a2735145836ce01fffe13859c449ea0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ajv@npm:^6.1.0, ajv@npm:^6.10.0, ajv@npm:^6.10.2, ajv@npm:^6.12.2, ajv@npm:^6.5.5":
|
||||
version: 6.12.2
|
||||
resolution: "ajv@npm:6.12.2"
|
||||
version: 6.12.3
|
||||
resolution: "ajv@npm:6.12.3"
|
||||
dependencies:
|
||||
fast-deep-equal: ^3.1.1
|
||||
fast-json-stable-stringify: ^2.0.0
|
||||
json-schema-traverse: ^0.4.1
|
||||
uri-js: ^4.2.2
|
||||
checksum: 3/09f3d7992c4a6e554e65accab279878c2da2a7e3ca782032de51c7c91d80a43a3e2aeb26efb8e8950b3941a89882f21aaca1170dafada784a7a0f275b5e6e745
|
||||
checksum: 3/b20a171bf30ede1635c6b1955bcc1db5a6b3e7dfa77f75aace9fb0db87375430c46d5cdd84158a0bf0a8da91e4da97bdb1afe5604a0969d8468b7c11143fdbba
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3922,13 +3932,20 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ansi-colors@npm:^3.0.0, ansi-colors@npm:^3.2.1":
|
||||
"ansi-colors@npm:^3.0.0":
|
||||
version: 3.2.4
|
||||
resolution: "ansi-colors@npm:3.2.4"
|
||||
checksum: 3/86ec4a476ae8661237c0da58c0b4c48ea57719fdd80eed00132db09ee88d69f5caa5889e13ccd07489e710bf3b9fd85123729e0660384d4373e92ef6125c1fad
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ansi-colors@npm:^4.1.1":
|
||||
version: 4.1.1
|
||||
resolution: "ansi-colors@npm:4.1.1"
|
||||
checksum: 3/50d8dfbce25602caea1b170ecf4c71c4c9c58d2d1e3186fb5712848c0610d05fe60b8bb6a9eaebd9b54f1db3baf6f603e04214cce597cc7799bc9f47fd9a797a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ansi-escapes@npm:^3.2.0":
|
||||
version: 3.2.0
|
||||
resolution: "ansi-escapes@npm:3.2.0"
|
||||
@@ -4914,17 +4931,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"browserslist@npm:^4.0.0, browserslist@npm:^4.12.0, browserslist@npm:^4.12.2, browserslist@npm:^4.8.5":
|
||||
version: 4.12.2
|
||||
resolution: "browserslist@npm:4.12.2"
|
||||
"browserslist@npm:^4.0.0, browserslist@npm:^4.12.0, browserslist@npm:^4.13.0, browserslist@npm:^4.8.5":
|
||||
version: 4.13.0
|
||||
resolution: "browserslist@npm:4.13.0"
|
||||
dependencies:
|
||||
caniuse-lite: ^1.0.30001088
|
||||
electron-to-chromium: ^1.3.483
|
||||
caniuse-lite: ^1.0.30001093
|
||||
electron-to-chromium: ^1.3.488
|
||||
escalade: ^3.0.1
|
||||
node-releases: ^1.1.58
|
||||
bin:
|
||||
browserslist: cli.js
|
||||
checksum: 3/d590e11792902564ad943367ff68b121be573f3868ff505c6d939aa14ff55eab772898f2141a1125f370983bfa86cc06cd4e6c36cd12490304d1769c6df97ba0
|
||||
checksum: 3/91657dcc024f03f7b8a03f897e4a15c73774f39040f4e2fa9cb0e10b057113d71c97b29721590a80bf03dccfae1d69ad3fdf7326644c2c41cdd0410fb1a679a0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -5224,10 +5241,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001087, caniuse-lite@npm:^1.0.30001088":
|
||||
version: 1.0.30001093
|
||||
resolution: "caniuse-lite@npm:1.0.30001093"
|
||||
checksum: 3/0171e3afbf7721e2f5e2e848c2acca2f7d31fe393540fccafa7d01d16e980c4b3b2ac33a80d9e816069fd9d14aa0e45bade05f9165c821faa480f08fe6662402
|
||||
"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001087, caniuse-lite@npm:^1.0.30001093":
|
||||
version: 1.0.30001096
|
||||
resolution: "caniuse-lite@npm:1.0.30001096"
|
||||
checksum: 3/bf50f7386388f40740a8f4be9c3bf26875792817ce40e2781c78bb1665587cce234c9d0df17c95a94114195371a39f69c09b5097563061586a0428443e0aeb3e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -5655,9 +5672,9 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"colorette@npm:^1.2.0":
|
||||
version: 1.2.0
|
||||
resolution: "colorette@npm:1.2.0"
|
||||
checksum: 3/eed33a36778d6038f217a322960b775fa1603c301edc223ad13ad03f3c33e035b4ae12ac5ff3aa06637d0b8234b95f86d7f36f128845ddd11bcff5d1f5cf6237
|
||||
version: 1.2.1
|
||||
resolution: "colorette@npm:1.2.1"
|
||||
checksum: 3/1cc21ad4b84777a424794f78b6bb6a44b614ae17dcea91762199339f8047598e6d981249eeef7ea588c99eaf062be8fcdcd4866c112998922ed854db6dde96f9
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -6078,6 +6095,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"core-js-pure@npm:^3.0.0":
|
||||
version: 3.6.5
|
||||
resolution: "core-js-pure@npm:3.6.5"
|
||||
checksum: 3/91fc8e0b699d5bcb11f265ad4544d08c98096b86ad6c9b4c00109616db0aa992ceb58ea82d0dbae2a16658a7aaf2922aa6f9fc1107dc3b0055270799d0414a3f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"core-js@npm:^2.4.0":
|
||||
version: 2.6.11
|
||||
resolution: "core-js@npm:2.6.11"
|
||||
@@ -6637,6 +6661,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"decamelize@npm:^3.2.0":
|
||||
version: 3.2.0
|
||||
resolution: "decamelize@npm:3.2.0"
|
||||
dependencies:
|
||||
xregexp: ^4.2.4
|
||||
checksum: 3/dbe98e2e5f49a825c57a0f8c5ab0cb983669b71b6f689909b5f42888fb26c25d65a0c340930b2a3c2d770d6611e3be3b765e3776b75969263a3d401a31507ee4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"decimal.js@npm:^10.2.0":
|
||||
version: 10.2.0
|
||||
resolution: "decimal.js@npm:10.2.0"
|
||||
@@ -7263,10 +7296,10 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"electron-to-chromium@npm:^1.3.483":
|
||||
version: 1.3.484
|
||||
resolution: "electron-to-chromium@npm:1.3.484"
|
||||
checksum: 3/8afd97df42597dc1fab476b7fb5499a0ea7f2b636f3bf55656bbec2cbfacdb7563d540c5a74e59a56e55e13542ed7d3b0cefd856a7bb9e7a2171e09280efa7e5
|
||||
"electron-to-chromium@npm:^1.3.488":
|
||||
version: 1.3.492
|
||||
resolution: "electron-to-chromium@npm:1.3.492"
|
||||
checksum: 3/8f219e5cbdb7ef479ed4c97e94a19a01466b79345e37b24e4fe6466e8e0ce089454d0b056763efdb5fc07fd8b59afc75683486597512de75c231609160b4bbc0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7357,11 +7390,11 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"enquirer@npm:^2.3.5":
|
||||
version: 2.3.5
|
||||
resolution: "enquirer@npm:2.3.5"
|
||||
version: 2.3.6
|
||||
resolution: "enquirer@npm:2.3.6"
|
||||
dependencies:
|
||||
ansi-colors: ^3.2.1
|
||||
checksum: 3/1745db4e9d40624abe89301ada7ab79771a8e8ad500d27e6d01b811ca43095b894b9c2b1cb82a4d441a338c5ad19e03cdf31c8a5a573f14013feaecc2c2f1073
|
||||
ansi-colors: ^4.1.1
|
||||
checksum: 3/e249bb97bf7d5a91d51081547ea5aa1d849604e5de74feff2c48f7174fc6c9dfcfeea42ef5536e9a3be58964a248c322d6897269ae7bba3e1b6d24f152d9d685
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7634,12 +7667,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-react-hooks@npm:^4.0.5":
|
||||
version: 4.0.5
|
||||
resolution: "eslint-plugin-react-hooks@npm:4.0.5"
|
||||
"eslint-plugin-react-hooks@npm:^4.0.6":
|
||||
version: 4.0.6
|
||||
resolution: "eslint-plugin-react-hooks@npm:4.0.6"
|
||||
peerDependencies:
|
||||
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
|
||||
checksum: 3/2a84a814963f1e829eaa097638219a85971cbb7ff6e73bcba75d7dde77796717a9a4454b82aa8616a8fd8d8a89537efaa034a7146dfac3fe371c8e91f63deeda
|
||||
checksum: 3/bd240d6e1a82884c9386e190dc3a7157bcfdb660543624bf57d73261cc47c8814e6cc5f5886eaad4e414d7138602a08dcc08eacee8a3b8cfba2418280c8a3a60
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7720,9 +7753,9 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint@npm:^7.3.1":
|
||||
version: 7.3.1
|
||||
resolution: "eslint@npm:7.3.1"
|
||||
"eslint@npm:^7.4.0":
|
||||
version: 7.4.0
|
||||
resolution: "eslint@npm:7.4.0"
|
||||
dependencies:
|
||||
"@babel/code-frame": ^7.0.0
|
||||
ajv: ^6.10.0
|
||||
@@ -7762,7 +7795,7 @@ __metadata:
|
||||
v8-compile-cache: ^2.0.3
|
||||
bin:
|
||||
eslint: bin/eslint.js
|
||||
checksum: 3/5d9fd38514ffb43d0c326488bae2338861a654d507e40594f0d6b39efee5d91ec3105d5408f2add6891e8b47d512a75f06b4ce974c2d70bc6d9ae62574b31deb
|
||||
checksum: 3/ef144e684ce031b045aca156439af5c5ec8a9b843613ed2948bb28ed767dc5e106d9f057a9bf93c752071b7833656bc7affa1d28daa9609c6ea59d1311f0a8de
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7919,8 +7952,8 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"execa@npm:^4.0.0":
|
||||
version: 4.0.2
|
||||
resolution: "execa@npm:4.0.2"
|
||||
version: 4.0.3
|
||||
resolution: "execa@npm:4.0.3"
|
||||
dependencies:
|
||||
cross-spawn: ^7.0.0
|
||||
get-stream: ^5.0.0
|
||||
@@ -7931,7 +7964,7 @@ __metadata:
|
||||
onetime: ^5.1.0
|
||||
signal-exit: ^3.0.2
|
||||
strip-final-newline: ^2.0.0
|
||||
checksum: 3/c48f3d6a044daa1bb5d93486e1c8eee12a8724b439b7f8c270c556a37cf7e2ffd528a86d2ef08adcbe78b485956cfca56c6027ec15d8370bef959097b9ba23ba
|
||||
checksum: 3/65b237d178b468045ee57af6aa4e4124807b28aec9573d9b3b16b02a7e41bd65996236e0c5575d053d3888585ffc795cbed38847c6c9669e9c8481fc44ac05e4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -11841,9 +11874,9 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"lodash@npm:^4.17.11, lodash@npm:^4.17.12, lodash@npm:^4.17.13, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.3, lodash@npm:^4.17.5, lodash@npm:^4.2.1":
|
||||
version: 4.17.15
|
||||
resolution: "lodash@npm:4.17.15"
|
||||
checksum: 3/aec3fbb7570aa67bda500b8299b1b1821d60646bede87f76a74dfcc7666ab3445267d734ec71424d70809d52ad67a1356fab5ab694a3faa1908d68e9d48f00f5
|
||||
version: 4.17.16
|
||||
resolution: "lodash@npm:4.17.16"
|
||||
checksum: 3/e8d834a3ed22d5a5e8df4be5b29799f98b3c3d96749e37899f95f86b39e4d0e65ff72e0c7846913cf06223cc35b4bbda05c3048441f0ec394e8eb09ae262f509
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -15736,9 +15769,9 @@ __metadata:
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
"@babel/core": ^7.10.4
|
||||
"@polkadot/dev": ^0.55.19
|
||||
"@polkadot/dev": ^0.55.21
|
||||
"@polkadot/ts": ^0.3.27
|
||||
"@types/jest": ^26.0.3
|
||||
"@types/jest": ^26.0.4
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -18886,8 +18919,8 @@ __metadata:
|
||||
linkType: hard
|
||||
|
||||
"ws@npm:^7.2.3":
|
||||
version: 7.3.0
|
||||
resolution: "ws@npm:7.3.0"
|
||||
version: 7.3.1
|
||||
resolution: "ws@npm:7.3.1"
|
||||
peerDependencies:
|
||||
bufferutil: ^4.0.1
|
||||
utf-8-validate: ^5.0.2
|
||||
@@ -18896,7 +18929,7 @@ __metadata:
|
||||
optional: true
|
||||
utf-8-validate:
|
||||
optional: true
|
||||
checksum: 3/c1f386013bd30afa9e4d0aa28eee85767a9e1b8fa74fc482eac503840f1012c2c1339745be36b0737f0245515646892b6073e376deac911a7bdf1ec90fc0f86f
|
||||
checksum: 3/9302f1f6658c5f3ecd6d35d1c5a38ad708d8e5404cba66ad884ead072ef7a4c948f54d728649a2cb3af1865ca0e15f903e0e2ac9df30c1a0d4dd00d00e6e0d4a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -18928,6 +18961,15 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"xregexp@npm:^4.2.4":
|
||||
version: 4.3.0
|
||||
resolution: "xregexp@npm:4.3.0"
|
||||
dependencies:
|
||||
"@babel/runtime-corejs3": ^7.8.3
|
||||
checksum: 3/2dcef4888ea32e7c01b8f42d1ee3df24970de14b299a8f534ccecf2252d297092f92d037502176ec334b6c8d7cd1dd3dba0d3cf949e26f418d50b46846268839
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"xtend@npm:>=4.0.0 <4.1.0-0, xtend@npm:^4.0.0, xtend@npm:~4.0.1":
|
||||
version: 4.0.2
|
||||
resolution: "xtend@npm:4.0.2"
|
||||
@@ -18992,7 +19034,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"yargs-parser@npm:^18.1.1, yargs-parser@npm:^18.1.3":
|
||||
"yargs-parser@npm:^18.1.2, yargs-parser@npm:^18.1.3":
|
||||
version: 18.1.3
|
||||
resolution: "yargs-parser@npm:18.1.3"
|
||||
dependencies:
|
||||
@@ -19039,12 +19081,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"yargs@npm:^15.3.1":
|
||||
version: 15.3.1
|
||||
resolution: "yargs@npm:15.3.1"
|
||||
"yargs@npm:^15.3.1, yargs@npm:^15.4.0":
|
||||
version: 15.4.0
|
||||
resolution: "yargs@npm:15.4.0"
|
||||
dependencies:
|
||||
cliui: ^6.0.0
|
||||
decamelize: ^1.2.0
|
||||
decamelize: ^3.2.0
|
||||
find-up: ^4.1.0
|
||||
get-caller-file: ^2.0.1
|
||||
require-directory: ^2.1.1
|
||||
@@ -19053,8 +19095,8 @@ __metadata:
|
||||
string-width: ^4.2.0
|
||||
which-module: ^2.0.0
|
||||
y18n: ^4.0.0
|
||||
yargs-parser: ^18.1.1
|
||||
checksum: 3/6504a0bb4e6f5933ebaaa52307943a9cdb44da6200cd1ca8794aaa1d18b70f0acd2f49f46630b07bd4d2aa12cb1fe666b186d367c36fa1b4998f7ce8bdc9ffdf
|
||||
yargs-parser: ^18.1.2
|
||||
checksum: 3/b4163b7e8f67250bdd4472b8c0a76665030199f3167dcaedc83a6c7daccd761d24208db83320414b9861b44dc3242d737864b13058b5a59c734a5e690d7b7692
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user