@zip.js/zip.js 2.6.65 → 2.6.67
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/dist/zip-fs-full.js +15 -7
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +15 -7
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +6 -7
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +6 -7
- package/dist/zip.min.js +1 -1
- package/index.cjs +15 -7
- package/index.d.ts +6 -0
- package/lib/core/io.js +6 -6
- package/lib/core/streams/common-crypto.js +2 -2
- package/lib/core/zip-fs-core.js +9 -0
- package/lib/core/zip-writer.js +6 -2
- package/package.json +1 -1
package/lib/core/zip-writer.js
CHANGED
|
@@ -401,7 +401,7 @@ async function getFileEntry(zipWriter, name, reader, entryInfo, options) {
|
|
|
401
401
|
await skipDiskIfNeeded(writable);
|
|
402
402
|
fileEntry.diskNumberStart = writer.diskNumber;
|
|
403
403
|
diskOffset = writer.diskOffset;
|
|
404
|
-
await blob.stream().pipeTo(writable, { preventClose: true, signal });
|
|
404
|
+
await blob.stream().pipeTo(writable, { preventClose: true, preventAbort: true, signal });
|
|
405
405
|
writable.size += blob.size;
|
|
406
406
|
writingBufferedEntryData = false;
|
|
407
407
|
}
|
|
@@ -417,7 +417,11 @@ async function getFileEntry(zipWriter, name, reader, entryInfo, options) {
|
|
|
417
417
|
if ((bufferedWrite && writingBufferedEntryData) || (!bufferedWrite && writingEntryData)) {
|
|
418
418
|
zipWriter.hasCorruptedEntries = true;
|
|
419
419
|
if (error) {
|
|
420
|
-
|
|
420
|
+
try {
|
|
421
|
+
error.corruptedEntry = true;
|
|
422
|
+
} catch (_error) {
|
|
423
|
+
// ignored
|
|
424
|
+
}
|
|
421
425
|
}
|
|
422
426
|
if (bufferedWrite) {
|
|
423
427
|
zipWriter.offset += fileWriter.writable.size;
|
package/package.json
CHANGED