@dpuse/dpuse-shared 1.0.216 → 1.0.218
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
|
@@ -271,14 +271,14 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
271
271
|
| Chunk/Module/File | Composition |
|
|
272
272
|
| :-------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
|
|
273
273
|
| **dist/dpuse-shared.es.js** | 66.8 kB · gzip 15.9 kB · 100.0% of the build |
|
|
274
|
-
| src → index.ts + 16 more | `███████████████░░░░░` 73.9% · 49.
|
|
274
|
+
| src → index.ts + 16 more | `███████████████░░░░░` 73.9% · 49.4 kB |
|
|
275
275
|
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒░░░░░░░░░░░` 46.6% · 31.1 kB |
|
|
276
276
|
| ↳ objectParsing.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 14.7% · 9.8 kB |
|
|
277
277
|
| ↳ tableSchema.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.0% · 2.0 kB |
|
|
278
278
|
| ↳ delimitedText.ts | `░░░░░░░░░░░░░░░░░░░░` 2.4% · 1.6 kB |
|
|
279
279
|
| ↳ connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.0% · 1.3 kB |
|
|
280
280
|
| ↳ componentConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 1.4% · 942 B |
|
|
281
|
-
| ↳ 11 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 3.
|
|
281
|
+
| ↳ 11 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 3.9% · 2.6 kB |
|
|
282
282
|
| valibot → dist/index.mjs | `███░░░░░░░░░░░░░░░░░` 13.5% · 9.0 kB |
|
|
283
283
|
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 12.6% · 8.4 kB |
|
|
284
284
|
|
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -2471,8 +2471,10 @@ async function wt(e) {
|
|
|
2471
2471
|
});
|
|
2472
2472
|
}), r = (async () => {
|
|
2473
2473
|
await n;
|
|
2474
|
-
})();
|
|
2475
|
-
return
|
|
2474
|
+
})(), i = await Promise.race([t.promise, r]);
|
|
2475
|
+
if (i != null) return async () => {
|
|
2476
|
+
i(), await n;
|
|
2477
|
+
};
|
|
2476
2478
|
}
|
|
2477
2479
|
var Tt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
|
|
2478
2480
|
format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
@@ -2807,10 +2809,10 @@ var Qt = /* @__PURE__ */ new Map([
|
|
|
2807
2809
|
["millisecond", 1]
|
|
2808
2810
|
], $t = [
|
|
2809
2811
|
["byte", 1],
|
|
2810
|
-
["
|
|
2811
|
-
["
|
|
2812
|
-
["
|
|
2813
|
-
["
|
|
2812
|
+
["KiB", 1024],
|
|
2813
|
+
["MiB", 1048576],
|
|
2814
|
+
["GiB", 1073741824],
|
|
2815
|
+
["TiB", 1099511627776]
|
|
2814
2816
|
], en = /* @__PURE__ */ new Map(), tn = /* @__PURE__ */ new Map();
|
|
2815
2817
|
function nn(e, t = 2, n = t, r = Z) {
|
|
2816
2818
|
return e == null ? "" : $(r, {
|
|
@@ -2833,13 +2835,13 @@ function an(e, t = 1, n = Z) {
|
|
|
2833
2835
|
}
|
|
2834
2836
|
function on(e, t = 1, n = Z) {
|
|
2835
2837
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2836
|
-
let [r, i] = $t.find(([, n]) => hn(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["
|
|
2837
|
-
return $(n, {
|
|
2838
|
-
maximumFractionDigits:
|
|
2838
|
+
let [r, i] = $t.find(([, n]) => hn(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["TiB", 1099511627776];
|
|
2839
|
+
return i === 1 ? $(n, {
|
|
2840
|
+
maximumFractionDigits: 0,
|
|
2839
2841
|
style: "unit",
|
|
2840
|
-
unit:
|
|
2841
|
-
unitDisplay:
|
|
2842
|
-
}).format(e / i)
|
|
2842
|
+
unit: "byte",
|
|
2843
|
+
unitDisplay: "long"
|
|
2844
|
+
}).format(e) : `${$(n, { maximumFractionDigits: t }).format(e / i)} ${r}`;
|
|
2843
2845
|
}
|
|
2844
2846
|
function sn(e, t = "millisecond", n = Z) {
|
|
2845
2847
|
if (e == null || !Number.isFinite(e)) return "";
|