1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.hasProcess = exports.hasBuffer = exports.hasWasm = exports.hasEsm = exports.hasDirname = exports.hasCjs = exports.hasBigInt = void 0;
|
4 | const x_bigint_1 = require("@polkadot/x-bigint");
|
5 | const x_global_1 = require("@polkadot/x-global");
|
6 |
|
7 | exports.hasBigInt = typeof x_bigint_1.BigInt === 'function' && typeof x_bigint_1.BigInt.asIntN === 'function';
|
8 |
|
9 | exports.hasCjs = typeof require === 'function' && typeof module !== 'undefined';
|
10 |
|
11 | exports.hasDirname = typeof __dirname !== 'undefined';
|
12 |
|
13 | exports.hasEsm = !exports.hasCjs;
|
14 |
|
15 | exports.hasWasm = typeof WebAssembly !== 'undefined';
|
16 |
|
17 | exports.hasBuffer = typeof x_global_1.xglobal.Buffer === 'function' && typeof x_global_1.xglobal.Buffer.isBuffer === 'function';
|
18 |
|
19 | exports.hasProcess = typeof x_global_1.xglobal.process === 'object';
|