@storm-software/config-tools 1.188.77 → 1.188.78
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/bin/config.cjs +3 -3
- package/bin/config.js +3 -3
- package/dist/{chunk-ODZFMPTW.js → chunk-5FDFULI2.js} +1 -1
- package/dist/{chunk-GHFENILR.cjs → chunk-7F76SOPR.cjs} +2 -2
- package/dist/{chunk-ALARZAJQ.cjs → chunk-BT44T3KG.cjs} +10 -10
- package/dist/{chunk-ZCFECSDH.js → chunk-BYNOY7M3.js} +1 -1
- package/dist/{chunk-BQLCBDR6.js → chunk-FACWP24N.js} +1 -1
- package/dist/{chunk-QDUNMWAE.js → chunk-GJ37HP62.js} +2 -2
- package/dist/{chunk-LMHBDNQR.cjs → chunk-HHZPYZKT.cjs} +9 -9
- package/dist/{chunk-BMTJACKJ.js → chunk-HZ5JAJNT.js} +1 -1
- package/dist/{chunk-NU257TQ7.cjs → chunk-LAFMHWTA.cjs} +3 -3
- package/dist/{chunk-A6A2A5EK.cjs → chunk-MLSFIA7Z.cjs} +3 -3
- package/dist/{chunk-WBQ4VS7E.cjs → chunk-P2B65AEG.cjs} +3 -3
- package/dist/{chunk-VIHD65EW.js → chunk-Q275TQJA.js} +1 -1
- package/dist/{chunk-LR6U6OBW.cjs → chunk-T7RQYPBE.cjs} +9 -9
- package/dist/{chunk-N3LK3W3T.cjs → chunk-TOD624DK.cjs} +9 -9
- package/dist/{chunk-LM2UMGYA.js → chunk-WCCSFJKP.js} +3 -3
- package/dist/{chunk-YHW325ID.js → chunk-Y5CUPLGH.js} +1 -1
- 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 +9 -9
- package/dist/index.js +8 -8
- package/dist/logger/console-icons.cjs +2 -2
- package/dist/logger/console-icons.js +1 -1
- 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/index.cjs +6 -6
- package/dist/utilities/index.js +5 -5
- 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 +2 -2
package/bin/config.cjs
CHANGED
|
@@ -159,12 +159,12 @@ function isUnicodeSupported() {
|
|
|
159
159
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
160
160
|
var CONSOLE_ICONS = {
|
|
161
161
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
162
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
162
|
+
[LogLevelLabel.FATAL]: useIcon("\u2620", "\xD7"),
|
|
163
163
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
164
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
164
|
+
[LogLevelLabel.INFO]: useIcon("\u{1F6C8}", "i"),
|
|
165
165
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
166
166
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
167
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
167
|
+
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
168
168
|
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
169
169
|
};
|
|
170
170
|
|
package/bin/config.js
CHANGED
|
@@ -126,12 +126,12 @@ function isUnicodeSupported() {
|
|
|
126
126
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
127
127
|
var CONSOLE_ICONS = {
|
|
128
128
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
129
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
129
|
+
[LogLevelLabel.FATAL]: useIcon("\u2620", "\xD7"),
|
|
130
130
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
131
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
131
|
+
[LogLevelLabel.INFO]: useIcon("\u{1F6C8}", "i"),
|
|
132
132
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
133
133
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
134
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
134
|
+
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
135
135
|
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
136
136
|
};
|
|
137
137
|
|
|
@@ -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 _chunkT7RQYPBEcjs = require('./chunk-T7RQYPBE.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
|
+
_chunkT7RQYPBEcjs.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,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 _chunkMLSFIA7Zcjs = require('./chunk-MLSFIA7Z.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkT7RQYPBEcjs = require('./chunk-T7RQYPBE.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkY4QTE6AKcjs = require('./chunk-Y4QTE6AK.cjs');
|
|
@@ -38,10 +38,10 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
38
38
|
_workspaceRoot = _chunk3CNCDDWZcjs.findWorkspaceRoot.call(void 0, );
|
|
39
39
|
}
|
|
40
40
|
const configEnv = _chunkI6JQJR5Wcjs.getConfigEnv.call(void 0, );
|
|
41
|
-
const configFile = await
|
|
41
|
+
const configFile = await _chunkMLSFIA7Zcjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
42
42
|
if (!configFile) {
|
|
43
43
|
if (!skipLogs) {
|
|
44
|
-
|
|
44
|
+
_chunkT7RQYPBEcjs.writeWarning.call(void 0,
|
|
45
45
|
"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",
|
|
46
46
|
{ logLevel: "all" }
|
|
47
47
|
);
|
|
@@ -68,7 +68,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
68
68
|
throw new Error(
|
|
69
69
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _3 => _3.message]) ? `: ${error.message}` : ""}
|
|
70
70
|
|
|
71
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
71
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkT7RQYPBEcjs.formatLogMessage.call(void 0,
|
|
72
72
|
configInput
|
|
73
73
|
)}`,
|
|
74
74
|
{
|
|
@@ -113,9 +113,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
113
113
|
);
|
|
114
114
|
_chunkY4QTE6AKcjs.setConfigEnv.call(void 0, config);
|
|
115
115
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
116
|
-
|
|
116
|
+
_chunkT7RQYPBEcjs.writeTrace.call(void 0,
|
|
117
117
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
118
|
-
${
|
|
118
|
+
${_chunkT7RQYPBEcjs.formatLogMessage.call(void 0, config)}`,
|
|
119
119
|
config
|
|
120
120
|
);
|
|
121
121
|
}
|
|
@@ -135,16 +135,16 @@ var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefa
|
|
|
135
135
|
}
|
|
136
136
|
_chunkY4QTE6AKcjs.setConfigEnv.call(void 0, config);
|
|
137
137
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
138
|
-
|
|
138
|
+
_chunkT7RQYPBEcjs.writeTrace.call(void 0,
|
|
139
139
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
140
|
-
${
|
|
140
|
+
${_chunkT7RQYPBEcjs.formatLogMessage.call(void 0, config)}`,
|
|
141
141
|
config
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
144
|
return config;
|
|
145
145
|
} catch (error) {
|
|
146
146
|
if (!skipLogs) {
|
|
147
|
-
|
|
147
|
+
_chunkT7RQYPBEcjs.writeWarning.call(void 0,
|
|
148
148
|
`\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
|
|
149
149
|
{ logLevel: "all" }
|
|
150
150
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y5CUPLGH.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-HZ5JAJNT.js";
|
|
16
16
|
import {
|
|
17
17
|
setConfigEnv
|
|
18
18
|
} from "./chunk-4XFFB6C2.js";
|
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkT7RQYPBEcjs = require('./chunk-T7RQYPBE.cjs');
|
|
7
7
|
|
|
8
8
|
// src/utilities/process-handler.ts
|
|
9
9
|
var exitWithError = (config) => {
|
|
10
|
-
|
|
10
|
+
_chunkT7RQYPBEcjs.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
|
+
_chunkT7RQYPBEcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
|
|
15
15
|
process.exit(0);
|
|
16
16
|
};
|
|
17
17
|
var handleProcess = (config) => {
|
|
18
|
-
|
|
18
|
+
_chunkT7RQYPBEcjs.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
|
+
_chunkT7RQYPBEcjs.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
|
+
_chunkT7RQYPBEcjs.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
|
+
_chunkT7RQYPBEcjs.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
|
+
_chunkT7RQYPBEcjs.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
|
+
_chunkT7RQYPBEcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
47
47
|
exitWithError(config);
|
|
48
48
|
});
|
|
49
49
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBT44T3KGcjs = require('./chunk-BT44T3KG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
|
|
8
8
|
|
|
9
9
|
// src/get-config.ts
|
|
10
10
|
function getConfig(workspaceRoot, skipLogs = false) {
|
|
11
|
-
return
|
|
11
|
+
return _chunkBT44T3KGcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
|
|
12
12
|
}
|
|
13
13
|
function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
14
14
|
let workspaceRoot = options.workspaceRoot;
|
|
@@ -23,7 +23,7 @@ async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
|
|
|
23
23
|
if (!workspaceRoot) {
|
|
24
24
|
workspaceRoot = _chunk3CNCDDWZcjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return _chunkBT44T3KGcjs.tryLoadStormWorkspaceConfig.call(void 0,
|
|
27
27
|
workspaceRoot,
|
|
28
28
|
skipLogs,
|
|
29
29
|
options.useDefault
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkT7RQYPBEcjs = require('./chunk-T7RQYPBE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkBDATZ3UBcjs = require('./chunk-BDATZ3UB.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
|
+
_chunkT7RQYPBEcjs.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
|
+
_chunkT7RQYPBEcjs.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"
|
|
@@ -9,12 +9,12 @@ var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
|
|
|
9
9
|
var useIcon = (c, fallback) => _chunkDTGT4OI3cjs.isUnicodeSupported.call(void 0, ) ? c : fallback;
|
|
10
10
|
var CONSOLE_ICONS = {
|
|
11
11
|
[_chunkIRCFHYKZcjs.LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
12
|
-
[_chunkIRCFHYKZcjs.LogLevelLabel.FATAL]: useIcon("\
|
|
12
|
+
[_chunkIRCFHYKZcjs.LogLevelLabel.FATAL]: useIcon("\u2620", "\xD7"),
|
|
13
13
|
[_chunkIRCFHYKZcjs.LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
14
|
-
[_chunkIRCFHYKZcjs.LogLevelLabel.INFO]: useIcon("\
|
|
14
|
+
[_chunkIRCFHYKZcjs.LogLevelLabel.INFO]: useIcon("\u{1F6C8}", "i"),
|
|
15
15
|
[_chunkIRCFHYKZcjs.LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
16
16
|
[_chunkIRCFHYKZcjs.LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
17
|
-
[_chunkIRCFHYKZcjs.LogLevelLabel.TRACE]: useIcon("\
|
|
17
|
+
[_chunkIRCFHYKZcjs.LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
18
18
|
[_chunkIRCFHYKZcjs.LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -6,7 +6,7 @@ var _chunkIKP3QKCZcjs = require('./chunk-IKP3QKCZ.cjs');
|
|
|
6
6
|
var _chunkLOY6ICHZcjs = require('./chunk-LOY6ICHZ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkP2B65AEGcjs = require('./chunk-P2B65AEG.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkBN6MEGGYcjs = require('./chunk-BN6MEGGY.cjs');
|
|
@@ -31,7 +31,7 @@ var getLogFn = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO, config = {}, _chalk
|
|
|
31
31
|
return (message) => {
|
|
32
32
|
console.error(
|
|
33
33
|
`
|
|
34
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.fatal)))(`[${
|
|
34
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.fatal)))(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
35
35
|
`
|
|
36
36
|
);
|
|
37
37
|
};
|
|
@@ -40,7 +40,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
40
40
|
return (message) => {
|
|
41
41
|
console.error(
|
|
42
42
|
`
|
|
43
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.danger)))(`[${
|
|
43
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.danger)))(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
44
44
|
`
|
|
45
45
|
);
|
|
46
46
|
};
|
|
@@ -49,7 +49,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
49
49
|
return (message) => {
|
|
50
50
|
console.warn(
|
|
51
51
|
`
|
|
52
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.warning)))(`[${
|
|
52
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.warning)))(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
53
53
|
`
|
|
54
54
|
);
|
|
55
55
|
};
|
|
@@ -58,7 +58,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
58
58
|
return (message) => {
|
|
59
59
|
console.info(
|
|
60
60
|
`
|
|
61
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.success)))(`[${
|
|
61
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.success)))(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
62
62
|
`
|
|
63
63
|
);
|
|
64
64
|
};
|
|
@@ -67,7 +67,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
67
67
|
return (message) => {
|
|
68
68
|
console.info(
|
|
69
69
|
`
|
|
70
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${
|
|
70
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.info)))(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
71
71
|
`
|
|
72
72
|
);
|
|
73
73
|
};
|
|
@@ -76,7 +76,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
76
76
|
return (message) => {
|
|
77
77
|
console.debug(
|
|
78
78
|
`
|
|
79
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.debug, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.debug)))(`[${
|
|
79
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.debug, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.debug)))(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
80
80
|
`
|
|
81
81
|
);
|
|
82
82
|
};
|
|
@@ -85,7 +85,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_n
|
|
|
85
85
|
return (message) => {
|
|
86
86
|
console.debug(
|
|
87
87
|
`
|
|
88
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex("#bbbbbb")(`[${
|
|
88
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex("#bbbbbb")(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
89
89
|
`
|
|
90
90
|
);
|
|
91
91
|
};
|
|
@@ -93,7 +93,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex("#
|
|
|
93
93
|
return (message) => {
|
|
94
94
|
console.log(
|
|
95
95
|
`
|
|
96
|
-
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.brand)))(`[${
|
|
96
|
+
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( _chunkIKP3QKCZcjs.DEFAULT_COLOR_CONFIG.dark.brand)))(`[${_chunkP2B65AEGcjs.CONSOLE_ICONS[_chunkIRCFHYKZcjs.LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
97
97
|
`
|
|
98
98
|
);
|
|
99
99
|
};
|
|
@@ -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 _chunkT7RQYPBEcjs = require('./chunk-T7RQYPBE.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 = _chunkT7RQYPBEcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.FATAL, config, _chalk2.default);
|
|
13
|
+
const writeError = _chunkT7RQYPBEcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.ERROR, config, _chalk2.default);
|
|
14
|
+
const writeWarning = _chunkT7RQYPBEcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.WARN, config, _chalk2.default);
|
|
15
|
+
const writeInfo = _chunkT7RQYPBEcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.INFO, config, _chalk2.default);
|
|
16
|
+
const writeSuccess = _chunkT7RQYPBEcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.SUCCESS, config, _chalk2.default);
|
|
17
|
+
const writeDebug = _chunkT7RQYPBEcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.DEBUG, config, _chalk2.default);
|
|
18
|
+
const writeTrace = _chunkT7RQYPBEcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.TRACE, 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: _chunkT7RQYPBEcjs.getStopwatch
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
10
10
|
var CONSOLE_ICONS = {
|
|
11
11
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
12
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
12
|
+
[LogLevelLabel.FATAL]: useIcon("\u2620", "\xD7"),
|
|
13
13
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
14
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
14
|
+
[LogLevelLabel.INFO]: useIcon("\u{1F6C8}", "i"),
|
|
15
15
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
16
16
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
17
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
17
|
+
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
18
18
|
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMLSFIA7Zcjs = require('../chunk-MLSFIA7Z.cjs');
|
|
5
5
|
require('../chunk-3COHMHPU.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-HHZPYZKT.cjs');
|
|
7
7
|
require('../chunk-6Y623TCS.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-7F76SOPR.cjs');
|
|
9
9
|
require('../chunk-EMO3BY53.cjs');
|
|
10
10
|
require('../chunk-2WBD2G3E.cjs');
|
|
11
11
|
require('../chunk-CFXT4ZAW.cjs');
|
|
12
12
|
require('../chunk-3CNCDDWZ.cjs');
|
|
13
13
|
require('../chunk-NJFLUTGH.cjs');
|
|
14
14
|
require('../chunk-7PV6L7I7.cjs');
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-TOD624DK.cjs');
|
|
16
|
+
require('../chunk-T7RQYPBE.cjs');
|
|
17
17
|
require('../chunk-IKP3QKCZ.cjs');
|
|
18
18
|
require('../chunk-LOY6ICHZ.cjs');
|
|
19
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-P2B65AEG.cjs');
|
|
20
20
|
require('../chunk-DTGT4OI3.cjs');
|
|
21
21
|
require('../chunk-BN6MEGGY.cjs');
|
|
22
22
|
require('../chunk-BDATZ3UB.cjs');
|
|
@@ -25,4 +25,4 @@ require('../chunk-IRCFHYKZ.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.getConfigFile =
|
|
28
|
+
exports.getConfigFile = _chunkMLSFIA7Zcjs.getConfigFile; exports.getConfigFileByName = _chunkMLSFIA7Zcjs.getConfigFileByName;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile,
|
|
3
3
|
getConfigFileByName
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-Y5CUPLGH.js";
|
|
5
5
|
import "../chunk-UKGRDKIH.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-Q275TQJA.js";
|
|
7
7
|
import "../chunk-EENQN6N2.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-5FDFULI2.js";
|
|
9
9
|
import "../chunk-XEHBJ73S.js";
|
|
10
10
|
import "../chunk-KSMN3HSC.js";
|
|
11
11
|
import "../chunk-RGET2UQV.js";
|
|
12
12
|
import "../chunk-LF3SAK2O.js";
|
|
13
13
|
import "../chunk-RUKM6FCF.js";
|
|
14
14
|
import "../chunk-RRKB32OH.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-BYNOY7M3.js";
|
|
16
|
+
import "../chunk-HZ5JAJNT.js";
|
|
17
17
|
import "../chunk-DJB7XLHA.js";
|
|
18
18
|
import "../chunk-HVVJHTFS.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-WCCSFJKP.js";
|
|
20
20
|
import "../chunk-G2MK47WL.js";
|
|
21
21
|
import "../chunk-CZ4IE2QN.js";
|
|
22
22
|
import "../chunk-V3GMJ4TX.js";
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMLSFIA7Zcjs = require('../chunk-MLSFIA7Z.cjs');
|
|
6
6
|
require('../chunk-3COHMHPU.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-HHZPYZKT.cjs');
|
|
8
8
|
require('../chunk-6Y623TCS.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-7F76SOPR.cjs');
|
|
10
10
|
require('../chunk-EMO3BY53.cjs');
|
|
11
11
|
require('../chunk-2WBD2G3E.cjs');
|
|
12
12
|
require('../chunk-CFXT4ZAW.cjs');
|
|
13
13
|
require('../chunk-3CNCDDWZ.cjs');
|
|
14
14
|
require('../chunk-NJFLUTGH.cjs');
|
|
15
15
|
require('../chunk-7PV6L7I7.cjs');
|
|
16
|
-
require('../chunk-
|
|
17
|
-
require('../chunk-
|
|
16
|
+
require('../chunk-TOD624DK.cjs');
|
|
17
|
+
require('../chunk-T7RQYPBE.cjs');
|
|
18
18
|
require('../chunk-IKP3QKCZ.cjs');
|
|
19
19
|
require('../chunk-LOY6ICHZ.cjs');
|
|
20
|
-
require('../chunk-
|
|
20
|
+
require('../chunk-P2B65AEG.cjs');
|
|
21
21
|
require('../chunk-DTGT4OI3.cjs');
|
|
22
22
|
require('../chunk-BN6MEGGY.cjs');
|
|
23
23
|
require('../chunk-BDATZ3UB.cjs');
|
|
@@ -26,4 +26,4 @@ require('../chunk-IRCFHYKZ.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.getConfigFile =
|
|
29
|
+
exports.getConfigFile = _chunkMLSFIA7Zcjs.getConfigFile; exports.getConfigFileByName = _chunkMLSFIA7Zcjs.getConfigFileByName;
|
|
@@ -2,22 +2,22 @@ import "../chunk-2AVLCXLT.js";
|
|
|
2
2
|
import {
|
|
3
3
|
getConfigFile,
|
|
4
4
|
getConfigFileByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Y5CUPLGH.js";
|
|
6
6
|
import "../chunk-UKGRDKIH.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-Q275TQJA.js";
|
|
8
8
|
import "../chunk-EENQN6N2.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-5FDFULI2.js";
|
|
10
10
|
import "../chunk-XEHBJ73S.js";
|
|
11
11
|
import "../chunk-KSMN3HSC.js";
|
|
12
12
|
import "../chunk-RGET2UQV.js";
|
|
13
13
|
import "../chunk-LF3SAK2O.js";
|
|
14
14
|
import "../chunk-RUKM6FCF.js";
|
|
15
15
|
import "../chunk-RRKB32OH.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-BYNOY7M3.js";
|
|
17
|
+
import "../chunk-HZ5JAJNT.js";
|
|
18
18
|
import "../chunk-DJB7XLHA.js";
|
|
19
19
|
import "../chunk-HVVJHTFS.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-WCCSFJKP.js";
|
|
21
21
|
import "../chunk-G2MK47WL.js";
|
|
22
22
|
import "../chunk-CZ4IE2QN.js";
|
|
23
23
|
import "../chunk-V3GMJ4TX.js";
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkBT44T3KGcjs = require('./chunk-BT44T3KG.cjs');
|
|
7
|
+
require('./chunk-MLSFIA7Z.cjs');
|
|
8
8
|
require('./chunk-3COHMHPU.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-HHZPYZKT.cjs');
|
|
10
10
|
require('./chunk-6Y623TCS.cjs');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-7F76SOPR.cjs');
|
|
12
12
|
require('./chunk-EMO3BY53.cjs');
|
|
13
13
|
require('./chunk-2WBD2G3E.cjs');
|
|
14
14
|
require('./chunk-CFXT4ZAW.cjs');
|
|
15
15
|
require('./chunk-3CNCDDWZ.cjs');
|
|
16
16
|
require('./chunk-NJFLUTGH.cjs');
|
|
17
17
|
require('./chunk-7PV6L7I7.cjs');
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-TOD624DK.cjs');
|
|
19
|
+
require('./chunk-T7RQYPBE.cjs');
|
|
20
20
|
require('./chunk-IKP3QKCZ.cjs');
|
|
21
21
|
require('./chunk-LOY6ICHZ.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-P2B65AEG.cjs');
|
|
23
23
|
require('./chunk-DTGT4OI3.cjs');
|
|
24
24
|
require('./chunk-BN6MEGGY.cjs');
|
|
25
25
|
require('./chunk-Y4QTE6AK.cjs');
|
|
@@ -32,4 +32,4 @@ require('./chunk-IRCFHYKZ.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
exports.createConfigExtension =
|
|
35
|
+
exports.createConfigExtension = _chunkBT44T3KGcjs.createConfigExtension; exports.createStormWorkspaceConfig = _chunkBT44T3KGcjs.createStormWorkspaceConfig; exports.loadStormWorkspaceConfig = _chunkBT44T3KGcjs.loadStormWorkspaceConfig; exports.tryLoadStormWorkspaceConfig = _chunkBT44T3KGcjs.tryLoadStormWorkspaceConfig;
|