@zip.js/zip.js 2.8.20 → 2.8.22
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/deno.json +1 -1
- package/dist/README.md +4 -0
- package/dist/zip-core.js +6 -1
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core.js +6 -1
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-native.js +6 -1
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +6 -1
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +6 -1
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +6 -1
- package/dist/zip-native.min.js +1 -1
- package/dist/zip.js +6 -1
- package/dist/zip.min.js +1 -1
- package/index-native.cjs +6 -1
- package/index-native.min.js +1 -1
- package/index.cjs +6 -1
- package/index.min.js +1 -1
- package/lib/core/codec-worker.js +5 -0
- package/lib/core/zip-writer.js +1 -1
- package/package.json +4 -4
package/lib/core/codec-worker.js
CHANGED
|
@@ -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/lib/core/zip-writer.js
CHANGED
|
@@ -715,7 +715,7 @@ async function getFileEntry(zipWriter, name, reader, entryInfo, options) {
|
|
|
715
715
|
lockPreviousFileEntry = previousFileEntry && previousFileEntry.lock;
|
|
716
716
|
requestLockCurrentFileEntry();
|
|
717
717
|
}
|
|
718
|
-
if ((options.bufferedWrite || zipWriter.writerLocked ||
|
|
718
|
+
if ((options.bufferedWrite || !keepOrder || zipWriter.writerLocked || zipWriter.bufferedWrites || !dataDescriptor) && !usdz) {
|
|
719
719
|
if (options.createTempStream) {
|
|
720
720
|
fileWriter = await options.createTempStream();
|
|
721
721
|
} else {
|
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.
|
|
6
|
+
"version": "2.8.22",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"zip",
|
|
@@ -156,10 +156,10 @@
|
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@rollup/plugin-replace": "^6.0.3",
|
|
158
158
|
"@rollup/plugin-terser": "^0.4.4",
|
|
159
|
-
"eslint": "^10.0.
|
|
159
|
+
"eslint": "^10.0.2",
|
|
160
160
|
"http-server": "^14.1.1",
|
|
161
|
-
"rollup": "^4.
|
|
162
|
-
"typedoc": "^0.28.
|
|
161
|
+
"rollup": "^4.59.0",
|
|
162
|
+
"typedoc": "^0.28.17",
|
|
163
163
|
"typedoc-plugin-markdown": "^4.10.0"
|
|
164
164
|
}
|
|
165
165
|
}
|