Compare commits

...
10 Commits
Author SHA1 Message Date
github-actions[bot] 3e6d86b768 [CI Skip] release/stable 12.3.1
skip-checks: true
2023-06-11 06:26:55 +00:00
Jaco 8aab41648e 12.3.1 (#1845) 2023-06-11 09:20:32 +03:00
github-actions[bot] 4a535c08c7 [CI Skip] bump/beta 12.2.3-3-x
skip-checks: true
2023-06-10 08:09:54 +00:00
Jaco 715486d54e Additional adjustments to keyring types (#1844) 2023-06-10 11:01:23 +03:00
github-actions[bot] 1073dc14aa [CI Skip] bump/beta 12.2.3-2-x
skip-checks: true
2023-06-10 04:50:38 +00:00
Jaco 5cca95e855 Adjust object index typings (#1843)
* Adjust object index typings

* Update packages/util/src/is/childClass.ts

* Expand meta definition

* Extend meta with extension info

* Adjust

* CHANGELOG
2023-06-10 07:44:28 +03:00
github-actions[bot] 942b623273 [CI Skip] bump/beta 12.2.3-1-x
skip-checks: true
2023-06-06 05:37:49 +00:00
Jaco eea99656ad Only allow padding characters in base64 strings (#1842)
* Only allow padding characters in base64 strings

* Explicit padding sequence error
2023-06-06 08:31:44 +03:00
github-actions[bot] 04b6df9ac5 [CI Skip] bump/beta 12.2.3-0-x
skip-checks: true
2023-06-05 18:29:35 +00:00
Carlo Sala d5132b56de feat(networks): add zeitgeist Ledger support (#1840)
* feat(networks): add zeitgeist Ledger support

* fix(networks): update test
2023-06-05 21:23:31 +03:00
57 changed files with 404 additions and 252 deletions
+9
View File
@@ -1,5 +1,14 @@
# CHANGELOG
## 12.3.1 Jun 11, 2023
Changes:
- Only allow padding characters in base64 strings
- Expand typings for keyring meta with known keys
- Adjust object index access for stricter tsconfig settings
## 12.2.2 Jun 4, 2023
Changes:
+2 -2
View File
@@ -1,5 +1,5 @@
1622 Jaco 12.2.2 (#1839)
12 Carlo Sala feat(networks): support ledger for pendulum (#1739)
1626 Jaco 12.3.1 (#1845)
13 Carlo Sala feat(networks): add zeitgeist Ledger support (#1840)
9 Antoine Estienne Add eth uri keyring test (#1291)
6 Amaury Martiny Add tests from Rust (#283)
5 Jakub Pánik Add HydraDX parachain to genesis (#1583)
+5 -5
View File
@@ -14,10 +14,10 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"versions": {
"git": "12.2.2",
"npm": "12.2.2"
"git": "12.3.1",
"npm": "12.3.1"
},
"workspaces": [
"packages/*"
@@ -37,8 +37,8 @@
"test:one": "polkadot-dev-run-test --env browser"
},
"devDependencies": {
"@polkadot/dev": "^0.75.16",
"@types/node": "^20.2.5"
"@polkadot/dev": "^0.75.19",
"@types/node": "^20.3.0"
},
"resolutions": {
"typescript": "^5.1.3"
+2 -2
View File
@@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
@@ -22,7 +22,7 @@
"@ledgerhq/hw-transport": "^6.28.4",
"@ledgerhq/hw-transport-webhid": "^6.27.15",
"@ledgerhq/hw-transport-webusb": "^6.27.15",
"@polkadot/util": "12.2.2",
"@polkadot/util": "12.3.1",
"tslib": "^2.5.3"
},
"optionalDependencies": {
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/hw-ledger-transports', path: 'auto', type: 'auto', version: '12.3.1' };
+3 -3
View File
@@ -17,11 +17,11 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"main": "index.js",
"dependencies": {
"@polkadot/hw-ledger-transports": "12.2.2",
"@polkadot/util": "12.2.2",
"@polkadot/hw-ledger-transports": "12.3.1",
"@polkadot/util": "12.3.1",
"@zondax/ledger-substrate": "^0.40.7",
"tslib": "^2.5.3"
}
+2 -1
View File
@@ -38,5 +38,6 @@ export const ledgerApps: Record<string, string> = {
ternoa: 'Ternoa',
unique: 'Unique',
vtb: 'VTB',
xxnetwork: 'XXNetwork'
xxnetwork: 'XXNetwork',
zeitgeist: 'Zeitgeist'
};
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/hw-ledger', path: 'auto', type: 'auto', version: '12.3.1' };
+5 -5
View File
@@ -18,15 +18,15 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "12.2.2",
"@polkadot/util-crypto": "12.2.2",
"@polkadot/util": "12.3.1",
"@polkadot/util-crypto": "12.3.1",
"tslib": "^2.5.3"
},
"peerDependencies": {
"@polkadot/util": "12.2.2",
"@polkadot/util-crypto": "12.2.2"
"@polkadot/util": "12.3.1",
"@polkadot/util-crypto": "12.3.1"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/keyring', path: 'auto', type: 'auto', version: '12.3.1' };
@@ -62,6 +62,7 @@ describe('testingPairs', (): void => {
'0x4c42532034540267bf568198ccec4cb822a025da542861fcb146a5fab6433ff8',
'0x94c49300a58d576011096bcb006aa06f5a91b34b4383891e8029c21dc39fbb8b'];
// @ts-expect-error We should not delete from the maps, however this is a test
delete ring.nobody;
Object
+33 -2
View File
@@ -1,16 +1,47 @@
// Copyright 2017-2023 @polkadot/keyring authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { KeypairType } from '@polkadot/util-crypto/types';
import type { KeyringOptions, KeyringPair } from './types.js';
import { nobody } from './pair/nobody.js';
import { createTestKeyring } from './testing.js';
export interface TestKeyringMap {
nobody: KeyringPair;
[index: string]: KeyringPair;
}
export function createTestPairs (options?: KeyringOptions, isDerived = true): TestKeyringMap {
export interface TestKeyringMapSubstrate extends TestKeyringMap {
alice: KeyringPair;
bob: KeyringPair;
charlie: KeyringPair;
dave: KeyringPair;
eve: KeyringPair;
ferdie: KeyringPair;
}
export interface TestKeyringMapEthereum extends TestKeyringMap {
Alith: KeyringPair;
Baltathar: KeyringPair;
Charleth: KeyringPair;
Dorothy: KeyringPair;
Ethan: KeyringPair;
Faith: KeyringPair;
}
export type DetectMap<O extends KeyringOptions | undefined> = DetectPairType<O> extends 'ethereum'
? TestKeyringMapEthereum
: TestKeyringMapSubstrate;
export type DetectPairType<O extends KeyringOptions | undefined> = O extends KeyringOptions
? O['type'] extends KeypairType
? O['type']
: 'sr25519'
: 'sr25519';
export function createTestPairs <O extends KeyringOptions, M = DetectMap<O>> (options?: O, isDerived = true): M {
const keyring = createTestKeyring(options, isDerived);
const pairs = keyring.getPairs();
const map: TestKeyringMap = { nobody: nobody() };
@@ -19,5 +50,5 @@ export function createTestPairs (options?: KeyringOptions, isDerived = true): Te
map[p.meta.name as string] = p;
}
return map;
return map as M;
}
+52 -1
View File
@@ -15,7 +15,58 @@ export interface KeyringOptions {
type?: KeypairType;
}
export type KeyringPair$Meta = Record<string, unknown>;
export interface KeyringPair$MetaHardware {
accountIndex?: number;
accountOffset?: number;
addressOffset?: number;
hardwareType?: 'ledger';
}
export interface KeyringPair$MetaFlags {
isDefaultAuthSelected?: boolean;
isExternal?: boolean;
isHardware?: boolean;
isHidden?: boolean;
isInjected?: boolean;
isMultisig?: boolean;
isProxied?: boolean;
isRecent?: boolean;
isTesting?: boolean;
}
export interface KeyringPair$MetaContract {
abi: string;
genesisHash?: HexString | null;
}
export interface KeyringPair$MetaExtension {
source?: string;
}
export interface KeyringPair$MetaMultisig {
threshold?: number;
who?: string[];
}
export interface KeyringPair$MetaParent {
parentAddress?: string;
parentName?: string;
}
export interface KeyringPair$Meta extends KeyringPair$MetaExtension, KeyringPair$MetaFlags, KeyringPair$MetaHardware, KeyringPair$MetaMultisig, KeyringPair$MetaParent {
address?: string;
contract?: KeyringPair$MetaContract;
genesisHash?: HexString | null;
name?: string;
suri?: string;
tags?: string[];
type?: KeypairType;
whenCreated?: number;
whenEdited?: number;
whenUsed?: number;
[key: string]: unknown;
}
export interface KeyringPair$Json extends EncryptedJson {
/** The ss58 encoded address or the hex-encoded version (the latter is for ETH-compat chains) */
+3 -3
View File
@@ -15,14 +15,14 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "12.2.2",
"@polkadot/util": "12.3.1",
"@substrate/ss58-registry": "^1.40.0",
"tslib": "^2.5.3"
},
"devDependencies": {
"@polkadot/hw-ledger": "12.2.2"
"@polkadot/hw-ledger": "12.3.1"
}
}
@@ -157,5 +157,8 @@ export const knownGenesis: KnownGenesis = {
],
xxnetwork: [
'0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa'
],
zeitgeist: [
'0x1bf2a2ecb4a868de66ea8610f2ce7c8c43706561b6476031315f6640fe38e060'
]
};
+2 -1
View File
@@ -42,5 +42,6 @@ export const knownLedger: KnownLedger = {
ternoa: 0x00003e3,
unique: 0x00000162,
vtb: 0x000002b6,
xxnetwork: 0x000007a3
xxnetwork: 0x000007a3,
zeitgeist: 0x00000162
};
+1 -1
View File
@@ -115,6 +115,6 @@ describe('selectableNetworks', (): void => {
it('has a sorted list (first external, last external)', (): void => {
expect(selectableNetworks[3].displayName).toEqual('3DP network');
expect(selectableNetworks[selectableNetworks.length - 1].displayName).toEqual('xx network');
expect(selectableNetworks[selectableNetworks.length - 1].displayName).toEqual('Zeitgeist');
});
});
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/networks', path: 'auto', type: 'auto', version: '12.3.1' };
+1 -1
View File
@@ -16,7 +16,7 @@ describe('@substrate/ss58-registry', (): void => {
try {
expect(JSON.parse(json)).toEqual(other);
} catch (error) {
if (process.env.GITHUB_REPOSITORY) {
if (process.env['GITHUB_REPOSITORY']) {
console.error(json);
throw error;
+2 -1
View File
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { RegistryEntry } from '@substrate/ss58-registry';
import type { HexString } from '@polkadot/util/types';
export type Icon = 'beachball' | 'empty' | 'jdenticon' | 'polkadot' | 'substrate';
@@ -9,7 +10,7 @@ export type KnownIcon = Record<string, Icon>;
export type KnownLedger = Record<string, number>;
export type KnownGenesis = Record<string, string[]>;
export type KnownGenesis = Record<string, HexString[]>;
export type KnownSubstrate = RegistryEntry;
+6 -6
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"browser": {
"crypto": false,
"stream": false
@@ -29,16 +29,16 @@
"dependencies": {
"@noble/curves": "1.1.0",
"@noble/hashes": "1.3.1",
"@polkadot/networks": "12.2.2",
"@polkadot/util": "12.2.2",
"@polkadot/networks": "12.3.1",
"@polkadot/util": "12.3.1",
"@polkadot/wasm-crypto": "^7.2.1",
"@polkadot/wasm-util": "^7.2.1",
"@polkadot/x-bigint": "12.2.2",
"@polkadot/x-randomvalues": "12.2.2",
"@polkadot/x-bigint": "12.3.1",
"@polkadot/x-randomvalues": "12.3.1",
"@scure/base": "1.1.1",
"tslib": "^2.5.3"
},
"peerDependencies": {
"@polkadot/util": "12.2.2"
"@polkadot/util": "12.3.1"
}
}
+13 -7
View File
@@ -19,6 +19,7 @@ interface Config {
ipfs?: string;
regex?: RegExp;
type: string;
withPadding?: boolean;
}
type DecodeFn = (value: string, ipfsCompat?: boolean) => Uint8Array;
@@ -63,7 +64,7 @@ export function createIs (validate: ValidateFn): ValidateFn {
}
/** @internal */
export function createValidate ({ chars, ipfs, type }: Config): ValidateFn {
export function createValidate ({ chars, ipfs, type, withPadding }: Config): ValidateFn {
return (value?: unknown, ipfsCompat?: boolean): value is string => {
if (typeof value !== 'string') {
throw new Error(`Expected ${type} string input`);
@@ -72,12 +73,17 @@ export function createValidate ({ chars, ipfs, type }: Config): ValidateFn {
}
for (let i = (ipfsCompat ? 1 : 0), count = value.length; i < count; i++) {
if (!(chars.includes(value[i]) || (
value[i] === '=' && (
(i === value.length - 1) ||
!chars.includes(value[i + 1])
)
))) {
if (chars.includes(value[i])) {
// all ok, character found
} else if (withPadding && value[i] === '=') {
if (i === count - 1) {
// last character, everything ok
} else if (value[i + 1] === '=') {
// next one is also padding, sequence ok
} else {
throw new Error(`Invalid ${type} padding sequence "${value[i]}${value[i + 1]}" at index ${i}`);
}
} else {
throw new Error(`Invalid ${type} character "${value[i]}" (0x${value.charCodeAt(i).toString(16)}) at index ${i}`);
}
}
@@ -0,0 +1,20 @@
// Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import { base58Validate } from './index.js';
describe('base58Validate', (): void => {
it('validates encoded', (): void => {
expect(
base58Validate('a1UbyspTdnyZXLUQaQbciCxrCWWxz24kgSwGXSQnkbs', false)
).toEqual(true);
});
it('fails on string with extra padding', (): void => {
expect(
() => base58Validate('a1UbyspTdnyZXLUQaQbciCxrCWWxz24kgSwGXSQnkbs=', false)
).toThrow(/Invalid base58 character "="/);
});
});
+2 -1
View File
@@ -8,7 +8,8 @@ import { createDecode, createEncode, createIs, createValidate } from '../base32/
const config = {
chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
coder: base64,
type: 'base64'
type: 'base64',
withPadding: true
};
/**
@@ -11,4 +11,22 @@ describe('base64Validate', (): void => {
() => base64Validate('aGVsbG8gd29ybGQg0J/RgNC40LLQtd^GC0YHRgtCy0YPRjiDQvNC4IOS9oOWlvQ==')
).toThrow(/Invalid base64 character "\^" \(0x5e\) at index 30/);
});
it('validates with one extra padding character', (): void => {
expect(
base64Validate('bGlnaHQgd28=')
).toEqual(true);
});
it('validates with two extra padding characters', (): void => {
expect(
base64Validate('bGlnaHQgdw==')
).toEqual(true);
});
it('validates misplaced padding characters', (): void => {
expect(
() => base64Validate('bGlnaHQgdw=g=')
).toThrow(/Invalid base64 padding sequence "=g"/);
});
});
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/util-crypto', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/util-crypto', path: 'auto', type: 'auto', version: '12.3.1' };
+6 -6
View File
@@ -18,7 +18,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"main": "index.js",
"exports": {
"./hex/toU8a": {
@@ -35,15 +35,15 @@
}
},
"dependencies": {
"@polkadot/x-bigint": "12.2.2",
"@polkadot/x-global": "12.2.2",
"@polkadot/x-textdecoder": "12.2.2",
"@polkadot/x-textencoder": "12.2.2",
"@polkadot/x-bigint": "12.3.1",
"@polkadot/x-global": "12.3.1",
"@polkadot/x-textdecoder": "12.3.1",
"@polkadot/x-textencoder": "12.3.1",
"@types/bn.js": "^5.1.1",
"bn.js": "^5.2.1",
"tslib": "^2.5.3"
},
"devDependencies": {
"@polkadot/x-randomvalues": "12.2.2"
"@polkadot/x-randomvalues": "12.3.1"
}
}
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BufferObjConstructor } from './types.js';
import type { BufferObjClass } from './types.js';
import { BigInt } from '@polkadot/x-bigint';
import { xglobal } from '@polkadot/x-global';
@@ -32,7 +32,7 @@ export const hasWasm = typeof WebAssembly !== 'undefined';
// that some bundlers such as parcel would add (this is a check, not a use)
/** true if the environment has support for Buffer (typically Node.js) */
export const hasBuffer = typeof xglobal.Buffer === 'function' && typeof (xglobal.Buffer as unknown as BufferObjConstructor).isBuffer === 'function';
export const hasBuffer = typeof xglobal.Buffer === 'function' && typeof (xglobal.Buffer as unknown as BufferObjClass).isBuffer === 'function';
/** true if the environment has process available (typically Node.js) */
export const hasProcess = typeof xglobal.process === 'object';
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { BufferObj, BufferObjConstructor } from '../types.js';
import type { BufferObj, BufferObjClass } from '../types.js';
import { xglobal } from '@polkadot/x-global';
@@ -24,5 +24,5 @@ import { isFunction } from './function.js';
*/
export function isBuffer (value: unknown): value is Buffer {
// we do check a function first, since it is slightly faster than isBuffer itself
return hasBuffer && !!value && isFunction((value as unknown as BufferObj).readDoubleLE) && (xglobal.Buffer as unknown as BufferObjConstructor).isBuffer(value);
return hasBuffer && !!value && isFunction((value as unknown as BufferObj).readDoubleLE) && (xglobal.Buffer as unknown as BufferObjClass).isBuffer(value);
}
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Constructor } from '../types.js';
import type { Class } from '../types.js';
import { isClass } from './class.js';
@@ -20,7 +20,7 @@ import { isClass } from './class.js';
* console.log('isChildClass', isChildClass(BN, Uint8Array); // => false
* ```
*/
export function isChildClass <P extends Constructor> (Parent: P, Child?: unknown): Child is P {
export function isChildClass <P extends Class> (Parent: P, Child?: unknown): Child is P {
// https://stackoverflow.com/questions/30993434/check-if-a-constructor-inherits-another-in-es6/30993664
return isClass(Child) && isClass(Parent)
// eslint-disable-next-line no-prototype-builtins
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { Constructor } from '../types.js';
import type { Class } from '../types.js';
import { isOnFunction } from './helpers.js';
@@ -9,4 +9,4 @@ import { isOnFunction } from './helpers.js';
* @name isClass
* Tests if the supplied argument is a Class
*/
export const isClass: <T extends Constructor> (value?: unknown) => value is T = /*#__PURE__*/ isOnFunction('isPrototypeOf', 'hasOwnProperty');
export const isClass: <T extends Class> (value?: unknown) => value is T = /*#__PURE__*/ isOnFunction('isPrototypeOf', 'hasOwnProperty');
+11 -10
View File
@@ -7,7 +7,7 @@ import { lazyMethod, lazyMethods } from './index.js';
describe('lazyMethod', (): void => {
it('adds a key on the object', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: number } = {};
expect(test.a).not.toBeDefined();
@@ -17,7 +17,7 @@ describe('lazyMethod', (): void => {
});
it('allows the name to be retrieved', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: number } = {};
expect(test.a).not.toBeDefined();
@@ -27,7 +27,7 @@ describe('lazyMethod', (): void => {
});
it('calls the getter lazily', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: number } = {};
const getter = jest.fn(() => 123);
expect(test.a).not.toBeDefined();
@@ -41,7 +41,7 @@ describe('lazyMethod', (): void => {
});
it('calls the getter a single time', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: number } = {};
const getter = jest.fn(() => 123);
lazyMethod(test, 'a', getter);
@@ -56,15 +56,16 @@ describe('lazyMethod', (): void => {
describe('lazyMethods', (): void => {
it('sets multiple properties', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: string; b?: string; c?: string } = {};
const getter = jest.fn((name: string) => name);
const set = lazyMethods(test, ['a', 'b', 'c'], getter);
expect(set.a).toEqual('a');
expect(set.b).toEqual('b');
lazyMethods(test, ['a', 'b', 'c'], getter);
expect(test.a).toEqual('a');
expect(test.b).toEqual('b');
expect(getter).toHaveBeenCalledTimes(2);
expect(set.a).toEqual('a');
expect(set.b).toEqual('b');
expect(test.a).toEqual('a');
expect(test.b).toEqual('b');
expect(getter).toHaveBeenCalledTimes(2);
});
});
+8 -8
View File
@@ -18,11 +18,11 @@ describe('logger', (): void => {
beforeEach((): void => {
oldEnv = process.env;
process.env.NODE_ENV = 'development';
process.env['NODE_ENV'] = 'development';
ln = logger('notDebug');
process.env.DEBUG = 'test';
process.env['DEBUG'] = 'test';
l = logger('test');
@@ -114,7 +114,7 @@ describe('logger', (): void => {
});
it('does debug log when DEBUG partial specified', (): void => {
process.env.DEBUG = 'test*';
process.env['DEBUG'] = 'test*';
l = logger('testing');
l.debug('test');
@@ -127,7 +127,7 @@ describe('logger', (): void => {
});
it('does not debug log when non-matching DEBUG specified', (): void => {
process.env.DEBUG = 'blah';
process.env['DEBUG'] = 'blah';
l = logger('test');
l.debug('test');
@@ -136,7 +136,7 @@ describe('logger', (): void => {
});
it('does debug log when DEBUG=* specified', (): void => {
process.env.DEBUG = '*';
process.env['DEBUG'] = '*';
l = logger('test');
l.debug('test');
@@ -160,7 +160,7 @@ describe('logger', (): void => {
});
it('does not debug log when explicitly excluded', (): void => {
process.env.DEBUG = '*,-test';
process.env['DEBUG'] = '*,-test';
l = logger('test');
l.debug('test');
@@ -169,7 +169,7 @@ describe('logger', (): void => {
});
it('does not debug log when part of exclusion group', (): void => {
process.env.DEBUG = '*,-test:*';
process.env['DEBUG'] = '*,-test:*';
l = logger('test:sub');
l.debug('test');
@@ -178,7 +178,7 @@ describe('logger', (): void => {
});
it('does debug log when not part of exclusion groups', (): void => {
process.env.DEBUG = '*,-test:*,-tes,-a:*';
process.env['DEBUG'] = '*,-test:*,-tes,-a:*';
l = logger('test');
l.debug('test');
+2 -2
View File
@@ -122,10 +122,10 @@ function getDebugFlag (env: readonly string[], type: string): boolean {
function parseEnv (type: string): [boolean, number] {
const env = (hasProcess ? xglobal.process as { env: Record<string, string> } : {}).env || {};
const maxSize = parseInt(env.DEBUG_MAX || '-1', 10);
const maxSize = parseInt(env['DEBUG_MAX'] || '-1', 10);
return [
getDebugFlag((env.DEBUG || '').toLowerCase().split(','), type),
getDebugFlag((env['DEBUG'] || '').toLowerCase().split(','), type),
isNaN(maxSize)
? -1
: maxSize
+7 -7
View File
@@ -8,7 +8,7 @@ import { objectProperties, objectProperty } from './index.js';
describe('objectProperty/objectProperties', (): void => {
it('sets a property', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: unknown } = {};
expect(test.a).toEqual(undefined);
@@ -20,7 +20,7 @@ describe('objectProperty/objectProperties', (): void => {
});
it('does not override an existing property (record)', (): void => {
const test: Record<string, unknown> = { a: 1 };
const test = { a: 1 };
expect(test.a).toEqual(1);
@@ -75,7 +75,7 @@ describe('objectProperty/objectProperties', (): void => {
}
}
const test = new Child() as unknown as Record<string, unknown>;
const test = new Child() as unknown as { a: number; b: number; c?: number };
expect(test.a).toEqual(1);
expect(test.b).toEqual(1);
@@ -99,7 +99,7 @@ describe('objectProperty/objectProperties', (): void => {
}
}
const test = new Test() as unknown as Record<string, unknown>;
const test = new Test() as unknown as { a: number };
expect(test.a).toEqual(1);
});
@@ -116,14 +116,14 @@ describe('objectProperty/objectProperties', (): void => {
}
}
const test = new Test() as unknown as Record<string, unknown>;
const test = new Test() as unknown as { a: number; b: number };
expect(test.a).toEqual(1);
expect(test.b).toEqual(2);
});
it('calls back with the key name (single)', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: number } = {};
const getter = jest.fn(() => 123);
objectProperty(test, 'a', getter);
@@ -134,7 +134,7 @@ describe('objectProperty/objectProperties', (): void => {
});
it('calls back with the key name & index (numtiple)', (): void => {
const test: Record<string, unknown> = {};
const test: { a?: number; b?: number; c?: number } = {};
const getter = jest.fn(() => 123);
objectProperties(test, ['a', 'b', 'c'], getter);
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/util', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/util', path: 'auto', type: 'auto', version: '12.3.1' };
+2 -2
View File
@@ -44,7 +44,7 @@ ${formatFixed(micro).padStart(NUM_PAD + PRE_PAD + 1)} μs/op`;
}
export function perf (name: string, count: number, inputs: readonly unknown[][], exec: ExecFn, withLog?: boolean): void {
const test = process.env.GITHUB_REPOSITORY
const test = process.env['GITHUB_REPOSITORY']
? it.skip
: it;
@@ -64,7 +64,7 @@ ${`${name}:`.padStart(PRE_PAD)} ${time.toFixed(2).padStart(NUM_PAD)} ms${formatO
}
export function perfCmp (name: string, [first, second]: [string, string], count: number, inputs: readonly unknown[][], exec: ExecFn): void {
const test = process.env.GITHUB_REPOSITORY
const test = process.env['GITHUB_REPOSITORY']
? it.skip
: it;
+4 -4
View File
@@ -4,10 +4,10 @@
import type { BN } from './bn/bn.js';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export interface Constructor<T = any> {
export interface Class<T = any, A extends unknown[] = any[]> {
prototype: T;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
new (...args: any[]): T;
new (...args: A): T;
hasOwnProperty (prop: string): boolean;
isPrototypeOf (other: unknown): boolean;
@@ -82,7 +82,7 @@ export interface BufferObj extends Uint8Array {
// We define a scappy low-level interface to mock Buffer
// (this removes the need for the node typings in built bundles)
export interface BufferObjConstructor extends Constructor<BufferObj> {
export interface BufferObjClass extends Class<BufferObj> {
isBuffer: (value: unknown) => boolean;
}
+2 -2
View File
@@ -18,9 +18,9 @@
"./shim.cjs"
],
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"dependencies": {
"@polkadot/x-global": "12.2.2",
"@polkadot/x-global": "12.3.1",
"tslib": "^2.5.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-bigint', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-bigint', path: 'auto', type: 'auto', version: '12.3.1' };
+2 -2
View File
@@ -15,10 +15,10 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"main": "index.js",
"dependencies": {
"@polkadot/util": "12.2.2",
"@polkadot/util": "12.3.1",
"buffer-es6": "^4.9.3",
"tslib": "^2.5.3"
}
+10 -2
View File
@@ -5,10 +5,18 @@
// The ISC License
// Copyright (c) Isaac Z. Schlueter
export default function inherits (child: Record<string, unknown>, parent: Record<string, unknown>): void {
interface Class {
prototype: object;
super_: Class;
[key: string]: unknown;
}
export default function inherits (child: Class, parent: Class): void {
if (parent) {
child.super_ = parent;
child.prototype = Object.create(parent.prototype as object, {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
child.prototype = Object.create(parent.prototype, {
constructor: {
configurable: true,
enumerable: false,
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-bundle', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-bundle', path: 'auto', type: 'auto', version: '12.3.1' };
+2 -2
View File
@@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.2.2",
"@polkadot/x-global": "12.3.1",
"node-fetch": "^3.3.1",
"tslib": "^2.5.3"
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-fetch', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-fetch', path: 'auto', type: 'auto', version: '12.3.1' };
+1 -1
View File
@@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"main": "index.js",
"dependencies": {
"tslib": "^2.5.3"
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-global', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-global', path: 'auto', type: 'auto', version: '12.3.1' };
+4 -4
View File
@@ -15,21 +15,21 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.2.2",
"@polkadot/x-global": "12.3.1",
"tslib": "^2.5.3"
},
"devDependencies": {
"@polkadot/util": "12.2.2",
"@polkadot/util": "12.3.1",
"@polkadot/wasm-util": "^7.2.1",
"@types/react-native": "^0.72.2"
},
"peerDependencies": {
"@polkadot/util": "12.2.2",
"@polkadot/util": "12.3.1",
"@polkadot/wasm-util": "*"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-randomvalues', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-randomvalues', path: 'auto', type: 'auto', version: '12.3.1' };
+1 -1
View File
@@ -43,7 +43,7 @@ function getRandomValuesRn (output: Uint8Array): Uint8Array {
export const getRandomValues = (
(typeof xglobal.crypto === 'object' && typeof xglobal.crypto.getRandomValues === 'function')
? getRandomValuesBrowser
: (typeof xglobal.nativeCallSyncHook === 'undefined' || !NativeModules.ExpoRandom)
: (typeof xglobal['nativeCallSyncHook'] === 'undefined' || !NativeModules['ExpoRandom'])
? insecureRandomValues
: getRandomValuesRn
);
+2 -2
View File
@@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.2.2",
"@polkadot/x-global": "12.3.1",
"tslib": "^2.5.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-textdecoder', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-textdecoder', path: 'auto', type: 'auto', version: '12.3.1' };
+2 -2
View File
@@ -15,12 +15,12 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.2.2",
"@polkadot/x-global": "12.3.1",
"tslib": "^2.5.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-textencoder', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-textencoder', path: 'auto', type: 'auto', version: '12.3.1' };
+3 -3
View File
@@ -15,16 +15,16 @@
},
"sideEffects": false,
"type": "module",
"version": "12.2.2",
"version": "12.3.1",
"browser": "browser.js",
"main": "node.js",
"react-native": "react-native.js",
"dependencies": {
"@polkadot/x-global": "12.2.2",
"@polkadot/x-global": "12.3.1",
"tslib": "^2.5.3",
"ws": "^8.13.0"
},
"devDependencies": {
"@types/ws": "^8.5.4"
"@types/ws": "^8.5.5"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/x-ws', path: 'auto', type: 'auto', version: '12.2.2' };
export const packageInfo = { name: '@polkadot/x-ws', path: 'auto', type: 'auto', version: '12.3.1' };
+128 -128
View File
@@ -470,34 +470,34 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/dev-test@npm:^0.75.16":
version: 0.75.16
resolution: "@polkadot/dev-test@npm:0.75.16"
"@polkadot/dev-test@npm:^0.75.19":
version: 0.75.19
resolution: "@polkadot/dev-test@npm:0.75.19"
dependencies:
jsdom: ^22.1.0
tslib: ^2.5.3
checksum: 4b079411cc14029f533deadee7deabfd9f86a29cdd8b173d090e4f8a672d8a850d2c38263e1af2679db512f8f3ccb8fde6fa353d2f17830a246137adba6c5d85
checksum: a3c187fde1b9512e11c3917df54912fdb01adb2e9e9eb8893f6916ea2c33bf4883dad253388dcaa606171f5047fedb0a5ed6ff3b9fa256c6ff94dcc1398c6f1c
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.75.16":
version: 0.75.16
resolution: "@polkadot/dev-ts@npm:0.75.16"
"@polkadot/dev-ts@npm:^0.75.19":
version: 0.75.19
resolution: "@polkadot/dev-ts@npm:0.75.19"
dependencies:
json5: ^2.2.3
tslib: ^2.5.3
typescript: ^5.1.3
checksum: 87df9766ccacb56edd66d3b3073f1920939f13fc883de8759014fb2e788b3c9abd24eecaa9d91f934ed37c0715d48eacb4cc4b5d99e11e7347593ef3e505bb70
checksum: efc93f826c5dd1c54b472a61e8cdaeb83f167eaa94194b391d22b8adf2bcf578ed2b9251c863c45907b43ce45c12cde441872f43b1bc69c03983c1a4ee7c2e87
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.75.16":
version: 0.75.16
resolution: "@polkadot/dev@npm:0.75.16"
"@polkadot/dev@npm:^0.75.19":
version: 0.75.19
resolution: "@polkadot/dev@npm:0.75.19"
dependencies:
"@eslint/js": ^8.42.0
"@polkadot/dev-test": ^0.75.16
"@polkadot/dev-ts": ^0.75.16
"@polkadot/dev-test": ^0.75.19
"@polkadot/dev-ts": ^0.75.19
"@rollup/plugin-alias": ^5.0.0
"@rollup/plugin-commonjs": ^25.0.0
"@rollup/plugin-dynamic-import-vars": ^2.0.3
@@ -505,8 +505,8 @@ __metadata:
"@rollup/plugin-json": ^6.0.0
"@rollup/plugin-node-resolve": ^15.1.0
"@tsconfig/strictest": ^2.0.1
"@typescript-eslint/eslint-plugin": ^5.59.8
"@typescript-eslint/parser": ^5.59.8
"@typescript-eslint/eslint-plugin": ^5.59.9
"@typescript-eslint/parser": ^5.59.9
eslint: ^8.42.0
eslint-config-standard: ^17.1.0
eslint-import-resolver-node: ^0.3.7
@@ -528,12 +528,12 @@ __metadata:
globals: ^13.20.0
json5: ^2.2.3
madge: ^6.1.0
rollup: ^3.23.0
rollup: ^3.24.0
rollup-plugin-cleanup: ^3.2.1
tslib: ^2.5.3
typescript: ^5.1.3
webpack: ^5.85.0
webpack-cli: ^5.1.2
webpack: ^5.86.0
webpack-cli: ^5.1.4
webpack-dev-server: ^4.15.0
webpack-merge: ^5.9.0
webpack-subresource-integrity: ^5.2.0-rc.1
@@ -562,11 +562,11 @@ __metadata:
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
checksum: 17bd59605879803792189a771ba91ea500a1dcfab528856d14fed0c9a3628306107348be47e0ef1465dbe93f860ae34a9c0f05d58f568fea3b38df4e31ebf5e2
checksum: ab5e3c64f125508c068ca2e3f784947b1ddd1196f71cfc820b9bd11fae28548926865f18dadbb8321a646dba4d80f44122890a54efb97bef370b92a2e5f0fc46
languageName: node
linkType: hard
"@polkadot/hw-ledger-transports@12.2.2, @polkadot/hw-ledger-transports@workspace:packages/hw-ledger-transports":
"@polkadot/hw-ledger-transports@12.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:
@@ -574,7 +574,7 @@ __metadata:
"@ledgerhq/hw-transport-node-hid-singleton": ^6.28.12
"@ledgerhq/hw-transport-webhid": ^6.27.15
"@ledgerhq/hw-transport-webusb": ^6.27.15
"@polkadot/util": 12.2.2
"@polkadot/util": 12.3.1
tslib: ^2.5.3
dependenciesMeta:
"@ledgerhq/hw-transport-node-hid-singleton":
@@ -582,12 +582,12 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/hw-ledger@12.2.2, @polkadot/hw-ledger@workspace:packages/hw-ledger":
"@polkadot/hw-ledger@12.3.1, @polkadot/hw-ledger@workspace:packages/hw-ledger":
version: 0.0.0-use.local
resolution: "@polkadot/hw-ledger@workspace:packages/hw-ledger"
dependencies:
"@polkadot/hw-ledger-transports": 12.2.2
"@polkadot/util": 12.2.2
"@polkadot/hw-ledger-transports": 12.3.1
"@polkadot/util": 12.3.1
"@zondax/ledger-substrate": ^0.40.7
tslib: ^2.5.3
languageName: unknown
@@ -597,54 +597,54 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/keyring@workspace:packages/keyring"
dependencies:
"@polkadot/util": 12.2.2
"@polkadot/util-crypto": 12.2.2
"@polkadot/util": 12.3.1
"@polkadot/util-crypto": 12.3.1
tslib: ^2.5.3
peerDependencies:
"@polkadot/util": 12.2.2
"@polkadot/util-crypto": 12.2.2
"@polkadot/util": 12.3.1
"@polkadot/util-crypto": 12.3.1
languageName: unknown
linkType: soft
"@polkadot/networks@12.2.2, @polkadot/networks@workspace:packages/networks":
"@polkadot/networks@12.3.1, @polkadot/networks@workspace:packages/networks":
version: 0.0.0-use.local
resolution: "@polkadot/networks@workspace:packages/networks"
dependencies:
"@polkadot/hw-ledger": 12.2.2
"@polkadot/util": 12.2.2
"@polkadot/hw-ledger": 12.3.1
"@polkadot/util": 12.3.1
"@substrate/ss58-registry": ^1.40.0
tslib: ^2.5.3
languageName: unknown
linkType: soft
"@polkadot/util-crypto@12.2.2, @polkadot/util-crypto@workspace:packages/util-crypto":
"@polkadot/util-crypto@12.3.1, @polkadot/util-crypto@workspace:packages/util-crypto":
version: 0.0.0-use.local
resolution: "@polkadot/util-crypto@workspace:packages/util-crypto"
dependencies:
"@noble/curves": 1.1.0
"@noble/hashes": 1.3.1
"@polkadot/networks": 12.2.2
"@polkadot/util": 12.2.2
"@polkadot/networks": 12.3.1
"@polkadot/util": 12.3.1
"@polkadot/wasm-crypto": ^7.2.1
"@polkadot/wasm-util": ^7.2.1
"@polkadot/x-bigint": 12.2.2
"@polkadot/x-randomvalues": 12.2.2
"@polkadot/x-bigint": 12.3.1
"@polkadot/x-randomvalues": 12.3.1
"@scure/base": 1.1.1
tslib: ^2.5.3
peerDependencies:
"@polkadot/util": 12.2.2
"@polkadot/util": 12.3.1
languageName: unknown
linkType: soft
"@polkadot/util@12.2.2, @polkadot/util@workspace:packages/util":
"@polkadot/util@12.3.1, @polkadot/util@workspace:packages/util":
version: 0.0.0-use.local
resolution: "@polkadot/util@workspace:packages/util"
dependencies:
"@polkadot/x-bigint": 12.2.2
"@polkadot/x-global": 12.2.2
"@polkadot/x-randomvalues": 12.2.2
"@polkadot/x-textdecoder": 12.2.2
"@polkadot/x-textencoder": 12.2.2
"@polkadot/x-bigint": 12.3.1
"@polkadot/x-global": 12.3.1
"@polkadot/x-randomvalues": 12.3.1
"@polkadot/x-textdecoder": 12.3.1
"@polkadot/x-textencoder": 12.3.1
"@types/bn.js": ^5.1.1
bn.js: ^5.2.1
tslib: ^2.5.3
@@ -731,11 +731,11 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-bigint@12.2.2, @polkadot/x-bigint@workspace:packages/x-bigint":
"@polkadot/x-bigint@12.3.1, @polkadot/x-bigint@workspace:packages/x-bigint":
version: 0.0.0-use.local
resolution: "@polkadot/x-bigint@workspace:packages/x-bigint"
dependencies:
"@polkadot/x-global": 12.2.2
"@polkadot/x-global": 12.3.1
tslib: ^2.5.3
languageName: unknown
linkType: soft
@@ -744,7 +744,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/x-bundle@workspace:packages/x-bundle"
dependencies:
"@polkadot/util": 12.2.2
"@polkadot/util": 12.3.1
buffer-es6: ^4.9.3
tslib: ^2.5.3
languageName: unknown
@@ -754,13 +754,13 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/x-fetch@workspace:packages/x-fetch"
dependencies:
"@polkadot/x-global": 12.2.2
"@polkadot/x-global": 12.3.1
node-fetch: ^3.3.1
tslib: ^2.5.3
languageName: unknown
linkType: soft
"@polkadot/x-global@12.2.2, @polkadot/x-global@workspace:packages/x-global":
"@polkadot/x-global@12.3.1, @polkadot/x-global@workspace:packages/x-global":
version: 0.0.0-use.local
resolution: "@polkadot/x-global@workspace:packages/x-global"
dependencies:
@@ -768,35 +768,35 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/x-randomvalues@12.2.2, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
"@polkadot/x-randomvalues@12.3.1, @polkadot/x-randomvalues@workspace:packages/x-randomvalues":
version: 0.0.0-use.local
resolution: "@polkadot/x-randomvalues@workspace:packages/x-randomvalues"
dependencies:
"@polkadot/util": 12.2.2
"@polkadot/util": 12.3.1
"@polkadot/wasm-util": ^7.2.1
"@polkadot/x-global": 12.2.2
"@polkadot/x-global": 12.3.1
"@types/react-native": ^0.72.2
tslib: ^2.5.3
peerDependencies:
"@polkadot/util": 12.2.2
"@polkadot/util": 12.3.1
"@polkadot/wasm-util": "*"
languageName: unknown
linkType: soft
"@polkadot/x-textdecoder@12.2.2, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
"@polkadot/x-textdecoder@12.3.1, @polkadot/x-textdecoder@workspace:packages/x-textdecoder":
version: 0.0.0-use.local
resolution: "@polkadot/x-textdecoder@workspace:packages/x-textdecoder"
dependencies:
"@polkadot/x-global": 12.2.2
"@polkadot/x-global": 12.3.1
tslib: ^2.5.3
languageName: unknown
linkType: soft
"@polkadot/x-textencoder@12.2.2, @polkadot/x-textencoder@workspace:packages/x-textencoder":
"@polkadot/x-textencoder@12.3.1, @polkadot/x-textencoder@workspace:packages/x-textencoder":
version: 0.0.0-use.local
resolution: "@polkadot/x-textencoder@workspace:packages/x-textencoder"
dependencies:
"@polkadot/x-global": 12.2.2
"@polkadot/x-global": 12.3.1
tslib: ^2.5.3
languageName: unknown
linkType: soft
@@ -805,8 +805,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/x-ws@workspace:packages/x-ws"
dependencies:
"@polkadot/x-global": 12.2.2
"@types/ws": ^8.5.4
"@polkadot/x-global": 12.3.1
"@types/ws": ^8.5.5
tslib: ^2.5.3
ws: ^8.13.0
languageName: unknown
@@ -1120,10 +1120,10 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:*, @types/node@npm:^20.2.5":
version: 20.2.5
resolution: "@types/node@npm:20.2.5"
checksum: 38ce7c7e9d76880dc632f71d71e0d5914fcda9d5e9a7095d6c339abda55ca4affb0f2a882aeb29398f8e09d2c5151f0b6586c81c8ccdfe529c34b1ea3337425e
"@types/node@npm:*, @types/node@npm:^20.3.0":
version: 20.3.0
resolution: "@types/node@npm:20.3.0"
checksum: 613e878174febc0104dae210088645cbb5096a19ae5fdf57fbc06fa6ef71755b839858c2b313fb8c1df8b7c6660e1b5f7a64db2126af9d47d1d9238e2bc0a86d
languageName: node
linkType: hard
@@ -1233,23 +1233,23 @@ __metadata:
languageName: node
linkType: hard
"@types/ws@npm:^8.5.1, @types/ws@npm:^8.5.4":
version: 8.5.4
resolution: "@types/ws@npm:8.5.4"
"@types/ws@npm:^8.5.1, @types/ws@npm:^8.5.5":
version: 8.5.5
resolution: "@types/ws@npm:8.5.5"
dependencies:
"@types/node": "*"
checksum: fefbad20d211929bb996285c4e6f699b12192548afedbe4930ab4384f8a94577c9cd421acaad163cacd36b88649509970a05a0b8f20615b30c501ed5269038d1
checksum: d00bf8070e6938e3ccf933010921c6ce78ac3606696ce37a393b27a9a603f7bd93ea64f3c5fa295a2f743575ba9c9a9fdb904af0f5fe2229bf2adf0630386e4a
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:^5.59.8":
version: 5.59.8
resolution: "@typescript-eslint/eslint-plugin@npm:5.59.8"
"@typescript-eslint/eslint-plugin@npm:^5.59.9":
version: 5.59.9
resolution: "@typescript-eslint/eslint-plugin@npm:5.59.9"
dependencies:
"@eslint-community/regexpp": ^4.4.0
"@typescript-eslint/scope-manager": 5.59.8
"@typescript-eslint/type-utils": 5.59.8
"@typescript-eslint/utils": 5.59.8
"@typescript-eslint/scope-manager": 5.59.9
"@typescript-eslint/type-utils": 5.59.9
"@typescript-eslint/utils": 5.59.9
debug: ^4.3.4
grapheme-splitter: ^1.0.4
ignore: ^5.2.0
@@ -1262,43 +1262,43 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: 3e05cd06149ec3741c3c2fb638e2d19a55687b4614a5c8820433db82997687650297e51c17828d320162ccf4241798cf5712c405561e7605cb17e984a6967f7b
checksum: bd2428e307085d7fa6699913b6e61d65eb450bbcd26f884390cbf16722b80e1d80dc289c72774be1cdffd022744894204c3242f40ba3ffdfa05d3f210c4130bb
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:^5.59.8":
version: 5.59.8
resolution: "@typescript-eslint/parser@npm:5.59.8"
"@typescript-eslint/parser@npm:^5.59.9":
version: 5.59.9
resolution: "@typescript-eslint/parser@npm:5.59.9"
dependencies:
"@typescript-eslint/scope-manager": 5.59.8
"@typescript-eslint/types": 5.59.8
"@typescript-eslint/typescript-estree": 5.59.8
"@typescript-eslint/scope-manager": 5.59.9
"@typescript-eslint/types": 5.59.9
"@typescript-eslint/typescript-estree": 5.59.9
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: bac9f09d8552086ceb882a7b87ce4d98dfaa41579249216c75d97e3fc07af33cddc4cbbd07a127a5823c826a258882643aaf658bec19cb2a434002b55c5f0d12
checksum: 69b07d0a5bc6e1d24d23916c057ea9f2f53a0e7fb6dabadff92987c299640edee2c013fb93269322c7124e87b5c515529001397eae33006dfb40e1dcdf1902d7
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:5.59.8":
version: 5.59.8
resolution: "@typescript-eslint/scope-manager@npm:5.59.8"
"@typescript-eslint/scope-manager@npm:5.59.9":
version: 5.59.9
resolution: "@typescript-eslint/scope-manager@npm:5.59.9"
dependencies:
"@typescript-eslint/types": 5.59.8
"@typescript-eslint/visitor-keys": 5.59.8
checksum: e1e810ee991cfeb433330b04ee949bb6784abe4dbdb7d9480aa7a7536671b4fec914b7803edf662516c8ecb1b31dcff126797f9923270a529c26e2b00b0ea96f
"@typescript-eslint/types": 5.59.9
"@typescript-eslint/visitor-keys": 5.59.9
checksum: 362c22662d844440a7e14223d8cc0722f77ff21ad8f78deb0ee3b3f21de01b8846bf25fbbf527544677e83d8ff48008b3f7d40b39ddec55994ea4a1863e9ec0a
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:5.59.8":
version: 5.59.8
resolution: "@typescript-eslint/type-utils@npm:5.59.8"
"@typescript-eslint/type-utils@npm:5.59.9":
version: 5.59.9
resolution: "@typescript-eslint/type-utils@npm:5.59.9"
dependencies:
"@typescript-eslint/typescript-estree": 5.59.8
"@typescript-eslint/utils": 5.59.8
"@typescript-eslint/typescript-estree": 5.59.9
"@typescript-eslint/utils": 5.59.9
debug: ^4.3.4
tsutils: ^3.21.0
peerDependencies:
@@ -1306,7 +1306,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: d9fde31397da0f0e62a5568f64bad99d06bcd324b7e3aac7fd997a3d045a0fe4c084b2e85d440e0a39645acd2269ad6593f196399c2c0f880d293417fec894e3
checksum: 6bc2619c5024c152b181eff1f44c9b5e7d0fc75ce9403f03b39d59fc1e13191b2fbaf6730f26a1caae22922ac47489f39c2cebccdd713588f6963169ed2a7958
languageName: node
linkType: hard
@@ -1317,19 +1317,19 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/types@npm:5.59.8":
version: 5.59.8
resolution: "@typescript-eslint/types@npm:5.59.8"
checksum: 559473d5601c849eb0da1874a2ac67c753480beed484ad6f6cda62fa6023273f2c3005c7f2864d9c2afb7c6356412d0d304b57db10c53597207f18a7f6cd4f18
"@typescript-eslint/types@npm:5.59.9":
version: 5.59.9
resolution: "@typescript-eslint/types@npm:5.59.9"
checksum: 283f8fee1ee590eeccc2e0fcd3526c856c4b1e2841af2cdcd09eeac842a42cfb32f6bc8b40385380f3dbc3ee29da30f1819115eedf9e16f69ff5a160aeddd8fa
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:5.59.8, @typescript-eslint/typescript-estree@npm:^5.13.0":
version: 5.59.8
resolution: "@typescript-eslint/typescript-estree@npm:5.59.8"
"@typescript-eslint/typescript-estree@npm:5.59.9, @typescript-eslint/typescript-estree@npm:^5.13.0":
version: 5.59.9
resolution: "@typescript-eslint/typescript-estree@npm:5.59.9"
dependencies:
"@typescript-eslint/types": 5.59.8
"@typescript-eslint/visitor-keys": 5.59.8
"@typescript-eslint/types": 5.59.9
"@typescript-eslint/visitor-keys": 5.59.9
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
@@ -1338,7 +1338,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
checksum: d93371cc866f573a6a1ddc0eb10d498a8e59f36763a99ce21da0737fff2b4c942eef1587216aad273f8d896ebc0b19003677cba63a27d2646aa2c087638963eb
checksum: c0c9b81f20a2a4337f07bc3ccdc9c1dabd765f59096255ed9a149e91e5c9517b25c2b6655f8f073807cfc13500c7451fbd9bb62e5e572c07cc07945ab042db89
languageName: node
linkType: hard
@@ -1360,21 +1360,21 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:5.59.8, @typescript-eslint/utils@npm:^5.10.0, @typescript-eslint/utils@npm:^5.57.0":
version: 5.59.8
resolution: "@typescript-eslint/utils@npm:5.59.8"
"@typescript-eslint/utils@npm:5.59.9, @typescript-eslint/utils@npm:^5.10.0, @typescript-eslint/utils@npm:^5.57.0":
version: 5.59.9
resolution: "@typescript-eslint/utils@npm:5.59.9"
dependencies:
"@eslint-community/eslint-utils": ^4.2.0
"@types/json-schema": ^7.0.9
"@types/semver": ^7.3.12
"@typescript-eslint/scope-manager": 5.59.8
"@typescript-eslint/types": 5.59.8
"@typescript-eslint/typescript-estree": 5.59.8
"@typescript-eslint/scope-manager": 5.59.9
"@typescript-eslint/types": 5.59.9
"@typescript-eslint/typescript-estree": 5.59.9
eslint-scope: ^5.1.1
semver: ^7.3.7
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: cbaa057485c7f52c45d0dfb4f5a8e9273abccb1c52dcb4426a79f9e71d2c1062cf2525bad6d4aca5ec42db3fe723d749843bcade5a323bde7fbe4b5d5b5d5c3b
checksum: 22ec5962886de7dcf65f99c37aad9fb189a3bef6b2b07c81887fb82a0e8bf137246da58e64fb02141352285708440be13acd7f6db1ca19e96f86724813ac4646
languageName: node
linkType: hard
@@ -1388,13 +1388,13 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:5.59.8":
version: 5.59.8
resolution: "@typescript-eslint/visitor-keys@npm:5.59.8"
"@typescript-eslint/visitor-keys@npm:5.59.9":
version: 5.59.9
resolution: "@typescript-eslint/visitor-keys@npm:5.59.9"
dependencies:
"@typescript-eslint/types": 5.59.8
"@typescript-eslint/types": 5.59.9
eslint-visitor-keys: ^3.3.0
checksum: 6bfa7918dbb0e08d8a7404aeeef7bcd1a85736dc8d01614d267c0c5ec10f94d2746b50a945bf5c82c54fda67926e8deaeba8565c919da17f725fc11209ef8987
checksum: 2909ce761f7fe546592cd3c43e33263d8a5fa619375fd2fdffbc72ffc33e40d6feacafb28c79f36c638fcc2225048e7cc08c61cbac6ca63723dc68610d80e3e6
languageName: node
linkType: hard
@@ -7710,9 +7710,9 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"rollup@npm:^3.23.0":
version: 3.23.0
resolution: "rollup@npm:3.23.0"
"rollup@npm:^3.24.0":
version: 3.24.0
resolution: "rollup@npm:3.24.0"
dependencies:
fsevents: ~2.3.2
dependenciesMeta:
@@ -7720,7 +7720,7 @@ fsevents@~2.3.2:
optional: true
bin:
rollup: dist/bin/rollup
checksum: 0721065cf725c5611815be61d2b01f20b4d0027e17035f6e76384d38396b56cf6ed21a3db78eb004d9db4d24c8a6a19da4563b4ff96b5dd36f0a0f7a3baf85e8
checksum: 373d0062a79cfce3583d4f6b7ab8ac9aa3201a9af1fa20b24f61a4ddea95a45974c4a8baed3087cb4e7bfc34a9dcd6774b7a635eb071ba52f97f51a59e860d6e
languageName: node
linkType: hard
@@ -7728,8 +7728,8 @@ fsevents@~2.3.2:
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@polkadot/dev": ^0.75.16
"@types/node": ^20.2.5
"@polkadot/dev": ^0.75.19
"@types/node": ^20.3.0
languageName: unknown
linkType: soft
@@ -9087,9 +9087,9 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"webpack-cli@npm:^5.1.2":
version: 5.1.2
resolution: "webpack-cli@npm:5.1.2"
"webpack-cli@npm:^5.1.4":
version: 5.1.4
resolution: "webpack-cli@npm:5.1.4"
dependencies:
"@discoveryjs/json-ext": ^0.5.0
"@webpack-cli/configtest": ^2.1.1
@@ -9115,7 +9115,7 @@ fsevents@~2.3.2:
optional: true
bin:
webpack-cli: bin/cli.js
checksum: 7bf33c82a6737dbf53294f467066395545884f648f44f961fbe16ed06d6c5fb3239ce51ad4b3af5b1ab038352a24861dbde8d92e0985a34c7bbd1893096b750e
checksum: 3a4ad0d0342a6815c850ee4633cc2a8a5dae04f918e7847f180bf24ab400803cf8a8943707ffbed03eb20fe6ce647f996f60a2aade87b0b4a9954da3da172ce0
languageName: node
linkType: hard
@@ -9211,9 +9211,9 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"webpack@npm:^5.85.0":
version: 5.85.0
resolution: "webpack@npm:5.85.0"
"webpack@npm:^5.86.0":
version: 5.86.0
resolution: "webpack@npm:5.86.0"
dependencies:
"@types/eslint-scope": ^3.7.3
"@types/estree": ^1.0.0
@@ -9244,7 +9244,7 @@ fsevents@~2.3.2:
optional: true
bin:
webpack: bin/webpack.js
checksum: b013be9fbc7f6810d1f229f570c70710ddbc7290f817411acffe4214b2b6c783a041ab1f2005d9e1109f4ab21c136f0f8d8c067a5fb64f20a82dcbc1ee0d3f42
checksum: 682b1aa8328bb9d52ae66a1d0a1078af88f9e3b3b3a9c9e1ce203e669581a8e61d522420ef253130eacd510d24d7275b840c1311d50bd048d6fd7c1af186ce55
languageName: node
linkType: hard