@loaders.gl/las 4.0.2 → 4.0.4

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.
Files changed (2) hide show
  1. package/dist/las-worker.js +4 -14
  2. package/package.json +4 -4
@@ -17,6 +17,9 @@
17
17
  }
18
18
  });
19
19
 
20
+ // ../worker-utils/src/lib/node/worker_threads-browser.ts
21
+ var parentPort = null;
22
+
20
23
  // ../worker-utils/src/lib/worker-utils/get-transfer-list.ts
21
24
  function getTransferList(object, recursive = true, transfers) {
22
25
  const transfersSet = transfers || /* @__PURE__ */ new Set();
@@ -54,19 +57,6 @@
54
57
 
55
58
  // ../worker-utils/src/lib/worker-farm/worker-body.ts
56
59
  async function getParentPort() {
57
- let parentPort;
58
- try {
59
- eval("globalThis.parentPort = require('worker_threads').parentPort");
60
- parentPort = globalThis.parentPort;
61
- } catch {
62
- try {
63
- eval("globalThis.workerThreadsPromise = import('worker_threads')");
64
- const workerThreads = await globalThis.workerThreadsPromise;
65
- parentPort = workerThreads.parentPort;
66
- } catch (error) {
67
- console.error(error.message);
68
- }
69
- }
70
60
  return parentPort;
71
61
  }
72
62
  var onMessageWrapperMap = /* @__PURE__ */ new Map();
@@ -225,7 +215,7 @@
225
215
  }
226
216
 
227
217
  // src/las-loader.ts
228
- var VERSION = true ? "4.0.2" : "latest";
218
+ var VERSION = true ? "4.0.4" : "latest";
229
219
  var DEFAULT_LAS_OPTIONS = {
230
220
  las: {
231
221
  shape: "mesh",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/las",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Framework-independent loader for the LAS and LAZ formats",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,9 +49,9 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.3.1",
52
- "@loaders.gl/loader-utils": "4.0.2",
53
- "@loaders.gl/schema": "4.0.2",
52
+ "@loaders.gl/loader-utils": "4.0.4",
53
+ "@loaders.gl/schema": "4.0.4",
54
54
  "laz-perf": "^0.0.6"
55
55
  },
56
- "gitHead": "471058d109d5652f28c32c1f296fd632f9a5c806"
56
+ "gitHead": "4dc810fa04bb400f4aedfef98a83c7ef882ed3d7"
57
57
  }