@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.cjs CHANGED
@@ -2794,7 +2794,7 @@ async function readUint8ArrayHttpReader(httpReader, index, length, sendRequest,
2794
2794
  if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
2795
2795
  return eocdCache;
2796
2796
  }
2797
- if (index >= size) {
2797
+ if (index >= size || length === 0) {
2798
2798
  return new Uint8Array();
2799
2799
  } else {
2800
2800
  if (index + length > size) {