@zip.js/zip.js 2.8.24 → 2.8.25

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.
package/index-native.cjs CHANGED
@@ -2790,7 +2790,7 @@ async function readUint8ArrayHttpReader(httpReader, index, length, sendRequest,
2790
2790
  if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
2791
2791
  return eocdCache;
2792
2792
  }
2793
- if (index >= size) {
2793
+ if (index >= size || length === 0) {
2794
2794
  return new Uint8Array();
2795
2795
  } else {
2796
2796
  if (index + length > size) {