@loaders.gl/compression 4.0.5 → 4.0.6

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.
@@ -1,5 +1,5 @@
1
1
  import { processOnWorker } from '@loaders.gl/worker-utils';
2
- const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
2
+ const VERSION = typeof "4.0.6" !== 'undefined' ? "4.0.6" : 'latest';
3
3
  export const CompressionWorker = {
4
4
  id: 'compression',
5
5
  name: 'compression',
@@ -1 +1 @@
1
- {"version":3,"file":"compress-on-worker.js","names":["processOnWorker","VERSION","__VERSION__","CompressionWorker","id","name","module","version","options","compressOnWorker","data"],"sources":["../src/compress-on-worker.ts"],"sourcesContent":["// import type {WorkerObject} from '@loaders.gl/worker-utils';\nimport {processOnWorker} from '@loaders.gl/worker-utils';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type CompressionWorkerOptions = {\n compression: string;\n operation: 'compress' | 'decompress';\n};\n\n/**\n * Worker for Zlib real-time compression and decompression\n */\nexport const CompressionWorker = {\n id: 'compression',\n name: 'compression',\n module: 'compression',\n version: VERSION,\n options: {}\n};\n\n/**\n * Provide type safety\n */\nexport function compressOnWorker(\n data: ArrayBuffer,\n options: CompressionWorkerOptions\n): Promise<ArrayBuffer> {\n return processOnWorker(CompressionWorker, data, options);\n}\n"],"mappings":"AACA,SAAQA,eAAe,QAAO,0BAA0B;AAIxD,MAAMC,OAAO,GAAG,OAAOC,WAAW,KAAK,WAAW,GAAGA,WAAW,GAAG,QAAQ;AAU3E,OAAO,MAAMC,iBAAiB,GAAG;EAC/BC,EAAE,EAAE,aAAa;EACjBC,IAAI,EAAE,aAAa;EACnBC,MAAM,EAAE,aAAa;EACrBC,OAAO,EAAEN,OAAO;EAChBO,OAAO,EAAE,CAAC;AACZ,CAAC;AAKD,OAAO,SAASC,gBAAgBA,CAC9BC,IAAiB,EACjBF,OAAiC,EACX;EACtB,OAAOR,eAAe,CAACG,iBAAiB,EAAEO,IAAI,EAAEF,OAAO,CAAC;AAC1D"}
1
+ {"version":3,"file":"compress-on-worker.js","names":["processOnWorker","VERSION","CompressionWorker","id","name","module","version","options","compressOnWorker","data"],"sources":["../src/compress-on-worker.ts"],"sourcesContent":["// import type {WorkerObject} from '@loaders.gl/worker-utils';\nimport {processOnWorker} from '@loaders.gl/worker-utils';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type CompressionWorkerOptions = {\n compression: string;\n operation: 'compress' | 'decompress';\n};\n\n/**\n * Worker for Zlib real-time compression and decompression\n */\nexport const CompressionWorker = {\n id: 'compression',\n name: 'compression',\n module: 'compression',\n version: VERSION,\n options: {}\n};\n\n/**\n * Provide type safety\n */\nexport function compressOnWorker(\n data: ArrayBuffer,\n options: CompressionWorkerOptions\n): Promise<ArrayBuffer> {\n return processOnWorker(CompressionWorker, data, options);\n}\n"],"mappings":"AACA,SAAQA,eAAe,QAAO,0BAA0B;AAIxD,MAAMC,OAAO,GAAG,cAAkB,KAAK,WAAW,aAAiB,QAAQ;AAU3E,OAAO,MAAMC,iBAAiB,GAAG;EAC/BC,EAAE,EAAE,aAAa;EACjBC,IAAI,EAAE,aAAa;EACnBC,MAAM,EAAE,aAAa;EACrBC,OAAO,EAAEL,OAAO;EAChBM,OAAO,EAAE,CAAC;AACZ,CAAC;AAKD,OAAO,SAASC,gBAAgBA,CAC9BC,IAAiB,EACjBF,OAAiC,EACX;EACtB,OAAOP,eAAe,CAACE,iBAAiB,EAAEO,IAAI,EAAEF,OAAO,CAAC;AAC1D"}
package/dist/dist.dev.js CHANGED
@@ -4679,11 +4679,11 @@ var __exports__ = (() => {
4679
4679
  function getVersion() {
4680
4680
  if (!globalThis._loadersgl_?.version) {
4681
4681
  globalThis._loadersgl_ = globalThis._loadersgl_ || {};
4682
- if (typeof __VERSION__ === "undefined") {
4682
+ if (false) {
4683
4683
  console.warn("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
4684
4684
  globalThis._loadersgl_.version = NPM_TAG;
4685
4685
  } else {
4686
- globalThis._loadersgl_.version = __VERSION__;
4686
+ globalThis._loadersgl_.version = "4.0.6";
4687
4687
  }
4688
4688
  }
4689
4689
  return globalThis._loadersgl_.version;
@@ -7500,7 +7500,7 @@ var __exports__ = (() => {
7500
7500
  };
7501
7501
 
7502
7502
  // src/compress-on-worker.ts
7503
- var VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
7503
+ var VERSION2 = true ? "4.0.6" : "latest";
7504
7504
  var CompressionWorker = {
7505
7505
  id: "compression",
7506
7506
  name: "compression",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/compression",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Decompression and compression plugins for loaders.gl",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,8 +47,8 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@babel/runtime": "^7.3.1",
50
- "@loaders.gl/loader-utils": "4.0.5",
51
- "@loaders.gl/worker-utils": "4.0.5",
50
+ "@loaders.gl/loader-utils": "4.0.6",
51
+ "@loaders.gl/worker-utils": "4.0.6",
52
52
  "@types/brotli": "^1.3.0",
53
53
  "@types/pako": "^1.0.1",
54
54
  "fflate": "0.7.4",
@@ -66,5 +66,5 @@
66
66
  "lz4js": "^0.2.0",
67
67
  "zstd-codec": "^0.1"
68
68
  },
69
- "gitHead": "9cc48b95bdad8842ebfd9a19f487c534f32526e9"
69
+ "gitHead": "1582e06e4ac81b61091148f3d872f67478fe7511"
70
70
  }