@datapos/datapos-tool-csv-parse 0.0.23 → 0.0.24

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.
@@ -3383,13 +3383,8 @@ class Gn {
3383
3383
  async parseStream(e, r, n, i, o, s) {
3384
3384
  let f, l, u, h = !1;
3385
3385
  const c = (p, g = !1) => {
3386
- try {
3387
- if (console.log(3333, h), h) return;
3388
- h = !0, l?.cancel(), u?.flush(), console.log(4444, g), g && f?.destroy(p);
3389
- } catch (x) {
3390
- console.log("4444a", x);
3391
- }
3392
- throw p;
3386
+ if (console.log(3333, h), !h)
3387
+ throw h = !0, l?.cancel(), u?.flush(), console.log(4444, g), g && f?.destroy(p), p;
3393
3388
  };
3394
3389
  try {
3395
3390
  console.log(2222), f = lt(e), u = this.constructRowBuffer({ chunk: r.chunk, chunkSize: r.chunkSize ?? Qn }), f.on("readable", () => {
@@ -3413,7 +3408,7 @@ class Gn {
3413
3408
  i.throwIfAborted(), await this.writeToParser(f, g.value), g = await l.read();
3414
3409
  console.log(7777), f.end();
3415
3410
  } catch (p) {
3416
- throw console.log(8888, p), p;
3411
+ console.log(8888, p), c(p, !0);
3417
3412
  }
3418
3413
  }
3419
3414
  /** Parse string. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-tool-csv-parse",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "private": false,