@zip.js/zip.js 2.7.10 → 2.7.11

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.
@@ -10198,7 +10198,8 @@
10198
10198
  return zipEntry.data;
10199
10199
  } else {
10200
10200
  const reader = zipEntry.reader = new zipEntry.Reader(zipEntry.data, options);
10201
- await Promise.all([initStream(reader), initStream(writer, zipEntry.data.uncompressedSize)]);
10201
+ const uncompressedSize = zipEntry.data ? zipEntry.data.uncompressedSize : reader.size;
10202
+ await Promise.all([initStream(reader), initStream(writer, uncompressedSize)]);
10202
10203
  const readable = reader.readable;
10203
10204
  readable.size = zipEntry.uncompressedSize = reader.size;
10204
10205
  await readable.pipeTo(writer.writable);