@loaders.gl/ply 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/ply-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();
@@ -246,7 +236,7 @@
246
236
  }
247
237
 
248
238
  // src/ply-loader.ts
249
- var VERSION = true ? "4.0.2" : "latest";
239
+ var VERSION = true ? "4.0.4" : "latest";
250
240
  var PLYLoader = {
251
241
  name: "PLY",
252
242
  id: "ply",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/ply",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Framework-independent loader for the PLY format",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,8 +42,8 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@babel/runtime": "^7.3.1",
45
- "@loaders.gl/loader-utils": "4.0.2",
46
- "@loaders.gl/schema": "4.0.2"
45
+ "@loaders.gl/loader-utils": "4.0.4",
46
+ "@loaders.gl/schema": "4.0.4"
47
47
  },
48
- "gitHead": "471058d109d5652f28c32c1f296fd632f9a5c806"
48
+ "gitHead": "4dc810fa04bb400f4aedfef98a83c7ef882ed3d7"
49
49
  }