@dpuse/dpuse-tool-adaltas-csv-parser 1.0.123 → 1.0.126

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.
package/README.md CHANGED
@@ -61,7 +61,7 @@ License data is updated each time `npm run document` is run, using [license-chec
61
61
 
62
62
  | Dependency | Version | License(s) | Document |
63
63
  | :----------------------------------------------------------- | :-----: | :--------- | :-------------------------------------------------------------------- |
64
- | [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 1.0.155 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@1.0.155-LICENSE.txt) |
64
+ | [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 1.0.161 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@1.0.161-LICENSE.txt) |
65
65
  | [csv-parse](https://github.com/adaltas/node-csv) | 7.0.3 | MIT | [LICENSE](licenses/downloads/csv-parse@7.0.3-LICENSE.txt) |
66
66
  | [valibot](https://github.com/open-circle/valibot) | 1.5.0 | MIT | [LICENSE](licenses/downloads/valibot@1.5.0-LICENSE.txt) |
67
67
 
@@ -69,7 +69,7 @@ License data is updated each time `npm run document` is run, using [license-chec
69
69
 
70
70
  The dependency tree below shows how each package in the table above is reached — direct and transitive — along with its installed version, release date, and update status. A package that does not ship itself, such as one whose parts are bundled separately, is left out and what ships beneath it is shown in its place. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.
71
71
 
72
- - **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.155 — this month: 2026-10-28
72
+ - **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.161 — this month: 2026-10-29
73
73
  - **[valibot](https://github.com/open-circle/valibot)** 1.5.0 — 1 mth ago: 2026-09-09
74
74
  - **[csv-parse](https://github.com/adaltas/node-csv)** 7.0.3 — 1 mth ago: 2026-09-25
75
75
 
@@ -85,10 +85,10 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
85
85
 
86
86
  | Chunk/Module/File | Composition |
87
87
  | :-------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------- |
88
- | **dist/dpuse-tool-adaltas-csv-parser.es.js** | 126.5 kB · gzip 31.7 kB · 100.0% of the build |
89
- |     csv-parse → dist/esm/index.js | `████████████████░░░░` 78.4% · 99.2 kB |
90
- |     @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `███░░░░░░░░░░░░░░░░░` 12.5% · 15.8 kB |
91
- |     src → index.ts | `█░░░░░░░░░░░░░░░░░░░` 3.3% · 4.1 kB |
88
+ | **dist/dpuse-tool-adaltas-csv-parser.es.js** | 126.8 kB · gzip 31.8 kB · 100.0% of the build |
89
+ |     csv-parse → dist/esm/index.js | `████████████████░░░░` 78.2% · 99.2 kB |
90
+ |     @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `███░░░░░░░░░░░░░░░░░` 12.5% · 15.9 kB |
91
+ |     src → index.ts | `█░░░░░░░░░░░░░░░░░░░` 3.5% · 4.4 kB |
92
92
  |     (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 5.8% · 7.4 kB |
93
93
 
94
94
  Bars show each row's share of its output file.
@@ -2918,6 +2918,7 @@ var Er = {
2918
2918
  ({ ...Er }), $([
2919
2919
  "abortOperation",
2920
2920
  "auditObjectContent",
2921
+ "closeStore",
2921
2922
  "createObject",
2922
2923
  "describeConnection",
2923
2924
  "dropObject",
@@ -2926,7 +2927,10 @@ var Er = {
2926
2927
  "getReadableStream",
2927
2928
  "getRecord",
2928
2929
  "listNodes",
2930
+ "loadObjectRecords",
2931
+ "openStore",
2929
2932
  "previewObject",
2933
+ "queryRecords",
2930
2934
  "removeRecords",
2931
2935
  "retrieveChunks",
2932
2936
  "retrieveRecords",
@@ -3503,7 +3507,7 @@ var Lr = {
3503
3507
  skip_records_with_error: !1,
3504
3508
  to_line: -1,
3505
3509
  trim: !1
3506
- }, Rr = 4, zr = 50, Br = 1e4, Vr = class {
3510
+ }, Rr = 4, zr = 1048576, Br = 50, Vr = 1e4, Hr = class {
3507
3511
  async parseStream(e, t, n) {
3508
3512
  return new Promise((r, i) => {
3509
3513
  let a, o, s, c = !1, l = !1, u = () => {
@@ -3526,9 +3530,9 @@ var Lr = {
3526
3530
  delimiter: t.valueDelimiterId,
3527
3531
  relax_column_count: !0
3528
3532
  });
3529
- let i = Hr({
3533
+ let i = Gr({
3530
3534
  chunk: n,
3531
- chunkSize: t.chunkSize ?? Br
3535
+ chunkSize: t.chunkSize ?? Vr
3532
3536
  });
3533
3537
  s = i, a.on("readable", () => {
3534
3538
  try {
@@ -3552,14 +3556,12 @@ var Lr = {
3552
3556
  }
3553
3557
  };
3554
3558
  a.on("end", () => {
3555
- c || (i.flush(), l(Ur(a)));
3559
+ c || (i.flush(), l(Kr(a)));
3556
3560
  }), o = e.getReader();
3557
3561
  let u = new TextDecoder(Ir(t.encodingId)), f = 0, p = !1, m = await o.read();
3558
3562
  for (; !m.done;) {
3559
3563
  if (c) return;
3560
- t.abortSignal.throwIfAborted(), f += m.value.length;
3561
- let e = u.decode(m.value, { stream: !0 });
3562
- e.length > 0 && (a.write(e), p = !0), await i.drain(), m = await o.read();
3564
+ t.abortSignal.throwIfAborted(), f += m.value.length, await Ur(a, u, m.value, i) > 0 && (p = !0), m = await o.read();
3563
3565
  }
3564
3566
  if (c) return;
3565
3567
  let h = u.decode();
@@ -3577,10 +3579,25 @@ var Lr = {
3577
3579
  });
3578
3580
  }
3579
3581
  async parseText(e, t) {
3580
- return await Or(e, t, Wr);
3582
+ return await Or(e, t, qr);
3581
3583
  }
3582
3584
  };
3583
- function Hr(e) {
3585
+ async function Ur(e, t, n, r) {
3586
+ let i = 0;
3587
+ for (let a = 0; a < n.length; a += zr) {
3588
+ let o = t.decode(n.subarray(a, a + zr), { stream: !0 });
3589
+ o.length > 0 && (i += o.length, e.write(o) || await Wr(e)), await r.drain();
3590
+ }
3591
+ return i;
3592
+ }
3593
+ function Wr(e) {
3594
+ return new Promise((t) => {
3595
+ e.once("drain", () => {
3596
+ t();
3597
+ });
3598
+ });
3599
+ }
3600
+ function Gr(e) {
3584
3601
  let t = Math.max(1, Math.floor(e.chunkSize)), n = [], r = [], i = s(), a = 0, o = () => {
3585
3602
  if (a === 0) return;
3586
3603
  let t = i;
@@ -3604,7 +3621,7 @@ function Hr(e) {
3604
3621
  return r.length = 0, r;
3605
3622
  }
3606
3623
  }
3607
- function Ur(e) {
3624
+ function Kr(e) {
3608
3625
  return {
3609
3626
  byteCount: e?.info.bytes ?? -1,
3610
3627
  commentLineCount: e?.info.comment_lines ?? -1,
@@ -3614,10 +3631,10 @@ function Ur(e) {
3614
3631
  recordCount: e?.info.records ?? -1
3615
3632
  };
3616
3633
  }
3617
- function Wr(e, t, n) {
3634
+ function qr(e, t, n) {
3618
3635
  return new Promise((r) => {
3619
3636
  let i = [], a = [], o = 0, s = (e) => {
3620
- e == null || !n && e.code === "CSV_QUOTE_NOT_CLOSED" || (i.push(Gr(e, o + 1)), e.lines != null && (o = e.lines));
3637
+ e == null || !n && e.code === "CSV_QUOTE_NOT_CLOSED" || (i.push(Jr(e, o + 1)), e.lines != null && (o = e.lines));
3621
3638
  }, c = ar({
3622
3639
  ...Lr,
3623
3640
  cast: (e, t) => ({
@@ -3647,7 +3664,7 @@ function Wr(e, t, n) {
3647
3664
  }), c.write(e), c.end();
3648
3665
  });
3649
3666
  }
3650
- function Gr(e, t) {
3667
+ function Jr(e, t) {
3651
3668
  let n = e.lines, r = e.code === "CSV_INVALID_CLOSING_QUOTE" ? /got "(.*?)" at line/u.exec(e.message)?.[1] : void 0, i = typeof e.field == "string" ? e.field : r;
3652
3669
  return {
3653
3670
  endLineNumber: n != null && n > t ? n : void 0,
@@ -3657,7 +3674,7 @@ function Gr(e, t) {
3657
3674
  message: e.message,
3658
3675
  recordNumber: e.records == null ? void 0 : e.records + 1,
3659
3676
  severityId: "error",
3660
- value: i != null && i.length > zr ? `${i.slice(0, zr)}…` : i
3677
+ value: i != null && i.length > Br ? `${i.slice(0, Br)}…` : i
3661
3678
  };
3662
3679
  }
3663
- export { Vr as Tool };
3680
+ export { Hr as Tool };