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

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.7 kB · gzip 31.8 kB · 100.0% of the build |
89
+ |     csv-parse → dist/esm/index.js | `████████████████░░░░` 78.3% · 99.2 kB |
90
+ |     @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `███░░░░░░░░░░░░░░░░░` 12.5% · 15.9 kB |
91
+ |     src → index.ts | `█░░░░░░░░░░░░░░░░░░░` 3.3% · 4.2 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",
@@ -3526,7 +3530,7 @@ var Lr = {
3526
3530
  delimiter: t.valueDelimiterId,
3527
3531
  relax_column_count: !0
3528
3532
  });
3529
- let i = Hr({
3533
+ let i = Ur({
3530
3534
  chunk: n,
3531
3535
  chunkSize: t.chunkSize ?? Br
3532
3536
  });
@@ -3552,14 +3556,14 @@ var Lr = {
3552
3556
  }
3553
3557
  };
3554
3558
  a.on("end", () => {
3555
- c || (i.flush(), l(Ur(a)));
3559
+ c || (i.flush(), l(Wr(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
3564
  t.abortSignal.throwIfAborted(), f += m.value.length;
3561
3565
  let e = u.decode(m.value, { stream: !0 });
3562
- e.length > 0 && (a.write(e), p = !0), await i.drain(), m = await o.read();
3566
+ e.length > 0 && (p = !0, a.write(e) || await Hr(a)), await i.drain(), m = await o.read();
3563
3567
  }
3564
3568
  if (c) return;
3565
3569
  let h = u.decode();
@@ -3577,10 +3581,17 @@ var Lr = {
3577
3581
  });
3578
3582
  }
3579
3583
  async parseText(e, t) {
3580
- return await Or(e, t, Wr);
3584
+ return await Or(e, t, Gr);
3581
3585
  }
3582
3586
  };
3583
3587
  function Hr(e) {
3588
+ return new Promise((t) => {
3589
+ e.once("drain", () => {
3590
+ t();
3591
+ });
3592
+ });
3593
+ }
3594
+ function Ur(e) {
3584
3595
  let t = Math.max(1, Math.floor(e.chunkSize)), n = [], r = [], i = s(), a = 0, o = () => {
3585
3596
  if (a === 0) return;
3586
3597
  let t = i;
@@ -3604,7 +3615,7 @@ function Hr(e) {
3604
3615
  return r.length = 0, r;
3605
3616
  }
3606
3617
  }
3607
- function Ur(e) {
3618
+ function Wr(e) {
3608
3619
  return {
3609
3620
  byteCount: e?.info.bytes ?? -1,
3610
3621
  commentLineCount: e?.info.comment_lines ?? -1,
@@ -3614,10 +3625,10 @@ function Ur(e) {
3614
3625
  recordCount: e?.info.records ?? -1
3615
3626
  };
3616
3627
  }
3617
- function Wr(e, t, n) {
3628
+ function Gr(e, t, n) {
3618
3629
  return new Promise((r) => {
3619
3630
  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));
3631
+ e == null || !n && e.code === "CSV_QUOTE_NOT_CLOSED" || (i.push(Kr(e, o + 1)), e.lines != null && (o = e.lines));
3621
3632
  }, c = ar({
3622
3633
  ...Lr,
3623
3634
  cast: (e, t) => ({
@@ -3647,7 +3658,7 @@ function Wr(e, t, n) {
3647
3658
  }), c.write(e), c.end();
3648
3659
  });
3649
3660
  }
3650
- function Gr(e, t) {
3661
+ function Kr(e, t) {
3651
3662
  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
3663
  return {
3653
3664
  endLineNumber: n != null && n > t ? n : void 0,