@datapos/datapos-tool-csv-parse 0.0.25 → 0.0.27
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.
|
@@ -3384,10 +3384,10 @@ class Gn {
|
|
|
3384
3384
|
return new Promise((o, s) => {
|
|
3385
3385
|
let f, u, l, h = !1;
|
|
3386
3386
|
const c = (p) => {
|
|
3387
|
-
h
|
|
3387
|
+
console.log(5555, p), !h && (h = !0, u?.cancel(), f?.destroy(), console.log(7777, p), s(p));
|
|
3388
3388
|
};
|
|
3389
3389
|
(async () => {
|
|
3390
|
-
f = ut(e), l = this.constructRowBuffer({ chunk: r.chunk, chunkSize: r.chunkSize ?? Qn }), f.on("readable", () => {
|
|
3390
|
+
console.log(1111), f = ut(e), l = this.constructRowBuffer({ chunk: r.chunk, chunkSize: r.chunkSize ?? Qn }), f.on("readable", () => {
|
|
3391
3391
|
try {
|
|
3392
3392
|
if (f == null || l == null) return;
|
|
3393
3393
|
let g;
|
|
@@ -3397,7 +3397,7 @@ class Gn {
|
|
|
3397
3397
|
c(g);
|
|
3398
3398
|
}
|
|
3399
3399
|
}), f.on("error", (g) => c(g)), f.on("end", () => {
|
|
3400
|
-
h || (l?.flush(), o(this.constructSummary(f)));
|
|
3400
|
+
h || (l?.flush(), console.log(8888, this.constructSummary(f)), o(this.constructSummary(f)));
|
|
3401
3401
|
});
|
|
3402
3402
|
const p = await fetch(encodeURI(n), { signal: i });
|
|
3403
3403
|
if (!p.ok || p.body == null)
|