Split into @polkadot/x-noble-hashes (indicating diff from upstream) (#1268)

* Aplit @noble/hashes fork

* Re-add original (non-eslint)

* Original package imports in README

* package.json

* Update packages/x-noble-hashes/package.json

* CC ignore

* jest
This commit is contained in:
Jaco
2021-12-01 15:27:29 +02:00
committed by GitHub
parent 2104c50bd0
commit c8f0ad55c4
34 changed files with 79 additions and 49 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ type NewBigInt = (value: string | number | bigint | boolean) => bigint;
* @description Creates a new instance of BigInt in environments that do support it
*/
export const _n: NewBigInt = typeof BigInt !== 'undefined'
? BigInt
? (n: string | number | bigint | boolean) => BigInt(n)
: () => Number.NaN as unknown as bigint;
/**