@loaders.gl/compression 4.0.3 → 4.1.0-alpha.1

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.
package/dist/dist.dev.js CHANGED
@@ -4748,7 +4748,7 @@ var __exports__ = (() => {
4748
4748
  };
4749
4749
 
4750
4750
  // ../worker-utils/src/lib/node/worker_threads-browser.ts
4751
- var Worker2 = class {
4751
+ var NodeWorker = class {
4752
4752
  terminate() {
4753
4753
  }
4754
4754
  };
@@ -4851,7 +4851,7 @@ var __exports__ = (() => {
4851
4851
  terminated = false;
4852
4852
  _loadableURL = "";
4853
4853
  static isSupported() {
4854
- return typeof Worker !== "undefined" && isBrowser2 || typeof Worker2 !== "undefined" && !isBrowser2;
4854
+ return typeof Worker !== "undefined" && isBrowser2 || typeof NodeWorker !== "undefined" && !isBrowser2;
4855
4855
  }
4856
4856
  constructor(props) {
4857
4857
  const {
@@ -4918,11 +4918,11 @@ var __exports__ = (() => {
4918
4918
  if (this.url) {
4919
4919
  const absolute = this.url.includes(":/") || this.url.startsWith("/");
4920
4920
  const url = absolute ? this.url : `./${this.url}`;
4921
- worker = new Worker2(url, {
4921
+ worker = new NodeWorker(url, {
4922
4922
  eval: false
4923
4923
  });
4924
4924
  } else if (this.source) {
4925
- worker = new Worker2(this.source, {
4925
+ worker = new NodeWorker(this.source, {
4926
4926
  eval: true
4927
4927
  });
4928
4928
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/compression",
3
- "version": "4.0.3",
3
+ "version": "4.1.0-alpha.1",
4
4
  "description": "Decompression and compression plugins for loaders.gl",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,11 +12,14 @@
12
12
  "url": "https://github.com/visgl/loaders.gl"
13
13
  },
14
14
  "keywords": [
15
- "webgl",
16
- "loader",
17
- "3d",
18
- "mesh",
19
- "point cloud"
15
+ "compression",
16
+ "decompression",
17
+ "zip",
18
+ "gzip",
19
+ "deflate",
20
+ "lz4",
21
+ "zstd",
22
+ "brotli"
20
23
  ],
21
24
  "types": "dist/index.d.ts",
22
25
  "main": "dist/index.cjs",
@@ -47,8 +50,8 @@
47
50
  },
48
51
  "dependencies": {
49
52
  "@babel/runtime": "^7.3.1",
50
- "@loaders.gl/loader-utils": "4.0.3",
51
- "@loaders.gl/worker-utils": "4.0.3",
53
+ "@loaders.gl/loader-utils": "4.1.0-alpha.1",
54
+ "@loaders.gl/worker-utils": "4.1.0-alpha.1",
52
55
  "@types/brotli": "^1.3.0",
53
56
  "@types/pako": "^1.0.1",
54
57
  "fflate": "0.7.4",
@@ -66,5 +69,5 @@
66
69
  "lz4js": "^0.2.0",
67
70
  "zstd-codec": "^0.1"
68
71
  },
69
- "gitHead": "03c871839b36c997249dabae1844df53a35d3760"
72
+ "gitHead": "6a4d3da93d45115ad99861474a43c3f4a0b280a7"
70
73
  }