@zip.js/zip.js 2.7.17 → 2.7.19

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.
@@ -8609,7 +8609,7 @@
8609
8609
  }
8610
8610
  }
8611
8611
  const expectedDirectoryDataLength = endOfDirectoryInfo.offset - directoryDataOffset - (reader.lastDiskOffset || 0);
8612
- if (directoryDataLength != expectedDirectoryDataLength && expectedDirectoryDataLength) {
8612
+ if (directoryDataLength != expectedDirectoryDataLength && expectedDirectoryDataLength >= 0) {
8613
8613
  directoryDataLength = expectedDirectoryDataLength;
8614
8614
  directoryArray = await readUint8Array(reader, directoryDataOffset, directoryDataLength, diskNumber);
8615
8615
  directoryView = getDataView$1(directoryArray);
@@ -9261,7 +9261,7 @@
9261
9261
  dataDescriptor = true;
9262
9262
  if (zip64 || zip64 === UNDEFINED_VALUE) {
9263
9263
  zip64 = true;
9264
- maximumCompressedSize = MAX_32_BITS;
9264
+ uncompressedSize = maximumCompressedSize = MAX_32_BITS;
9265
9265
  }
9266
9266
  } else {
9267
9267
  uncompressedSize = reader.size;