Skip to content

Commit

Permalink
set bufferedWrite to true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Sep 5, 2023
1 parent 5ed7605 commit 12a9fd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/core/zip-fs-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ class ZipDirectoryEntry extends ZipEntry {

async exportZip(writer, options) {
const zipEntry = this;
if (options.bufferedWrite === undefined) {
options.bufferedWrite = true;
}
await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
const zipWriter = new ZipWriter(writer, options);
await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
Expand Down

0 comments on commit 12a9fd5

Please sign in to comment.