@storm-software/config-tools 1.133.3 → 1.134.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 -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
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Configuration Tools](#storm-configuration-tools)
|
|
@@ -1,28 +1,28 @@
|
|
|
1
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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLNLZS4DWjs = require('./chunk-LNLZS4DW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBQWJSIGFjs = require('./chunk-BQWJSIGF.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkUNJVNXY7js = require('./chunk-UNJVNXY7.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkT7WO327Sjs = require('./chunk-T7WO327S.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkAYVEVLX7js = require('./chunk-AYVEVLX7.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk7LUIP6PQjs = require('./chunk-7LUIP6PQ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkCO2NVYPRjs = require('./chunk-CO2NVYPR.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -38,9 +38,9 @@ var createConfig = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (workspa
|
|
|
38
38
|
var createStormConfig = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (extensionName, schema, workspaceRoot) => {
|
|
39
39
|
let result;
|
|
40
40
|
if (!_optionalChain([_static_cache, 'optionalAccess', _ => _.data]) || !_optionalChain([_static_cache, 'optionalAccess', _2 => _2.timestamp]) || _static_cache.timestamp < Date.now() - 3e4) {
|
|
41
|
-
const config =
|
|
42
|
-
const defaultConfig =
|
|
43
|
-
result =
|
|
41
|
+
const config = _chunkAYVEVLX7js.getConfigEnv.call(void 0, );
|
|
42
|
+
const defaultConfig = _chunkUNJVNXY7js.getDefaultConfig.call(void 0, workspaceRoot);
|
|
43
|
+
result = _chunk7LUIP6PQjs.StormConfigSchema.parse(_chunkLNLZS4DWjs.defu.call(void 0, config, defaultConfig));
|
|
44
44
|
result.workspaceRoot ??= defaultConfig.workspaceRoot || _chunkT7WO327Sjs.findWorkspaceRoot.call(void 0, workspaceRoot);
|
|
45
45
|
} else {
|
|
46
46
|
result = _static_cache.data;
|
|
@@ -64,7 +64,7 @@ var createConfigExtension = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0,
|
|
|
64
64
|
if (_extension_cache.has(extension_cache_key)) {
|
|
65
65
|
return _extension_cache.get(extension_cache_key);
|
|
66
66
|
}
|
|
67
|
-
let extension =
|
|
67
|
+
let extension = _chunkAYVEVLX7js.getExtensionEnv.call(void 0, extensionName);
|
|
68
68
|
if (schema) {
|
|
69
69
|
extension = schema.parse(extension);
|
|
70
70
|
}
|
|
@@ -74,23 +74,23 @@ var createConfigExtension = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0,
|
|
|
74
74
|
var loadStormConfig = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, async (workspaceRoot) => {
|
|
75
75
|
let config = {};
|
|
76
76
|
if (_optionalChain([_static_cache, 'optionalAccess', _3 => _3.data]) && _optionalChain([_static_cache, 'optionalAccess', _4 => _4.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
77
|
-
|
|
77
|
+
_chunkBQWJSIGFjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
|
|
78
78
|
return _static_cache.data;
|
|
79
79
|
}
|
|
80
80
|
let _workspaceRoot = workspaceRoot;
|
|
81
81
|
if (!_workspaceRoot) {
|
|
82
82
|
_workspaceRoot = _chunkT7WO327Sjs.findWorkspaceRoot.call(void 0, );
|
|
83
83
|
}
|
|
84
|
-
const configFile = await
|
|
84
|
+
const configFile = await _chunkLNLZS4DWjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
85
85
|
if (!configFile) {
|
|
86
|
-
|
|
86
|
+
_chunkBQWJSIGFjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
87
87
|
logLevel: "all"
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
config =
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
${
|
|
90
|
+
config = _chunkLNLZS4DWjs.defu.call(void 0, _chunkAYVEVLX7js.getConfigEnv.call(void 0, ), configFile, _chunkUNJVNXY7js.getDefaultConfig.call(void 0, _workspaceRoot));
|
|
91
|
+
_chunkCO2NVYPRjs.setConfigEnv.call(void 0, config);
|
|
92
|
+
_chunkBQWJSIGFjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
|
|
93
|
+
${_chunkBQWJSIGFjs.formatLogMessage.call(void 0, config)}`, config);
|
|
94
94
|
return config;
|
|
95
95
|
}, "loadStormConfig");
|
|
96
96
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7LUIP6PQjs = require('./chunk-7LUIP6PQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkT3JLYD7Fjs = require('./chunk-T3JLYD7F.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkJYGRRNZPjs = require('./chunk-JYGRRNZP.js');
|
|
@@ -77,23 +77,23 @@ var getConfigEnv = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, () => {
|
|
|
77
77
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
78
78
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
79
79
|
},
|
|
80
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ?
|
|
80
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkT3JLYD7Fjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
81
81
|
};
|
|
82
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
82
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk7LUIP6PQjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
83
83
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
84
84
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
85
85
|
return ret;
|
|
86
86
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
87
|
-
if (config.docs ===
|
|
88
|
-
if (config.homepage ===
|
|
89
|
-
config.docs = `${
|
|
87
|
+
if (config.docs === _chunk7LUIP6PQjs.STORM_DEFAULT_DOCS) {
|
|
88
|
+
if (config.homepage === _chunk7LUIP6PQjs.STORM_DEFAULT_HOMEPAGE) {
|
|
89
|
+
config.docs = `${_chunk7LUIP6PQjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
90
90
|
} else {
|
|
91
91
|
config.docs = `${config.homepage}/docs`;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
if (config.licensing ===
|
|
95
|
-
if (config.homepage ===
|
|
96
|
-
config.licensing = `${
|
|
94
|
+
if (config.licensing === _chunk7LUIP6PQjs.STORM_DEFAULT_LICENSING) {
|
|
95
|
+
if (config.homepage === _chunk7LUIP6PQjs.STORM_DEFAULT_HOMEPAGE) {
|
|
96
|
+
config.licensing = `${_chunk7LUIP6PQjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
97
97
|
} else {
|
|
98
98
|
config.licensing = `${config.homepage}/docs`;
|
|
99
99
|
}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUNJVNXY7js = require('./chunk-UNJVNXY7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPYET3L7Xjs = require('./chunk-PYET3L7X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkORZJN6XCjs = require('./chunk-ORZJN6XC.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
var _chunkPYKV5UE3js = require('./chunk-PYKV5UE3.js');
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
var _chunkT3JLYD7Fjs = require('./chunk-T3JLYD7F.js');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var _chunkOQLT27Y3js = require('./chunk-OQLT27Y3.js');
|
|
14
20
|
|
|
15
21
|
|
|
16
22
|
|
|
@@ -18,63 +24,70 @@ var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
|
|
|
18
24
|
|
|
19
25
|
// src/logger/console.ts
|
|
20
26
|
_chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
|
|
21
|
-
var getLogFn = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (logLevel =
|
|
22
|
-
const _chalk =
|
|
23
|
-
const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ?
|
|
24
|
-
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL ||
|
|
25
|
-
if (typeof logLevel === "number" && (logLevel >=
|
|
27
|
+
var getLogFn = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (logLevel = _chunkOQLT27Y3js.LogLevel.INFO, config = {}) => {
|
|
28
|
+
const _chalk = _chunkPYET3L7Xjs.getChalk.call(void 0, );
|
|
29
|
+
const colors = !_optionalChain([config, 'access', _2 => _2.colors, 'optionalAccess', _3 => _3.dark]) && !_optionalChain([config, 'access', _4 => _4.colors, 'optionalAccess', _5 => _5["base"]]) && !_optionalChain([config, 'access', _6 => _6.colors, 'optionalAccess', _7 => _7["base"], 'optionalAccess', _8 => _8.dark]) ? _chunkUNJVNXY7js.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) ? _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"]]) : _chunkUNJVNXY7js.DEFAULT_COLOR_CONFIG;
|
|
30
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunkOQLT27Y3js.LogLevelLabel.INFO;
|
|
31
|
+
if (typeof logLevel === "number" && (logLevel >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunkOQLT27Y3js.LogLevel.SILENT) || typeof logLevel === "string" && _chunkT3JLYD7Fjs.getLogLevel.call(void 0, logLevel) >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, configLogLevel)) {
|
|
26
32
|
return (_) => {
|
|
27
33
|
};
|
|
28
34
|
}
|
|
29
|
-
if (typeof logLevel === "number" &&
|
|
35
|
+
if (typeof logLevel === "number" && _chunkOQLT27Y3js.LogLevel.FATAL >= logLevel || typeof logLevel === "string" && _chunkOQLT27Y3js.LogLevel.FATAL >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, logLevel)) {
|
|
30
36
|
return (message) => {
|
|
31
|
-
console.error(
|
|
37
|
+
console.error(`
|
|
38
|
+
${_chalk.gray(_chunkPYKV5UE3js.formatTimestamp.call(void 0, ))} ${_chalk.bold.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${_chunkORZJN6XCjs.CONSOLE_ICONS[_chunkOQLT27Y3js.LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(formatLogMessage(message))}
|
|
32
39
|
`);
|
|
33
40
|
};
|
|
34
41
|
}
|
|
35
|
-
if (typeof logLevel === "number" &&
|
|
42
|
+
if (typeof logLevel === "number" && _chunkOQLT27Y3js.LogLevel.ERROR >= logLevel || typeof logLevel === "string" && _chunkOQLT27Y3js.LogLevel.ERROR >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, logLevel)) {
|
|
36
43
|
return (message) => {
|
|
37
|
-
console.error(
|
|
44
|
+
console.error(`
|
|
45
|
+
${_chalk.gray(_chunkPYKV5UE3js.formatTimestamp.call(void 0, ))} ${_chalk.bold.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${_chunkORZJN6XCjs.CONSOLE_ICONS[_chunkOQLT27Y3js.LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(formatLogMessage(message))}
|
|
38
46
|
`);
|
|
39
47
|
};
|
|
40
48
|
}
|
|
41
|
-
if (typeof logLevel === "number" &&
|
|
49
|
+
if (typeof logLevel === "number" && _chunkOQLT27Y3js.LogLevel.WARN >= logLevel || typeof logLevel === "string" && _chunkOQLT27Y3js.LogLevel.WARN >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, logLevel)) {
|
|
42
50
|
return (message) => {
|
|
43
|
-
console.warn(
|
|
51
|
+
console.warn(`
|
|
52
|
+
${_chalk.gray(_chunkPYKV5UE3js.formatTimestamp.call(void 0, ))} ${_chalk.bold.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${_chunkORZJN6XCjs.CONSOLE_ICONS[_chunkOQLT27Y3js.LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(formatLogMessage(message))}
|
|
44
53
|
`);
|
|
45
54
|
};
|
|
46
55
|
}
|
|
47
|
-
if (typeof logLevel === "number" &&
|
|
56
|
+
if (typeof logLevel === "number" && _chunkOQLT27Y3js.LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && _chunkOQLT27Y3js.LogLevel.SUCCESS >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, logLevel)) {
|
|
48
57
|
return (message) => {
|
|
49
|
-
console.info(
|
|
58
|
+
console.info(`
|
|
59
|
+
${_chalk.gray(_chunkPYKV5UE3js.formatTimestamp.call(void 0, ))} ${_chalk.bold.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${_chunkORZJN6XCjs.CONSOLE_ICONS[_chunkOQLT27Y3js.LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(formatLogMessage(message))}
|
|
50
60
|
`);
|
|
51
61
|
};
|
|
52
62
|
}
|
|
53
|
-
if (typeof logLevel === "number" &&
|
|
63
|
+
if (typeof logLevel === "number" && _chunkOQLT27Y3js.LogLevel.INFO >= logLevel || typeof logLevel === "string" && _chunkOQLT27Y3js.LogLevel.INFO >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, logLevel)) {
|
|
54
64
|
return (message) => {
|
|
55
|
-
console.info(
|
|
65
|
+
console.info(`
|
|
66
|
+
${_chalk.gray(_chunkPYKV5UE3js.formatTimestamp.call(void 0, ))} ${_chalk.bold.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${_chunkORZJN6XCjs.CONSOLE_ICONS[_chunkOQLT27Y3js.LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(formatLogMessage(message))}
|
|
56
67
|
`);
|
|
57
68
|
};
|
|
58
69
|
}
|
|
59
|
-
if (typeof logLevel === "number" &&
|
|
70
|
+
if (typeof logLevel === "number" && _chunkOQLT27Y3js.LogLevel.TRACE >= logLevel || typeof logLevel === "string" && _chunkOQLT27Y3js.LogLevel.TRACE >= _chunkT3JLYD7Fjs.getLogLevel.call(void 0, logLevel)) {
|
|
60
71
|
return (message) => {
|
|
61
|
-
console.debug(
|
|
72
|
+
console.debug(`
|
|
73
|
+
${_chalk.gray(_chunkPYKV5UE3js.formatTimestamp.call(void 0, ))} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${_chunkORZJN6XCjs.CONSOLE_ICONS[_chunkOQLT27Y3js.LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
|
|
62
74
|
`);
|
|
63
75
|
};
|
|
64
76
|
}
|
|
65
77
|
return (message) => {
|
|
66
|
-
console.log(
|
|
78
|
+
console.log(`
|
|
79
|
+
${_chalk.gray(_chunkPYKV5UE3js.formatTimestamp.call(void 0, ))} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${_chunkORZJN6XCjs.CONSOLE_ICONS[_chunkOQLT27Y3js.LogLevelLabel.ALL]} System]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
|
|
67
80
|
`);
|
|
68
81
|
};
|
|
69
82
|
}, "getLogFn");
|
|
70
|
-
var writeFatal = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
71
|
-
var writeError = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
72
|
-
var writeWarning = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
73
|
-
var writeInfo = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
74
|
-
var writeSuccess = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
75
|
-
var writeDebug = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
76
|
-
var writeTrace = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
77
|
-
var writeSystem = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(
|
|
83
|
+
var writeFatal = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.FATAL, config)(message), "writeFatal");
|
|
84
|
+
var writeError = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.ERROR, config)(message), "writeError");
|
|
85
|
+
var writeWarning = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.WARN, config)(message), "writeWarning");
|
|
86
|
+
var writeInfo = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.INFO, config)(message), "writeInfo");
|
|
87
|
+
var writeSuccess = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.SUCCESS, config)(message), "writeSuccess");
|
|
88
|
+
var writeDebug = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.DEBUG, config)(message), "writeDebug");
|
|
89
|
+
var writeTrace = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.TRACE, config)(message), "writeTrace");
|
|
90
|
+
var writeSystem = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message, config) => getLogFn(_chunkOQLT27Y3js.LogLevel.ALL, config)(message), "writeSystem");
|
|
78
91
|
var getStopwatch = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (name) => {
|
|
79
92
|
const start = process.hrtime();
|
|
80
93
|
return () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkT3JLYD7Fjs = require('./chunk-T3JLYD7F.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkJYGRRNZPjs = require('./chunk-JYGRRNZP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkOQLT27Y3js = require('./chunk-OQLT27Y3.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -159,8 +159,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (config)
|
|
|
159
159
|
if (config.logLevel) {
|
|
160
160
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
161
161
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
162
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
163
|
-
process.env.RUST_BACKTRACE =
|
|
162
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkT3JLYD7Fjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOQLT27Y3js.LogLevel.DEBUG ? true : false);
|
|
163
|
+
process.env.RUST_BACKTRACE = _chunkT3JLYD7Fjs.getLogLevel.call(void 0, config.logLevel) >= _chunkOQLT27Y3js.LogLevel.DEBUG ? "full" : "none";
|
|
164
164
|
}
|
|
165
165
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
166
166
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-EVEP57Q3.mjs";
|
|
5
|
+
|
|
6
|
+
// src/logger/format-timestamp.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
var formatTimestamp = /* @__PURE__ */ __name((date = /* @__PURE__ */ new Date()) => {
|
|
9
|
+
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
10
|
+
}, "formatTimestamp");
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
formatTimestamp
|
|
14
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLogLevel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZHN5GXW7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
correctPaths
|
|
6
6
|
} from "./chunk-5EN3BWVN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
LogLevel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MJS5XRE6.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name,
|
|
12
12
|
init_esm_shims
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isUnicodeSupported
|
|
3
|
+
} from "./chunk-QOJMUMJR.mjs";
|
|
4
|
+
import {
|
|
5
|
+
LogLevelLabel
|
|
6
|
+
} from "./chunk-MJS5XRE6.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__name,
|
|
9
|
+
init_esm_shims
|
|
10
|
+
} from "./chunk-EVEP57Q3.mjs";
|
|
11
|
+
|
|
12
|
+
// src/logger/console-icons.ts
|
|
13
|
+
init_esm_shims();
|
|
14
|
+
var useIcon = /* @__PURE__ */ __name((c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
|
|
15
|
+
var CONSOLE_ICONS = {
|
|
16
|
+
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
17
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
18
|
+
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
19
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
20
|
+
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
21
|
+
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
22
|
+
[LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
CONSOLE_ICONS
|
|
27
|
+
};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
STORM_DEFAULT_DOCS,
|
|
4
4
|
STORM_DEFAULT_HOMEPAGE,
|
|
5
5
|
STORM_DEFAULT_LICENSING
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OONRDTMT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getLogLevelLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZHN5GXW7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
correctPaths
|
|
12
12
|
} from "./chunk-5EN3BWVN.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBQWJSIGFjs = require('./chunk-BQWJSIGF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkT7WO327Sjs = require('./chunk-T7WO327S.js');
|
|
@@ -516,7 +516,7 @@ var getConfigFile = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, async (
|
|
|
516
516
|
let config = result.config;
|
|
517
517
|
const configFile = result.configFile;
|
|
518
518
|
if (config && configFile && Object.keys(config).length > 0) {
|
|
519
|
-
|
|
519
|
+
_chunkBQWJSIGFjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
520
520
|
logLevel: "all"
|
|
521
521
|
});
|
|
522
522
|
}
|
|
@@ -524,7 +524,7 @@ var getConfigFile = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, async (
|
|
|
524
524
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
525
525
|
for (const result2 of results) {
|
|
526
526
|
if (_optionalChain([result2, 'optionalAccess', _13 => _13.config]) && _optionalChain([result2, 'optionalAccess', _14 => _14.configFile]) && Object.keys(result2.config).length > 0) {
|
|
527
|
-
|
|
527
|
+
_chunkBQWJSIGFjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
528
528
|
logLevel: "all"
|
|
529
529
|
});
|
|
530
530
|
config = defu(_nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkSEQZA3NMjs = require('./chunk-SEQZA3NM.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkOQLT27Y3js = require('./chunk-OQLT27Y3.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
|
|
11
|
+
|
|
12
|
+
// src/logger/console-icons.ts
|
|
13
|
+
_chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
|
|
14
|
+
var useIcon = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (c, fallback) => _chunkSEQZA3NMjs.isUnicodeSupported.call(void 0, ) ? c : fallback, "useIcon");
|
|
15
|
+
var CONSOLE_ICONS = {
|
|
16
|
+
[_chunkOQLT27Y3js.LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
17
|
+
[_chunkOQLT27Y3js.LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
|
|
18
|
+
[_chunkOQLT27Y3js.LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
19
|
+
[_chunkOQLT27Y3js.LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
20
|
+
[_chunkOQLT27Y3js.LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
21
|
+
[_chunkOQLT27Y3js.LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
22
|
+
[_chunkOQLT27Y3js.LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
exports.CONSOLE_ICONS = CONSOLE_ICONS;
|
|
@@ -405,12 +405,17 @@ var chalkDefault = {
|
|
|
405
405
|
whiteBright: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
406
406
|
}), "bgHex"),
|
|
407
407
|
whiteBright: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message) => message, "whiteBright"),
|
|
408
|
+
gray: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message) => message, "gray"),
|
|
408
409
|
bold: {
|
|
409
410
|
hex: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
410
411
|
bgHex: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (_) => ({
|
|
411
412
|
whiteBright: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
412
413
|
}), "bgHex"),
|
|
413
414
|
whiteBright: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
415
|
+
},
|
|
416
|
+
dim: {
|
|
417
|
+
hex: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
418
|
+
gray: /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, (message) => message, "gray")
|
|
414
419
|
}
|
|
415
420
|
};
|
|
416
421
|
var getChalk = /* @__PURE__ */ _chunkRBSVNX4Wjs.__name.call(void 0, () => {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkRBSVNX4Wjs = require('./chunk-RBSVNX4W.js');
|
|
5
|
+
|
|
6
|
+
// src/logger/format-timestamp.ts
|
|
7
|
+
_chunkRBSVNX4Wjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var formatTimestamp = /* @__PURE__ */ _chunkRBSVNX4Wjs.__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,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name,
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-EVEP57Q3.mjs";
|
|
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
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defu,
|
|
3
3
|
getConfigFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KN4FWZ5M.mjs";
|
|
5
5
|
import {
|
|
6
6
|
formatLogMessage,
|
|
7
7
|
writeTrace,
|
|
8
8
|
writeWarning
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W4ECC4CX.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getDefaultConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BDBWBTMW.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot
|
|
15
15
|
} from "./chunk-36YIAZMD.mjs";
|
|
16
16
|
import {
|
|
17
17
|
getConfigEnv,
|
|
18
18
|
getExtensionEnv
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ITHOTGIJ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
StormConfigSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OONRDTMT.mjs";
|
|
23
23
|
import {
|
|
24
24
|
setConfigEnv
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GQAPQGTR.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__name,
|
|
28
28
|
init_esm_shims
|