@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/index-native.cjs
CHANGED
|
@@ -1963,6 +1963,11 @@ const MODULE_WORKER_OPTIONS = { type: "module" };
|
|
|
1963
1963
|
|
|
1964
1964
|
let webWorkerSupported, webWorkerURI, webWorkerOptions;
|
|
1965
1965
|
let transferStreamsSupported = true;
|
|
1966
|
+
try {
|
|
1967
|
+
transferStreamsSupported = typeof structuredClone == FUNCTION_TYPE && structuredClone(new DOMException("", "AbortError")).code !== UNDEFINED_VALUE;
|
|
1968
|
+
} catch {
|
|
1969
|
+
// ignored
|
|
1970
|
+
}
|
|
1966
1971
|
let initModule = () => { };
|
|
1967
1972
|
|
|
1968
1973
|
class CodecWorker {
|
|
@@ -4893,7 +4898,7 @@ async function getFileEntry(zipWriter, name, reader, entryInfo, options) {
|
|
|
4893
4898
|
lockPreviousFileEntry = previousFileEntry && previousFileEntry.lock;
|
|
4894
4899
|
requestLockCurrentFileEntry();
|
|
4895
4900
|
}
|
|
4896
|
-
if ((options.bufferedWrite || zipWriter.writerLocked ||
|
|
4901
|
+
if ((options.bufferedWrite || !keepOrder || zipWriter.writerLocked || zipWriter.bufferedWrites || !dataDescriptor) && !usdz) {
|
|
4897
4902
|
if (options.createTempStream) {
|
|
4898
4903
|
fileWriter = await options.createTempStream();
|
|
4899
4904
|
} else {
|