@zip.js/zip.js 2.7.28 → 2.7.29
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 +3 -0
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +3 -0
- package/dist/zip-fs.min.js +1 -1
- package/index.cjs +3 -0
- package/index.min.js +1 -1
- package/lib/core/zip-fs-core.js +3 -0
- package/package.json +1 -1
package/lib/core/zip-fs-core.js
CHANGED
|
@@ -433,6 +433,9 @@ class ZipDirectoryEntry extends ZipEntry {
|
|
|
433
433
|
|
|
434
434
|
async exportZip(writer, options) {
|
|
435
435
|
const zipEntry = this;
|
|
436
|
+
if (options.bufferedWrite === undefined) {
|
|
437
|
+
options.bufferedWrite = true;
|
|
438
|
+
}
|
|
436
439
|
await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
|
|
437
440
|
const zipWriter = new ZipWriter(writer, options);
|
|
438
441
|
await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
|
package/package.json
CHANGED