@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.
@@ -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
- error.corruptedEntry = true;
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
@@ -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.6.65",
6
+ "version": "2.6.67",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",