@math.gl/types 3.6.0-alpha.1 → 3.6.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,77 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.BigUint64Array = exports.BigInt64Array = exports.BigInt = exports.BigUint64ArrayAvailable = exports.BigInt64ArrayAvailable = exports.BigIntAvailable = void 0;
7
- const ERR_BIGINT_UNAVAILABLE = 'BigInt is not available in this environment';
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
+
14
+ var ERR_BIGINT_UNAVAILABLE = 'BigInt is not available in this environment';
8
15
 
9
16
  function BigIntUnavailable() {
10
17
  throw new Error(ERR_BIGINT_UNAVAILABLE);
11
18
  }
12
19
 
13
- BigIntUnavailable.asIntN = () => {
20
+ BigIntUnavailable.asIntN = function () {
14
21
  throw new Error(ERR_BIGINT_UNAVAILABLE);
15
22
  };
16
23
 
17
- BigIntUnavailable.asUintN = () => {
24
+ BigIntUnavailable.asUintN = function () {
18
25
  throw new Error(ERR_BIGINT_UNAVAILABLE);
19
26
  };
20
27
 
21
- class BigInt64ArrayUnavailable {
22
- static get BYTES_PER_ELEMENT() {
23
- return 8;
24
- }
25
-
26
- static of() {
27
- throw new Error(ERR_BIGINT_UNAVAILABLE);
28
- }
29
-
30
- static from() {
28
+ var BigInt64ArrayUnavailable = function () {
29
+ function BigInt64ArrayUnavailable() {
30
+ (0, _classCallCheck2.default)(this, BigInt64ArrayUnavailable);
31
31
  throw new Error(ERR_BIGINT_UNAVAILABLE);
32
32
  }
33
33
 
34
- constructor() {
35
- throw new Error(ERR_BIGINT_UNAVAILABLE);
36
- }
37
-
38
- }
39
-
40
- const BigIntAvailable = typeof BigInt !== 'undefined';
34
+ (0, _createClass2.default)(BigInt64ArrayUnavailable, null, [{
35
+ key: "BYTES_PER_ELEMENT",
36
+ get: function get() {
37
+ return 8;
38
+ }
39
+ }, {
40
+ key: "of",
41
+ value: function of() {
42
+ throw new Error(ERR_BIGINT_UNAVAILABLE);
43
+ }
44
+ }, {
45
+ key: "from",
46
+ value: function from() {
47
+ throw new Error(ERR_BIGINT_UNAVAILABLE);
48
+ }
49
+ }]);
50
+ return BigInt64ArrayUnavailable;
51
+ }();
52
+
53
+ var BigIntAvailable = typeof BigInt !== 'undefined';
41
54
  exports.BigIntAvailable = BigIntAvailable;
42
- const BigInt64ArrayAvailable = typeof BigInt64Array !== 'undefined';
55
+ var BigInt64ArrayAvailable = typeof BigInt64Array !== 'undefined';
43
56
  exports.BigInt64ArrayAvailable = BigInt64ArrayAvailable;
44
- const BigUint64ArrayAvailable = typeof BigUint64Array !== 'undefined';
57
+ var BigUint64ArrayAvailable = typeof BigUint64Array !== 'undefined';
45
58
  exports.BigUint64ArrayAvailable = BigUint64ArrayAvailable;
46
59
 
47
- const BigIntCtor = (() => {
60
+ var BigIntCtor = function () {
48
61
  return BigIntAvailable ? BigInt : BigIntUnavailable;
49
- })();
62
+ }();
50
63
 
51
64
  exports.BigInt = BigIntCtor;
52
65
 
53
- const BigInt64ArrayCtor = (() => {
66
+ var BigInt64ArrayCtor = function () {
54
67
  return BigInt64ArrayAvailable ? BigInt64Array : BigInt64ArrayUnavailable;
55
- })();
68
+ }();
56
69
 
57
70
  exports.BigInt64Array = BigInt64ArrayCtor;
58
71
 
59
- const BigUint64ArrayCtor = (() => {
72
+ var BigUint64ArrayCtor = function () {
60
73
  return BigUint64ArrayAvailable ? [BigUint64Array] : [BigInt64ArrayUnavailable];
61
- })();
74
+ }();
62
75
 
63
76
  exports.BigUint64Array = BigUint64ArrayCtor;
64
77
  //# sourceMappingURL=bigint.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bigint.ts"],"names":["ERR_BIGINT_UNAVAILABLE","BigIntUnavailable","Error","asIntN","asUintN","BigInt64ArrayUnavailable","BYTES_PER_ELEMENT","of","from","constructor","BigIntAvailable","BigInt","BigInt64ArrayAvailable","BigInt64Array","BigUint64ArrayAvailable","BigUint64Array","BigIntCtor","BigInt64ArrayCtor","BigUint64ArrayCtor"],"mappings":";;;;;;AAMA,MAAMA,sBAAsB,GAAG,6CAA/B;;AAEA,SAASC,iBAAT,GAA6B;AAC3B,QAAM,IAAIC,KAAJ,CAAUF,sBAAV,CAAN;AACD;;AACDC,iBAAiB,CAACE,MAAlB,GAA2B,MAAM;AAC/B,QAAM,IAAID,KAAJ,CAAUF,sBAAV,CAAN;AACD,CAFD;;AAGAC,iBAAiB,CAACG,OAAlB,GAA4B,MAAM;AAChC,QAAM,IAAIF,KAAJ,CAAUF,sBAAV,CAAN;AACD,CAFD;;AAIA,MAAMK,wBAAN,CAA+B;AACD,aAAjBC,iBAAiB,GAAG;AAC7B,WAAO,CAAP;AACD;;AACQ,SAAFC,EAAE,GAAG;AACV,UAAM,IAAIL,KAAJ,CAAUF,sBAAV,CAAN;AACD;;AACU,SAAJQ,IAAI,GAAG;AACZ,UAAM,IAAIN,KAAJ,CAAUF,sBAAV,CAAN;AACD;;AACDS,EAAAA,WAAW,GAAG;AACZ,UAAM,IAAIP,KAAJ,CAAUF,sBAAV,CAAN;AACD;;AAZ4B;;AAexB,MAAMU,eAAe,GAAG,OAAOC,MAAP,KAAkB,WAA1C;;AACA,MAAMC,sBAAsB,GAAG,OAAOC,aAAP,KAAyB,WAAxD;;AACA,MAAMC,uBAAuB,GAAG,OAAOC,cAAP,KAA0B,WAA1D;;;AAEP,MAAMC,UAAU,GAAG,CAAC,MAAM;AACxB,SAAON,eAAe,GAAGC,MAAH,GAAYV,iBAAlC;AACD,CAFkB,GAAnB;;;;AAIA,MAAMgB,iBAAiB,GAAG,CAAC,MAAM;AAC/B,SAAOL,sBAAsB,GAAGC,aAAH,GAAmBR,wBAAhD;AACD,CAFyB,GAA1B;;;;AAIA,MAAMa,kBAAkB,GAAG,CAAC,MAAM;AAChC,SAAOJ,uBAAuB,GAAG,CAACC,cAAD,CAAH,GAAsB,CAACV,wBAAD,CAApD;AACD,CAF0B,GAA3B","sourcesContent":["// BigInt compatibility layer\n// Inspired by ArrowJS (under Apache2 license)\n// https://github.com/apache/arrow/blob/master/js/src/util/compat.ts\n// Requires tsconfig.json: target=esnext or (lib: esnext.bigint)\n// Requires eslint: env: {es2020: true}\n\nconst ERR_BIGINT_UNAVAILABLE = 'BigInt is not available in this environment';\n\nfunction BigIntUnavailable() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n}\nBigIntUnavailable.asIntN = () => {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n};\nBigIntUnavailable.asUintN = () => {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n};\n\nclass BigInt64ArrayUnavailable {\n static get BYTES_PER_ELEMENT() {\n return 8;\n }\n static of() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n }\n static from() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n }\n constructor() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n }\n}\n\nexport const BigIntAvailable = typeof BigInt !== 'undefined';\nexport const BigInt64ArrayAvailable = typeof BigInt64Array !== 'undefined';\nexport const BigUint64ArrayAvailable = typeof BigUint64Array !== 'undefined';\n\nconst BigIntCtor = (() => {\n return BigIntAvailable ? BigInt : BigIntUnavailable;\n})();\n\nconst BigInt64ArrayCtor = (() => {\n return BigInt64ArrayAvailable ? BigInt64Array : BigInt64ArrayUnavailable;\n})();\n\nconst BigUint64ArrayCtor = (() => {\n return BigUint64ArrayAvailable ? [BigUint64Array] : [BigInt64ArrayUnavailable];\n})();\n\nexport {BigIntCtor as BigInt};\nexport {BigInt64ArrayCtor as BigInt64Array};\nexport {BigUint64ArrayCtor as BigUint64Array};\n"],"file":"bigint.js"}
1
+ {"version":3,"sources":["../../src/bigint.ts"],"names":["ERR_BIGINT_UNAVAILABLE","BigIntUnavailable","Error","asIntN","asUintN","BigInt64ArrayUnavailable","BigIntAvailable","BigInt","BigInt64ArrayAvailable","BigInt64Array","BigUint64ArrayAvailable","BigUint64Array","BigIntCtor","BigInt64ArrayCtor","BigUint64ArrayCtor"],"mappings":";;;;;;;;;;;;;AAMA,IAAMA,sBAAsB,GAAG,6CAA/B;;AAEA,SAASC,iBAAT,GAA6B;AAC3B,QAAM,IAAIC,KAAJ,CAAUF,sBAAV,CAAN;AACD;;AACDC,iBAAiB,CAACE,MAAlB,GAA2B,YAAM;AAC/B,QAAM,IAAID,KAAJ,CAAUF,sBAAV,CAAN;AACD,CAFD;;AAGAC,iBAAiB,CAACG,OAAlB,GAA4B,YAAM;AAChC,QAAM,IAAIF,KAAJ,CAAUF,sBAAV,CAAN;AACD,CAFD;;IAIMK,wB;AAUJ,sCAAc;AAAA;AACZ,UAAM,IAAIH,KAAJ,CAAUF,sBAAV,CAAN;AACD;;;;SAXD,eAA+B;AAC7B,aAAO,CAAP;AACD;;;WACD,cAAY;AACV,YAAM,IAAIE,KAAJ,CAAUF,sBAAV,CAAN;AACD;;;WACD,gBAAc;AACZ,YAAM,IAAIE,KAAJ,CAAUF,sBAAV,CAAN;AACD;;;;;AAMI,IAAMM,eAAe,GAAG,OAAOC,MAAP,KAAkB,WAA1C;;AACA,IAAMC,sBAAsB,GAAG,OAAOC,aAAP,KAAyB,WAAxD;;AACA,IAAMC,uBAAuB,GAAG,OAAOC,cAAP,KAA0B,WAA1D;;;AAEP,IAAMC,UAAU,GAAI,YAAM;AACxB,SAAON,eAAe,GAAGC,MAAH,GAAYN,iBAAlC;AACD,CAFkB,EAAnB;;;;AAIA,IAAMY,iBAAiB,GAAI,YAAM;AAC/B,SAAOL,sBAAsB,GAAGC,aAAH,GAAmBJ,wBAAhD;AACD,CAFyB,EAA1B;;;;AAIA,IAAMS,kBAAkB,GAAI,YAAM;AAChC,SAAOJ,uBAAuB,GAAG,CAACC,cAAD,CAAH,GAAsB,CAACN,wBAAD,CAApD;AACD,CAF0B,EAA3B","sourcesContent":["// BigInt compatibility layer\n// Inspired by ArrowJS (under Apache2 license)\n// https://github.com/apache/arrow/blob/master/js/src/util/compat.ts\n// Requires tsconfig.json: target=esnext or (lib: esnext.bigint)\n// Requires eslint: env: {es2020: true}\n\nconst ERR_BIGINT_UNAVAILABLE = 'BigInt is not available in this environment';\n\nfunction BigIntUnavailable() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n}\nBigIntUnavailable.asIntN = () => {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n};\nBigIntUnavailable.asUintN = () => {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n};\n\nclass BigInt64ArrayUnavailable {\n static get BYTES_PER_ELEMENT() {\n return 8;\n }\n static of() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n }\n static from() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n }\n constructor() {\n throw new Error(ERR_BIGINT_UNAVAILABLE);\n }\n}\n\nexport const BigIntAvailable = typeof BigInt !== 'undefined';\nexport const BigInt64ArrayAvailable = typeof BigInt64Array !== 'undefined';\nexport const BigUint64ArrayAvailable = typeof BigUint64Array !== 'undefined';\n\nconst BigIntCtor = (() => {\n return BigIntAvailable ? BigInt : BigIntUnavailable;\n})();\n\nconst BigInt64ArrayCtor = (() => {\n return BigInt64ArrayAvailable ? BigInt64Array : BigInt64ArrayUnavailable;\n})();\n\nconst BigUint64ArrayCtor = (() => {\n return BigUint64ArrayAvailable ? [BigUint64Array] : [BigInt64ArrayUnavailable];\n})();\n\nexport {BigIntCtor as BigInt};\nexport {BigInt64ArrayCtor as BigInt64Array};\nexport {BigUint64ArrayCtor as BigUint64Array};\n"],"file":"bigint.js"}
package/dist/es5/index.js CHANGED
@@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "TypedArray", {
7
7
  enumerable: true,
8
- get: function () {
8
+ get: function get() {
9
9
  return _numberArray.TypedArray;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "NumberArray", {
13
13
  enumerable: true,
14
- get: function () {
14
+ get: function get() {
15
15
  return _numberArray.NumberArray;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "NumericArray", {
19
19
  enumerable: true,
20
- get: function () {
20
+ get: function get() {
21
21
  return _numberArray.NumericArray;
22
22
  }
23
23
  });
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "3.6.0-alpha.1",
8
+ "version": "3.6.0-alpha.2",
9
9
  "keywords": [
10
10
  "typescript",
11
11
  "javascript",
@@ -27,5 +27,5 @@
27
27
  "sideEffects": [
28
28
  "./src/bigint.js"
29
29
  ],
30
- "gitHead": "45386981340895bf201c2ebb76257c9bbffd8ff6"
30
+ "gitHead": "ea7dc265c98b68af56218302d1d42b7d65f74ccb"
31
31
  }