@zip.js/zip.js 2.6.47 → 2.6.48

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.
@@ -7924,7 +7924,6 @@
7924
7924
 
7925
7925
  async function readUint8ArrayHttpReader(httpReader, index, length, sendRequest, getRequestData) {
7926
7926
  const {
7927
- data,
7928
7927
  useRangeHeader,
7929
7928
  forceRangeRequests,
7930
7929
  options
@@ -7936,10 +7935,11 @@
7936
7935
  }
7937
7936
  return new Uint8Array(await response.arrayBuffer());
7938
7937
  } else {
7938
+ const { data } = httpReader;
7939
7939
  if (!data) {
7940
7940
  await getRequestData(httpReader, options);
7941
7941
  }
7942
- return new Uint8Array(data.subarray(index, index + length));
7942
+ return new Uint8Array(httpReader.data.subarray(index, index + length));
7943
7943
  }
7944
7944
  }
7945
7945