UNPKG

984 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.hasWasm = exports.hasProcess = exports.hasEsm = exports.hasDirname = exports.hasCjs = exports.hasBuffer = exports.hasBigInt = void 0;
7
8var _xBigint = require("@polkadot/x-bigint");
9
10// Copyright 2017-2022 @polkadot/util authors & contributors
11// SPDX-License-Identifier: Apache-2.0
12const hasBigInt = typeof _xBigint.BigInt === 'function' && typeof _xBigint.BigInt.asIntN === 'function';
13exports.hasBigInt = hasBigInt;
14const hasBuffer = typeof Buffer !== 'undefined';
15exports.hasBuffer = hasBuffer;
16const hasCjs = typeof require === 'function' && typeof module !== 'undefined';
17exports.hasCjs = hasCjs;
18const hasDirname = typeof __dirname !== 'undefined';
19exports.hasDirname = hasDirname;
20const hasEsm = !hasCjs;
21exports.hasEsm = hasEsm;
22const hasProcess = typeof process === 'object';
23exports.hasProcess = hasProcess;
24const hasWasm = typeof WebAssembly !== 'undefined';
25exports.hasWasm = hasWasm;
\No newline at end of file