@zip.js/zip.js 2.6.35 → 2.6.36

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.
@@ -8191,10 +8191,12 @@
8191
8191
  zipWriter.diskNumber++;
8192
8192
  diskWriter = null;
8193
8193
  await this.write(chunk.slice(chunkLength));
8194
- } else if (chunk.length) {
8195
- await writeChunk(chunk);
8194
+ } else {
8195
+ if (chunk.length) {
8196
+ await writeChunk(chunk);
8197
+ }
8198
+ zipWriter.availableSize = maxSize - diskSourceWriter.size;
8196
8199
  }
8197
- zipWriter.availableSize = maxSize - diskSourceWriter.size;
8198
8200
  },
8199
8201
  async close() {
8200
8202
  await diskWriter.ready;