@storm-software/config-tools 1.177.3 → 1.178.1
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/{chunk-CG3ZPQSH.cjs → chunk-2LK4ZGLW.cjs} +2 -2
- package/dist/{chunk-Z62ZL5WE.cjs → chunk-3235YC2J.cjs} +9 -9
- package/dist/{chunk-VLS3MDSR.js → chunk-3TO7MEJT.js} +10 -1
- package/dist/{chunk-HRYS4NSW.js → chunk-BTZVY4J2.js} +1 -1
- package/dist/{chunk-QPNEQJUQ.cjs → chunk-EDQ2BMIV.cjs} +3 -3
- package/dist/{chunk-HUE33BQZ.js → chunk-EK7IXIHA.js} +1 -1
- package/dist/{chunk-KHLQU66A.js → chunk-FBMPJNMM.js} +2 -2
- package/dist/{chunk-WUZAZNK3.cjs → chunk-GJ7QM6FN.cjs} +9 -9
- package/dist/{chunk-FNCPJCRZ.js → chunk-NYDB5GIZ.js} +1 -1
- package/dist/{chunk-GVHRCPKH.cjs → chunk-PQATN7O6.cjs} +10 -10
- package/dist/{chunk-R4UCFEO2.js → chunk-TFYMXKIT.js} +1 -1
- package/dist/{chunk-NAULCOC3.js → chunk-TTT5G3NU.js} +1 -1
- package/dist/{chunk-5WYSI634.js → chunk-X56PD6LB.js} +1 -1
- package/dist/{chunk-AKMWVY6J.cjs → chunk-XA4G3MSV.cjs} +10 -10
- package/dist/{chunk-R4QJBJ5S.cjs → chunk-YGJGYNZL.cjs} +10 -1
- package/dist/{chunk-BWNFZH2S.cjs → chunk-ZTCEXE7T.cjs} +3 -3
- package/dist/config-file/get-config-file.cjs +7 -7
- package/dist/config-file/get-config-file.js +6 -6
- package/dist/config-file/index.cjs +7 -7
- package/dist/config-file/index.js +6 -6
- package/dist/create-storm-config.cjs +8 -8
- package/dist/create-storm-config.js +7 -7
- package/dist/get-config.cjs +9 -9
- package/dist/get-config.js +8 -8
- package/dist/index.cjs +11 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -9
- package/dist/logger/console.cjs +3 -3
- package/dist/logger/console.js +2 -2
- package/dist/logger/create-logger.cjs +4 -4
- package/dist/logger/create-logger.js +3 -3
- package/dist/logger/index.cjs +4 -4
- package/dist/logger/index.js +3 -3
- package/dist/utilities/colors.cjs +4 -2
- package/dist/utilities/colors.d.cts +50 -35
- package/dist/utilities/colors.d.ts +50 -35
- package/dist/utilities/colors.js +5 -3
- package/dist/utilities/index.cjs +8 -6
- package/dist/utilities/index.d.cts +2 -1
- package/dist/utilities/index.d.ts +2 -1
- package/dist/utilities/index.js +8 -6
- package/dist/utilities/process-handler.cjs +4 -4
- package/dist/utilities/process-handler.js +3 -3
- package/dist/utilities/toml.cjs +5 -5
- package/dist/utilities/toml.js +4 -4
- package/package.json +3 -3
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 -->
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkXA4G3MSVcjs = require('./chunk-XA4G3MSV.cjs');
|
|
4
4
|
|
|
5
5
|
// src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunkXA4G3MSVcjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkXA4G3MSVcjs = require('./chunk-XA4G3MSV.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
|
|
@@ -9,13 +9,13 @@ var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
|
|
|
9
9
|
// src/logger/create-logger.ts
|
|
10
10
|
var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
|
|
11
11
|
async function createLogger(config) {
|
|
12
|
-
const writeFatal =
|
|
13
|
-
const writeError =
|
|
14
|
-
const writeWarning =
|
|
15
|
-
const writeInfo =
|
|
16
|
-
const writeSuccess =
|
|
17
|
-
const writeDebug =
|
|
18
|
-
const writeTrace =
|
|
12
|
+
const writeFatal = _chunkXA4G3MSVcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.FATAL, config, _chalk2.default);
|
|
13
|
+
const writeError = _chunkXA4G3MSVcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.ERROR, config, _chalk2.default);
|
|
14
|
+
const writeWarning = _chunkXA4G3MSVcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.WARN, config, _chalk2.default);
|
|
15
|
+
const writeInfo = _chunkXA4G3MSVcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.INFO, config, _chalk2.default);
|
|
16
|
+
const writeSuccess = _chunkXA4G3MSVcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.SUCCESS, config, _chalk2.default);
|
|
17
|
+
const writeDebug = _chunkXA4G3MSVcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.DEBUG, config, _chalk2.default);
|
|
18
|
+
const writeTrace = _chunkXA4G3MSVcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.DEBUG, config, _chalk2.default);
|
|
19
19
|
return {
|
|
20
20
|
fatal: writeFatal,
|
|
21
21
|
error: writeError,
|
|
@@ -24,7 +24,7 @@ async function createLogger(config) {
|
|
|
24
24
|
success: writeSuccess,
|
|
25
25
|
debug: writeDebug,
|
|
26
26
|
trace: writeTrace,
|
|
27
|
-
getStopwatch:
|
|
27
|
+
getStopwatch: _chunkXA4G3MSVcjs.getStopwatch
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -62,9 +62,18 @@ function getColor(key, config) {
|
|
|
62
62
|
}
|
|
63
63
|
return getColor("brand", config);
|
|
64
64
|
}
|
|
65
|
+
function getGradient(config) {
|
|
66
|
+
const colors = getColorConfig(config);
|
|
67
|
+
const result = (typeof colors["dark"] === "object" ? colors["dark"].gradient : colors.gradient) || DEFAULT_COLOR_CONFIG["dark"].gradient;
|
|
68
|
+
if (result && Array.isArray(result) && result.length > 0) {
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
return void 0;
|
|
72
|
+
}
|
|
65
73
|
|
|
66
74
|
export {
|
|
67
75
|
DEFAULT_COLOR_CONFIG,
|
|
68
76
|
getColorConfig,
|
|
69
|
-
getColor
|
|
77
|
+
getColor,
|
|
78
|
+
getGradient
|
|
70
79
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPQATN7O6cjs = require('./chunk-PQATN7O6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkNOTWBXXMcjs = require('./chunk-NOTWBXXM.cjs');
|
|
8
8
|
|
|
9
9
|
// src/get-config.ts
|
|
10
10
|
var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
11
|
-
return
|
|
11
|
+
return _chunkPQATN7O6cjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
|
|
12
12
|
};
|
|
13
13
|
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
14
14
|
let workspaceRoot = options.workspaceRoot;
|
|
@@ -23,7 +23,7 @@ var tryGetWorkspaceConfig = async (skipLogs = true, options = {}) => {
|
|
|
23
23
|
if (!workspaceRoot) {
|
|
24
24
|
workspaceRoot = _chunkNOTWBXXMcjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return _chunkPQATN7O6cjs.tryLoadStormWorkspaceConfig.call(void 0,
|
|
27
27
|
workspaceRoot,
|
|
28
28
|
skipLogs,
|
|
29
29
|
options.useDefault
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NYDB5GIZ.js";
|
|
4
4
|
import {
|
|
5
5
|
applyDefaultConfig,
|
|
6
6
|
getPackageJsonConfig
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
formatLogMessage,
|
|
13
13
|
writeTrace,
|
|
14
14
|
writeWarning
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EK7IXIHA.js";
|
|
16
16
|
import {
|
|
17
17
|
setConfigEnv
|
|
18
18
|
} from "./chunk-UMSUK27E.js";
|
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXA4G3MSVcjs = require('./chunk-XA4G3MSV.cjs');
|
|
7
7
|
|
|
8
8
|
// src/utilities/process-handler.ts
|
|
9
9
|
var exitWithError = (config) => {
|
|
10
|
-
|
|
10
|
+
_chunkXA4G3MSVcjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
|
|
11
11
|
process.exit(1);
|
|
12
12
|
};
|
|
13
13
|
var exitWithSuccess = (config) => {
|
|
14
|
-
|
|
14
|
+
_chunkXA4G3MSVcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
|
|
15
15
|
process.exit(0);
|
|
16
16
|
};
|
|
17
17
|
var handleProcess = (config) => {
|
|
18
|
-
|
|
18
|
+
_chunkXA4G3MSVcjs.writeTrace.call(void 0,
|
|
19
19
|
`Using the following arguments to process the script: ${process.argv.join(", ")}`,
|
|
20
20
|
config
|
|
21
21
|
);
|
|
22
22
|
process.on("unhandledRejection", (error) => {
|
|
23
|
-
|
|
23
|
+
_chunkXA4G3MSVcjs.writeError.call(void 0,
|
|
24
24
|
`An Unhandled Rejection occurred while running the program: ${error}`,
|
|
25
25
|
config
|
|
26
26
|
);
|
|
27
27
|
exitWithError(config);
|
|
28
28
|
});
|
|
29
29
|
process.on("uncaughtException", (error) => {
|
|
30
|
-
|
|
30
|
+
_chunkXA4G3MSVcjs.writeError.call(void 0,
|
|
31
31
|
`An Uncaught Exception occurred while running the program: ${error.message}
|
|
32
32
|
Stacktrace: ${error.stack}`,
|
|
33
33
|
config
|
|
@@ -35,15 +35,15 @@ Stacktrace: ${error.stack}`,
|
|
|
35
35
|
exitWithError(config);
|
|
36
36
|
});
|
|
37
37
|
process.on("SIGTERM", (signal) => {
|
|
38
|
-
|
|
38
|
+
_chunkXA4G3MSVcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
39
39
|
exitWithError(config);
|
|
40
40
|
});
|
|
41
41
|
process.on("SIGINT", (signal) => {
|
|
42
|
-
|
|
42
|
+
_chunkXA4G3MSVcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
43
43
|
exitWithError(config);
|
|
44
44
|
});
|
|
45
45
|
process.on("SIGHUP", (signal) => {
|
|
46
|
-
|
|
46
|
+
_chunkXA4G3MSVcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
47
47
|
exitWithError(config);
|
|
48
48
|
});
|
|
49
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkZTCEXE7Tcjs = require('./chunk-ZTCEXE7T.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunkNOTWBXXMcjs = require('./chunk-NOTWBXXM.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkXA4G3MSVcjs = require('./chunk-XA4G3MSV.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkCO4ZADWXcjs = require('./chunk-CO4ZADWX.cjs');
|
|
@@ -34,10 +34,10 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
34
34
|
_workspaceRoot = _chunkNOTWBXXMcjs.findWorkspaceRoot.call(void 0, );
|
|
35
35
|
}
|
|
36
36
|
const configEnv = _chunkCLT4IIBScjs.getConfigEnv.call(void 0, );
|
|
37
|
-
const configFile = await
|
|
37
|
+
const configFile = await _chunkZTCEXE7Tcjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
38
38
|
if (!configFile) {
|
|
39
39
|
if (!skipLogs) {
|
|
40
|
-
|
|
40
|
+
_chunkXA4G3MSVcjs.writeWarning.call(void 0,
|
|
41
41
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
42
42
|
{ logLevel: "all" }
|
|
43
43
|
);
|
|
@@ -61,7 +61,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
61
61
|
throw new Error(
|
|
62
62
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _3 => _3.message]) ? `: ${error.message}` : ""}
|
|
63
63
|
|
|
64
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
64
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkXA4G3MSVcjs.formatLogMessage.call(void 0,
|
|
65
65
|
configInput
|
|
66
66
|
)}`,
|
|
67
67
|
{
|
|
@@ -106,9 +106,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
106
106
|
);
|
|
107
107
|
_chunkCO4ZADWXcjs.setConfigEnv.call(void 0, config);
|
|
108
108
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
109
|
-
|
|
109
|
+
_chunkXA4G3MSVcjs.writeTrace.call(void 0,
|
|
110
110
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
111
|
-
${
|
|
111
|
+
${_chunkXA4G3MSVcjs.formatLogMessage.call(void 0, config)}`,
|
|
112
112
|
config
|
|
113
113
|
);
|
|
114
114
|
}
|
|
@@ -128,16 +128,16 @@ var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefa
|
|
|
128
128
|
}
|
|
129
129
|
_chunkCO4ZADWXcjs.setConfigEnv.call(void 0, config);
|
|
130
130
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
131
|
-
|
|
131
|
+
_chunkXA4G3MSVcjs.writeTrace.call(void 0,
|
|
132
132
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
133
|
-
${
|
|
133
|
+
${_chunkXA4G3MSVcjs.formatLogMessage.call(void 0, config)}`,
|
|
134
134
|
config
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
return config;
|
|
138
138
|
} catch (error) {
|
|
139
139
|
if (!skipLogs) {
|
|
140
|
-
|
|
140
|
+
_chunkXA4G3MSVcjs.writeWarning.call(void 0,
|
|
141
141
|
`\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
|
|
142
142
|
{ logLevel: "all" }
|
|
143
143
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkYGJGYNZLcjs = require('./chunk-YGJGYNZL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkLOY6ICHZcjs = require('./chunk-LOY6ICHZ.cjs');
|
|
@@ -20,7 +20,7 @@ var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
|
|
|
20
20
|
|
|
21
21
|
// src/logger/console.ts
|
|
22
22
|
var getLogFn = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO, config = {}, _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, )) => {
|
|
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]) ?
|
|
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]) ? _chunkYGJGYNZLcjs.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"]]) : _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG;
|
|
24
24
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunkIRCFHYKZcjs.LogLevelLabel.INFO;
|
|
25
25
|
if (logLevel > _chunk4PX5UVANcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunkIRCFHYKZcjs.LogLevel.SILENT || _chunk4PX5UVANcjs.getLogLevel.call(void 0, configLogLevel) <= _chunkIRCFHYKZcjs.LogLevel.SILENT) {
|
|
26
26
|
return (_) => {
|
|
@@ -30,7 +30,7 @@ var getLogFn = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO, config = {}, _chalk
|
|
|
30
30
|
return (message) => {
|
|
31
31
|
console.error(
|
|
32
32
|
`
|
|
33
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => (
|
|
33
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.fatal)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
34
34
|
`
|
|
35
35
|
);
|
|
36
36
|
};
|
|
@@ -39,7 +39,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
39
39
|
return (message) => {
|
|
40
40
|
console.error(
|
|
41
41
|
`
|
|
42
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.danger, () => (
|
|
42
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.danger)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
43
43
|
`
|
|
44
44
|
);
|
|
45
45
|
};
|
|
@@ -48,7 +48,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
48
48
|
return (message) => {
|
|
49
49
|
console.warn(
|
|
50
50
|
`
|
|
51
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.warning, () => (
|
|
51
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.warning)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
52
52
|
`
|
|
53
53
|
);
|
|
54
54
|
};
|
|
@@ -57,7 +57,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
57
57
|
return (message) => {
|
|
58
58
|
console.info(
|
|
59
59
|
`
|
|
60
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.success, () => (
|
|
60
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.success)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
61
61
|
`
|
|
62
62
|
);
|
|
63
63
|
};
|
|
@@ -66,7 +66,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
66
66
|
return (message) => {
|
|
67
67
|
console.info(
|
|
68
68
|
`
|
|
69
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => (
|
|
69
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
70
70
|
`
|
|
71
71
|
);
|
|
72
72
|
};
|
|
@@ -75,7 +75,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
75
75
|
return (message) => {
|
|
76
76
|
console.debug(
|
|
77
77
|
`
|
|
78
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => (
|
|
78
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
79
79
|
`
|
|
80
80
|
);
|
|
81
81
|
};
|
|
@@ -84,7 +84,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
84
84
|
return (message) => {
|
|
85
85
|
console.debug(
|
|
86
86
|
`
|
|
87
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => (
|
|
87
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
88
88
|
`
|
|
89
89
|
);
|
|
90
90
|
};
|
|
@@ -92,7 +92,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
92
92
|
return (message) => {
|
|
93
93
|
console.log(
|
|
94
94
|
`
|
|
95
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => (
|
|
95
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( _chunkYGJGYNZLcjs.DEFAULT_COLOR_CONFIG.dark.brand)))(`[${_chunkWBQ4VS7Ecjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
96
96
|
`
|
|
97
97
|
);
|
|
98
98
|
};
|
|
@@ -62,9 +62,18 @@ function getColor(key, config) {
|
|
|
62
62
|
}
|
|
63
63
|
return getColor("brand", config);
|
|
64
64
|
}
|
|
65
|
+
function getGradient(config) {
|
|
66
|
+
const colors = getColorConfig(config);
|
|
67
|
+
const result = (typeof colors["dark"] === "object" ? colors["dark"].gradient : colors.gradient) || DEFAULT_COLOR_CONFIG["dark"].gradient;
|
|
68
|
+
if (result && Array.isArray(result) && result.length > 0) {
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
return void 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
65
74
|
|
|
66
75
|
|
|
67
76
|
|
|
68
77
|
|
|
69
78
|
|
|
70
|
-
exports.DEFAULT_COLOR_CONFIG = DEFAULT_COLOR_CONFIG; exports.getColorConfig = getColorConfig; exports.getColor = getColor;
|
|
79
|
+
exports.DEFAULT_COLOR_CONFIG = DEFAULT_COLOR_CONFIG; exports.getColorConfig = getColorConfig; exports.getColor = getColor; exports.getGradient = getGradient;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkNOTWBXXMcjs = require('./chunk-NOTWBXXM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXA4G3MSVcjs = require('./chunk-XA4G3MSV.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkM3REM2FUcjs = require('./chunk-M3REM2FU.cjs');
|
|
@@ -52,7 +52,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
52
52
|
let config = result.config;
|
|
53
53
|
const configFile = result.configFile;
|
|
54
54
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
55
|
-
|
|
55
|
+
_chunkXA4G3MSVcjs.writeTrace.call(void 0,
|
|
56
56
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
57
57
|
{
|
|
58
58
|
logLevel: "all"
|
|
@@ -68,7 +68,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
68
68
|
for (const result2 of results) {
|
|
69
69
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
70
70
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
71
|
-
|
|
71
|
+
_chunkXA4G3MSVcjs.writeTrace.call(void 0,
|
|
72
72
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
73
73
|
{
|
|
74
74
|
logLevel: "all"
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZTCEXE7Tcjs = require('../chunk-ZTCEXE7T.cjs');
|
|
5
5
|
require('../chunk-3COHMHPU.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-GJ7QM6FN.cjs');
|
|
7
7
|
require('../chunk-DQT6QJRQ.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-2LK4ZGLW.cjs');
|
|
9
9
|
require('../chunk-J7BFGUIX.cjs');
|
|
10
10
|
require('../chunk-JMI7BRL7.cjs');
|
|
11
11
|
require('../chunk-MBEJXPRQ.cjs');
|
|
12
12
|
require('../chunk-NOTWBXXM.cjs');
|
|
13
13
|
require('../chunk-N3UX6L7X.cjs');
|
|
14
14
|
require('../chunk-7PV6L7I7.cjs');
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
17
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-3235YC2J.cjs');
|
|
16
|
+
require('../chunk-XA4G3MSV.cjs');
|
|
17
|
+
require('../chunk-YGJGYNZL.cjs');
|
|
18
18
|
require('../chunk-LOY6ICHZ.cjs');
|
|
19
19
|
require('../chunk-WBQ4VS7E.cjs');
|
|
20
20
|
require('../chunk-DTGT4OI3.cjs');
|
|
@@ -25,4 +25,4 @@ require('../chunk-IRCFHYKZ.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.getConfigFile =
|
|
28
|
+
exports.getConfigFile = _chunkZTCEXE7Tcjs.getConfigFile; exports.getConfigFileByName = _chunkZTCEXE7Tcjs.getConfigFileByName;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile,
|
|
3
3
|
getConfigFileByName
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NYDB5GIZ.js";
|
|
5
5
|
import "../chunk-UKGRDKIH.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-X56PD6LB.js";
|
|
7
7
|
import "../chunk-6RVIJKY3.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-BTZVY4J2.js";
|
|
9
9
|
import "../chunk-ZVT775K3.js";
|
|
10
10
|
import "../chunk-WYQYWPLE.js";
|
|
11
11
|
import "../chunk-5BZL5JNY.js";
|
|
12
12
|
import "../chunk-SZXSPLS6.js";
|
|
13
13
|
import "../chunk-6JBGUE4A.js";
|
|
14
14
|
import "../chunk-RRKB32OH.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-TTT5G3NU.js";
|
|
16
|
+
import "../chunk-EK7IXIHA.js";
|
|
17
|
+
import "../chunk-3TO7MEJT.js";
|
|
18
18
|
import "../chunk-HVVJHTFS.js";
|
|
19
19
|
import "../chunk-LM2UMGYA.js";
|
|
20
20
|
import "../chunk-G2MK47WL.js";
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZTCEXE7Tcjs = require('../chunk-ZTCEXE7T.cjs');
|
|
6
6
|
require('../chunk-3COHMHPU.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-GJ7QM6FN.cjs');
|
|
8
8
|
require('../chunk-DQT6QJRQ.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-2LK4ZGLW.cjs');
|
|
10
10
|
require('../chunk-J7BFGUIX.cjs');
|
|
11
11
|
require('../chunk-JMI7BRL7.cjs');
|
|
12
12
|
require('../chunk-MBEJXPRQ.cjs');
|
|
13
13
|
require('../chunk-NOTWBXXM.cjs');
|
|
14
14
|
require('../chunk-N3UX6L7X.cjs');
|
|
15
15
|
require('../chunk-7PV6L7I7.cjs');
|
|
16
|
-
require('../chunk-
|
|
17
|
-
require('../chunk-
|
|
18
|
-
require('../chunk-
|
|
16
|
+
require('../chunk-3235YC2J.cjs');
|
|
17
|
+
require('../chunk-XA4G3MSV.cjs');
|
|
18
|
+
require('../chunk-YGJGYNZL.cjs');
|
|
19
19
|
require('../chunk-LOY6ICHZ.cjs');
|
|
20
20
|
require('../chunk-WBQ4VS7E.cjs');
|
|
21
21
|
require('../chunk-DTGT4OI3.cjs');
|
|
@@ -26,4 +26,4 @@ require('../chunk-IRCFHYKZ.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.getConfigFile =
|
|
29
|
+
exports.getConfigFile = _chunkZTCEXE7Tcjs.getConfigFile; exports.getConfigFileByName = _chunkZTCEXE7Tcjs.getConfigFileByName;
|
|
@@ -2,20 +2,20 @@ import "../chunk-2AVLCXLT.js";
|
|
|
2
2
|
import {
|
|
3
3
|
getConfigFile,
|
|
4
4
|
getConfigFileByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-NYDB5GIZ.js";
|
|
6
6
|
import "../chunk-UKGRDKIH.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-X56PD6LB.js";
|
|
8
8
|
import "../chunk-6RVIJKY3.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-BTZVY4J2.js";
|
|
10
10
|
import "../chunk-ZVT775K3.js";
|
|
11
11
|
import "../chunk-WYQYWPLE.js";
|
|
12
12
|
import "../chunk-5BZL5JNY.js";
|
|
13
13
|
import "../chunk-SZXSPLS6.js";
|
|
14
14
|
import "../chunk-6JBGUE4A.js";
|
|
15
15
|
import "../chunk-RRKB32OH.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-TTT5G3NU.js";
|
|
17
|
+
import "../chunk-EK7IXIHA.js";
|
|
18
|
+
import "../chunk-3TO7MEJT.js";
|
|
19
19
|
import "../chunk-HVVJHTFS.js";
|
|
20
20
|
import "../chunk-LM2UMGYA.js";
|
|
21
21
|
import "../chunk-G2MK47WL.js";
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkPQATN7O6cjs = require('./chunk-PQATN7O6.cjs');
|
|
7
|
+
require('./chunk-ZTCEXE7T.cjs');
|
|
8
8
|
require('./chunk-3COHMHPU.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-GJ7QM6FN.cjs');
|
|
10
10
|
require('./chunk-DQT6QJRQ.cjs');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-2LK4ZGLW.cjs');
|
|
12
12
|
require('./chunk-J7BFGUIX.cjs');
|
|
13
13
|
require('./chunk-JMI7BRL7.cjs');
|
|
14
14
|
require('./chunk-MBEJXPRQ.cjs');
|
|
15
15
|
require('./chunk-NOTWBXXM.cjs');
|
|
16
16
|
require('./chunk-N3UX6L7X.cjs');
|
|
17
17
|
require('./chunk-7PV6L7I7.cjs');
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-3235YC2J.cjs');
|
|
19
|
+
require('./chunk-XA4G3MSV.cjs');
|
|
20
|
+
require('./chunk-YGJGYNZL.cjs');
|
|
21
21
|
require('./chunk-LOY6ICHZ.cjs');
|
|
22
22
|
require('./chunk-WBQ4VS7E.cjs');
|
|
23
23
|
require('./chunk-DTGT4OI3.cjs');
|
|
@@ -32,4 +32,4 @@ require('./chunk-IRCFHYKZ.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
exports.createConfigExtension =
|
|
35
|
+
exports.createConfigExtension = _chunkPQATN7O6cjs.createConfigExtension; exports.createStormWorkspaceConfig = _chunkPQATN7O6cjs.createStormWorkspaceConfig; exports.loadStormWorkspaceConfig = _chunkPQATN7O6cjs.loadStormWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkPQATN7O6cjs.tryLoadStormWorkspaceConfig;
|