@math.gl/types
Advanced tools
Comparing version 3.6.0-alpha.1 to 3.6.0-alpha.2
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22461
272
1