@storm-software/untyped 0.8.1 → 0.8.3
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 +1 -1
- package/{dist/chunk-GWEQOXW6.mjs → bin/chunk-65NJ2BNV.js} +16 -13
- package/bin/chunk-7LNAPF6J.js +7601 -0
- package/bin/chunk-BIBA7MGH.js +84 -0
- package/bin/chunk-MVPKPUE3.js +1120 -0
- package/bin/chunk-PRGAKNNV.js +765 -0
- package/bin/chunk-Q3AKY4XY.js +4054 -0
- package/bin/chunk-Q42ZDLPG.js +510 -0
- package/bin/chunk-RNYNEYJ5.js +451 -0
- package/bin/dist-SOH4ASEU.js +17570 -0
- package/bin/esm-SQV6ELTR.js +1716 -0
- package/bin/execa-4HBUJBFQ.js +2424 -0
- package/bin/json5-WTSMELC2.js +10 -0
- package/bin/jsonc-B7SFZJW2.js +15 -0
- package/bin/multipart-parser-TFNERLJV.js +187 -0
- package/bin/toml-MTE5VHET.js +10 -0
- package/bin/untyped.cjs +83925 -0
- package/bin/untyped.js +42339 -373
- package/bin/yaml-D6PQ2AEL.js +10 -0
- package/dist/{chunk-XSW3ZXMK.mjs → chunk-B5PWE2FK.js} +8 -3
- package/dist/{chunk-6HKRKQSU.js → chunk-BFSI6OL7.cjs} +12 -7
- package/dist/{chunk-LWMIR3BQ.js → chunk-CLGOYXO6.cjs} +13 -8
- package/dist/chunk-EIXSLKJ6.js +85 -0
- package/dist/{chunk-EBIRRCGB.mjs → chunk-ELSZYSKI.js} +8 -3
- package/dist/{chunk-6OB6EGVE.js → chunk-HUCZDWTY.cjs} +206 -175
- package/dist/chunk-KQOG5R22.cjs +6 -0
- package/dist/chunk-MW6UM5LZ.js +6 -0
- package/dist/chunk-S36U2TKG.js +7218 -0
- package/dist/{chunk-MNW76QG7.mjs → chunk-SF7VZOKX.js} +39 -8
- package/dist/{chunk-HSIBHFJE.mjs → chunk-TJ5YM7SW.js} +8 -3
- package/dist/{chunk-TJLW3KPU.js → chunk-UCWWPTWV.cjs} +11 -6
- package/dist/chunk-VCSZBLKU.cjs +85 -0
- package/dist/chunk-YU5YP27Q.cjs +7221 -0
- package/dist/generate.cjs +11 -0
- package/dist/{generate.d.mts → generate.d.cts} +1 -1
- package/dist/generate.d.ts +1 -1
- package/dist/generate.js +11 -10
- package/dist/index.cjs +32 -0
- package/dist/{index.d.mts → index.d.cts} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -27
- package/dist/{types-DkqO6Ujr.d.mts → types-BQ21E8Xn.d.cts} +361 -361
- package/dist/{types-DkqO6Ujr.d.ts → types-BQ21E8Xn.d.ts} +361 -361
- package/dist/utilities.cjs +6 -0
- package/dist/utilities.js +6 -6
- package/package.json +44 -53
- package/bin/untyped.mjs +0 -7050
- package/dist/chunk-NYKCIVTC.js +0 -46
- package/dist/chunk-U4YLQDJK.js +0 -1
- package/dist/chunk-ZHPKHX4S.mjs +0 -0
- package/dist/generate.mjs +0 -10
- package/dist/index.mjs +0 -27
- package/dist/utilities.mjs +0 -6
- /package/bin/{untyped.d.mts → untyped.d.cts} +0 -0
- /package/dist/{utilities.d.mts → utilities.d.cts} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-65NJ2BNV.js";
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
var b = /^(?:( )+|\t+)/;
|
|
9
|
+
var d = "space";
|
|
10
|
+
var h = "tab";
|
|
11
|
+
function g(e, t) {
|
|
12
|
+
const n = /* @__PURE__ */ new Map();
|
|
13
|
+
let i = 0, s, o;
|
|
14
|
+
for (const c of e.split(/\n/g)) {
|
|
15
|
+
if (!c) continue;
|
|
16
|
+
let f, a, l, p, r;
|
|
17
|
+
const y = c.match(b);
|
|
18
|
+
if (y === null) i = 0, s = "";
|
|
19
|
+
else {
|
|
20
|
+
if (f = y[0].length, a = y[1] ? d : h, t && a === d && f === 1) continue;
|
|
21
|
+
a !== s && (i = 0), s = a, l = 1, p = 0;
|
|
22
|
+
const u = f - i;
|
|
23
|
+
if (i = f, u === 0) l = 0, p = 1;
|
|
24
|
+
else {
|
|
25
|
+
const I = u > 0 ? u : -u;
|
|
26
|
+
o = T(a, I);
|
|
27
|
+
}
|
|
28
|
+
r = n.get(o), r = r === void 0 ? [1, 0] : [r[0] + l, r[1] + p], n.set(o, r);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return n;
|
|
32
|
+
}
|
|
33
|
+
__name(g, "g");
|
|
34
|
+
function T(e, t) {
|
|
35
|
+
return (e === d ? "s" : "t") + String(t);
|
|
36
|
+
}
|
|
37
|
+
__name(T, "T");
|
|
38
|
+
function w(e) {
|
|
39
|
+
const n = e[0] === "s" ? d : h, i = Number(e.slice(1));
|
|
40
|
+
return { type: n, amount: i };
|
|
41
|
+
}
|
|
42
|
+
__name(w, "w");
|
|
43
|
+
function E(e) {
|
|
44
|
+
let t, n = 0, i = 0;
|
|
45
|
+
for (const [s, [o, c]] of e) (o > n || o === n && c > i) && (n = o, i = c, t = s);
|
|
46
|
+
return t;
|
|
47
|
+
}
|
|
48
|
+
__name(E, "E");
|
|
49
|
+
function S(e, t) {
|
|
50
|
+
return (e === d ? " " : " ").repeat(t);
|
|
51
|
+
}
|
|
52
|
+
__name(S, "S");
|
|
53
|
+
function _(e) {
|
|
54
|
+
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
55
|
+
let t = g(e, true);
|
|
56
|
+
t.size === 0 && (t = g(e, false));
|
|
57
|
+
const n = E(t);
|
|
58
|
+
let i, s = 0, o = "";
|
|
59
|
+
return n !== void 0 && ({ type: i, amount: s } = w(n), o = S(i, s)), { amount: s, type: i, indent: o };
|
|
60
|
+
}
|
|
61
|
+
__name(_, "_");
|
|
62
|
+
var m = Symbol.for("__confbox_fmt__");
|
|
63
|
+
var k = /^(\s+)/;
|
|
64
|
+
var v = /(\s+)$/;
|
|
65
|
+
function x(e, t = {}) {
|
|
66
|
+
const n = t.indent === void 0 && t.preserveIndentation !== false && e.slice(0, t?.sampleSize || 1024), i = t.preserveWhitespace === false ? void 0 : { start: k.exec(e)?.[0] || "", end: v.exec(e)?.[0] || "" };
|
|
67
|
+
return { sample: n, whiteSpace: i };
|
|
68
|
+
}
|
|
69
|
+
__name(x, "x");
|
|
70
|
+
function N(e, t, n) {
|
|
71
|
+
!t || typeof t != "object" || Object.defineProperty(t, m, { enumerable: false, configurable: true, writable: true, value: x(e, n) });
|
|
72
|
+
}
|
|
73
|
+
__name(N, "N");
|
|
74
|
+
function C(e, t) {
|
|
75
|
+
if (!e || typeof e != "object" || !(m in e)) return { indent: t?.indent, whitespace: { start: "", end: "" } };
|
|
76
|
+
const n = e[m];
|
|
77
|
+
return { indent: t?.indent || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
|
|
78
|
+
}
|
|
79
|
+
__name(C, "C");
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
N,
|
|
83
|
+
C
|
|
84
|
+
};
|