@loaders.gl/worker-utils 3.3.0-alpha.12 → 3.3.0-alpha.13

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.
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.VERSION = void 0;
7
7
 
8
8
  var DEFAULT_VERSION = 'beta';
9
- var VERSION = typeof "3.3.0-alpha.12" !== 'undefined' ? "3.3.0-alpha.12" : DEFAULT_VERSION;
9
+ var VERSION = typeof "3.3.0-alpha.13" !== 'undefined' ? "3.3.0-alpha.13" : DEFAULT_VERSION;
10
10
  exports.VERSION = VERSION;
11
- if (typeof "3.3.0-alpha.12" === 'undefined') {
11
+ if (typeof "3.3.0-alpha.13" === 'undefined') {
12
12
  console.error('loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.');
13
13
  }
14
14
  //# sourceMappingURL=version.js.map
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
18
 
19
19
  var LATEST = 'beta';
20
- var VERSION = typeof "3.3.0-alpha.12" !== 'undefined' ? "3.3.0-alpha.12" : LATEST;
20
+ var VERSION = typeof "3.3.0-alpha.13" !== 'undefined' ? "3.3.0-alpha.13" : LATEST;
21
21
  var loadLibraryPromises = {};
22
22
 
23
23
  function loadLibrary(_x) {
@@ -13,7 +13,8 @@ var Worker = function () {
13
13
  }
14
14
  (0, _createClass2.default)(Worker, [{
15
15
  key: "terminate",
16
- value: function terminate() {}
16
+ value:
17
+ function terminate() {}
17
18
  }]);
18
19
  return Worker;
19
20
  }();
@@ -1 +1 @@
1
- {"version":3,"file":"worker_threads-browser.js","names":["Worker","parentPort"],"sources":["../../../../src/lib/node/worker_threads-browser.ts"],"sourcesContent":["// Browser fills for Node.js built-in `worker_threads` module.\n// These fills are non-functional, and just intended to ensure that\n// `import 'worker_threads` doesn't break browser builds.\n// The replacement is done in package.json browser field\nexport class Worker {\n terminate() {}\n}\n\nexport {Worker as NodeWorker};\nexport {Worker as NodeWorkerType};\n\nexport const parentPort = null;\n"],"mappings":";;;;;;;;;IAIaA,MAAM;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA,OACjB,qBAAY,CAAC;EAAC;EAAA;AAAA;AAAA;AAMT,IAAMC,UAAU,GAAG,IAAI;AAAC"}
1
+ {"version":3,"file":"worker_threads-browser.js","names":["Worker","parentPort"],"sources":["../../../../src/lib/node/worker_threads-browser.ts"],"sourcesContent":["// Browser fills for Node.js built-in `worker_threads` module.\n// These fills are non-functional, and just intended to ensure that\n// `import 'worker_threads` doesn't break browser builds.\n// The replacement is done in package.json browser field\nexport class Worker {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n terminate() {}\n}\n\nexport {Worker as NodeWorker};\nexport {Worker as NodeWorkerType};\n\nexport const parentPort = null;\n"],"mappings":";;;;;;;;;IAIaA,MAAM;EAAA;IAAA;EAAA;EAAA;IAAA;IAAA;IAEjB,qBAAY,CAAC;EAAC;EAAA;AAAA;AAAA;AAMT,IAAMC,UAAU,GAAG,IAAI;AAAC"}
@@ -8,7 +8,7 @@ exports.getWorkerURL = getWorkerURL;
8
8
  var _assert = require("../env-utils/assert");
9
9
  var _version = require("../env-utils/version");
10
10
  var NPM_TAG = 'beta';
11
- var VERSION = typeof "3.3.0-alpha.12" !== 'undefined' ? "3.3.0-alpha.12" : NPM_TAG;
11
+ var VERSION = typeof "3.3.0-alpha.13" !== 'undefined' ? "3.3.0-alpha.13" : NPM_TAG;
12
12
 
13
13
  function getWorkerName(worker) {
14
14
  var warning = worker.version !== VERSION ? " (worker-utils@".concat(VERSION, ")") : '';
@@ -1,8 +1,8 @@
1
1
 
2
2
 
3
3
  const DEFAULT_VERSION = 'beta';
4
- export const VERSION = typeof "3.3.0-alpha.12" !== 'undefined' ? "3.3.0-alpha.12" : DEFAULT_VERSION;
5
- if (typeof "3.3.0-alpha.12" === 'undefined') {
4
+ export const VERSION = typeof "3.3.0-alpha.13" !== 'undefined' ? "3.3.0-alpha.13" : DEFAULT_VERSION;
5
+ if (typeof "3.3.0-alpha.13" === 'undefined') {
6
6
  console.error('loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.');
7
7
  }
8
8
  //# sourceMappingURL=version.js.map
@@ -5,7 +5,7 @@ import { assert } from '../env-utils/assert';
5
5
  import { VERSION as __VERSION__ } from '../env-utils/version';
6
6
 
7
7
  const LATEST = 'beta';
8
- const VERSION = typeof "3.3.0-alpha.12" !== 'undefined' ? "3.3.0-alpha.12" : LATEST;
8
+ const VERSION = typeof "3.3.0-alpha.13" !== 'undefined' ? "3.3.0-alpha.13" : LATEST;
9
9
  const loadLibraryPromises = {};
10
10
 
11
11
  export async function loadLibrary(libraryUrl) {
@@ -1 +1 @@
1
- {"version":3,"file":"worker_threads-browser.js","names":["Worker","terminate","NodeWorker","NodeWorkerType","parentPort"],"sources":["../../../../src/lib/node/worker_threads-browser.ts"],"sourcesContent":["// Browser fills for Node.js built-in `worker_threads` module.\n// These fills are non-functional, and just intended to ensure that\n// `import 'worker_threads` doesn't break browser builds.\n// The replacement is done in package.json browser field\nexport class Worker {\n terminate() {}\n}\n\nexport {Worker as NodeWorker};\nexport {Worker as NodeWorkerType};\n\nexport const parentPort = null;\n"],"mappings":";AAIA,OAAO,MAAMA,MAAM,CAAC;EAClBC,SAAS,GAAG,CAAC;AACf;AAEA,SAAQD,MAAM,IAAIE,UAAU;AAC5B,SAAQF,MAAM,IAAIG,cAAc;AAEhC,OAAO,MAAMC,UAAU,GAAG,IAAI"}
1
+ {"version":3,"file":"worker_threads-browser.js","names":["Worker","terminate","NodeWorker","NodeWorkerType","parentPort"],"sources":["../../../../src/lib/node/worker_threads-browser.ts"],"sourcesContent":["// Browser fills for Node.js built-in `worker_threads` module.\n// These fills are non-functional, and just intended to ensure that\n// `import 'worker_threads` doesn't break browser builds.\n// The replacement is done in package.json browser field\nexport class Worker {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n terminate() {}\n}\n\nexport {Worker as NodeWorker};\nexport {Worker as NodeWorkerType};\n\nexport const parentPort = null;\n"],"mappings":";AAIA,OAAO,MAAMA,MAAM,CAAC;EAElBC,SAAS,GAAG,CAAC;AACf;AAEA,SAAQD,MAAM,IAAIE,UAAU;AAC5B,SAAQF,MAAM,IAAIG,cAAc;AAEhC,OAAO,MAAMC,UAAU,GAAG,IAAI"}
@@ -1,7 +1,7 @@
1
1
  import { assert } from '../env-utils/assert';
2
2
  import { VERSION as __VERSION__ } from '../env-utils/version';
3
3
  const NPM_TAG = 'beta';
4
- const VERSION = typeof "3.3.0-alpha.12" !== 'undefined' ? "3.3.0-alpha.12" : NPM_TAG;
4
+ const VERSION = typeof "3.3.0-alpha.13" !== 'undefined' ? "3.3.0-alpha.13" : NPM_TAG;
5
5
 
6
6
  export function getWorkerName(worker) {
7
7
  const warning = worker.version !== VERSION ? " (worker-utils@".concat(VERSION, ")") : '';
@@ -1 +1 @@
1
- {"version":3,"file":"worker_threads-browser.d.ts","sourceRoot":"","sources":["../../../src/lib/node/worker_threads-browser.ts"],"names":[],"mappings":"AAIA,qBAAa,MAAM;IACjB,SAAS;CACV;AAED,OAAO,EAAC,MAAM,IAAI,UAAU,EAAC,CAAC;AAC9B,OAAO,EAAC,MAAM,IAAI,cAAc,EAAC,CAAC;AAElC,eAAO,MAAM,UAAU,MAAO,CAAC"}
1
+ {"version":3,"file":"worker_threads-browser.d.ts","sourceRoot":"","sources":["../../../src/lib/node/worker_threads-browser.ts"],"names":[],"mappings":"AAIA,qBAAa,MAAM;IAEjB,SAAS;CACV;AAED,OAAO,EAAC,MAAM,IAAI,UAAU,EAAC,CAAC;AAC9B,OAAO,EAAC,MAAM,IAAI,cAAc,EAAC,CAAC;AAElC,eAAO,MAAM,UAAU,MAAO,CAAC"}
@@ -6,6 +6,7 @@ exports.parentPort = exports.NodeWorkerType = exports.NodeWorker = exports.Worke
6
6
  // `import 'worker_threads` doesn't break browser builds.
7
7
  // The replacement is done in package.json browser field
8
8
  class Worker {
9
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
9
10
  terminate() { }
10
11
  }
11
12
  exports.Worker = Worker;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createWorker = void 0;
7
7
  const async_queue_1 = __importDefault(require("../async-queue/async-queue"));
8
8
  const worker_body_1 = __importDefault(require("../worker-farm/worker-body"));
9
- // import {validateWorkerVersion} from './validate-worker-version';
9
+ // import {validateWorkerVersion} from './validate-worker-version.js';
10
10
  /** Counter for jobs */
11
11
  let requestId = 0;
12
12
  let inputBatches;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/worker-utils",
3
- "version": "3.3.0-alpha.12",
3
+ "version": "3.3.0-alpha.13",
4
4
  "description": "Utilities for running tasks on worker threads",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -49,5 +49,5 @@
49
49
  "dependencies": {
50
50
  "@babel/runtime": "^7.3.1"
51
51
  },
52
- "gitHead": "e807cde8f2fcb3503fa01ae3ac6b148ff5326649"
52
+ "gitHead": "429a5667c9903cc2de4d1f3e55e1c2f2e58a3ff6"
53
53
  }
@@ -3,6 +3,7 @@
3
3
  // `import 'worker_threads` doesn't break browser builds.
4
4
  // The replacement is done in package.json browser field
5
5
  export class Worker {
6
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
6
7
  terminate() {}
7
8
  }
8
9