dicom-curate 0.40.3 → 0.40.4

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.
@@ -86939,7 +86939,11 @@ async function curateOne({
86939
86939
  create: true
86940
86940
  });
86941
86941
  const writable = await fileHandle.createWritable();
86942
- await writable.write(modifiedBlob);
86942
+ for await (const chunk of readableStreamToAsyncIterable(
86943
+ modifiedBlob.stream()
86944
+ )) {
86945
+ await writable.write(chunk);
86946
+ }
86943
86947
  await writable.close();
86944
86948
  }
86945
86949
  } else if (typeof outputTarget?.directory === "string") {
@@ -80648,7 +80648,11 @@ async function curateOne({
80648
80648
  create: true
80649
80649
  });
80650
80650
  const writable = await fileHandle.createWritable();
80651
- await writable.write(modifiedBlob);
80651
+ for await (const chunk of readableStreamToAsyncIterable(
80652
+ modifiedBlob.stream()
80653
+ )) {
80654
+ await writable.write(chunk);
80655
+ }
80652
80656
  await writable.close();
80653
80657
  }
80654
80658
  } else if (typeof outputTarget?.directory === "string") {
package/dist/esm/index.js CHANGED
@@ -88542,7 +88542,11 @@ async function curateOne({
88542
88542
  create: true
88543
88543
  });
88544
88544
  const writable = await fileHandle.createWritable();
88545
- await writable.write(modifiedBlob);
88545
+ for await (const chunk of readableStreamToAsyncIterable(
88546
+ modifiedBlob.stream()
88547
+ )) {
88548
+ await writable.write(chunk);
88549
+ }
88546
88550
  await writable.close();
88547
88551
  }
88548
88552
  } else if (typeof outputTarget?.directory === "string") {
@@ -86939,7 +86939,11 @@ async function curateOne({
86939
86939
  create: true
86940
86940
  });
86941
86941
  const writable = await fileHandle.createWritable();
86942
- await writable.write(modifiedBlob);
86942
+ for await (const chunk of readableStreamToAsyncIterable(
86943
+ modifiedBlob.stream()
86944
+ )) {
86945
+ await writable.write(chunk);
86946
+ }
86943
86947
  await writable.close();
86944
86948
  }
86945
86949
  } else if (typeof outputTarget?.directory === "string") {
@@ -55268,7 +55268,12 @@
55268
55268
  create: true,
55269
55269
  });
55270
55270
  const writable = await fileHandle.createWritable();
55271
- await writable.write(modifiedBlob);
55271
+ // Write via stream() rather than write(modifiedBlob): LazyCompositeBlob
55272
+ // keeps an empty native Blob body and exposes its bytes only through the
55273
+ // overridden stream(), which write(blob) bypasses (yielding 0-byte files).
55274
+ for await (const chunk of readableStreamToAsyncIterable(modifiedBlob.stream())) {
55275
+ await writable.write(chunk);
55276
+ }
55272
55277
  await writable.close();
55273
55278
  }
55274
55279
  }
@@ -127009,7 +127014,12 @@
127009
127014
  create: true,
127010
127015
  });
127011
127016
  const writable = await fileHandle.createWritable();
127012
- await writable.write(modifiedBlob);
127017
+ // Write via stream() rather than write(modifiedBlob): LazyCompositeBlob
127018
+ // keeps an empty native Blob body and exposes its bytes only through the
127019
+ // overridden stream(), which write(blob) bypasses (yielding 0-byte files).
127020
+ for await (const chunk of readableStreamToAsyncIterable(modifiedBlob.stream())) {
127021
+ await writable.write(chunk);
127022
+ }
127013
127023
  await writable.close();
127014
127024
  }
127015
127025
  }