@datapos/datapos-tool-csv-parse 0.0.30 → 0.0.31

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.
@@ -3398,8 +3398,10 @@ class Gn {
3398
3398
  try {
3399
3399
  if (f == null || l == null) return;
3400
3400
  let g;
3401
- for (; (g = f.read()) != null; )
3401
+ for (; (g = f.read()) != null; ) {
3402
+ if (h) return;
3402
3403
  i.signal.throwIfAborted(), l.push(g);
3404
+ }
3403
3405
  } catch (g) {
3404
3406
  c(g);
3405
3407
  }
@@ -3411,8 +3413,10 @@ class Gn {
3411
3413
  throw await Yn(p, `Failed to fetch '${n}' file.`, "datapos-connector-file-store-emulator|Connector|retrieve");
3412
3414
  u = p.body.pipeThrough(new TextDecoderStream(r.encodingId)).getReader();
3413
3415
  let I = await u.read();
3414
- for (; !I.done; )
3416
+ for (; !I.done; ) {
3417
+ if (h) return;
3415
3418
  i.signal.throwIfAborted(), await this.writeToParser(f, I.value), I = await u.read();
3419
+ }
3416
3420
  f.end();
3417
3421
  })().catch((p) => c(p));
3418
3422
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-tool-csv-parse",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "private": false,