@storm-software/config-tools 1.176.15 → 1.176.17
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/bin/config.cjs +8 -4
- package/bin/config.js +8 -4
- package/dist/{chunk-DVENQC2F.cjs → chunk-2IFNLLUL.cjs} +3 -3
- package/dist/{chunk-ZLQAA425.js → chunk-5DA26BV4.js} +1 -1
- package/dist/{chunk-CCW22JYO.js → chunk-7MBEC23I.js} +1 -1
- package/dist/{chunk-C77H5TXM.js → chunk-BEFQ5B4E.js} +1 -1
- package/dist/{chunk-RGAB6SWX.js → chunk-C5L7VSBR.js} +1 -1
- package/dist/{chunk-34OCDM7F.js → chunk-ENEFXS5D.js} +1 -1
- package/dist/{chunk-RP3PSEDA.cjs → chunk-EVOHJKUO.cjs} +2 -2
- package/dist/{chunk-P2KJ6EZO.js → chunk-HVVJHTFS.js} +8 -4
- package/dist/{chunk-EV4US3SK.cjs → chunk-INZ6GCPT.cjs} +2 -2
- package/dist/{chunk-EKVUGCY6.cjs → chunk-J2LN5PAX.cjs} +3 -3
- package/dist/{chunk-J7OMCZHA.cjs → chunk-LKCXHEY6.cjs} +10 -10
- package/dist/{chunk-CTYIEJ7C.cjs → chunk-LOY6ICHZ.cjs} +8 -4
- package/dist/{chunk-D3VDRI3F.js → chunk-UHSAPVE4.js} +1 -1
- package/dist/{chunk-2OGCM7UN.js → chunk-YEFBKZON.js} +2 -2
- package/dist/{chunk-NP5N65JN.cjs → chunk-YNDGTWLY.cjs} +9 -9
- package/dist/{chunk-BGR77S6Y.cjs → chunk-ZNODVZNQ.cjs} +9 -9
- 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/chalk.cjs +2 -2
- package/dist/logger/chalk.d.cts +4 -0
- package/dist/logger/chalk.d.ts +4 -0
- package/dist/logger/chalk.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 +3 -3
- package/dist/chunk-5IK56ULJ.cjs +0 -55
- package/dist/chunk-66NG3IMH.js +0 -131
- package/dist/chunk-6RRYSEZX.js +0 -82
- package/dist/chunk-7ETBV5GI.js +0 -47
- package/dist/chunk-B3GCBJWU.js +0 -358
- package/dist/chunk-CGZUIRJC.js +0 -154
- package/dist/chunk-COFLNWWF.cjs +0 -199
- package/dist/chunk-FN5I4YDC.js +0 -40
- package/dist/chunk-H23BFVJZ.js +0 -92
- package/dist/chunk-HDZDJM2A.cjs +0 -158
- package/dist/chunk-HGKCHX5V.js +0 -199
- package/dist/chunk-LAMW4XOL.cjs +0 -92
- package/dist/chunk-LFMYCBX4.cjs +0 -33
- package/dist/chunk-N3XDUGRP.cjs +0 -154
- package/dist/chunk-PQFFXKJC.js +0 -158
- package/dist/chunk-QSPWWF3B.cjs +0 -40
- package/dist/chunk-SNUKAQ73.js +0 -81
- package/dist/chunk-V34OFEO4.js +0 -39
- package/dist/chunk-V6LEGHTB.cjs +0 -47
- package/dist/chunk-WAGU7L62.cjs +0 -358
- package/dist/chunk-WELR3VV2.js +0 -33
- package/dist/chunk-XGDVC6AM.cjs +0 -39
- package/dist/chunk-XGOYEDHP.cjs +0 -131
- package/dist/chunk-Y73PCV6G.js +0 -55
- package/dist/chunk-ZAEOJ4ND.cjs +0 -82
- package/dist/chunk-ZGSL4YCI.cjs +0 -81
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 -->
|
package/bin/config.cjs
CHANGED
|
@@ -412,16 +412,20 @@ var import_chalk = __toESM(require("chalk"), 1);
|
|
|
412
412
|
var chalkDefault = {
|
|
413
413
|
hex: (_) => (message) => message,
|
|
414
414
|
bgHex: (_) => ({
|
|
415
|
-
whiteBright: (message) => message
|
|
415
|
+
whiteBright: (message) => message,
|
|
416
|
+
white: (message) => message
|
|
416
417
|
}),
|
|
418
|
+
white: (message) => message,
|
|
417
419
|
whiteBright: (message) => message,
|
|
418
420
|
gray: (message) => message,
|
|
419
421
|
bold: {
|
|
420
422
|
hex: (_) => (message) => message,
|
|
421
423
|
bgHex: (_) => ({
|
|
422
|
-
whiteBright: (message) => message
|
|
424
|
+
whiteBright: (message) => message,
|
|
425
|
+
white: (message) => message
|
|
423
426
|
}),
|
|
424
|
-
whiteBright: (message) => message
|
|
427
|
+
whiteBright: (message) => message,
|
|
428
|
+
white: (message) => message
|
|
425
429
|
},
|
|
426
430
|
dim: {
|
|
427
431
|
hex: (_) => (message) => message,
|
|
@@ -430,7 +434,7 @@ var chalkDefault = {
|
|
|
430
434
|
};
|
|
431
435
|
var getChalk = () => {
|
|
432
436
|
let _chalk = import_chalk.default;
|
|
433
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
437
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
|
|
434
438
|
_chalk = chalkDefault;
|
|
435
439
|
}
|
|
436
440
|
return _chalk;
|
package/bin/config.js
CHANGED
|
@@ -382,16 +382,20 @@ import chalk from "chalk";
|
|
|
382
382
|
var chalkDefault = {
|
|
383
383
|
hex: (_) => (message) => message,
|
|
384
384
|
bgHex: (_) => ({
|
|
385
|
-
whiteBright: (message) => message
|
|
385
|
+
whiteBright: (message) => message,
|
|
386
|
+
white: (message) => message
|
|
386
387
|
}),
|
|
388
|
+
white: (message) => message,
|
|
387
389
|
whiteBright: (message) => message,
|
|
388
390
|
gray: (message) => message,
|
|
389
391
|
bold: {
|
|
390
392
|
hex: (_) => (message) => message,
|
|
391
393
|
bgHex: (_) => ({
|
|
392
|
-
whiteBright: (message) => message
|
|
394
|
+
whiteBright: (message) => message,
|
|
395
|
+
white: (message) => message
|
|
393
396
|
}),
|
|
394
|
-
whiteBright: (message) => message
|
|
397
|
+
whiteBright: (message) => message,
|
|
398
|
+
white: (message) => message
|
|
395
399
|
},
|
|
396
400
|
dim: {
|
|
397
401
|
hex: (_) => (message) => message,
|
|
@@ -400,7 +404,7 @@ var chalkDefault = {
|
|
|
400
404
|
};
|
|
401
405
|
var getChalk = () => {
|
|
402
406
|
let _chalk = chalk;
|
|
403
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
407
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
|
|
404
408
|
_chalk = chalkDefault;
|
|
405
409
|
}
|
|
406
410
|
return _chalk;
|
|
@@ -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 _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 _chunkEVOHJKUOcjs = require('./chunk-EVOHJKUO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkU436743Ucjs = require('./chunk-U436743U.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
|
+
_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.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"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkKH5SONKWcjs = require('./chunk-KH5SONKW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLOY6ICHZcjs = require('./chunk-LOY6ICHZ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkWBQ4VS7Ecjs = require('./chunk-WBQ4VS7E.cjs');
|
|
@@ -19,7 +19,7 @@ var _chunk4PX5UVANcjs = require('./chunk-4PX5UVAN.cjs');
|
|
|
19
19
|
var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
|
|
20
20
|
|
|
21
21
|
// src/logger/console.ts
|
|
22
|
-
var getLogFn = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO, config = {}, _chalk =
|
|
22
|
+
var getLogFn = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO, config = {}, _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, )) => {
|
|
23
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]) ? _chunkKH5SONKWcjs.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"]]) : _chunkKH5SONKWcjs.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) {
|
|
@@ -3,16 +3,20 @@ import chalk from "chalk";
|
|
|
3
3
|
var chalkDefault = {
|
|
4
4
|
hex: (_) => (message) => message,
|
|
5
5
|
bgHex: (_) => ({
|
|
6
|
-
whiteBright: (message) => message
|
|
6
|
+
whiteBright: (message) => message,
|
|
7
|
+
white: (message) => message
|
|
7
8
|
}),
|
|
9
|
+
white: (message) => message,
|
|
8
10
|
whiteBright: (message) => message,
|
|
9
11
|
gray: (message) => message,
|
|
10
12
|
bold: {
|
|
11
13
|
hex: (_) => (message) => message,
|
|
12
14
|
bgHex: (_) => ({
|
|
13
|
-
whiteBright: (message) => message
|
|
15
|
+
whiteBright: (message) => message,
|
|
16
|
+
white: (message) => message
|
|
14
17
|
}),
|
|
15
|
-
whiteBright: (message) => message
|
|
18
|
+
whiteBright: (message) => message,
|
|
19
|
+
white: (message) => message
|
|
16
20
|
},
|
|
17
21
|
dim: {
|
|
18
22
|
hex: (_) => (message) => message,
|
|
@@ -21,7 +25,7 @@ var chalkDefault = {
|
|
|
21
25
|
};
|
|
22
26
|
var getChalk = () => {
|
|
23
27
|
let _chalk = chalk;
|
|
24
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
28
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
|
|
25
29
|
_chalk = chalkDefault;
|
|
26
30
|
}
|
|
27
31
|
return _chalk;
|
|
@@ -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 _chunkEVOHJKUOcjs = require('./chunk-EVOHJKUO.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
|
+
_chunkEVOHJKUOcjs.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,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkLKCXHEY6cjs = require('./chunk-LKCXHEY6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkU436743Ucjs = require('./chunk-U436743U.cjs');
|
|
8
8
|
|
|
9
9
|
// src/get-config.ts
|
|
10
10
|
var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
11
|
-
return
|
|
11
|
+
return _chunkLKCXHEY6cjs.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 = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, options.cwd);
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return _chunkLKCXHEY6cjs.tryLoadStormWorkspaceConfig.call(void 0,
|
|
27
27
|
workspaceRoot,
|
|
28
28
|
skipLogs,
|
|
29
29
|
options.useDefault
|
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunk2IFNLLULcjs = require('./chunk-2IFNLLUL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkEVOHJKUOcjs = require('./chunk-EVOHJKUO.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -34,10 +34,10 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
34
34
|
_workspaceRoot = _chunkU436743Ucjs.findWorkspaceRoot.call(void 0, );
|
|
35
35
|
}
|
|
36
36
|
const configEnv = _chunkQGASWRUNcjs.getConfigEnv.call(void 0, );
|
|
37
|
-
const configFile = await
|
|
37
|
+
const configFile = await _chunk2IFNLLULcjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
38
38
|
if (!configFile) {
|
|
39
39
|
if (!skipLogs) {
|
|
40
|
-
|
|
40
|
+
_chunkEVOHJKUOcjs.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: ${_chunkEVOHJKUOcjs.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
|
_chunk7GRIRHUQcjs.setConfigEnv.call(void 0, config);
|
|
108
108
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
109
|
-
|
|
109
|
+
_chunkEVOHJKUOcjs.writeTrace.call(void 0,
|
|
110
110
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
111
|
-
${
|
|
111
|
+
${_chunkEVOHJKUOcjs.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
|
_chunk7GRIRHUQcjs.setConfigEnv.call(void 0, config);
|
|
130
130
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
131
|
-
|
|
131
|
+
_chunkEVOHJKUOcjs.writeTrace.call(void 0,
|
|
132
132
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
133
|
-
${
|
|
133
|
+
${_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.writeWarning.call(void 0,
|
|
141
141
|
`\u26A0\uFE0F Failed to load Storm Workspace configuration: ${error}`,
|
|
142
142
|
{ logLevel: "all" }
|
|
143
143
|
);
|
|
@@ -3,16 +3,20 @@ var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
|
3
3
|
var chalkDefault = {
|
|
4
4
|
hex: (_) => (message) => message,
|
|
5
5
|
bgHex: (_) => ({
|
|
6
|
-
whiteBright: (message) => message
|
|
6
|
+
whiteBright: (message) => message,
|
|
7
|
+
white: (message) => message
|
|
7
8
|
}),
|
|
9
|
+
white: (message) => message,
|
|
8
10
|
whiteBright: (message) => message,
|
|
9
11
|
gray: (message) => message,
|
|
10
12
|
bold: {
|
|
11
13
|
hex: (_) => (message) => message,
|
|
12
14
|
bgHex: (_) => ({
|
|
13
|
-
whiteBright: (message) => message
|
|
15
|
+
whiteBright: (message) => message,
|
|
16
|
+
white: (message) => message
|
|
14
17
|
}),
|
|
15
|
-
whiteBright: (message) => message
|
|
18
|
+
whiteBright: (message) => message,
|
|
19
|
+
white: (message) => message
|
|
16
20
|
},
|
|
17
21
|
dim: {
|
|
18
22
|
hex: (_) => (message) => message,
|
|
@@ -21,7 +25,7 @@ var chalkDefault = {
|
|
|
21
25
|
};
|
|
22
26
|
var getChalk = () => {
|
|
23
27
|
let _chalk = _chalk3.default;
|
|
24
|
-
if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
|
|
28
|
+
if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.white])) {
|
|
25
29
|
_chalk = chalkDefault;
|
|
26
30
|
}
|
|
27
31
|
return _chalk;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5DA26BV4.js";
|
|
4
4
|
import {
|
|
5
5
|
formatLogMessage,
|
|
6
6
|
writeTrace,
|
|
7
7
|
writeWarning
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C5L7VSBR.js";
|
|
9
9
|
import {
|
|
10
10
|
applyDefaultConfig,
|
|
11
11
|
getPackageJsonConfig
|
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEVOHJKUOcjs = require('./chunk-EVOHJKUO.cjs');
|
|
7
7
|
|
|
8
8
|
// src/utilities/process-handler.ts
|
|
9
9
|
var exitWithError = (config) => {
|
|
10
|
-
|
|
10
|
+
_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
|
|
15
15
|
process.exit(0);
|
|
16
16
|
};
|
|
17
17
|
var handleProcess = (config) => {
|
|
18
|
-
|
|
18
|
+
_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.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
|
+
_chunkEVOHJKUOcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
|
|
47
47
|
exitWithError(config);
|
|
48
48
|
});
|
|
49
49
|
};
|
|
@@ -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 _chunkEVOHJKUOcjs = require('./chunk-EVOHJKUO.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 = _chunkEVOHJKUOcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.FATAL, config, _chalk2.default);
|
|
13
|
+
const writeError = _chunkEVOHJKUOcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.ERROR, config, _chalk2.default);
|
|
14
|
+
const writeWarning = _chunkEVOHJKUOcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.WARN, config, _chalk2.default);
|
|
15
|
+
const writeInfo = _chunkEVOHJKUOcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.INFO, config, _chalk2.default);
|
|
16
|
+
const writeSuccess = _chunkEVOHJKUOcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.SUCCESS, config, _chalk2.default);
|
|
17
|
+
const writeDebug = _chunkEVOHJKUOcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.DEBUG, config, _chalk2.default);
|
|
18
|
+
const writeTrace = _chunkEVOHJKUOcjs.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: _chunkEVOHJKUOcjs.getStopwatch
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2IFNLLULcjs = require('../chunk-2IFNLLUL.cjs');
|
|
5
5
|
require('../chunk-3COHMHPU.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-YNDGTWLY.cjs');
|
|
7
7
|
require('../chunk-DQT6QJRQ.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-INZ6GCPT.cjs');
|
|
9
9
|
require('../chunk-QLJYCKMD.cjs');
|
|
10
10
|
require('../chunk-UCO4HZFN.cjs');
|
|
11
11
|
require('../chunk-JMI7BRL7.cjs');
|
|
12
12
|
require('../chunk-7PV6L7I7.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-ZNODVZNQ.cjs');
|
|
14
|
+
require('../chunk-EVOHJKUO.cjs');
|
|
15
15
|
require('../chunk-KH5SONKW.cjs');
|
|
16
16
|
require('../chunk-U436743U.cjs');
|
|
17
17
|
require('../chunk-N3UX6L7X.cjs');
|
|
18
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-LOY6ICHZ.cjs');
|
|
19
19
|
require('../chunk-WBQ4VS7E.cjs');
|
|
20
20
|
require('../chunk-DTGT4OI3.cjs');
|
|
21
21
|
require('../chunk-BN6MEGGY.cjs');
|
|
@@ -25,4 +25,4 @@ require('../chunk-IRCFHYKZ.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.getConfigFile =
|
|
28
|
+
exports.getConfigFile = _chunk2IFNLLULcjs.getConfigFile; exports.getConfigFileByName = _chunk2IFNLLULcjs.getConfigFileByName;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile,
|
|
3
3
|
getConfigFileByName
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5DA26BV4.js";
|
|
5
5
|
import "../chunk-UKGRDKIH.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-7MBEC23I.js";
|
|
7
7
|
import "../chunk-6RVIJKY3.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-ENEFXS5D.js";
|
|
9
9
|
import "../chunk-HYJVQZYZ.js";
|
|
10
10
|
import "../chunk-CL6NTH3D.js";
|
|
11
11
|
import "../chunk-WYQYWPLE.js";
|
|
12
12
|
import "../chunk-RRKB32OH.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-UHSAPVE4.js";
|
|
14
|
+
import "../chunk-C5L7VSBR.js";
|
|
15
15
|
import "../chunk-SHD7ZUSQ.js";
|
|
16
16
|
import "../chunk-PTHGOJU6.js";
|
|
17
17
|
import "../chunk-6JBGUE4A.js";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-HVVJHTFS.js";
|
|
19
19
|
import "../chunk-LM2UMGYA.js";
|
|
20
20
|
import "../chunk-G2MK47WL.js";
|
|
21
21
|
import "../chunk-CZ4IE2QN.js";
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2IFNLLULcjs = require('../chunk-2IFNLLUL.cjs');
|
|
6
6
|
require('../chunk-3COHMHPU.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-YNDGTWLY.cjs');
|
|
8
8
|
require('../chunk-DQT6QJRQ.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-INZ6GCPT.cjs');
|
|
10
10
|
require('../chunk-QLJYCKMD.cjs');
|
|
11
11
|
require('../chunk-UCO4HZFN.cjs');
|
|
12
12
|
require('../chunk-JMI7BRL7.cjs');
|
|
13
13
|
require('../chunk-7PV6L7I7.cjs');
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-ZNODVZNQ.cjs');
|
|
15
|
+
require('../chunk-EVOHJKUO.cjs');
|
|
16
16
|
require('../chunk-KH5SONKW.cjs');
|
|
17
17
|
require('../chunk-U436743U.cjs');
|
|
18
18
|
require('../chunk-N3UX6L7X.cjs');
|
|
19
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-LOY6ICHZ.cjs');
|
|
20
20
|
require('../chunk-WBQ4VS7E.cjs');
|
|
21
21
|
require('../chunk-DTGT4OI3.cjs');
|
|
22
22
|
require('../chunk-BN6MEGGY.cjs');
|
|
@@ -26,4 +26,4 @@ require('../chunk-IRCFHYKZ.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.getConfigFile =
|
|
29
|
+
exports.getConfigFile = _chunk2IFNLLULcjs.getConfigFile; exports.getConfigFileByName = _chunk2IFNLLULcjs.getConfigFileByName;
|
|
@@ -2,21 +2,21 @@ import "../chunk-2AVLCXLT.js";
|
|
|
2
2
|
import {
|
|
3
3
|
getConfigFile,
|
|
4
4
|
getConfigFileByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-5DA26BV4.js";
|
|
6
6
|
import "../chunk-UKGRDKIH.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7MBEC23I.js";
|
|
8
8
|
import "../chunk-6RVIJKY3.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-ENEFXS5D.js";
|
|
10
10
|
import "../chunk-HYJVQZYZ.js";
|
|
11
11
|
import "../chunk-CL6NTH3D.js";
|
|
12
12
|
import "../chunk-WYQYWPLE.js";
|
|
13
13
|
import "../chunk-RRKB32OH.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-UHSAPVE4.js";
|
|
15
|
+
import "../chunk-C5L7VSBR.js";
|
|
16
16
|
import "../chunk-SHD7ZUSQ.js";
|
|
17
17
|
import "../chunk-PTHGOJU6.js";
|
|
18
18
|
import "../chunk-6JBGUE4A.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-HVVJHTFS.js";
|
|
20
20
|
import "../chunk-LM2UMGYA.js";
|
|
21
21
|
import "../chunk-G2MK47WL.js";
|
|
22
22
|
import "../chunk-CZ4IE2QN.js";
|