@storm-software/untyped 0.9.4 → 0.9.5
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/bin/untyped.js +42618 -7707
- package/dist/generate.d.cts +1 -1
- package/dist/generate.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-CMF_wowV.d.ts → types-BG7WXEyf.d.cts} +359 -359
- package/dist/{types-CMF_wowV.d.cts → types-BG7WXEyf.d.ts} +359 -359
- package/package.json +1 -1
- package/bin/chunk-65NJ2BNV.js +0 -49
- package/bin/chunk-7LNAPF6J.js +0 -7601
- package/bin/chunk-BIBA7MGH.js +0 -84
- package/bin/chunk-MVPKPUE3.js +0 -1120
- package/bin/chunk-PRGAKNNV.js +0 -765
- package/bin/chunk-Q3AKY4XY.js +0 -4054
- package/bin/chunk-Q42ZDLPG.js +0 -510
- package/bin/chunk-RNYNEYJ5.js +0 -451
- package/bin/dist-SOH4ASEU.js +0 -17570
- package/bin/esm-SQV6ELTR.js +0 -1716
- package/bin/execa-4HBUJBFQ.js +0 -2424
- package/bin/json5-WTSMELC2.js +0 -10
- package/bin/jsonc-B7SFZJW2.js +0 -15
- package/bin/multipart-parser-TFNERLJV.js +0 -187
- package/bin/toml-MTE5VHET.js +0 -10
- package/bin/yaml-D6PQ2AEL.js +0 -10
package/bin/chunk-BIBA7MGH.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
};
|