@storm-software/config-tools 1.150.5 → 1.150.9
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/config.cjs +14795 -283
- package/bin/config.js +14806 -266
- package/dist/chunk-2MY3KGBB.cjs +70 -0
- package/dist/chunk-322YBAWX.js +6 -0
- package/dist/chunk-3BGF4LNL.cjs +67 -0
- package/dist/chunk-3OZGKUMC.js +1120 -0
- package/dist/chunk-4CTFS6DM.js +143 -0
- package/dist/chunk-4YA7DJB5.cjs +451 -0
- package/dist/chunk-56RY3KW7.cjs +6 -0
- package/dist/chunk-5LYWI7E7.cjs +49 -0
- package/dist/chunk-5SDU662B.js +274 -0
- package/dist/chunk-5XAQKBRL.js +510 -0
- package/dist/chunk-6JG5O6FD.js +2645 -0
- package/dist/chunk-6R6FJLKT.cjs +84 -0
- package/dist/chunk-6ZPVROB4.js +51 -0
- package/dist/chunk-73C3QB67.js +27 -0
- package/dist/chunk-77YC3XPW.js +9228 -0
- package/dist/chunk-7PDFNXOV.js +67 -0
- package/dist/chunk-B2HXAAFT.cjs +274 -0
- package/dist/chunk-BKJUQIEL.cjs +6 -0
- package/dist/chunk-CHYZZRN6.cjs +165 -0
- package/dist/chunk-CUX3BOLK.cjs +6 -0
- package/dist/chunk-DYTSQ3L3.js +14 -0
- package/dist/chunk-E554LMEP.cjs +28 -0
- package/dist/chunk-FUALBFYR.cjs +247 -0
- package/dist/chunk-FZMUKCM5.js +50 -0
- package/dist/chunk-G62PQROD.cjs +510 -0
- package/dist/chunk-GJDVCWVL.cjs +27 -0
- package/dist/chunk-GZ6SGFYZ.cjs +2645 -0
- package/dist/chunk-HAYTD5F2.js +247 -0
- package/dist/chunk-HBJSM6VU.js +6 -0
- package/dist/chunk-HLB4MOTZ.js +6 -0
- package/dist/chunk-HUMXKKE6.js +765 -0
- package/dist/chunk-HVVHVCVH.js +24 -0
- package/dist/chunk-I2LFMHGF.cjs +14 -0
- package/dist/chunk-I5FJ2QOS.js +84 -0
- package/dist/chunk-IYMLNFGA.cjs +33 -0
- package/dist/chunk-JN37L7NL.js +33 -0
- package/dist/chunk-JVONSFJS.cjs +765 -0
- package/dist/chunk-KN7POPML.cjs +21 -0
- package/dist/chunk-KONO4OMT.cjs +9231 -0
- package/dist/chunk-KQLERSRE.js +93 -0
- package/dist/chunk-KXHNOCVY.cjs +24 -0
- package/dist/chunk-LAIQ2Z5B.cjs +93 -0
- package/dist/chunk-LUQRLSMI.js +6 -0
- package/dist/chunk-M3KQNO7N.cjs +93 -0
- package/dist/chunk-MJL6D7T3.js +28 -0
- package/dist/chunk-MKB5GTL4.js +451 -0
- package/dist/chunk-MMMRCNC6.js +77 -0
- package/dist/chunk-NERZUU47.js +93 -0
- package/dist/chunk-NVXMXDZM.js +70 -0
- package/dist/chunk-NWFS53UA.js +21 -0
- package/dist/chunk-PBEGXSGU.js +165 -0
- package/dist/chunk-PMRCDW2Q.cjs +44 -0
- package/dist/chunk-RDWCJD4I.cjs +30 -0
- package/dist/chunk-RN5XBSCX.cjs +77 -0
- package/dist/chunk-TJ7RSPG3.cjs +6 -0
- package/dist/chunk-US52HP52.cjs +143 -0
- package/dist/chunk-UXYX4UF4.cjs +50 -0
- package/dist/chunk-W7YJIINP.js +49 -0
- package/dist/chunk-WTHXS4H2.js +44 -0
- package/dist/chunk-X3T2GC65.cjs +51 -0
- package/dist/chunk-XUGBUGHC.cjs +1120 -0
- package/dist/chunk-YO6XHACG.js +30 -0
- package/dist/config-file/get-config-file.cjs +26 -66
- package/dist/config-file/get-config-file.js +25 -65
- package/dist/config-file/index.cjs +31 -1
- package/dist/config-file/index.js +31 -1
- package/dist/create-storm-config.cjs +30 -68
- package/dist/create-storm-config.js +29 -67
- package/dist/env/get-env.cjs +8 -152
- package/dist/env/get-env.js +7 -151
- package/dist/env/index.cjs +19 -2
- package/dist/env/index.js +19 -2
- package/dist/env/set-env.cjs +8 -259
- package/dist/env/set-env.js +7 -258
- package/dist/esm-HKV66HQZ.js +1716 -0
- package/dist/esm-TZUWSATN.cjs +1716 -0
- package/dist/get-config.cjs +29 -9
- package/dist/get-config.js +29 -9
- package/dist/index.cjs +180 -7
- package/dist/index.js +180 -7
- package/dist/json5-NI4CISQP.cjs +10 -0
- package/dist/json5-XMK3UBET.js +10 -0
- package/dist/jsonc-GYGN4BMZ.js +15 -0
- package/dist/jsonc-TDL6NXBV.cjs +15 -0
- package/dist/logger/chalk.cjs +4 -30
- package/dist/logger/chalk.js +3 -29
- package/dist/logger/console-icons.cjs +5 -15
- package/dist/logger/console-icons.js +5 -15
- package/dist/logger/console.cjs +37 -125
- package/dist/logger/console.js +23 -111
- package/dist/logger/create-logger.cjs +15 -31
- package/dist/logger/create-logger.js +14 -30
- package/dist/logger/format-timestamp.cjs +3 -5
- package/dist/logger/format-timestamp.js +3 -5
- package/dist/logger/get-log-level.cjs +6 -56
- package/dist/logger/get-log-level.js +6 -56
- package/dist/logger/index.cjs +61 -7
- package/dist/logger/index.js +61 -7
- package/dist/logger/is-unicode-supported.cjs +4 -16
- package/dist/logger/is-unicode-supported.js +3 -15
- package/dist/toml-5NX5FGDD.cjs +10 -0
- package/dist/toml-ZYXFVZLI.js +10 -0
- package/dist/types.cjs +6 -24
- package/dist/types.js +5 -23
- package/dist/utilities/apply-workspace-tokens.cjs +9 -55
- package/dist/utilities/apply-workspace-tokens.js +8 -54
- package/dist/utilities/correct-paths.cjs +33 -242
- package/dist/utilities/correct-paths.js +16 -225
- package/dist/utilities/file-path-utils.cjs +5 -18
- package/dist/utilities/file-path-utils.js +4 -17
- package/dist/utilities/find-up.cjs +4 -22
- package/dist/utilities/find-up.js +3 -21
- package/dist/utilities/find-workspace-root.cjs +7 -64
- package/dist/utilities/find-workspace-root.js +6 -63
- package/dist/utilities/get-default-config.cjs +7 -79
- package/dist/utilities/get-default-config.js +7 -79
- package/dist/utilities/index.cjs +84 -7
- package/dist/utilities/index.js +84 -7
- package/dist/utilities/process-handler.cjs +16 -35
- package/dist/utilities/process-handler.js +16 -35
- package/dist/utilities/run.cjs +6 -34
- package/dist/utilities/run.js +5 -33
- package/dist/yaml-GRT7ORXT.cjs +10 -0
- package/dist/yaml-WD4DF2QH.js +10 -0
- package/package.json +7 -4
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-USNT2KNT.cjs +0 -6
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-W7YJIINP.js";
|
|
5
|
+
|
|
6
|
+
// src/logger/is-unicode-supported.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
import process from "node:process";
|
|
9
|
+
function isUnicodeSupported() {
|
|
10
|
+
const { env } = process;
|
|
11
|
+
const { TERM, TERM_PROGRAM } = env;
|
|
12
|
+
if (process.platform !== "win32") {
|
|
13
|
+
return TERM !== "linux";
|
|
14
|
+
}
|
|
15
|
+
return Boolean(env.WT_SESSION) || // Windows Terminal
|
|
16
|
+
Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
|
|
17
|
+
env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
|
|
18
|
+
TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
19
|
+
}
|
|
20
|
+
__name(isUnicodeSupported, "isUnicodeSupported");
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
isUnicodeSupported
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
|
|
5
|
+
|
|
6
|
+
// src/logger/format-timestamp.ts
|
|
7
|
+
_chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var formatTimestamp = /* @__PURE__ */ _chunk5LYWI7E7cjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
|
|
9
|
+
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
10
|
+
}, "formatTimestamp");
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.formatTimestamp = formatTimestamp;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-W7YJIINP.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
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk5LYWI7E7cjs = require('./chunk-5LYWI7E7.cjs');
|
|
4
|
+
|
|
5
|
+
// src/types.ts
|
|
6
|
+
_chunk5LYWI7E7cjs.init_cjs_shims.call(void 0, );
|
|
7
|
+
var LogLevel = {
|
|
8
|
+
SILENT: 0,
|
|
9
|
+
FATAL: 10,
|
|
10
|
+
ERROR: 20,
|
|
11
|
+
WARN: 30,
|
|
12
|
+
SUCCESS: 35,
|
|
13
|
+
INFO: 40,
|
|
14
|
+
DEBUG: 60,
|
|
15
|
+
TRACE: 70,
|
|
16
|
+
ALL: 100
|
|
17
|
+
};
|
|
18
|
+
var LogLevelLabel = {
|
|
19
|
+
SILENT: "silent",
|
|
20
|
+
FATAL: "fatal",
|
|
21
|
+
ERROR: "error",
|
|
22
|
+
WARN: "warn",
|
|
23
|
+
SUCCESS: "success",
|
|
24
|
+
INFO: "info",
|
|
25
|
+
DEBUG: "debug",
|
|
26
|
+
TRACE: "trace",
|
|
27
|
+
ALL: "all"
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
exports.LogLevel = LogLevel; exports.LogLevelLabel = LogLevelLabel;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_esm_shims
|
|
3
|
+
} from "./chunk-W7YJIINP.js";
|
|
4
|
+
|
|
5
|
+
// src/types.ts
|
|
6
|
+
init_esm_shims();
|
|
7
|
+
var LogLevel = {
|
|
8
|
+
SILENT: 0,
|
|
9
|
+
FATAL: 10,
|
|
10
|
+
ERROR: 20,
|
|
11
|
+
WARN: 30,
|
|
12
|
+
SUCCESS: 35,
|
|
13
|
+
INFO: 40,
|
|
14
|
+
DEBUG: 60,
|
|
15
|
+
TRACE: 70,
|
|
16
|
+
ALL: 100
|
|
17
|
+
};
|
|
18
|
+
var LogLevelLabel = {
|
|
19
|
+
SILENT: "silent",
|
|
20
|
+
FATAL: "fatal",
|
|
21
|
+
ERROR: "error",
|
|
22
|
+
WARN: "warn",
|
|
23
|
+
SUCCESS: "success",
|
|
24
|
+
INFO: "info",
|
|
25
|
+
DEBUG: "debug",
|
|
26
|
+
TRACE: "trace",
|
|
27
|
+
ALL: "all"
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
LogLevel,
|
|
32
|
+
LogLevelLabel
|
|
33
|
+
};
|