@dpuse/dpuse-shared 1.0.151 → 1.0.153

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
@@ -241,11 +241,11 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
241
241
 
242
242
  | Chunk/Module/File | Composition |
243
243
  | :-------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
244
- | **dist/dpuse-shared.es.js** | 59.1 kB · gzip 17.1 kB · 100.0% of the build |
244
+ | **dist/dpuse-shared.es.js** | 59.2 kB · gzip 17.1 kB · 100.0% of the build |
245
245
  |     src → index.ts + 13 more | `███████████████░░░░░` 76.6% · 45.3 kB |
246
246
  |         ↳ index.ts | `▒▒▒▒▒▒▒░░░░░░░░░░░░░` 36.4% · 21.5 kB |
247
247
  |         ↳ dataFormatIcons.ts | `▒▒▒▒▒░░░░░░░░░░░░░░░` 26.0% · 15.4 kB |
248
- |         ↳ objectParsing.ts | `▒░░░░░░░░░░░░░░░░░░░` 4.9% · 2.9 kB |
248
+ |         ↳ objectParsing.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.0% · 2.9 kB |
249
249
  |         ↳ delimitedText.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.6% · 1.6 kB |
250
250
  |         ↳ connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.1% · 1.2 kB |
251
251
  |         ↳ 9 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 4.6% · 2.7 kB |
@@ -1001,24 +1001,25 @@ async function Ge(e) {
1001
1001
  }, t);
1002
1002
  }
1003
1003
  async function Ke(e) {
1004
- let { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await q(o, r.dataFormatId, r.parserId), d = await u.parseStream(a, {
1005
- abortSignal: i,
1006
- chunkSize: r.chunkSize,
1007
- dataFormatId: r.dataFormatId,
1008
- encodingId: r.encodingId,
1009
- valueDelimiterId: r.valueDelimiterId
1004
+ let { constructColumnAuditor: t, onProgress: n, onRecords: r, options: i, signal: a, stream: o, toolConfigs: s } = e, c = Date.now(), l = performance.now(), u = t(i.hasHeaders), { parser: d } = await q(s, i.dataFormatId, i.parserId), f = await d.parseStream(o, {
1005
+ abortSignal: a,
1006
+ chunkSize: i.chunkSize,
1007
+ dataFormatId: i.dataFormatId,
1008
+ encodingId: i.encodingId,
1009
+ valueDelimiterId: i.valueDelimiterId
1010
1010
  }, (e, t) => {
1011
- l.auditRecords(t), n(t.length);
1011
+ let i = u.auditRecords(t);
1012
+ return n(t.length), r?.(i);
1012
1013
  });
1013
1014
  return {
1014
- asAt: s,
1015
- columns: l.completeAudit(),
1016
- commentLineCount: d.commentLineCount,
1017
- duration: performance.now() - c,
1018
- emptyLineCount: d.emptyLineCount,
1019
- invalidFieldLengthCount: d.nonUniformRecordCount,
1020
- lineCount: d.lineCount,
1021
- recordCount: Math.max(0, d.recordCount - +!!r.hasHeaders)
1015
+ asAt: c,
1016
+ columns: u.completeAudit(),
1017
+ commentLineCount: f.commentLineCount,
1018
+ duration: performance.now() - l,
1019
+ emptyLineCount: f.emptyLineCount,
1020
+ invalidFieldLengthCount: f.nonUniformRecordCount,
1021
+ lineCount: f.lineCount,
1022
+ recordCount: Math.max(0, f.recordCount - +!!i.hasHeaders)
1022
1023
  };
1023
1024
  }
1024
1025
  async function q(e, t, n) {