@zip.js/zip.js 2.7.36 → 2.7.37

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.
@@ -205,10 +205,12 @@ async function runWebWorker(workerData, config) {
205
205
  });
206
206
  }
207
207
  const resultValue = await result;
208
- try {
209
- await writable.getWriter().close();
210
- } catch (_error) {
211
- // ignored
208
+ if (!streamsTransferred) {
209
+ try {
210
+ const writer = writable.getWriter().close();
211
+ } catch (_error) {
212
+ // ignored
213
+ }
212
214
  }
213
215
  await closed;
214
216
  return resultValue;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
4
4
  "author": "Gildas Lormeau",
5
5
  "license": "BSD-3-Clause",
6
- "version": "2.7.36",
6
+ "version": "2.7.37",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",