@zip.js/zip.js 2.7.17 → 2.7.18

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);