@zip.js/zip.js 2.6.42 → 2.6.43

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.
@@ -9262,12 +9262,8 @@
9262
9262
  let fileEntry;
9263
9263
  try {
9264
9264
  fileEntry = await getFileEntry(zipWriter, name, reader, { headerInfo, dataDescriptorInfo }, options);
9265
+ } finally {
9265
9266
  zipWriter.pendingEntriesSize -= maximumEntrySize;
9266
- } catch (error) {
9267
- if (!error.corruptedEntry) {
9268
- zipWriter.pendingEntriesSize -= maximumEntrySize;
9269
- }
9270
- throw error;
9271
9267
  }
9272
9268
  Object.assign(fileEntry, { name, comment, extraField });
9273
9269
  return new Entry(fileEntry);