@storm-software/config-tools 1.136.3 → 1.137.0
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/acorn-646RJR5S.mjs +3131 -0
- package/dist/acorn-BKIQKJ4F.js +3131 -0
- package/dist/angular-BK32YZBC.mjs +3014 -0
- package/dist/angular-IJH6AEQ2.js +3014 -0
- package/dist/babel-FTNSNFRG.mjs +7166 -0
- package/dist/babel-MD4YJE3Y.js +7166 -0
- package/dist/{chunk-RP57MH2N.js → chunk-2HT4ORYA.js} +14 -14
- package/dist/chunk-35WYVRRU.js +1120 -0
- package/dist/chunk-3FDEYZAK.js +765 -0
- package/dist/{chunk-BOM7LGB4.js → chunk-3WTN23SK.js} +37 -37
- package/dist/chunk-43PFM5U5.js +1736 -0
- package/dist/{chunk-SWW23TCX.js → chunk-444WTFCK.js} +28 -26
- package/dist/chunk-4C5ULXHZ.js +6 -0
- package/dist/{chunk-CO2NVYPR.js → chunk-4JZSUGPE.js} +23 -23
- package/dist/chunk-5QGWRJPB.mjs +84 -0
- package/dist/{chunk-RBSVNX4W.js → chunk-5YOGYZEG.js} +13 -1
- package/dist/chunk-5YZA7ARA.mjs +765 -0
- package/dist/chunk-5Z3NLDDE.mjs +451 -0
- package/dist/chunk-A2B7JKBP.js +7601 -0
- package/dist/chunk-ARQBMHSM.mjs +510 -0
- package/dist/chunk-AVHETSFN.js +39947 -0
- package/dist/{chunk-VK6ZC6XP.js → chunk-B5LYXPCJ.js} +7 -7
- package/dist/{chunk-36YIAZMD.mjs → chunk-BKXOCTTA.mjs} +3 -3
- package/dist/{chunk-BDBWBTMW.mjs → chunk-BP57EQU7.mjs} +3 -3
- package/dist/{chunk-QOJMUMJR.mjs → chunk-CMYWKSBB.mjs} +1 -1
- package/dist/{chunk-72XOK5QO.mjs → chunk-D6HJ3XEE.mjs} +3 -3
- package/dist/{chunk-OONRDTMT.mjs → chunk-D7EEDW3J.mjs} +1 -1
- package/dist/{chunk-7LUIP6PQ.js → chunk-DANGEXD7.js} +6 -6
- package/dist/chunk-E25ESST2.mjs +7601 -0
- package/dist/{chunk-ITHOTGIJ.mjs → chunk-E3KP6D4W.mjs} +4 -4
- package/dist/{chunk-MJS5XRE6.mjs → chunk-EMP3EUPT.mjs} +1 -1
- package/dist/{chunk-Z5UYG3QU.js → chunk-FMJGAM5D.js} +4 -4
- package/dist/chunk-G6TE7BPR.js +84 -0
- package/dist/{chunk-ZHN5GXW7.mjs → chunk-GGBZLABE.mjs} +2 -2
- package/dist/{chunk-F526RRYA.mjs → chunk-GRGCVKMG.mjs} +11 -9
- package/dist/{chunk-K7V3S3BW.js → chunk-GVQZFZ6E.js} +3 -3
- package/dist/{chunk-PYKV5UE3.js → chunk-GWRO5VMM.js} +3 -3
- package/dist/chunk-HDZVYW2P.js +70 -0
- package/dist/{chunk-LJLITR54.mjs → chunk-HHCEURYJ.mjs} +1 -1
- package/dist/chunk-IXG2QO76.mjs +39948 -0
- package/dist/chunk-JBD6MOCX.mjs +1733 -0
- package/dist/{chunk-2Z2NUZGO.mjs → chunk-JTLTCOIF.mjs} +1 -1
- package/dist/{chunk-UNJVNXY7.js → chunk-LGIWVSRE.js} +10 -10
- package/dist/{chunk-D47HPUO7.mjs → chunk-LL5L564L.mjs} +11 -11
- package/dist/chunk-LNE3WDH6.js +6 -0
- package/dist/chunk-N34NGVL6.js +2644 -0
- package/dist/{chunk-5GHDZSSH.mjs → chunk-N3H7WTUT.mjs} +1 -1
- package/dist/{chunk-7GSJ2YLJ.js → chunk-O3Q5GFR2.js} +4 -4
- package/dist/chunk-OKAFRVSY.mjs +4054 -0
- package/dist/chunk-OL53L7AE.mjs +1120 -0
- package/dist/chunk-OW5ANXN5.mjs +2644 -0
- package/dist/chunk-PHAIVEXJ.js +6 -0
- package/dist/{chunk-LQCUO5PV.mjs → chunk-Q5A4EAHJ.mjs} +1 -1
- package/dist/{chunk-R2YPKFGO.mjs → chunk-QJ35PYO3.mjs} +1 -1
- package/dist/chunk-QP46I4IQ.js +451 -0
- package/dist/{chunk-LQGTS5ON.mjs → chunk-R4TY5O2X.mjs} +1 -1
- package/dist/{chunk-EG4OHTQF.mjs → chunk-RGQF4WBS.mjs} +2 -2
- package/dist/chunk-RRSNGPTK.js +4054 -0
- package/dist/{chunk-EVEP57Q3.mjs → chunk-RZYA76H7.mjs} +13 -0
- package/dist/{chunk-KVGJIBF2.mjs → chunk-SNQO46A7.mjs} +1 -1
- package/dist/{chunk-GQAPQGTR.mjs → chunk-UJDQ4JJ2.mjs} +4 -4
- package/dist/chunk-UMD3QNEF.js +510 -0
- package/dist/{chunk-T7WO327S.js → chunk-V2UDLRHO.js} +8 -8
- package/dist/{chunk-AYVEVLX7.js → chunk-VRFMKUF5.js} +27 -27
- package/dist/chunk-WAL7JRLU.js +6 -0
- package/dist/{chunk-WUGUATQE.mjs → chunk-WCZGQC7L.mjs} +2 -2
- package/dist/{chunk-DKTC7KUS.mjs → chunk-WDQJ7FQS.mjs} +1 -1
- package/dist/chunk-WT74SYKM.js +28 -0
- package/dist/{chunk-SEQZA3NM.js → chunk-WVJHCVAR.js} +3 -3
- package/dist/{chunk-OQLT27Y3.js → chunk-X3LZL2FA.js} +2 -2
- package/dist/config-file/get-config-file.js +26 -20
- package/dist/config-file/get-config-file.mjs +25 -19
- package/dist/config-file/index.js +27 -21
- package/dist/config-file/index.mjs +26 -20
- package/dist/create-storm-config.js +34 -28
- package/dist/create-storm-config.mjs +28 -22
- package/dist/dist-ESY54GEK.mjs +17570 -0
- package/dist/dist-IKT3RN2B.js +17571 -0
- package/dist/env/get-env.js +7 -7
- package/dist/env/get-env.mjs +6 -6
- package/dist/env/index.js +9 -9
- package/dist/env/index.mjs +8 -8
- package/dist/env/set-env.js +6 -6
- package/dist/env/set-env.mjs +5 -5
- package/dist/esm-CHY33BEA.js +1716 -0
- package/dist/esm-GXBYTNSY.mjs +1716 -0
- package/dist/estree-OISRK7S3.mjs +4859 -0
- package/dist/estree-ROOTGONW.js +4859 -0
- package/dist/execa-OBTCQJ4R.js +2424 -0
- package/dist/execa-Q37TRODQ.mjs +2424 -0
- package/dist/flow-6CYXU2JU.js +28076 -0
- package/dist/flow-CVR7JYJR.mjs +28076 -0
- package/dist/glimmer-HPLV3CEI.mjs +3062 -0
- package/dist/glimmer-KC46TXCG.js +3062 -0
- package/dist/graphql-HGTQLI6G.mjs +1355 -0
- package/dist/graphql-QEQ22DRF.js +1355 -0
- package/dist/html-BQF3QJLP.mjs +3036 -0
- package/dist/html-SQTQQXQE.js +3036 -0
- package/dist/index.js +33 -27
- package/dist/index.mjs +37 -31
- package/dist/json5-FGCHX2C5.js +10 -0
- package/dist/json5-PFHFTE3S.mjs +10 -0
- package/dist/jsonc-JYPKWISW.js +15 -0
- package/dist/jsonc-QMXWMKWV.mjs +15 -0
- package/dist/logger/chalk.js +3 -3
- package/dist/logger/chalk.mjs +2 -2
- package/dist/logger/console-icons.js +5 -5
- package/dist/logger/console-icons.mjs +4 -4
- package/dist/logger/console.js +14 -14
- package/dist/logger/console.mjs +13 -13
- package/dist/logger/format-timestamp.js +3 -3
- package/dist/logger/format-timestamp.mjs +2 -2
- package/dist/logger/get-log-level.js +4 -4
- package/dist/logger/get-log-level.mjs +3 -3
- package/dist/logger/index.js +15 -15
- package/dist/logger/index.mjs +20 -20
- package/dist/logger/is-unicode-supported.js +3 -3
- package/dist/logger/is-unicode-supported.mjs +2 -2
- package/dist/markdown-GDAB6YZK.mjs +3846 -0
- package/dist/markdown-VAH7N2ZD.js +3846 -0
- package/dist/meriyah-64TJZ2NR.mjs +2720 -0
- package/dist/meriyah-KXJRAU2O.js +2720 -0
- package/dist/multipart-parser-ACF3MON7.js +187 -0
- package/dist/multipart-parser-XTEGLYUH.mjs +187 -0
- package/dist/postcss-CTT2C6VM.mjs +5440 -0
- package/dist/postcss-ULTRDB4V.js +5440 -0
- package/dist/prettier-DDE3QA5F.mjs +23559 -0
- package/dist/prettier-V6MPEGHT.js +23560 -0
- package/dist/toml-5DG5WNM7.mjs +10 -0
- package/dist/toml-S745O2YV.js +10 -0
- package/dist/types.js +3 -3
- package/dist/types.mjs +2 -2
- package/dist/typescript-CCR5BUC6.js +14956 -0
- package/dist/typescript-DSR4LFJ2.mjs +14956 -0
- package/dist/utilities/apply-workspace-tokens.js +6 -6
- package/dist/utilities/apply-workspace-tokens.mjs +5 -5
- package/dist/utilities/correct-paths.js +3 -3
- package/dist/utilities/correct-paths.mjs +2 -2
- package/dist/utilities/file-path-utils.js +3 -3
- package/dist/utilities/file-path-utils.mjs +2 -2
- package/dist/utilities/find-up.js +3 -3
- package/dist/utilities/find-up.mjs +2 -2
- package/dist/utilities/find-workspace-root.js +5 -5
- package/dist/utilities/find-workspace-root.mjs +4 -4
- package/dist/utilities/get-default-config.js +7 -7
- package/dist/utilities/get-default-config.mjs +6 -6
- package/dist/utilities/index.js +19 -19
- package/dist/utilities/index.mjs +18 -18
- package/dist/utilities/process-handler.js +15 -15
- package/dist/utilities/process-handler.mjs +14 -14
- package/dist/utilities/run.js +3 -3
- package/dist/utilities/run.mjs +2 -2
- package/dist/yaml-FXUEXKW3.js +10 -0
- package/dist/yaml-I7POIORV.js +4584 -0
- package/dist/yaml-KYTKYGLP.mjs +10 -0
- package/dist/yaml-SVET52GC.mjs +4584 -0
- package/package.json +2 -2
- package/dist/chunk-22DJFJ62.js +0 -6
- package/dist/chunk-2K7AEY66.mjs +0 -545
- package/dist/chunk-5EN3BWVN.mjs +0 -28
- package/dist/chunk-6AYXKAF5.js +0 -28
- package/dist/chunk-H2652TPM.js +0 -6
- package/dist/chunk-HHAOVN3O.js +0 -545
- package/dist/chunk-JYGRRNZP.js +0 -28
- package/dist/chunk-OLORJVVT.js +0 -6
- package/dist/chunk-PIDYVUHK.js +0 -6
- package/dist/chunk-PYET3L7X.js +0 -431
- package/dist/chunk-T3JLYD7F.js +0 -70
- package/dist/chunk-VGI5MGGT.mjs +0 -431
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
STORM_DEFAULT_DOCS,
|
|
4
4
|
STORM_DEFAULT_HOMEPAGE,
|
|
5
5
|
STORM_DEFAULT_LICENSING
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D7EEDW3J.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getLogLevelLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GGBZLABE.mjs";
|
|
10
10
|
import {
|
|
11
11
|
correctPaths
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IXG2QO76.mjs";
|
|
13
13
|
import {
|
|
14
14
|
__name,
|
|
15
15
|
init_esm_shims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RZYA76H7.mjs";
|
|
17
17
|
|
|
18
18
|
// src/env/get-env.ts
|
|
19
19
|
init_esm_shims();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5YOGYZEGjs = require('./chunk-5YOGYZEG.js');
|
|
5
5
|
|
|
6
6
|
// src/utilities/run.ts
|
|
7
|
-
|
|
7
|
+
_chunk5YOGYZEGjs.init_cjs_shims.call(void 0, );
|
|
8
8
|
var _child_process = require('child_process');
|
|
9
9
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
10
|
-
var run = /* @__PURE__ */
|
|
10
|
+
var run = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
|
|
11
11
|
return _child_process.execSync.call(void 0, command, {
|
|
12
12
|
cwd,
|
|
13
13
|
env: {
|
|
@@ -22,7 +22,7 @@ var run = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (config, command,
|
|
|
22
22
|
killSignal: "SIGTERM"
|
|
23
23
|
});
|
|
24
24
|
}, "run");
|
|
25
|
-
var runAsync = /* @__PURE__ */
|
|
25
|
+
var runAsync = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), env = process.env) => {
|
|
26
26
|
return _child_process.exec.call(void 0, command, {
|
|
27
27
|
cwd,
|
|
28
28
|
env: {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk5YOGYZEGjs = require('./chunk-5YOGYZEG.js');
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/shared/confbox.9388d834.mjs
|
|
7
|
+
_chunk5YOGYZEGjs.init_cjs_shims.call(void 0, );
|
|
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
|
+
_chunk5YOGYZEGjs.__name.call(void 0, g, "g");
|
|
34
|
+
function T(e, t) {
|
|
35
|
+
return (e === d ? "s" : "t") + String(t);
|
|
36
|
+
}
|
|
37
|
+
_chunk5YOGYZEGjs.__name.call(void 0, 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
|
+
_chunk5YOGYZEGjs.__name.call(void 0, 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
|
+
_chunk5YOGYZEGjs.__name.call(void 0, E, "E");
|
|
49
|
+
function S(e, t) {
|
|
50
|
+
return (e === d ? " " : " ").repeat(t);
|
|
51
|
+
}
|
|
52
|
+
_chunk5YOGYZEGjs.__name.call(void 0, 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
|
+
_chunk5YOGYZEGjs.__name.call(void 0, _, "_");
|
|
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, _optionalChain([t, 'optionalAccess', _2 => _2.sampleSize]) || 1024), i = t.preserveWhitespace === false ? void 0 : { start: _optionalChain([k, 'access', _3 => _3.exec, 'call', _4 => _4(e), 'optionalAccess', _5 => _5[0]]) || "", end: _optionalChain([v, 'access', _6 => _6.exec, 'call', _7 => _7(e), 'optionalAccess', _8 => _8[0]]) || "" };
|
|
67
|
+
return { sample: n, whiteSpace: i };
|
|
68
|
+
}
|
|
69
|
+
_chunk5YOGYZEGjs.__name.call(void 0, 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
|
+
_chunk5YOGYZEGjs.__name.call(void 0, N, "N");
|
|
74
|
+
function C(e, t) {
|
|
75
|
+
if (!e || typeof e != "object" || !(m in e)) return { indent: _optionalChain([t, 'optionalAccess', _9 => _9.indent]), whitespace: { start: "", end: "" } };
|
|
76
|
+
const n = e[m];
|
|
77
|
+
return { indent: _optionalChain([t, 'optionalAccess', _10 => _10.indent]) || _(n.sample || "").indent, whitespace: n.whiteSpace || { start: "", end: "" } };
|
|
78
|
+
}
|
|
79
|
+
_chunk5YOGYZEGjs.__name.call(void 0, C, "C");
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
exports.N = N; exports.C = C;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LogLevel,
|
|
3
3
|
LogLevelLabel
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EMP3EUPT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RZYA76H7.mjs";
|
|
9
9
|
|
|
10
10
|
// src/logger/get-log-level.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
defu,
|
|
3
2
|
getConfigFile
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JBD6MOCX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
defu
|
|
6
|
+
} from "./chunk-E25ESST2.mjs";
|
|
5
7
|
import {
|
|
6
8
|
formatLogMessage,
|
|
7
9
|
writeTrace,
|
|
8
10
|
writeWarning
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LL5L564L.mjs";
|
|
10
12
|
import {
|
|
11
13
|
getDefaultConfig
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BP57EQU7.mjs";
|
|
13
15
|
import {
|
|
14
16
|
findWorkspaceRoot
|
|
15
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BKXOCTTA.mjs";
|
|
16
18
|
import {
|
|
17
19
|
getConfigEnv,
|
|
18
20
|
getExtensionEnv
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-E3KP6D4W.mjs";
|
|
20
22
|
import {
|
|
21
23
|
StormConfigSchema
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-D7EEDW3J.mjs";
|
|
23
25
|
import {
|
|
24
26
|
setConfigEnv
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UJDQ4JJ2.mjs";
|
|
26
28
|
import {
|
|
27
29
|
__name,
|
|
28
30
|
init_esm_shims
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RZYA76H7.mjs";
|
|
30
32
|
|
|
31
33
|
// src/create-storm-config.ts
|
|
32
34
|
init_esm_shims();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5YOGYZEGjs = require('./chunk-5YOGYZEG.js');
|
|
5
5
|
|
|
6
6
|
// src/utilities/find-up.ts
|
|
7
|
-
|
|
7
|
+
_chunk5YOGYZEGjs.init_cjs_shims.call(void 0, );
|
|
8
8
|
var _fs = require('fs');
|
|
9
9
|
var _path = require('path');
|
|
10
10
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
@@ -20,7 +20,7 @@ function findFolderUp(startPath, endFileNames) {
|
|
|
20
20
|
}
|
|
21
21
|
return void 0;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
_chunk5YOGYZEGjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5YOGYZEGjs = require('./chunk-5YOGYZEG.js');
|
|
5
5
|
|
|
6
6
|
// src/logger/format-timestamp.ts
|
|
7
|
-
|
|
8
|
-
var formatTimestamp = /* @__PURE__ */
|
|
7
|
+
_chunk5YOGYZEGjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var formatTimestamp = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
|
|
9
9
|
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
10
10
|
}, "formatTimestamp");
|
|
11
11
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkX3LZL2FAjs = require('./chunk-X3LZL2FA.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunk5YOGYZEGjs = require('./chunk-5YOGYZEG.js');
|
|
9
|
+
|
|
10
|
+
// src/logger/get-log-level.ts
|
|
11
|
+
_chunk5YOGYZEGjs.init_cjs_shims.call(void 0, );
|
|
12
|
+
var getLogLevel = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, (label) => {
|
|
13
|
+
switch (label) {
|
|
14
|
+
case "all":
|
|
15
|
+
return _chunkX3LZL2FAjs.LogLevel.ALL;
|
|
16
|
+
case "trace":
|
|
17
|
+
return _chunkX3LZL2FAjs.LogLevel.TRACE;
|
|
18
|
+
case "debug":
|
|
19
|
+
return _chunkX3LZL2FAjs.LogLevel.DEBUG;
|
|
20
|
+
case "info":
|
|
21
|
+
return _chunkX3LZL2FAjs.LogLevel.INFO;
|
|
22
|
+
case "warn":
|
|
23
|
+
return _chunkX3LZL2FAjs.LogLevel.WARN;
|
|
24
|
+
case "error":
|
|
25
|
+
return _chunkX3LZL2FAjs.LogLevel.ERROR;
|
|
26
|
+
case "fatal":
|
|
27
|
+
return _chunkX3LZL2FAjs.LogLevel.FATAL;
|
|
28
|
+
case "silent":
|
|
29
|
+
return _chunkX3LZL2FAjs.LogLevel.SILENT;
|
|
30
|
+
default:
|
|
31
|
+
return _chunkX3LZL2FAjs.LogLevel.INFO;
|
|
32
|
+
}
|
|
33
|
+
}, "getLogLevel");
|
|
34
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, (logLevel = _chunkX3LZL2FAjs.LogLevel.INFO) => {
|
|
35
|
+
if (logLevel >= _chunkX3LZL2FAjs.LogLevel.ALL) {
|
|
36
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.ALL;
|
|
37
|
+
}
|
|
38
|
+
if (logLevel >= _chunkX3LZL2FAjs.LogLevel.TRACE) {
|
|
39
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.TRACE;
|
|
40
|
+
}
|
|
41
|
+
if (logLevel >= _chunkX3LZL2FAjs.LogLevel.DEBUG) {
|
|
42
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.DEBUG;
|
|
43
|
+
}
|
|
44
|
+
if (logLevel >= _chunkX3LZL2FAjs.LogLevel.INFO) {
|
|
45
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.INFO;
|
|
46
|
+
}
|
|
47
|
+
if (logLevel >= _chunkX3LZL2FAjs.LogLevel.WARN) {
|
|
48
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.WARN;
|
|
49
|
+
}
|
|
50
|
+
if (logLevel >= _chunkX3LZL2FAjs.LogLevel.ERROR) {
|
|
51
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.ERROR;
|
|
52
|
+
}
|
|
53
|
+
if (logLevel >= _chunkX3LZL2FAjs.LogLevel.FATAL) {
|
|
54
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.FATAL;
|
|
55
|
+
}
|
|
56
|
+
if (logLevel <= _chunkX3LZL2FAjs.LogLevel.SILENT) {
|
|
57
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.SILENT;
|
|
58
|
+
}
|
|
59
|
+
return _chunkX3LZL2FAjs.LogLevelLabel.INFO;
|
|
60
|
+
}, "getLogLevelLabel");
|
|
61
|
+
var isVerbose = /* @__PURE__ */ _chunk5YOGYZEGjs.__name.call(void 0, (label = _chunkX3LZL2FAjs.LogLevelLabel.SILENT) => {
|
|
62
|
+
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
63
|
+
return logLevel >= _chunkX3LZL2FAjs.LogLevel.DEBUG;
|
|
64
|
+
}, "isVerbose");
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose;
|