@dpuse/dpuse-shared 1.0.231 → 1.0.233
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
|
@@ -270,10 +270,10 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
270
270
|
|
|
271
271
|
| Chunk/Module/File | Composition |
|
|
272
272
|
| :-------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
|
|
273
|
-
| **dist/dpuse-shared.es.js** | 70.
|
|
274
|
-
| src → index.ts + 18 more | `███████████████░░░░░` 74.8% · 52.
|
|
273
|
+
| **dist/dpuse-shared.es.js** | 70.8 kB · gzip 17.1 kB · 100.0% of the build |
|
|
274
|
+
| src → index.ts + 18 more | `███████████████░░░░░` 74.8% · 52.9 kB |
|
|
275
275
|
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒░░░░░░░░░░░` 44.4% · 31.4 kB |
|
|
276
|
-
| ↳ objectParsing.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 15.8% · 11.
|
|
276
|
+
| ↳ objectParsing.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 15.8% · 11.2 kB |
|
|
277
277
|
| ↳ tableSchema.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.8% · 2.0 kB |
|
|
278
278
|
| ↳ delimitedText.ts | `░░░░░░░░░░░░░░░░░░░░` 2.4% · 1.7 kB |
|
|
279
279
|
| ↳ connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 1.9% · 1.3 kB |
|
|
@@ -281,7 +281,7 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
281
281
|
| ↳ componentConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 1.3% · 941 B |
|
|
282
282
|
| ↳ 12 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 4.4% · 3.1 kB |
|
|
283
283
|
| valibot → dist/index.mjs | `███░░░░░░░░░░░░░░░░░` 12.7% · 9.0 kB |
|
|
284
|
-
| (bundler output, whitespace & JSON) |
|
|
284
|
+
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 12.5% · 8.9 kB |
|
|
285
285
|
|
|
286
286
|
Bars show each row's share of its output file. ↳ rows are part of the row above.
|
|
287
287
|
|
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -856,28 +856,28 @@ var he = A([
|
|
|
856
856
|
], P = class extends Error {
|
|
857
857
|
data;
|
|
858
858
|
locator;
|
|
859
|
-
constructor(e, t, n
|
|
860
|
-
super(e,
|
|
859
|
+
constructor(e, t, n) {
|
|
860
|
+
super(e, n), this.name = "DPUseError", this.data = n?.data, this.locator = t;
|
|
861
861
|
}
|
|
862
862
|
}, F = class extends P {
|
|
863
|
-
constructor(e, t, n
|
|
864
|
-
super(e, t, n
|
|
863
|
+
constructor(e, t, n) {
|
|
864
|
+
super(e, t, n), this.name = "AppError";
|
|
865
865
|
}
|
|
866
866
|
}, Oe = class extends P {
|
|
867
|
-
constructor(e, t, n
|
|
868
|
-
super(e, t, n
|
|
867
|
+
constructor(e, t, n) {
|
|
868
|
+
super(e, t, n), this.name = "APIError";
|
|
869
869
|
}
|
|
870
870
|
}, ke = class extends P {
|
|
871
|
-
constructor(e, t, n
|
|
872
|
-
super(e, t, n
|
|
871
|
+
constructor(e, t, n) {
|
|
872
|
+
super(e, t, n), this.name = "EngineError";
|
|
873
873
|
}
|
|
874
874
|
}, I = class extends P {
|
|
875
|
-
constructor(e, t, n
|
|
876
|
-
super(e, t, n
|
|
875
|
+
constructor(e, t, n) {
|
|
876
|
+
super(e, t, n), this.name = "ConnectorError";
|
|
877
877
|
}
|
|
878
878
|
}, L = class extends P {
|
|
879
|
-
constructor(e, t, n
|
|
880
|
-
super(e, t, n
|
|
879
|
+
constructor(e, t, n) {
|
|
880
|
+
super(e, t, n), this.name = "FetchError";
|
|
881
881
|
}
|
|
882
882
|
};
|
|
883
883
|
async function R(e, t, n) {
|
|
@@ -887,7 +887,7 @@ async function R(e, t, n) {
|
|
|
887
887
|
} catch (e) {
|
|
888
888
|
a = `<body unavailable: ${z(e).message}>`;
|
|
889
889
|
}
|
|
890
|
-
return new L(i, n, { body: Le(a) });
|
|
890
|
+
return new L(i, n, { data: { body: Le(a) } });
|
|
891
891
|
}
|
|
892
892
|
function Ae(e) {
|
|
893
893
|
return e.map((e) => e.message).join(" ");
|
|
@@ -937,11 +937,26 @@ function Pe(e) {
|
|
|
937
937
|
}
|
|
938
938
|
function Fe(e, t) {
|
|
939
939
|
switch (e.name) {
|
|
940
|
-
case "APIError": return new Oe(e.message, e.locator,
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
case "
|
|
940
|
+
case "APIError": return new Oe(e.message, e.locator, {
|
|
941
|
+
data: e.data,
|
|
942
|
+
cause: t
|
|
943
|
+
});
|
|
944
|
+
case "AppError": return new F(e.message, e.locator, {
|
|
945
|
+
data: e.data,
|
|
946
|
+
cause: t
|
|
947
|
+
});
|
|
948
|
+
case "ConnectorError": return new I(e.message, e.locator, {
|
|
949
|
+
data: e.data,
|
|
950
|
+
cause: t
|
|
951
|
+
});
|
|
952
|
+
case "EngineError": return new ke(e.message, e.locator, {
|
|
953
|
+
data: e.data,
|
|
954
|
+
cause: t
|
|
955
|
+
});
|
|
956
|
+
case "FetchError": return new L(e.message, e.locator, {
|
|
957
|
+
data: e.data,
|
|
958
|
+
cause: t
|
|
959
|
+
});
|
|
945
960
|
default: {
|
|
946
961
|
let n = e.name;
|
|
947
962
|
return new class extends Error {
|
|
@@ -2111,7 +2126,7 @@ function q(e, t, n) {
|
|
|
2111
2126
|
availableToolIds: e.map((e) => e.id),
|
|
2112
2127
|
dataFormatId: t
|
|
2113
2128
|
};
|
|
2114
|
-
throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
2129
|
+
throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", { data: n });
|
|
2115
2130
|
}
|
|
2116
2131
|
let a = st[t];
|
|
2117
2132
|
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
@@ -2123,7 +2138,7 @@ async function ct(e, t) {
|
|
|
2123
2138
|
availableToolIds: e.map((e) => e.id),
|
|
2124
2139
|
toolName: n
|
|
2125
2140
|
};
|
|
2126
|
-
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
2141
|
+
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", { data: r });
|
|
2127
2142
|
}
|
|
2128
2143
|
let i = `${ot}/${t}_v${r.version}/${n}.es.js`;
|
|
2129
2144
|
try {
|
|
@@ -2137,7 +2152,10 @@ async function ct(e, t) {
|
|
|
2137
2152
|
url: i,
|
|
2138
2153
|
version: r.version
|
|
2139
2154
|
};
|
|
2140
|
-
throw new F(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool",
|
|
2155
|
+
throw new F(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", {
|
|
2156
|
+
data: t,
|
|
2157
|
+
cause: e
|
|
2158
|
+
});
|
|
2141
2159
|
}
|
|
2142
2160
|
}
|
|
2143
2161
|
// src/component/module/connector/objectParsing.ts
|
|
@@ -2272,26 +2290,29 @@ async function ht(e) {
|
|
|
2272
2290
|
};
|
|
2273
2291
|
}
|
|
2274
2292
|
async function* gt(e) {
|
|
2275
|
-
let { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = bt(t), { parser: s } = await X(i, t.dataFormatId, t.parserId), c = Tt(r), l = s.parseStream(
|
|
2293
|
+
let { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = bt(t), { parser: s } = await X(i, t.dataFormatId, t.parserId), c = Tt(r), l = wt(c.stream), u = s.parseStream(l.stream, {
|
|
2276
2294
|
abortSignal: n,
|
|
2277
2295
|
chunkSize: t.chunkSize,
|
|
2278
2296
|
dataFormatId: t.dataFormatId,
|
|
2279
2297
|
encodingId: a,
|
|
2280
2298
|
structurePath: t.structurePath,
|
|
2281
2299
|
valueDelimiterId: o
|
|
2282
|
-
}),
|
|
2300
|
+
}), d = Ot(u), f = !1;
|
|
2283
2301
|
try {
|
|
2284
|
-
let e = await
|
|
2285
|
-
for (; e.done !== !0;) yield
|
|
2286
|
-
|
|
2302
|
+
let e = await d.readNext();
|
|
2303
|
+
for (; e.done !== !0;) yield {
|
|
2304
|
+
...e.value,
|
|
2305
|
+
byteCount: l.byteCount()
|
|
2306
|
+
}, e = await d.readNext();
|
|
2307
|
+
f = !0;
|
|
2287
2308
|
let t = c.waitDuration();
|
|
2288
2309
|
return {
|
|
2289
2310
|
recordCount: e.value.recordCount,
|
|
2290
2311
|
sourceWaitDuration: t,
|
|
2291
|
-
parseDuration: Math.max(0,
|
|
2312
|
+
parseDuration: Math.max(0, d.duration() - t)
|
|
2292
2313
|
};
|
|
2293
2314
|
} finally {
|
|
2294
|
-
|
|
2315
|
+
f || await u.return?.();
|
|
2295
2316
|
}
|
|
2296
2317
|
}
|
|
2297
2318
|
async function _t(e) {
|
|
@@ -2548,7 +2569,10 @@ async function kt(e, t, n) {
|
|
|
2548
2569
|
}
|
|
2549
2570
|
// src/component/module/connector/storeErrors.ts
|
|
2550
2571
|
function At(e, t, n, r) {
|
|
2551
|
-
return new I(t, n, {
|
|
2572
|
+
return new I(t, n, {
|
|
2573
|
+
data: { storeErrorId: e },
|
|
2574
|
+
...r
|
|
2575
|
+
});
|
|
2552
2576
|
}
|
|
2553
2577
|
function jt(e) {
|
|
2554
2578
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -2874,7 +2898,10 @@ async function sn(e, t, n, r) {
|
|
|
2874
2898
|
url: a,
|
|
2875
2899
|
version: e.version
|
|
2876
2900
|
};
|
|
2877
|
-
throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter",
|
|
2901
|
+
throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", {
|
|
2902
|
+
data: n,
|
|
2903
|
+
cause: t
|
|
2904
|
+
});
|
|
2878
2905
|
}
|
|
2879
2906
|
}
|
|
2880
2907
|
// src/locale/index.ts
|