@datapos/datapos-tool-csv-parse 0.0.21 → 0.0.23
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,8 +3383,13 @@ 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
|
-
|
|
3387
|
-
|
|
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;
|
|
3388
3393
|
};
|
|
3389
3394
|
try {
|
|
3390
3395
|
console.log(2222), f = lt(e), u = this.constructRowBuffer({ chunk: r.chunk, chunkSize: r.chunkSize ?? Qn }), f.on("readable", () => {
|
|
@@ -3408,7 +3413,7 @@ class Gn {
|
|
|
3408
3413
|
i.throwIfAborted(), await this.writeToParser(f, g.value), g = await l.read();
|
|
3409
3414
|
console.log(7777), f.end();
|
|
3410
3415
|
} catch (p) {
|
|
3411
|
-
console.log(8888, p),
|
|
3416
|
+
throw console.log(8888, p), p;
|
|
3412
3417
|
}
|
|
3413
3418
|
}
|
|
3414
3419
|
/** Parse string. */
|