@zip.js/zip.js 2.8.20 → 2.8.21

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.
@@ -48,6 +48,11 @@ const MODULE_WORKER_OPTIONS = { type: "module" };
48
48
 
49
49
  let webWorkerSupported, webWorkerURI, webWorkerOptions;
50
50
  let transferStreamsSupported = true;
51
+ try {
52
+ transferStreamsSupported = typeof structuredClone == FUNCTION_TYPE && structuredClone(new DOMException("", "AbortError")).code !== UNDEFINED_VALUE;
53
+ } catch {
54
+ // ignored
55
+ }
51
56
  let initModule = () => { };
52
57
 
53
58
  export {
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.20",
6
+ "version": "2.8.21",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",
@@ -159,7 +159,7 @@
159
159
  "eslint": "^10.0.0",
160
160
  "http-server": "^14.1.1",
161
161
  "rollup": "^4.57.1",
162
- "typedoc": "^0.28.16",
162
+ "typedoc": "^0.28.17",
163
163
  "typedoc-plugin-markdown": "^4.10.0"
164
164
  }
165
165
  }