1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.hasWasm = exports.hasProcess = exports.hasEsm = exports.hasDirname = exports.hasCjs = exports.hasBuffer = exports.hasBigInt = void 0;
|
7 |
|
8 | var _xBigint = require("@polkadot/x-bigint");
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | const hasBigInt = typeof _xBigint.BigInt === 'function' && typeof _xBigint.BigInt.asIntN === 'function';
|
15 |
|
16 |
|
17 | exports.hasBigInt = hasBigInt;
|
18 | const hasBuffer = typeof Buffer !== 'undefined';
|
19 |
|
20 |
|
21 | exports.hasBuffer = hasBuffer;
|
22 | const hasCjs = typeof require === 'function' && typeof module !== 'undefined';
|
23 |
|
24 |
|
25 | exports.hasCjs = hasCjs;
|
26 | const hasDirname = typeof __dirname !== 'undefined';
|
27 |
|
28 |
|
29 | exports.hasDirname = hasDirname;
|
30 | const hasEsm = !hasCjs;
|
31 |
|
32 |
|
33 | exports.hasEsm = hasEsm;
|
34 | const hasProcess = typeof process === 'object';
|
35 |
|
36 |
|
37 | exports.hasProcess = hasProcess;
|
38 | const hasWasm = typeof WebAssembly !== 'undefined';
|
39 | exports.hasWasm = hasWasm; |
\ | No newline at end of file |