Adjust with tsconfig references (#1317)

* Adjust with tsconfig references

* tabs -> spaces

* Adjust

* Cleanup spacing

* Adjust

* eslint-specific config

* Bump deps

* Bumps

* Adjust

* Update tests
This commit is contained in:
Jaco
2021-12-14 08:23:16 +02:00
committed by GitHub
parent fdd32df12f
commit feae08fc0f
68 changed files with 1020 additions and 816 deletions
+9 -3
View File
@@ -1,14 +1,20 @@
// Copyright 2017-2021 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { randomAsNumber } from '@polkadot/util-crypto';
import words from '@polkadot/util-crypto/mnemonic/bip39-en';
import { getRandomValues } from '@polkadot/x-randomvalues';
import { performance } from '../../test/performance';
import { arrayRange } from '../array';
import { performance } from '../test/performance';
import { stringCamelCase, stringUpperFirst } from '.';
const SEPS = [' ', '_', '-', '.', ','];
const words = 'bring|brisk|broccoli|broken|bronze|broom|brother|brown|brush|bubble|buddy|budget|buffalo|build|bulb|bulk|bullet|bundle|bunker|burden'.split('|');
function randomAsNumber (): number {
const rand = getRandomValues(new Uint8Array(4));
return rand.reduce((v, t) => (v * t) + v, 0);
}
const randomWords = arrayRange(256).map((): [string] => {
let result = '';