@zip.js/zip.js 2.7.35 → 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.
package/deno.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@zip-js/zip-js",
3
+ "version": "2.7.37",
4
+ "exports": "./index.js"
5
+ }
@@ -8039,10 +8039,12 @@
8039
8039
  });
8040
8040
  }
8041
8041
  const resultValue = await result;
8042
- try {
8043
- await writable.getWriter().close();
8044
- } catch (_error) {
8045
- // ignored
8042
+ if (!streamsTransferred) {
8043
+ try {
8044
+ const writer = writable.getWriter().close();
8045
+ } catch (_error) {
8046
+ // ignored
8047
+ }
8046
8048
  }
8047
8049
  await closed;
8048
8050
  return resultValue;