Socket
Socket
Sign inDemoInstall

@math.gl/types

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@math.gl/types - npm Package Compare versions

Comparing version 3.6.0-alpha.1 to 3.6.0-alpha.2

67

dist/es5/bigint.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -7,4 +9,9 @@ value: true

exports.BigUint64Array = exports.BigInt64Array = exports.BigInt = exports.BigUint64ArrayAvailable = exports.BigInt64ArrayAvailable = exports.BigIntAvailable = void 0;
const ERR_BIGINT_UNAVAILABLE = 'BigInt is not available in this environment';
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var ERR_BIGINT_UNAVAILABLE = 'BigInt is not available in this environment';
function BigIntUnavailable() {

@@ -14,53 +21,59 @@ throw new Error(ERR_BIGINT_UNAVAILABLE);

BigIntUnavailable.asIntN = () => {
BigIntUnavailable.asIntN = function () {
throw new Error(ERR_BIGINT_UNAVAILABLE);
};
BigIntUnavailable.asUintN = () => {
BigIntUnavailable.asUintN = function () {
throw new Error(ERR_BIGINT_UNAVAILABLE);
};
class BigInt64ArrayUnavailable {
static get BYTES_PER_ELEMENT() {
return 8;
}
static of() {
var BigInt64ArrayUnavailable = function () {
function BigInt64ArrayUnavailable() {
(0, _classCallCheck2.default)(this, BigInt64ArrayUnavailable);
throw new Error(ERR_BIGINT_UNAVAILABLE);
}
static from() {
throw new Error(ERR_BIGINT_UNAVAILABLE);
}
(0, _createClass2.default)(BigInt64ArrayUnavailable, null, [{
key: "BYTES_PER_ELEMENT",
get: function get() {
return 8;
}
}, {
key: "of",
value: function of() {
throw new Error(ERR_BIGINT_UNAVAILABLE);
}
}, {
key: "from",
value: function from() {
throw new Error(ERR_BIGINT_UNAVAILABLE);
}
}]);
return BigInt64ArrayUnavailable;
}();
constructor() {
throw new Error(ERR_BIGINT_UNAVAILABLE);
}
}
const BigIntAvailable = typeof BigInt !== 'undefined';
var BigIntAvailable = typeof BigInt !== 'undefined';
exports.BigIntAvailable = BigIntAvailable;
const BigInt64ArrayAvailable = typeof BigInt64Array !== 'undefined';
var BigInt64ArrayAvailable = typeof BigInt64Array !== 'undefined';
exports.BigInt64ArrayAvailable = BigInt64ArrayAvailable;
const BigUint64ArrayAvailable = typeof BigUint64Array !== 'undefined';
var BigUint64ArrayAvailable = typeof BigUint64Array !== 'undefined';
exports.BigUint64ArrayAvailable = BigUint64ArrayAvailable;
const BigIntCtor = (() => {
var BigIntCtor = function () {
return BigIntAvailable ? BigInt : BigIntUnavailable;
})();
}();
exports.BigInt = BigIntCtor;
const BigInt64ArrayCtor = (() => {
var BigInt64ArrayCtor = function () {
return BigInt64ArrayAvailable ? BigInt64Array : BigInt64ArrayUnavailable;
})();
}();
exports.BigInt64Array = BigInt64ArrayCtor;
const BigUint64ArrayCtor = (() => {
var BigUint64ArrayCtor = function () {
return BigUint64ArrayAvailable ? [BigUint64Array] : [BigInt64ArrayUnavailable];
})();
}();
exports.BigUint64Array = BigUint64ArrayCtor;
//# sourceMappingURL=bigint.js.map

@@ -8,3 +8,3 @@ "use strict";

enumerable: true,
get: function () {
get: function get() {
return _numberArray.TypedArray;

@@ -15,3 +15,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _numberArray.NumberArray;

@@ -22,3 +22,3 @@ }

enumerable: true,
get: function () {
get: function get() {
return _numberArray.NumericArray;

@@ -25,0 +25,0 @@ }

@@ -8,3 +8,3 @@ {

},
"version": "3.6.0-alpha.1",
"version": "3.6.0-alpha.2",
"keywords": [

@@ -31,3 +31,3 @@ "typescript",

],
"gitHead": "45386981340895bf201c2ebb76257c9bbffd8ff6"
"gitHead": "ea7dc265c98b68af56218302d1d42b7d65f74ccb"
}

Sorry, the diff of this file is not supported yet

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