@zip.js/zip.js 2.6.17 → 2.6.18

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.
@@ -7687,7 +7687,12 @@
7687
7687
  super();
7688
7688
  const writer = this;
7689
7689
  writer.contentType = contentType;
7690
- writer.transformStream = new TransformStream();
7690
+ writer.transformStream = new TransformStream({
7691
+ transform(chunk, controller) {
7692
+ writer.size += chunk.length;
7693
+ controller.enqueue(chunk);
7694
+ }
7695
+ });
7691
7696
  Object.defineProperty(this, "writable", {
7692
7697
  get() {
7693
7698
  return writer.transformStream.writable;