Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Mar 8, 2023
1 parent cd6e385 commit 0c2c9e4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 17 deletions.
6 changes: 2 additions & 4 deletions dist/zip-fs-full.js
Original file line number Diff line number Diff line change
Expand Up @@ -10384,7 +10384,7 @@

async exportZip(writer, options) {
const zipEntry = this;
await Promise.all([initReaders(zipEntry, options), initStream(writer)]);
await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
const zipWriter = new ZipWriter(writer, options);
await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
await zipWriter.close();
Expand Down Expand Up @@ -10575,9 +10575,7 @@
if (entry.children.length) {
await Promise.all(entry.children.map(async child => {
if (child.directory) {
const readerOptions = Object.assign({}, options);
readerOptions.onprogress = null;
await initReaders(child, readerOptions);
await initReaders(child, options);
} else {
const reader = child.reader = new child.Reader(child.data, options);
await initStream(reader);
Expand Down
2 changes: 1 addition & 1 deletion dist/zip-fs-full.min.js

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions dist/zip-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5160,7 +5160,7 @@

async exportZip(writer, options) {
const zipEntry = this;
await Promise.all([initReaders(zipEntry, options), initStream(writer)]);
await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
const zipWriter = new ZipWriter(writer, options);
await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
await zipWriter.close();
Expand Down Expand Up @@ -5351,9 +5351,7 @@
if (entry.children.length) {
await Promise.all(entry.children.map(async child => {
if (child.directory) {
const readerOptions = Object.assign({}, options);
readerOptions.onprogress = null;
await initReaders(child, readerOptions);
await initReaders(child, options);
} else {
const reader = child.reader = new child.Reader(child.data, options);
await initStream(reader);
Expand Down
2 changes: 1 addition & 1 deletion dist/zip-fs.min.js

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10380,7 +10380,7 @@ class ZipDirectoryEntry extends ZipEntry {

async exportZip(writer, options) {
const zipEntry = this;
await Promise.all([initReaders(zipEntry, options), initStream(writer)]);
await Promise.all([initReaders(zipEntry, options.readerOptions), initStream(writer)]);
const zipWriter = new ZipWriter(writer, options);
await exportZip(zipWriter, zipEntry, getTotalSize([zipEntry], "uncompressedSize"), options);
await zipWriter.close();
Expand Down Expand Up @@ -10571,9 +10571,7 @@ async function initReaders(entry, options) {
if (entry.children.length) {
await Promise.all(entry.children.map(async child => {
if (child.directory) {
const readerOptions = Object.assign({}, options);
readerOptions.onprogress = null;
await initReaders(child, readerOptions);
await initReaders(child, options);
} else {
const reader = child.reader = new child.Reader(child.data, options);
await initStream(reader);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
"author": "Gildas Lormeau",
"license": "BSD-3-Clause",
"version": "2.6.77",
"version": "2.6.78",
"type": "module",
"keywords": [
"zip",
Expand Down

0 comments on commit 0c2c9e4

Please sign in to comment.