@storm-software/config-tools 1.189.45 → 1.189.46
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 +2 -2
- package/bin/config.js +2 -2
- package/dist/{chunk-SKRN3T4M.js → chunk-3DBFYM32.js} +1 -1
- package/dist/{chunk-TEXP3QH5.js → chunk-5DQF4GNF.js} +2 -2
- package/dist/{chunk-2MKLDXCR.cjs → chunk-DLJF3QQS.cjs} +11 -11
- package/dist/{chunk-HVUY6B36.js → chunk-G4FBFCNL.js} +1 -1
- package/dist/{chunk-5GK5A26Z.js → chunk-JWLOTPPR.js} +1 -1
- package/dist/{chunk-QDKDWAXR.cjs → chunk-KJJNDXDT.cjs} +2 -2
- package/dist/{chunk-TMFTOZIF.cjs → chunk-L4YHJZ6Q.cjs} +2 -2
- package/dist/{chunk-42MF5U4W.cjs → chunk-M7ANCUGE.cjs} +10 -10
- package/dist/{chunk-JIQOUQGG.js → chunk-OKLRRII7.js} +2 -2
- package/dist/{chunk-L6OEQWIM.cjs → chunk-PWT57ER4.cjs} +3 -3
- package/dist/{chunk-N3MDR6PN.cjs → chunk-Q4XFXQVF.cjs} +9 -9
- package/dist/{chunk-5WXW2CMV.js → chunk-RLO6OMCM.js} +1 -1
- package/dist/{chunk-WHNMSMMA.cjs → chunk-UUIUK7TT.cjs} +3 -3
- package/dist/{chunk-JW6YJAGA.js → chunk-X6AAQM4H.js} +1 -1
- package/dist/{chunk-V5S4LLZX.js → chunk-XHJNCOIU.js} +1 -1
- package/dist/{chunk-7YFI7PKP.cjs → chunk-YWMI5JWG.cjs} +10 -10
- 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.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 +2 -2
- package/dist/utilities/colors.js +1 -1
- 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/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/config.cjs
CHANGED
|
@@ -86,7 +86,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
86
86
|
warning: "#e3b341",
|
|
87
87
|
danger: "#D8314A",
|
|
88
88
|
fatal: "#51070f",
|
|
89
|
-
performance: "#
|
|
89
|
+
performance: "#13c302",
|
|
90
90
|
link: "#3fa6ff",
|
|
91
91
|
positive: "#22c55e",
|
|
92
92
|
negative: "#dc2626",
|
|
@@ -104,7 +104,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
104
104
|
warning: "#f3d371",
|
|
105
105
|
danger: "#D8314A",
|
|
106
106
|
fatal: "#a40e26",
|
|
107
|
-
performance: "#
|
|
107
|
+
performance: "#80fd74",
|
|
108
108
|
link: "#3fa6ff",
|
|
109
109
|
positive: "#22c55e",
|
|
110
110
|
negative: "#dc2626",
|
package/bin/config.js
CHANGED
|
@@ -53,7 +53,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
53
53
|
warning: "#e3b341",
|
|
54
54
|
danger: "#D8314A",
|
|
55
55
|
fatal: "#51070f",
|
|
56
|
-
performance: "#
|
|
56
|
+
performance: "#13c302",
|
|
57
57
|
link: "#3fa6ff",
|
|
58
58
|
positive: "#22c55e",
|
|
59
59
|
negative: "#dc2626",
|
|
@@ -71,7 +71,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
71
71
|
warning: "#f3d371",
|
|
72
72
|
danger: "#D8314A",
|
|
73
73
|
fatal: "#a40e26",
|
|
74
|
-
performance: "#
|
|
74
|
+
performance: "#80fd74",
|
|
75
75
|
link: "#3fa6ff",
|
|
76
76
|
positive: "#22c55e",
|
|
77
77
|
negative: "#dc2626",
|
|
@@ -12,7 +12,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
12
12
|
warning: "#e3b341",
|
|
13
13
|
danger: "#D8314A",
|
|
14
14
|
fatal: "#51070f",
|
|
15
|
-
performance: "#
|
|
15
|
+
performance: "#13c302",
|
|
16
16
|
link: "#3fa6ff",
|
|
17
17
|
positive: "#22c55e",
|
|
18
18
|
negative: "#dc2626",
|
|
@@ -30,7 +30,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
30
30
|
warning: "#f3d371",
|
|
31
31
|
danger: "#D8314A",
|
|
32
32
|
fatal: "#a40e26",
|
|
33
|
-
performance: "#
|
|
33
|
+
performance: "#80fd74",
|
|
34
34
|
link: "#3fa6ff",
|
|
35
35
|
positive: "#22c55e",
|
|
36
36
|
negative: "#dc2626",
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkL4YHJZ6Qcjs = require('./chunk-L4YHJZ6Q.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkLOY6ICHZcjs = require('./chunk-LOY6ICHZ.cjs');
|
|
@@ -761,7 +761,7 @@ function formatDistanceToNow(date, options) {
|
|
|
761
761
|
|
|
762
762
|
// src/logger/console.ts
|
|
763
763
|
var getLogFn = (logLevel = _chunk7QBTVNMRcjs.LogLevel.INFO, config = {}, _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, )) => {
|
|
764
|
-
const colors = !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17.dark]) && !_optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19["base"]]) && !_optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) ?
|
|
764
|
+
const colors = !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17.dark]) && !_optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19["base"]]) && !_optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) ? _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"], 'optionalAccess', _27 => _27.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _28 => _28.colors, 'optionalAccess', _29 => _29["base"]]) ? _optionalChain([config, 'access', _30 => _30.colors, 'optionalAccess', _31 => _31["base"]]) : _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG;
|
|
765
765
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || _chunk7QBTVNMRcjs.LogLevelLabel.INFO;
|
|
766
766
|
if (logLevel > _chunkJWLDCEBZcjs.getLogLevel.call(void 0, configLogLevel) || logLevel <= _chunk7QBTVNMRcjs.LogLevel.SILENT || _chunkJWLDCEBZcjs.getLogLevel.call(void 0, configLogLevel) <= _chunk7QBTVNMRcjs.LogLevel.SILENT) {
|
|
767
767
|
return (_) => {
|
|
@@ -772,7 +772,7 @@ var getLogFn = (logLevel = _chunk7QBTVNMRcjs.LogLevel.INFO, config = {}, _chalk
|
|
|
772
772
|
console.error(
|
|
773
773
|
`
|
|
774
774
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
775
|
-
_nullishCoalesce(colors.fatal, () => (
|
|
775
|
+
_nullishCoalesce(colors.fatal, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.fatal))
|
|
776
776
|
)(
|
|
777
777
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.FATAL]} Fatal] `
|
|
778
778
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -785,7 +785,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
|
785
785
|
console.error(
|
|
786
786
|
`
|
|
787
787
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
788
|
-
_nullishCoalesce(colors.danger, () => (
|
|
788
|
+
_nullishCoalesce(colors.danger, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.danger))
|
|
789
789
|
)(
|
|
790
790
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.ERROR]} Error] `
|
|
791
791
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -798,7 +798,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
|
798
798
|
console.warn(
|
|
799
799
|
`
|
|
800
800
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
801
|
-
_nullishCoalesce(colors.warning, () => (
|
|
801
|
+
_nullishCoalesce(colors.warning, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.warning))
|
|
802
802
|
)(
|
|
803
803
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.WARN]} Warn] `
|
|
804
804
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -811,7 +811,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
|
811
811
|
console.info(
|
|
812
812
|
`
|
|
813
813
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
814
|
-
_nullishCoalesce(colors.success, () => (
|
|
814
|
+
_nullishCoalesce(colors.success, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.success))
|
|
815
815
|
)(
|
|
816
816
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.SUCCESS]} Success] `
|
|
817
817
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -824,7 +824,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
|
824
824
|
console.info(
|
|
825
825
|
`
|
|
826
826
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
827
|
-
_nullishCoalesce(colors.info, () => (
|
|
827
|
+
_nullishCoalesce(colors.info, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.info))
|
|
828
828
|
)(
|
|
829
829
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.INFO]} Info] `
|
|
830
830
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -837,7 +837,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
|
837
837
|
console.debug(
|
|
838
838
|
`
|
|
839
839
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
840
|
-
_nullishCoalesce(colors.performance, () => (
|
|
840
|
+
_nullishCoalesce(colors.performance, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.performance))
|
|
841
841
|
)(
|
|
842
842
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.PERFORMANCE]} Performance] `
|
|
843
843
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -850,7 +850,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
|
850
850
|
console.debug(
|
|
851
851
|
`
|
|
852
852
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
853
|
-
_nullishCoalesce(colors.debug, () => (
|
|
853
|
+
_nullishCoalesce(colors.debug, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.debug))
|
|
854
854
|
)(
|
|
855
855
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.DEBUG]} Debug] `
|
|
856
856
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -873,7 +873,7 @@ ${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex("#
|
|
|
873
873
|
console.log(
|
|
874
874
|
`
|
|
875
875
|
${_chalk.gray(_chunkBN6MEGGYcjs.formatTimestamp.call(void 0, ))} ${_chalk.hex(
|
|
876
|
-
_nullishCoalesce(colors.brand, () => (
|
|
876
|
+
_nullishCoalesce(colors.brand, () => ( _chunkL4YHJZ6Qcjs.DEFAULT_COLOR_CONFIG.dark.brand))
|
|
877
877
|
)(
|
|
878
878
|
`[${_chunkEC2KPWRGcjs.CONSOLE_ICONS[_chunk7QBTVNMRcjs.LogLevelLabel.ALL]} System] `
|
|
879
879
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
@@ -924,7 +924,7 @@ var _isFunction = (value) => {
|
|
|
924
924
|
return false;
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
-
var brandIcon = (config = {}, _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, )) => _chalk.hex(
|
|
927
|
+
var brandIcon = (config = {}, _chalk = _chunkLOY6ICHZcjs.getChalk.call(void 0, )) => _chalk.hex(_chunkL4YHJZ6Qcjs.getColor.call(void 0, "brand", config))("\u{1F5F2}");
|
|
928
928
|
|
|
929
929
|
|
|
930
930
|
|
|
@@ -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 _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.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
|
+
_chunkDLJF3QQScjs.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);
|
|
@@ -12,7 +12,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
12
12
|
warning: "#e3b341",
|
|
13
13
|
danger: "#D8314A",
|
|
14
14
|
fatal: "#51070f",
|
|
15
|
-
performance: "#
|
|
15
|
+
performance: "#13c302",
|
|
16
16
|
link: "#3fa6ff",
|
|
17
17
|
positive: "#22c55e",
|
|
18
18
|
negative: "#dc2626",
|
|
@@ -30,7 +30,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
30
30
|
warning: "#f3d371",
|
|
31
31
|
danger: "#D8314A",
|
|
32
32
|
fatal: "#a40e26",
|
|
33
|
-
performance: "#
|
|
33
|
+
performance: "#80fd74",
|
|
34
34
|
link: "#3fa6ff",
|
|
35
35
|
positive: "#22c55e",
|
|
36
36
|
negative: "#dc2626",
|
|
@@ -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 _chunkPWT57ER4cjs = require('./chunk-PWT57ER4.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 _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkB2CQPVVLcjs = require('./chunk-B2CQPVVL.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 = _chunkNHILCONIcjs.getConfigEnv.call(void 0, );
|
|
41
|
-
const configFile = await
|
|
41
|
+
const configFile = await _chunkPWT57ER4cjs.getConfigFile.call(void 0, _workspaceRoot);
|
|
42
42
|
if (!configFile) {
|
|
43
43
|
if (!skipLogs) {
|
|
44
|
-
|
|
44
|
+
_chunkDLJF3QQScjs.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: ${_chunkDLJF3QQScjs.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
|
_chunkB2CQPVVLcjs.setConfigEnv.call(void 0, config);
|
|
115
115
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
116
|
-
|
|
116
|
+
_chunkDLJF3QQScjs.writeTrace.call(void 0,
|
|
117
117
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
118
|
-
${
|
|
118
|
+
${_chunkDLJF3QQScjs.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
|
_chunkB2CQPVVLcjs.setConfigEnv.call(void 0, config);
|
|
137
137
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
138
|
-
|
|
138
|
+
_chunkDLJF3QQScjs.writeTrace.call(void 0,
|
|
139
139
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
140
|
-
${
|
|
140
|
+
${_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.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-G4FBFCNL.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-XHJNCOIU.js";
|
|
16
16
|
import {
|
|
17
17
|
setConfigEnv
|
|
18
18
|
} from "./chunk-SDSQ2HHF.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.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
|
+
_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.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,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.cjs');
|
|
7
7
|
|
|
8
8
|
// src/utilities/process-handler.ts
|
|
9
9
|
var exitWithError = (config) => {
|
|
10
|
-
|
|
10
|
+
_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
|
|
15
15
|
process.exit(0);
|
|
16
16
|
};
|
|
17
17
|
var handleProcess = (config) => {
|
|
18
|
-
|
|
18
|
+
_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.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
|
+
_chunkDLJF3QQScjs.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 _chunkM7ANCUGEcjs = require('./chunk-M7ANCUGE.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 _chunkM7ANCUGEcjs.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 _chunkM7ANCUGEcjs.tryLoadStormWorkspaceConfig.call(void 0,
|
|
27
27
|
workspaceRoot,
|
|
28
28
|
skipLogs,
|
|
29
29
|
options.useDefault
|
|
@@ -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 _chunkDLJF3QQScjs = require('./chunk-DLJF3QQS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk7QBTVNMRcjs = require('./chunk-7QBTVNMR.cjs');
|
|
@@ -9,14 +9,14 @@ var _chunk7QBTVNMRcjs = require('./chunk-7QBTVNMR.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 writePerformance =
|
|
19
|
-
const writeTrace =
|
|
12
|
+
const writeFatal = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.FATAL, config, _chalk2.default);
|
|
13
|
+
const writeError = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.ERROR, config, _chalk2.default);
|
|
14
|
+
const writeWarning = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.WARN, config, _chalk2.default);
|
|
15
|
+
const writeInfo = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.INFO, config, _chalk2.default);
|
|
16
|
+
const writeSuccess = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.SUCCESS, config, _chalk2.default);
|
|
17
|
+
const writeDebug = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.DEBUG, config, _chalk2.default);
|
|
18
|
+
const writePerformance = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.PERFORMANCE, config, _chalk2.default);
|
|
19
|
+
const writeTrace = _chunkDLJF3QQScjs.getLogFn.call(void 0, _chunk7QBTVNMRcjs.LogLevel.TRACE, config, _chalk2.default);
|
|
20
20
|
return {
|
|
21
21
|
fatal: writeFatal,
|
|
22
22
|
error: writeError,
|
|
@@ -26,7 +26,7 @@ async function createLogger(config) {
|
|
|
26
26
|
performance: writePerformance,
|
|
27
27
|
debug: writeDebug,
|
|
28
28
|
trace: writeTrace,
|
|
29
|
-
getStopwatch:
|
|
29
|
+
getStopwatch: _chunkDLJF3QQScjs.getStopwatch
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPWT57ER4cjs = require('../chunk-PWT57ER4.cjs');
|
|
5
5
|
require('../chunk-3COHMHPU.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-Q4XFXQVF.cjs');
|
|
7
7
|
require('../chunk-6Y623TCS.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-KJJNDXDT.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-
|
|
17
|
-
require('../chunk-
|
|
15
|
+
require('../chunk-YWMI5JWG.cjs');
|
|
16
|
+
require('../chunk-DLJF3QQS.cjs');
|
|
17
|
+
require('../chunk-L4YHJZ6Q.cjs');
|
|
18
18
|
require('../chunk-LOY6ICHZ.cjs');
|
|
19
19
|
require('../chunk-EC2KPWRG.cjs');
|
|
20
20
|
require('../chunk-DTGT4OI3.cjs');
|
|
@@ -25,4 +25,4 @@ require('../chunk-7QBTVNMR.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.getConfigFile =
|
|
28
|
+
exports.getConfigFile = _chunkPWT57ER4cjs.getConfigFile; exports.getConfigFileByName = _chunkPWT57ER4cjs.getConfigFileByName;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getConfigFile,
|
|
3
3
|
getConfigFileByName
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-G4FBFCNL.js";
|
|
5
5
|
import "../chunk-UKGRDKIH.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JWLOTPPR.js";
|
|
7
7
|
import "../chunk-EENQN6N2.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-RLO6OMCM.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-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-X6AAQM4H.js";
|
|
16
|
+
import "../chunk-XHJNCOIU.js";
|
|
17
|
+
import "../chunk-5DQF4GNF.js";
|
|
18
18
|
import "../chunk-HVVJHTFS.js";
|
|
19
19
|
import "../chunk-ZFNAUMQS.js";
|
|
20
20
|
import "../chunk-G2MK47WL.js";
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPWT57ER4cjs = require('../chunk-PWT57ER4.cjs');
|
|
6
6
|
require('../chunk-3COHMHPU.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-Q4XFXQVF.cjs');
|
|
8
8
|
require('../chunk-6Y623TCS.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-KJJNDXDT.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-
|
|
18
|
-
require('../chunk-
|
|
16
|
+
require('../chunk-YWMI5JWG.cjs');
|
|
17
|
+
require('../chunk-DLJF3QQS.cjs');
|
|
18
|
+
require('../chunk-L4YHJZ6Q.cjs');
|
|
19
19
|
require('../chunk-LOY6ICHZ.cjs');
|
|
20
20
|
require('../chunk-EC2KPWRG.cjs');
|
|
21
21
|
require('../chunk-DTGT4OI3.cjs');
|
|
@@ -26,4 +26,4 @@ require('../chunk-7QBTVNMR.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
exports.getConfigFile =
|
|
29
|
+
exports.getConfigFile = _chunkPWT57ER4cjs.getConfigFile; exports.getConfigFileByName = _chunkPWT57ER4cjs.getConfigFileByName;
|
|
@@ -2,20 +2,20 @@ import "../chunk-2AVLCXLT.js";
|
|
|
2
2
|
import {
|
|
3
3
|
getConfigFile,
|
|
4
4
|
getConfigFileByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-G4FBFCNL.js";
|
|
6
6
|
import "../chunk-UKGRDKIH.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-JWLOTPPR.js";
|
|
8
8
|
import "../chunk-EENQN6N2.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-RLO6OMCM.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-
|
|
18
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-X6AAQM4H.js";
|
|
17
|
+
import "../chunk-XHJNCOIU.js";
|
|
18
|
+
import "../chunk-5DQF4GNF.js";
|
|
19
19
|
import "../chunk-HVVJHTFS.js";
|
|
20
20
|
import "../chunk-ZFNAUMQS.js";
|
|
21
21
|
import "../chunk-G2MK47WL.js";
|