@zip.js/zip.js 2.8.15 → 2.8.16

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.
@@ -29,6 +29,7 @@
29
29
  /* global Worker, URL, TransformStream, WritableStream */
30
30
 
31
31
  import {
32
+ UNDEFINED_VALUE,
32
33
  UNDEFINED_TYPE,
33
34
  FUNCTION_TYPE
34
35
  } from "./constants.js";
@@ -43,8 +44,7 @@ import {
43
44
  MESSAGE_CLOSE
44
45
  } from "./streams/codec-stream.js";
45
46
 
46
- // deno-lint-ignore valid-typeof
47
- let WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
47
+ let WEB_WORKERS_SUPPORTED;
48
48
  let initModule = () => { };
49
49
 
50
50
  export {
@@ -97,6 +97,10 @@ class CodecWorker {
97
97
  onTaskFinished(workerData);
98
98
  }
99
99
  });
100
+ if (WEB_WORKERS_SUPPORTED === UNDEFINED_VALUE) {
101
+ // deno-lint-ignore valid-typeof
102
+ WEB_WORKERS_SUPPORTED = typeof Worker != UNDEFINED_TYPE;
103
+ }
100
104
  return (useWebWorkers && WEB_WORKERS_SUPPORTED ? createWebWorkerInterface : createWorkerInterface)(workerData, config);
101
105
  }
102
106
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
4
4
  "author": "Gildas Lormeau",
5
5
  "license": "BSD-3-Clause",
6
- "version": "2.8.15",
6
+ "version": "2.8.16",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",
@@ -158,7 +158,7 @@
158
158
  "@rollup/plugin-terser": "^0.4.4",
159
159
  "eslint": "^9.39.2",
160
160
  "http-server": "^14.1.1",
161
- "rollup": "^4.55.1",
161
+ "rollup": "^4.57.0",
162
162
  "typedoc": "^0.28.16",
163
163
  "typedoc-plugin-markdown": "^4.9.0"
164
164
  }