@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.
- package/dist/zip-fs-full.js +2 -1
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +2 -1
- package/dist/zip-fs.min.js +1 -1
- package/index.cjs +2 -1
- package/lib/core/zip-fs-core.js +2 -1
- package/package.json +1 -1
package/dist/zip-fs-full.js
CHANGED
|
@@ -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
|
-
|
|
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);
|