@loaders.gl/pcd 4.0.3 → 4.0.5

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/pcd-worker.js +4 -14
  2. package/package.json +4 -4
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
2
  (() => {
3
+ // ../worker-utils/src/lib/node/worker_threads-browser.ts
4
+ var parentPort = null;
5
+
3
6
  // ../worker-utils/src/lib/worker-utils/get-transfer-list.ts
4
7
  function getTransferList(object, recursive = true, transfers) {
5
8
  const transfersSet = transfers || /* @__PURE__ */ new Set();
@@ -37,19 +40,6 @@
37
40
 
38
41
  // ../worker-utils/src/lib/worker-farm/worker-body.ts
39
42
  async function getParentPort() {
40
- let parentPort;
41
- try {
42
- eval("globalThis.parentPort = require('worker_threads').parentPort");
43
- parentPort = globalThis.parentPort;
44
- } catch {
45
- try {
46
- eval("globalThis.workerThreadsPromise = import('worker_threads')");
47
- const workerThreads = await globalThis.workerThreadsPromise;
48
- parentPort = workerThreads.parentPort;
49
- } catch (error) {
50
- console.error(error.message);
51
- }
52
- }
53
43
  return parentPort;
54
44
  }
55
45
  var onMessageWrapperMap = /* @__PURE__ */ new Map();
@@ -626,7 +616,7 @@
626
616
  }
627
617
 
628
618
  // src/pcd-loader.ts
629
- var VERSION = true ? "4.0.3" : "latest";
619
+ var VERSION = true ? "4.0.5" : "latest";
630
620
  var PCDLoader = {
631
621
  name: "PCD (Point Cloud Data)",
632
622
  id: "pcd",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/pcd",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Framework-independent loader for the PCD format",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,8 +41,8 @@
41
41
  "build-worker": "esbuild src/workers/pcd-worker.ts --bundle --outfile=dist/pcd-worker.js --define:__VERSION__=\\\"$npm_package_version\\\""
42
42
  },
43
43
  "dependencies": {
44
- "@loaders.gl/loader-utils": "4.0.3",
45
- "@loaders.gl/schema": "4.0.3"
44
+ "@loaders.gl/loader-utils": "4.0.5",
45
+ "@loaders.gl/schema": "4.0.5"
46
46
  },
47
- "gitHead": "03c871839b36c997249dabae1844df53a35d3760"
47
+ "gitHead": "9cc48b95bdad8842ebfd9a19f487c534f32526e9"
48
48
  }