1 |
|
2 |
|
3 | import { BigInt } from '@polkadot/x-bigint';
|
4 |
|
5 |
|
6 | export const hasBigInt = typeof BigInt === 'function' && typeof BigInt.asIntN === 'function';
|
7 |
|
8 |
|
9 | export const hasBuffer = typeof Buffer !== 'undefined';
|
10 |
|
11 |
|
12 | export const hasCjs = typeof require === 'function' && typeof module !== 'undefined';
|
13 |
|
14 |
|
15 | export const hasDirname = typeof __dirname !== 'undefined';
|
16 |
|
17 |
|
18 | export const hasEsm = !hasCjs;
|
19 |
|
20 |
|
21 | export const hasProcess = typeof process === 'object';
|
22 |
|
23 |
|
24 | export const hasWasm = typeof WebAssembly !== 'undefined'; |
\ | No newline at end of file |