Socket
Socket
Sign inDemoInstall

@polkadot/x-bigint

Package Overview
Dependencies
Maintainers
2
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/x-bigint - npm Package Compare versions

Comparing version 10.4.2 to 11.0.1

26

cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BigInt = void 0;
Object.defineProperty(exports, "packageInfo", {
enumerable: true,
get: function () {
return _packageInfo.packageInfo;
}
});
var _xGlobal = require("@polkadot/x-global");
var _packageInfo = require("./packageInfo");
// Copyright 2017-2023 @polkadot/x-bigint authors & contributors
// SPDX-License-Identifier: Apache-2.0
const BigInt = typeof _xGlobal.xglobal.BigInt === 'function' && typeof _xGlobal.xglobal.BigInt.asIntN === 'function' ? _xGlobal.xglobal.BigInt : () => Number.NaN;
exports.BigInt = BigInt;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BigInt = exports.packageInfo = void 0;
const x_global_1 = require("@polkadot/x-global");
var packageInfo_1 = require("./packageInfo");
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_1.packageInfo; } });
exports.BigInt = typeof x_global_1.xglobal.BigInt === 'function' && typeof x_global_1.xglobal.BigInt.asIntN === 'function'
? x_global_1.xglobal.BigInt
: (() => Number.NaN);
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "__esModule", { value: true });
exports.packageInfo = void 0;
// Copyright 2017-2023 @polkadot/x-bigint authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
const packageInfo = {
name: '@polkadot/x-bigint',
path: typeof __dirname === 'string' ? __dirname : 'auto',
type: 'cjs',
version: '10.4.2'
};
exports.packageInfo = packageInfo;
exports.packageInfo = { name: '@polkadot/x-bigint', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.0.1' };
"use strict";
var _xBigint = require("@polkadot/x-bigint");
var _xGlobal = require("@polkadot/x-global");
// Copyright 2017-2023 @polkadot/x-bigint authors & contributors
// SPDX-License-Identifier: Apache-2.0
(0, _xGlobal.exposeGlobal)('BigInt', _xBigint.BigInt);
Object.defineProperty(exports, "__esModule", { value: true });
const x_bigint_1 = require("@polkadot/x-bigint");
const x_global_1 = require("@polkadot/x-global");
(0, x_global_1.exposeGlobal)('BigInt', x_bigint_1.BigInt);

@@ -1,6 +0,5 @@

// Copyright 2017-2023 @polkadot/x-bigint authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { xglobal } from '@polkadot/x-global';
export { packageInfo } from "./packageInfo.js";
export const BigInt = typeof xglobal.BigInt === 'function' && typeof xglobal.BigInt.asIntN === 'function' ? xglobal.BigInt : () => Number.NaN;
export { packageInfo } from './packageInfo.js';
export const BigInt = typeof xglobal.BigInt === 'function' && typeof xglobal.BigInt.asIntN === 'function'
? xglobal.BigInt
: (() => Number.NaN);

@@ -23,3 +23,3 @@ {

"type": "module",
"version": "10.4.2",
"version": "11.0.1",
"main": "./cjs/index.js",

@@ -36,3 +36,6 @@ "module": "./index.js",

},
"./package.json": "./package.json",
"./package.json": {
"require": "./cjs/package.json",
"default": "./package.json"
},
"./packageInfo.js": {

@@ -60,5 +63,5 @@ "types": "./packageInfo.d.ts",

"dependencies": {
"@babel/runtime": "^7.20.13",
"@polkadot/x-global": "10.4.2"
"@polkadot/x-global": "11.0.1",
"tslib": "^2.5.0"
}
}

@@ -1,11 +0,1 @@

// Copyright 2017-2023 @polkadot/x-bigint authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = {
name: '@polkadot/x-bigint',
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
type: 'esm',
version: '10.4.2'
};
export const packageInfo = { name: '@polkadot/x-bigint', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.0.1' };

@@ -1,6 +0,3 @@

// Copyright 2017-2023 @polkadot/x-bigint authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { BigInt } from '@polkadot/x-bigint';
import { exposeGlobal } from '@polkadot/x-global';
exposeGlobal('BigInt', BigInt);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc