@zip.js/zip.js 2.6.40 → 2.6.41

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.
@@ -9185,7 +9185,8 @@
9185
9185
  maximumCompressedSize = getMaximumCompressedSize(uncompressedSize);
9186
9186
  }
9187
9187
  }
9188
- if (zipWriter.offset + zipWriter.pendingEntriesSize >= MAX_32_BITS ||
9188
+ const { diskOffset } = zipWriter.writer;
9189
+ if (zipWriter.offset + zipWriter.pendingEntriesSize - diskOffset >= MAX_32_BITS ||
9189
9190
  uncompressedSize >= MAX_32_BITS ||
9190
9191
  maximumCompressedSize >= MAX_32_BITS) {
9191
9192
  if (zip64 === false || !keepOrder) {