@storm-software/config-tools 1.133.3 → 1.133.4
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 -2
- package/dist/{chunk-HB72CIXB.js → chunk-7LUIP6PQ.js} +1 -0
- package/dist/{chunk-4I3VB7B4.js → chunk-AX56DLMV.js} +17 -17
- package/dist/{chunk-Z6KGUYVE.js → chunk-AYVEVLX7.js} +10 -10
- package/dist/{chunk-KX62XKXR.mjs → chunk-BDBWBTMW.mjs} +1 -1
- package/dist/{chunk-MW3ECYT3.js → chunk-BQWJSIGF.js} +43 -30
- package/dist/{chunk-4MBJSEBS.js → chunk-CO2NVYPR.js} +4 -4
- package/dist/chunk-DKTC7KUS.mjs +14 -0
- package/dist/{chunk-GORCQQGS.mjs → chunk-GQAPQGTR.mjs} +2 -2
- package/dist/chunk-HQDBPM6Q.mjs +27 -0
- package/dist/{chunk-WSK3J3XQ.mjs → chunk-ITHOTGIJ.mjs} +2 -2
- package/dist/{chunk-5FVCBU6R.mjs → chunk-KN4FWZ5M.mjs} +1 -1
- package/dist/{chunk-KNCWTODF.js → chunk-LNLZS4DW.js} +3 -3
- package/dist/{chunk-MJJ7UOJ7.mjs → chunk-MJS5XRE6.mjs} +1 -0
- package/dist/{chunk-ZJOTERLI.mjs → chunk-OONRDTMT.mjs} +1 -0
- package/dist/{chunk-WLOD7C6O.js → chunk-OQLT27Y3.js} +1 -0
- package/dist/chunk-ORZJN6XC.js +27 -0
- package/dist/{chunk-QQ2ANR5T.js → chunk-PYET3L7X.js} +5 -0
- package/dist/chunk-PYKV5UE3.js +14 -0
- package/dist/chunk-QOJMUMJR.mjs +24 -0
- package/dist/{chunk-I6PX575K.mjs → chunk-QX3BA2JR.mjs} +6 -6
- package/dist/chunk-SEQZA3NM.js +24 -0
- package/dist/chunk-T3JLYD7F.js +70 -0
- package/dist/{chunk-K44Z36LS.js → chunk-UMLKUSGE.js} +9 -9
- package/dist/{chunk-25WKQUCS.js → chunk-UNJVNXY7.js} +5 -5
- package/dist/{chunk-KFTO4V5W.mjs → chunk-VGI5MGGT.mjs} +5 -0
- package/dist/{chunk-XOVQCXWL.mjs → chunk-W4ECC4CX.mjs} +24 -11
- package/dist/{chunk-PPRH5US5.mjs → chunk-XBNEIBQ5.mjs} +1 -1
- package/dist/{chunk-GKEOM3CA.mjs → chunk-ZHN5GXW7.mjs} +2 -2
- package/dist/config-file/get-config-file.d.mts +1 -1
- package/dist/config-file/get-config-file.d.ts +1 -1
- package/dist/config-file/get-config-file.js +13 -10
- package/dist/config-file/get-config-file.mjs +12 -9
- package/dist/config-file/index.d.mts +1 -1
- package/dist/config-file/index.d.ts +1 -1
- package/dist/config-file/index.js +13 -10
- package/dist/config-file/index.mjs +12 -9
- package/dist/create-storm-config.d.mts +1 -1
- package/dist/create-storm-config.d.ts +1 -1
- package/dist/create-storm-config.js +16 -13
- package/dist/create-storm-config.mjs +15 -12
- package/dist/env/get-env.d.mts +1 -1
- package/dist/env/get-env.d.ts +1 -1
- package/dist/env/get-env.js +5 -5
- package/dist/env/get-env.mjs +4 -4
- package/dist/env/index.d.mts +1 -1
- package/dist/env/index.d.ts +1 -1
- package/dist/env/index.js +6 -6
- package/dist/env/index.mjs +5 -5
- package/dist/env/set-env.d.mts +1 -1
- package/dist/env/set-env.d.ts +1 -1
- package/dist/env/set-env.js +4 -4
- package/dist/env/set-env.mjs +3 -3
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +28 -16
- package/dist/index.mjs +28 -16
- package/dist/logger/chalk.d.mts +5 -0
- package/dist/logger/chalk.d.ts +5 -0
- package/dist/logger/chalk.js +2 -2
- package/dist/logger/chalk.mjs +1 -1
- package/dist/logger/console-icons.d.mts +9 -0
- package/dist/logger/console-icons.d.ts +9 -0
- package/dist/logger/console-icons.js +9 -0
- package/dist/logger/console-icons.mjs +9 -0
- package/dist/logger/console.d.mts +1 -1
- package/dist/logger/console.d.ts +1 -1
- package/dist/logger/console.js +10 -7
- package/dist/logger/console.mjs +9 -6
- package/dist/logger/format-timestamp.d.mts +9 -0
- package/dist/logger/format-timestamp.d.ts +9 -0
- package/dist/logger/format-timestamp.js +7 -0
- package/dist/logger/format-timestamp.mjs +7 -0
- package/dist/logger/get-log-level.d.mts +1 -1
- package/dist/logger/get-log-level.d.ts +1 -1
- package/dist/logger/get-log-level.js +3 -3
- package/dist/logger/get-log-level.mjs +2 -2
- package/dist/logger/index.d.mts +4 -1
- package/dist/logger/index.d.ts +4 -1
- package/dist/logger/index.js +20 -8
- package/dist/logger/index.mjs +19 -7
- package/dist/logger/is-unicode-supported.d.mts +3 -0
- package/dist/logger/is-unicode-supported.d.ts +3 -0
- package/dist/logger/is-unicode-supported.js +7 -0
- package/dist/logger/is-unicode-supported.mjs +7 -0
- package/dist/{types-DGWqy1xb.d.mts → types-CN4ccKlk.d.mts} +67 -67
- package/dist/{types-DGWqy1xb.d.ts → types-CN4ccKlk.d.ts} +67 -67
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/dist/types.js +2 -2
- package/dist/types.mjs +1 -1
- package/dist/utilities/apply-workspace-tokens.d.mts +1 -1
- package/dist/utilities/apply-workspace-tokens.d.ts +1 -1
- package/dist/utilities/get-default-config.d.mts +1 -1
- package/dist/utilities/get-default-config.d.ts +1 -1
- package/dist/utilities/get-default-config.js +3 -3
- package/dist/utilities/get-default-config.mjs +2 -2
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +15 -12
- package/dist/utilities/index.mjs +14 -11
- package/dist/utilities/process-handler.d.mts +1 -1
- package/dist/utilities/process-handler.d.ts +1 -1
- package/dist/utilities/process-handler.js +11 -8
- package/dist/utilities/process-handler.mjs +10 -7
- package/dist/utilities/run.d.mts +1 -1
- package/dist/utilities/run.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-RAXO3D6D.js +0 -70
- /package/dist/{chunk-OHHQHME7.js → chunk-H2652TPM.js} +0 -0
- /package/dist/{chunk-QNMM2MLO.mjs → chunk-R2YPKFGO.mjs} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
|
|
5
|
+
|
|
6
|
+
// src/logger/is-unicode-supported.ts
|
|
7
|
+
_chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
9
|
+
function isUnicodeSupported() {
|
|
10
|
+
const { env } = _process2.default;
|
|
11
|
+
const { TERM, TERM_PROGRAM } = env;
|
|
12
|
+
if (_process2.default.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
|
+
_chunkRBSVNX4Wjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
exports.isUnicodeSupported = isUnicodeSupported;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOQLT27Y3js = require('./chunk-OQLT27Y3.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
|
|
9
|
+
|
|
10
|
+
// src/logger/get-log-level.ts
|
|
11
|
+
_chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
|
|
12
|
+
var getLogLevel = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (label) => {
|
|
13
|
+
switch (label) {
|
|
14
|
+
case "all":
|
|
15
|
+
return _chunkOQLT27Y3js.LogLevel.ALL;
|
|
16
|
+
case "trace":
|
|
17
|
+
return _chunkOQLT27Y3js.LogLevel.TRACE;
|
|
18
|
+
case "debug":
|
|
19
|
+
return _chunkOQLT27Y3js.LogLevel.DEBUG;
|
|
20
|
+
case "info":
|
|
21
|
+
return _chunkOQLT27Y3js.LogLevel.INFO;
|
|
22
|
+
case "warn":
|
|
23
|
+
return _chunkOQLT27Y3js.LogLevel.WARN;
|
|
24
|
+
case "error":
|
|
25
|
+
return _chunkOQLT27Y3js.LogLevel.ERROR;
|
|
26
|
+
case "fatal":
|
|
27
|
+
return _chunkOQLT27Y3js.LogLevel.FATAL;
|
|
28
|
+
case "silent":
|
|
29
|
+
return _chunkOQLT27Y3js.LogLevel.SILENT;
|
|
30
|
+
default:
|
|
31
|
+
return _chunkOQLT27Y3js.LogLevel.INFO;
|
|
32
|
+
}
|
|
33
|
+
}, "getLogLevel");
|
|
34
|
+
var getLogLevelLabel = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (logLevel = _chunkOQLT27Y3js.LogLevel.INFO) => {
|
|
35
|
+
if (logLevel >= _chunkOQLT27Y3js.LogLevel.ALL) {
|
|
36
|
+
return _chunkOQLT27Y3js.LogLevelLabel.ALL;
|
|
37
|
+
}
|
|
38
|
+
if (logLevel >= _chunkOQLT27Y3js.LogLevel.TRACE) {
|
|
39
|
+
return _chunkOQLT27Y3js.LogLevelLabel.TRACE;
|
|
40
|
+
}
|
|
41
|
+
if (logLevel >= _chunkOQLT27Y3js.LogLevel.DEBUG) {
|
|
42
|
+
return _chunkOQLT27Y3js.LogLevelLabel.DEBUG;
|
|
43
|
+
}
|
|
44
|
+
if (logLevel >= _chunkOQLT27Y3js.LogLevel.INFO) {
|
|
45
|
+
return _chunkOQLT27Y3js.LogLevelLabel.INFO;
|
|
46
|
+
}
|
|
47
|
+
if (logLevel >= _chunkOQLT27Y3js.LogLevel.WARN) {
|
|
48
|
+
return _chunkOQLT27Y3js.LogLevelLabel.WARN;
|
|
49
|
+
}
|
|
50
|
+
if (logLevel >= _chunkOQLT27Y3js.LogLevel.ERROR) {
|
|
51
|
+
return _chunkOQLT27Y3js.LogLevelLabel.ERROR;
|
|
52
|
+
}
|
|
53
|
+
if (logLevel >= _chunkOQLT27Y3js.LogLevel.FATAL) {
|
|
54
|
+
return _chunkOQLT27Y3js.LogLevelLabel.FATAL;
|
|
55
|
+
}
|
|
56
|
+
if (logLevel <= _chunkOQLT27Y3js.LogLevel.SILENT) {
|
|
57
|
+
return _chunkOQLT27Y3js.LogLevelLabel.SILENT;
|
|
58
|
+
}
|
|
59
|
+
return _chunkOQLT27Y3js.LogLevelLabel.INFO;
|
|
60
|
+
}, "getLogLevelLabel");
|
|
61
|
+
var isVerbose = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (label = _chunkOQLT27Y3js.LogLevelLabel.SILENT) => {
|
|
62
|
+
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
63
|
+
return logLevel >= _chunkOQLT27Y3js.LogLevel.DEBUG;
|
|
64
|
+
}, "isVerbose");
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBQWJSIGFjs = require('./chunk-BQWJSIGF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -12,34 +12,34 @@ var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
|
|
|
12
12
|
// src/utilities/process-handler.ts
|
|
13
13
|
_chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
var exitWithError = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (config) => {
|
|
15
|
-
|
|
15
|
+
_chunkBQWJSIGFjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
|
|
16
16
|
process.exit(1);
|
|
17
17
|
}, "exitWithError");
|
|
18
18
|
var exitWithSuccess = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (config) => {
|
|
19
|
-
|
|
19
|
+
_chunkBQWJSIGFjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
|
|
20
20
|
process.exit(0);
|
|
21
21
|
}, "exitWithSuccess");
|
|
22
22
|
var handleProcess = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (config) => {
|
|
23
|
-
|
|
23
|
+
_chunkBQWJSIGFjs.writeTrace.call(void 0, `Using the following arguments to process the script: ${process.argv.join(", ")}`, config);
|
|
24
24
|
process.on("unhandledRejection", (error) => {
|
|
25
|
-
|
|
25
|
+
_chunkBQWJSIGFjs.writeError.call(void 0, `An Unhandled Rejection occurred while running the program: ${error}`, config);
|
|
26
26
|
exitWithError(config);
|
|
27
27
|
});
|
|
28
28
|
process.on("uncaughtException", (error) => {
|
|
29
|
-
|
|
29
|
+
_chunkBQWJSIGFjs.writeError.call(void 0, `An Uncaught Exception occurred while running the program: ${error.message}
|
|
30
30
|
Stacktrace: ${error.stack}`, config);
|
|
31
31
|
exitWithError(config);
|
|
32
32
|
});
|
|
33
33
|
process.on("SIGTERM", (signal) => {
|
|
34
|
-
|
|
34
|
+
_chunkBQWJSIGFjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
35
35
|
exitWithError(config);
|
|
36
36
|
});
|
|
37
37
|
process.on("SIGINT", (signal) => {
|
|
38
|
-
|
|
38
|
+
_chunkBQWJSIGFjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
39
39
|
exitWithError(config);
|
|
40
40
|
});
|
|
41
41
|
process.on("SIGHUP", (signal) => {
|
|
42
|
-
|
|
42
|
+
_chunkBQWJSIGFjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
43
43
|
exitWithError(config);
|
|
44
44
|
});
|
|
45
45
|
}, "handleProcess");
|
|
@@ -4,7 +4,7 @@ var _chunkT7WO327Sjs = require('./chunk-T7WO327S.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7LUIP6PQjs = require('./chunk-7LUIP6PQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -43,8 +43,8 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
var getDefaultConfig = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (root) => {
|
|
46
|
-
let license =
|
|
47
|
-
let homepage =
|
|
46
|
+
let license = _chunk7LUIP6PQjs.STORM_DEFAULT_LICENSE;
|
|
47
|
+
let homepage = _chunk7LUIP6PQjs.STORM_DEFAULT_HOMEPAGE;
|
|
48
48
|
let name;
|
|
49
49
|
let namespace;
|
|
50
50
|
let repository;
|
|
@@ -79,8 +79,8 @@ var getDefaultConfig = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (roo
|
|
|
79
79
|
repository,
|
|
80
80
|
license,
|
|
81
81
|
homepage,
|
|
82
|
-
docs: `${homepage ||
|
|
83
|
-
licensing: `${homepage ||
|
|
82
|
+
docs: `${homepage || _chunk7LUIP6PQjs.STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
83
|
+
licensing: `${homepage || _chunk7LUIP6PQjs.STORM_DEFAULT_HOMEPAGE}/license`
|
|
84
84
|
};
|
|
85
85
|
}, "getDefaultConfig");
|
|
86
86
|
|
|
@@ -405,12 +405,17 @@ var chalkDefault = {
|
|
|
405
405
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
406
406
|
}), "bgHex"),
|
|
407
407
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright"),
|
|
408
|
+
gray: /* @__PURE__ */ __name((message) => message, "gray"),
|
|
408
409
|
bold: {
|
|
409
410
|
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
410
411
|
bgHex: /* @__PURE__ */ __name((_) => ({
|
|
411
412
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
412
413
|
}), "bgHex"),
|
|
413
414
|
whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
|
|
415
|
+
},
|
|
416
|
+
dim: {
|
|
417
|
+
hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
|
|
418
|
+
gray: /* @__PURE__ */ __name((message) => message, "gray")
|
|
414
419
|
}
|
|
415
420
|
};
|
|
416
421
|
var getChalk = /* @__PURE__ */ __name(() => {
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_COLOR_CONFIG
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BDBWBTMW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getChalk
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VGI5MGGT.mjs";
|
|
7
|
+
import {
|
|
8
|
+
CONSOLE_ICONS
|
|
9
|
+
} from "./chunk-HQDBPM6Q.mjs";
|
|
10
|
+
import {
|
|
11
|
+
formatTimestamp
|
|
12
|
+
} from "./chunk-DKTC7KUS.mjs";
|
|
7
13
|
import {
|
|
8
14
|
getLogLevel
|
|
9
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZHN5GXW7.mjs";
|
|
10
16
|
import {
|
|
11
17
|
LogLevel,
|
|
12
18
|
LogLevelLabel
|
|
13
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MJS5XRE6.mjs";
|
|
14
20
|
import {
|
|
15
21
|
__name,
|
|
16
22
|
init_esm_shims
|
|
@@ -28,42 +34,49 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
|
|
|
28
34
|
}
|
|
29
35
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
30
36
|
return (message) => {
|
|
31
|
-
console.error(
|
|
37
|
+
console.error(`
|
|
38
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
32
39
|
`);
|
|
33
40
|
};
|
|
34
41
|
}
|
|
35
42
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
36
43
|
return (message) => {
|
|
37
|
-
console.error(
|
|
44
|
+
console.error(`
|
|
45
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
38
46
|
`);
|
|
39
47
|
};
|
|
40
48
|
}
|
|
41
49
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
42
50
|
return (message) => {
|
|
43
|
-
console.warn(
|
|
51
|
+
console.warn(`
|
|
52
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
44
53
|
`);
|
|
45
54
|
};
|
|
46
55
|
}
|
|
47
56
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
48
57
|
return (message) => {
|
|
49
|
-
console.info(
|
|
58
|
+
console.info(`
|
|
59
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
50
60
|
`);
|
|
51
61
|
};
|
|
52
62
|
}
|
|
53
63
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
54
64
|
return (message) => {
|
|
55
|
-
console.info(
|
|
65
|
+
console.info(`
|
|
66
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
56
67
|
`);
|
|
57
68
|
};
|
|
58
69
|
}
|
|
59
70
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
60
71
|
return (message) => {
|
|
61
|
-
console.debug(
|
|
72
|
+
console.debug(`
|
|
73
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
62
74
|
`);
|
|
63
75
|
};
|
|
64
76
|
}
|
|
65
77
|
return (message) => {
|
|
66
|
-
console.log(
|
|
78
|
+
console.log(`
|
|
79
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
67
80
|
`);
|
|
68
81
|
};
|
|
69
82
|
}, "getLogFn");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LogLevel,
|
|
3
3
|
LogLevelLabel
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MJS5XRE6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
init_esm_shims
|
|
@@ -60,7 +60,7 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
|
60
60
|
}, "getLogLevelLabel");
|
|
61
61
|
var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
|
|
62
62
|
const logLevel = typeof label === "string" ? getLogLevel(label) : label;
|
|
63
|
-
return logLevel
|
|
63
|
+
return logLevel >= LogLevel.DEBUG;
|
|
64
64
|
}, "isVerbose");
|
|
65
65
|
|
|
66
66
|
export {
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLNLZS4DWjs = require('../chunk-LNLZS4DW.js');
|
|
5
5
|
require('../chunk-22DJFJ62.js');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-7GSJ2YLJ.js');
|
|
7
|
+
require('../chunk-UMLKUSGE.js');
|
|
7
8
|
require('../chunk-Z5UYG3QU.js');
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-BQWJSIGF.js');
|
|
10
|
+
require('../chunk-UNJVNXY7.js');
|
|
11
|
+
require('../chunk-PYET3L7X.js');
|
|
12
|
+
require('../chunk-ORZJN6XC.js');
|
|
13
|
+
require('../chunk-PYKV5UE3.js');
|
|
14
|
+
require('../chunk-SEQZA3NM.js');
|
|
11
15
|
require('../chunk-VK6ZC6XP.js');
|
|
12
16
|
require('../chunk-T7WO327S.js');
|
|
13
|
-
require('../chunk-7GSJ2YLJ.js');
|
|
14
17
|
require('../chunk-K7V3S3BW.js');
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-7LUIP6PQ.js');
|
|
19
|
+
require('../chunk-T3JLYD7F.js');
|
|
17
20
|
require('../chunk-JYGRRNZP.js');
|
|
18
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-OQLT27Y3.js');
|
|
19
22
|
require('../chunk-RBSVNX4W.js');
|
|
20
23
|
|
|
21
24
|
|
|
22
25
|
|
|
23
|
-
exports.getConfigFile =
|
|
26
|
+
exports.getConfigFile = _chunkLNLZS4DWjs.getConfigFile; exports.getConfigFileByName = _chunkLNLZS4DWjs.getConfigFileByName;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile,
|
|
3
3
|
getConfigFileByName
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KN4FWZ5M.mjs";
|
|
5
5
|
import "../chunk-LQGTS5ON.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-LJLITR54.mjs";
|
|
7
|
+
import "../chunk-XBNEIBQ5.mjs";
|
|
7
8
|
import "../chunk-2Z2NUZGO.mjs";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-W4ECC4CX.mjs";
|
|
10
|
+
import "../chunk-BDBWBTMW.mjs";
|
|
11
|
+
import "../chunk-VGI5MGGT.mjs";
|
|
12
|
+
import "../chunk-HQDBPM6Q.mjs";
|
|
13
|
+
import "../chunk-DKTC7KUS.mjs";
|
|
14
|
+
import "../chunk-QOJMUMJR.mjs";
|
|
11
15
|
import "../chunk-EG4OHTQF.mjs";
|
|
12
16
|
import "../chunk-36YIAZMD.mjs";
|
|
13
|
-
import "../chunk-LJLITR54.mjs";
|
|
14
17
|
import "../chunk-LQCUO5PV.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-OONRDTMT.mjs";
|
|
19
|
+
import "../chunk-ZHN5GXW7.mjs";
|
|
17
20
|
import "../chunk-5EN3BWVN.mjs";
|
|
18
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-MJS5XRE6.mjs";
|
|
19
22
|
import "../chunk-EVEP57Q3.mjs";
|
|
20
23
|
export {
|
|
21
24
|
getConfigFile,
|
|
@@ -2,23 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLNLZS4DWjs = require('../chunk-LNLZS4DW.js');
|
|
6
6
|
require('../chunk-22DJFJ62.js');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-7GSJ2YLJ.js');
|
|
8
|
+
require('../chunk-UMLKUSGE.js');
|
|
8
9
|
require('../chunk-Z5UYG3QU.js');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-BQWJSIGF.js');
|
|
11
|
+
require('../chunk-UNJVNXY7.js');
|
|
12
|
+
require('../chunk-PYET3L7X.js');
|
|
13
|
+
require('../chunk-ORZJN6XC.js');
|
|
14
|
+
require('../chunk-PYKV5UE3.js');
|
|
15
|
+
require('../chunk-SEQZA3NM.js');
|
|
12
16
|
require('../chunk-VK6ZC6XP.js');
|
|
13
17
|
require('../chunk-T7WO327S.js');
|
|
14
|
-
require('../chunk-7GSJ2YLJ.js');
|
|
15
18
|
require('../chunk-K7V3S3BW.js');
|
|
16
|
-
require('../chunk-
|
|
17
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-7LUIP6PQ.js');
|
|
20
|
+
require('../chunk-T3JLYD7F.js');
|
|
18
21
|
require('../chunk-JYGRRNZP.js');
|
|
19
|
-
require('../chunk-
|
|
22
|
+
require('../chunk-OQLT27Y3.js');
|
|
20
23
|
require('../chunk-RBSVNX4W.js');
|
|
21
24
|
|
|
22
25
|
|
|
23
26
|
|
|
24
|
-
exports.getConfigFile =
|
|
27
|
+
exports.getConfigFile = _chunkLNLZS4DWjs.getConfigFile; exports.getConfigFileByName = _chunkLNLZS4DWjs.getConfigFileByName;
|
|
@@ -2,21 +2,24 @@ import "../chunk-5GHDZSSH.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
getConfigFile,
|
|
4
4
|
getConfigFileByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-KN4FWZ5M.mjs";
|
|
6
6
|
import "../chunk-LQGTS5ON.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-LJLITR54.mjs";
|
|
8
|
+
import "../chunk-XBNEIBQ5.mjs";
|
|
8
9
|
import "../chunk-2Z2NUZGO.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-W4ECC4CX.mjs";
|
|
11
|
+
import "../chunk-BDBWBTMW.mjs";
|
|
12
|
+
import "../chunk-VGI5MGGT.mjs";
|
|
13
|
+
import "../chunk-HQDBPM6Q.mjs";
|
|
14
|
+
import "../chunk-DKTC7KUS.mjs";
|
|
15
|
+
import "../chunk-QOJMUMJR.mjs";
|
|
12
16
|
import "../chunk-EG4OHTQF.mjs";
|
|
13
17
|
import "../chunk-36YIAZMD.mjs";
|
|
14
|
-
import "../chunk-LJLITR54.mjs";
|
|
15
18
|
import "../chunk-LQCUO5PV.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-OONRDTMT.mjs";
|
|
20
|
+
import "../chunk-ZHN5GXW7.mjs";
|
|
18
21
|
import "../chunk-5EN3BWVN.mjs";
|
|
19
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-MJS5XRE6.mjs";
|
|
20
23
|
import "../chunk-EVEP57Q3.mjs";
|
|
21
24
|
export {
|
|
22
25
|
getConfigFile,
|
|
@@ -3,28 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkAX56DLMVjs = require('./chunk-AX56DLMV.js');
|
|
7
|
+
require('./chunk-LNLZS4DW.js');
|
|
8
8
|
require('./chunk-22DJFJ62.js');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-7GSJ2YLJ.js');
|
|
10
|
+
require('./chunk-UMLKUSGE.js');
|
|
10
11
|
require('./chunk-Z5UYG3QU.js');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-BQWJSIGF.js');
|
|
13
|
+
require('./chunk-UNJVNXY7.js');
|
|
14
|
+
require('./chunk-PYET3L7X.js');
|
|
15
|
+
require('./chunk-ORZJN6XC.js');
|
|
16
|
+
require('./chunk-PYKV5UE3.js');
|
|
17
|
+
require('./chunk-SEQZA3NM.js');
|
|
14
18
|
require('./chunk-VK6ZC6XP.js');
|
|
15
19
|
require('./chunk-T7WO327S.js');
|
|
16
|
-
require('./chunk-7GSJ2YLJ.js');
|
|
17
20
|
require('./chunk-K7V3S3BW.js');
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-AYVEVLX7.js');
|
|
22
|
+
require('./chunk-7LUIP6PQ.js');
|
|
23
|
+
require('./chunk-CO2NVYPR.js');
|
|
24
|
+
require('./chunk-T3JLYD7F.js');
|
|
22
25
|
require('./chunk-JYGRRNZP.js');
|
|
23
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-OQLT27Y3.js');
|
|
24
27
|
require('./chunk-RBSVNX4W.js');
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
|
|
28
31
|
|
|
29
32
|
|
|
30
|
-
exports.createConfig =
|
|
33
|
+
exports.createConfig = _chunkAX56DLMVjs.createConfig; exports.createConfigExtension = _chunkAX56DLMVjs.createConfigExtension; exports.createStormConfig = _chunkAX56DLMVjs.createStormConfig; exports.loadStormConfig = _chunkAX56DLMVjs.loadStormConfig;
|
|
@@ -3,24 +3,27 @@ import {
|
|
|
3
3
|
createConfigExtension,
|
|
4
4
|
createStormConfig,
|
|
5
5
|
loadStormConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-QX3BA2JR.mjs";
|
|
7
|
+
import "./chunk-KN4FWZ5M.mjs";
|
|
8
8
|
import "./chunk-LQGTS5ON.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-LJLITR54.mjs";
|
|
10
|
+
import "./chunk-XBNEIBQ5.mjs";
|
|
10
11
|
import "./chunk-2Z2NUZGO.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-W4ECC4CX.mjs";
|
|
13
|
+
import "./chunk-BDBWBTMW.mjs";
|
|
14
|
+
import "./chunk-VGI5MGGT.mjs";
|
|
15
|
+
import "./chunk-HQDBPM6Q.mjs";
|
|
16
|
+
import "./chunk-DKTC7KUS.mjs";
|
|
17
|
+
import "./chunk-QOJMUMJR.mjs";
|
|
14
18
|
import "./chunk-EG4OHTQF.mjs";
|
|
15
19
|
import "./chunk-36YIAZMD.mjs";
|
|
16
|
-
import "./chunk-LJLITR54.mjs";
|
|
17
20
|
import "./chunk-LQCUO5PV.mjs";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ITHOTGIJ.mjs";
|
|
22
|
+
import "./chunk-OONRDTMT.mjs";
|
|
23
|
+
import "./chunk-GQAPQGTR.mjs";
|
|
24
|
+
import "./chunk-ZHN5GXW7.mjs";
|
|
22
25
|
import "./chunk-5EN3BWVN.mjs";
|
|
23
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-MJS5XRE6.mjs";
|
|
24
27
|
import "./chunk-EVEP57Q3.mjs";
|
|
25
28
|
export {
|
|
26
29
|
createConfig,
|
package/dist/env/get-env.d.mts
CHANGED
package/dist/env/get-env.d.ts
CHANGED
package/dist/env/get-env.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
4
|
+
var _chunkAYVEVLX7js = require('../chunk-AYVEVLX7.js');
|
|
5
|
+
require('../chunk-7LUIP6PQ.js');
|
|
6
|
+
require('../chunk-T3JLYD7F.js');
|
|
7
7
|
require('../chunk-JYGRRNZP.js');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-OQLT27Y3.js');
|
|
9
9
|
require('../chunk-RBSVNX4W.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.getConfigEnv =
|
|
13
|
+
exports.getConfigEnv = _chunkAYVEVLX7js.getConfigEnv; exports.getExtensionEnv = _chunkAYVEVLX7js.getExtensionEnv;
|
package/dist/env/get-env.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigEnv,
|
|
3
3
|
getExtensionEnv
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-ITHOTGIJ.mjs";
|
|
5
|
+
import "../chunk-OONRDTMT.mjs";
|
|
6
|
+
import "../chunk-ZHN5GXW7.mjs";
|
|
7
7
|
import "../chunk-5EN3BWVN.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-MJS5XRE6.mjs";
|
|
9
9
|
import "../chunk-EVEP57Q3.mjs";
|
|
10
10
|
export {
|
|
11
11
|
getConfigEnv,
|