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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user