@zip.js/zip.js 2.6.76 → 2.6.78
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/README.md +3 -0
- package/dist/zip-fs-full.js +2 -4
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +2 -4
- package/dist/zip-fs.min.js +1 -1
- package/index.cjs +2 -4
- package/index.d.ts +4 -0
- package/lib/core/zip-fs-core.js +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/zip-fs-full.js
CHANGED
|
@@ -10384,7 +10384,7 @@
|
|
|
10384
10384
|
|
|
10385
10385
|
async exportZip(writer, options) {
|
|
10386
10386
|
const zipEntry = this;
|
|
10387
|
-
await Promise.all([initReaders(zipEntry, options), initStream(writer)]);
|
|
10387
|
+
await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
|
|
10388
10388
|
const zipWriter = new ZipWriter(writer, options);
|
|
10389
10389
|
await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
|
|
10390
10390
|
await zipWriter.close();
|
|
@@ -10575,9 +10575,7 @@
|
|
|
10575
10575
|
if (entry.children.length) {
|
|
10576
10576
|
await Promise.all(entry.children.map(async child => {
|
|
10577
10577
|
if (child.directory) {
|
|
10578
|
-
|
|
10579
|
-
readerOptions.onprogress = null;
|
|
10580
|
-
await initReaders(child, readerOptions);
|
|
10578
|
+
await initReaders(child, options);
|
|
10581
10579
|
} else {
|
|
10582
10580
|
const reader = child.reader = new child.Reader(child.data, options);
|
|
10583
10581
|
await initStream(reader);
|