Skip to content

Commit

Permalink
fix init size when passThrough is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Aug 27, 2024
1 parent 75e3f95 commit 4c9f3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/zip-reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class ZipEntry {
writer = new WritableStream();
}
writer = initWriter(writer);
await initStream(writer, uncompressedSize);
await initStream(writer, options.passThrough ? compressedSize : uncompressedSize);
const { writable } = writer;
const { onstart, onprogress, onend } = options;
const workerOptions = {
Expand Down

0 comments on commit 4c9f3db

Please sign in to comment.