@storm-software/config-tools 1.189.40 → 1.189.41

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.
Files changed (77) hide show
  1. package/README.md +1 -1
  2. package/bin/config.cjs +31 -0
  3. package/bin/config.js +31 -0
  4. package/dist/{chunk-2YZ5KRRZ.cjs → chunk-2MKLDXCR.cjs} +59 -47
  5. package/dist/{chunk-Z6KNQQGD.cjs → chunk-42MF5U4W.cjs} +16 -16
  6. package/dist/{chunk-T4YVVO6G.js → chunk-5GK5A26Z.js} +1 -1
  7. package/dist/{chunk-7XZ53BLB.js → chunk-5WXW2CMV.js} +1 -1
  8. package/dist/{chunk-IRCFHYKZ.cjs → chunk-7QBTVNMR.cjs} +2 -0
  9. package/dist/chunk-7YFI7PKP.cjs +35 -0
  10. package/dist/{chunk-XT72Z7BW.js → chunk-A5JXMY6X.js} +3 -1
  11. package/dist/{chunk-Y4QTE6AK.cjs → chunk-B2CQPVVL.cjs} +10 -4
  12. package/dist/chunk-EC2KPWRG.cjs +24 -0
  13. package/dist/{chunk-ZFTN72CN.js → chunk-HVUY6B36.js} +1 -1
  14. package/dist/{chunk-VOEYKXJ6.js → chunk-JIQOUQGG.js} +4 -4
  15. package/dist/{chunk-WH6MLTFO.js → chunk-JW6YJAGA.js} +4 -2
  16. package/dist/chunk-JWLDCEBZ.cjs +70 -0
  17. package/dist/{chunk-IOQ5VDAA.cjs → chunk-L6OEQWIM.cjs} +3 -3
  18. package/dist/{chunk-GLF62BIP.cjs → chunk-N3MDR6PN.cjs} +9 -9
  19. package/dist/{chunk-I6JQJR5W.cjs → chunk-NHILCONI.cjs} +4 -2
  20. package/dist/{chunk-FIJZNJOM.cjs → chunk-QDKDWAXR.cjs} +2 -2
  21. package/dist/{chunk-POXTJ6GF.js → chunk-RALMUN5C.js} +2 -0
  22. package/dist/{chunk-4XFFB6C2.js → chunk-SDSQ2HHF.js} +8 -2
  23. package/dist/{chunk-T32OBFSH.js → chunk-SKRN3T4M.js} +1 -1
  24. package/dist/{chunk-K4CDYUQR.js → chunk-SXPH7ILL.js} +6 -1
  25. package/dist/{chunk-DJB7XLHA.js → chunk-TEXP3QH5.js} +2 -0
  26. package/dist/{chunk-IKP3QKCZ.cjs → chunk-TMFTOZIF.cjs} +2 -0
  27. package/dist/{chunk-SPHE3YEH.js → chunk-V5S4LLZX.js} +23 -11
  28. package/dist/{chunk-Q5Y5FFCH.cjs → chunk-WHNMSMMA.cjs} +3 -3
  29. package/dist/{chunk-AITAR5W5.js → chunk-ZFNAUMQS.js} +2 -1
  30. package/dist/config-file/get-config-file.cjs +10 -10
  31. package/dist/config-file/get-config-file.js +9 -9
  32. package/dist/config-file/index.cjs +10 -10
  33. package/dist/config-file/index.js +9 -9
  34. package/dist/create-storm-config.cjs +13 -13
  35. package/dist/create-storm-config.js +12 -12
  36. package/dist/env/get-env.cjs +4 -4
  37. package/dist/env/get-env.js +3 -3
  38. package/dist/env/index.cjs +5 -5
  39. package/dist/env/index.js +4 -4
  40. package/dist/env/set-env.cjs +4 -4
  41. package/dist/env/set-env.js +3 -3
  42. package/dist/get-config.cjs +14 -14
  43. package/dist/get-config.js +13 -13
  44. package/dist/index.cjs +16 -14
  45. package/dist/index.d.cts +1 -1
  46. package/dist/index.d.ts +1 -1
  47. package/dist/index.js +15 -13
  48. package/dist/logger/console-icons.cjs +3 -3
  49. package/dist/logger/console-icons.js +2 -2
  50. package/dist/logger/console.cjs +8 -6
  51. package/dist/logger/console.d.cts +8 -1
  52. package/dist/logger/console.d.ts +8 -1
  53. package/dist/logger/console.js +7 -5
  54. package/dist/logger/create-logger.cjs +7 -7
  55. package/dist/logger/create-logger.js +6 -6
  56. package/dist/logger/get-log-level.cjs +3 -3
  57. package/dist/logger/get-log-level.js +2 -2
  58. package/dist/logger/index.cjs +9 -7
  59. package/dist/logger/index.d.cts +1 -1
  60. package/dist/logger/index.d.ts +1 -1
  61. package/dist/logger/index.js +8 -6
  62. package/dist/types.cjs +2 -2
  63. package/dist/types.d.cts +5 -2
  64. package/dist/types.d.ts +5 -2
  65. package/dist/types.js +1 -1
  66. package/dist/utilities/colors.cjs +2 -2
  67. package/dist/utilities/colors.js +1 -1
  68. package/dist/utilities/index.cjs +9 -9
  69. package/dist/utilities/index.js +8 -8
  70. package/dist/utilities/process-handler.cjs +7 -7
  71. package/dist/utilities/process-handler.js +6 -6
  72. package/dist/utilities/toml.cjs +8 -8
  73. package/dist/utilities/toml.js +7 -7
  74. package/package.json +3 -3
  75. package/dist/chunk-4PX5UVAN.cjs +0 -65
  76. package/dist/chunk-D7M3EBCK.cjs +0 -33
  77. package/dist/chunk-NSUIDUD7.cjs +0 -23
@@ -3,10 +3,10 @@
3
3
  var _chunkBDATZ3UBcjs = require('./chunk-BDATZ3UB.cjs');
4
4
 
5
5
 
6
- var _chunk4PX5UVANcjs = require('./chunk-4PX5UVAN.cjs');
6
+ var _chunkJWLDCEBZcjs = require('./chunk-JWLDCEBZ.cjs');
7
7
 
8
8
 
9
- var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
9
+ var _chunk7QBTVNMRcjs = require('./chunk-7QBTVNMR.cjs');
10
10
 
11
11
  // src/env/set-env.ts
12
12
  var setExtensionEnv = (extensionName, extension) => {
@@ -253,9 +253,9 @@ var setConfigEnv = (config) => {
253
253
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
254
254
  process.env.LOG_LEVEL = String(config.logLevel);
255
255
  process.env.NX_VERBOSE_LOGGING = String(
256
- _chunk4PX5UVANcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkIRCFHYKZcjs.LogLevel.DEBUG ? true : false
256
+ _chunkJWLDCEBZcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7QBTVNMRcjs.LogLevel.DEBUG ? true : false
257
257
  );
258
- process.env.RUST_BACKTRACE = _chunk4PX5UVANcjs.getLogLevel.call(void 0, config.logLevel) >= _chunkIRCFHYKZcjs.LogLevel.DEBUG ? "full" : "none";
258
+ process.env.RUST_BACKTRACE = _chunkJWLDCEBZcjs.getLogLevel.call(void 0, config.logLevel) >= _chunk7QBTVNMRcjs.LogLevel.DEBUG ? "full" : "none";
259
259
  }
260
260
  if (config.skipConfigLogging !== void 0) {
261
261
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -312,6 +312,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
312
312
  if (config.fatal) {
313
313
  process.env[`${prefix}FATAL`] = config.fatal;
314
314
  }
315
+ if (config.performance) {
316
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
317
+ }
315
318
  if (config.positive) {
316
319
  process.env[`${prefix}POSITIVE`] = config.positive;
317
320
  }
@@ -370,6 +373,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
370
373
  if (config.fatal) {
371
374
  process.env[`${prefix}FATAL`] = config.fatal;
372
375
  }
376
+ if (config.performance) {
377
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
378
+ }
373
379
  if (config.positive) {
374
380
  process.env[`${prefix}POSITIVE`] = config.positive;
375
381
  }
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkDTGT4OI3cjs = require('./chunk-DTGT4OI3.cjs');
4
+
5
+
6
+ var _chunk7QBTVNMRcjs = require('./chunk-7QBTVNMR.cjs');
7
+
8
+ // src/logger/console-icons.ts
9
+ var useIcon = (c, fallback) => _chunkDTGT4OI3cjs.isUnicodeSupported.call(void 0, ) ? c : fallback;
10
+ var CONSOLE_ICONS = {
11
+ [_chunk7QBTVNMRcjs.LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
12
+ [_chunk7QBTVNMRcjs.LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
13
+ [_chunk7QBTVNMRcjs.LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
14
+ [_chunk7QBTVNMRcjs.LogLevelLabel.INFO]: useIcon("\u2139", "i"),
15
+ [_chunk7QBTVNMRcjs.LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
16
+ [_chunk7QBTVNMRcjs.LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
17
+ [_chunk7QBTVNMRcjs.LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
18
+ [_chunk7QBTVNMRcjs.LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
19
+ [_chunk7QBTVNMRcjs.LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
20
+ };
21
+
22
+
23
+
24
+ exports.CONSOLE_ICONS = CONSOLE_ICONS;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-LF3SAK2O.js";
4
4
  import {
5
5
  writeTrace
6
- } from "./chunk-SPHE3YEH.js";
6
+ } from "./chunk-V5S4LLZX.js";
7
7
  import {
8
8
  joinPaths
9
9
  } from "./chunk-V3GMJ4TX.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getConfigFile
3
- } from "./chunk-ZFTN72CN.js";
3
+ } from "./chunk-HVUY6B36.js";
4
4
  import {
5
5
  applyDefaultConfig,
6
6
  getPackageJsonConfig
@@ -12,14 +12,14 @@ import {
12
12
  formatLogMessage,
13
13
  writeTrace,
14
14
  writeWarning
15
- } from "./chunk-SPHE3YEH.js";
15
+ } from "./chunk-V5S4LLZX.js";
16
16
  import {
17
17
  setConfigEnv
18
- } from "./chunk-4XFFB6C2.js";
18
+ } from "./chunk-SDSQ2HHF.js";
19
19
  import {
20
20
  getConfigEnv,
21
21
  getExtensionEnv
22
- } from "./chunk-XT72Z7BW.js";
22
+ } from "./chunk-A5JXMY6X.js";
23
23
  import {
24
24
  joinPaths
25
25
  } from "./chunk-V3GMJ4TX.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getLogFn,
3
3
  getStopwatch
4
- } from "./chunk-SPHE3YEH.js";
4
+ } from "./chunk-V5S4LLZX.js";
5
5
  import {
6
6
  LogLevel
7
- } from "./chunk-POXTJ6GF.js";
7
+ } from "./chunk-RALMUN5C.js";
8
8
 
9
9
  // src/logger/create-logger.ts
10
10
  import chalk from "chalk";
@@ -15,6 +15,7 @@ async function createLogger(config) {
15
15
  const writeInfo = getLogFn(LogLevel.INFO, config, chalk);
16
16
  const writeSuccess = getLogFn(LogLevel.SUCCESS, config, chalk);
17
17
  const writeDebug = getLogFn(LogLevel.DEBUG, config, chalk);
18
+ const writePerformance = getLogFn(LogLevel.PERFORMANCE, config, chalk);
18
19
  const writeTrace = getLogFn(LogLevel.TRACE, config, chalk);
19
20
  return {
20
21
  fatal: writeFatal,
@@ -22,6 +23,7 @@ async function createLogger(config) {
22
23
  warning: writeWarning,
23
24
  info: writeInfo,
24
25
  success: writeSuccess,
26
+ performance: writePerformance,
25
27
  debug: writeDebug,
26
28
  trace: writeTrace,
27
29
  getStopwatch
@@ -0,0 +1,70 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunk7QBTVNMRcjs = require('./chunk-7QBTVNMR.cjs');
5
+
6
+ // src/logger/get-log-level.ts
7
+ var getLogLevel = (label) => {
8
+ switch (label) {
9
+ case "all":
10
+ return _chunk7QBTVNMRcjs.LogLevel.ALL;
11
+ case "trace":
12
+ return _chunk7QBTVNMRcjs.LogLevel.TRACE;
13
+ case "debug":
14
+ return _chunk7QBTVNMRcjs.LogLevel.DEBUG;
15
+ case "performance":
16
+ return _chunk7QBTVNMRcjs.LogLevel.PERFORMANCE;
17
+ case "info":
18
+ return _chunk7QBTVNMRcjs.LogLevel.INFO;
19
+ case "warn":
20
+ return _chunk7QBTVNMRcjs.LogLevel.WARN;
21
+ case "error":
22
+ return _chunk7QBTVNMRcjs.LogLevel.ERROR;
23
+ case "fatal":
24
+ return _chunk7QBTVNMRcjs.LogLevel.FATAL;
25
+ case "silent":
26
+ return _chunk7QBTVNMRcjs.LogLevel.SILENT;
27
+ default:
28
+ return _chunk7QBTVNMRcjs.LogLevel.INFO;
29
+ }
30
+ };
31
+ var getLogLevelLabel = (logLevel = _chunk7QBTVNMRcjs.LogLevel.INFO) => {
32
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.ALL) {
33
+ return _chunk7QBTVNMRcjs.LogLevelLabel.ALL;
34
+ }
35
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.TRACE) {
36
+ return _chunk7QBTVNMRcjs.LogLevelLabel.TRACE;
37
+ }
38
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.DEBUG) {
39
+ return _chunk7QBTVNMRcjs.LogLevelLabel.DEBUG;
40
+ }
41
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.PERFORMANCE) {
42
+ return _chunk7QBTVNMRcjs.LogLevelLabel.PERFORMANCE;
43
+ }
44
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.INFO) {
45
+ return _chunk7QBTVNMRcjs.LogLevelLabel.INFO;
46
+ }
47
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.WARN) {
48
+ return _chunk7QBTVNMRcjs.LogLevelLabel.WARN;
49
+ }
50
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.ERROR) {
51
+ return _chunk7QBTVNMRcjs.LogLevelLabel.ERROR;
52
+ }
53
+ if (logLevel >= _chunk7QBTVNMRcjs.LogLevel.FATAL) {
54
+ return _chunk7QBTVNMRcjs.LogLevelLabel.FATAL;
55
+ }
56
+ if (logLevel <= _chunk7QBTVNMRcjs.LogLevel.SILENT) {
57
+ return _chunk7QBTVNMRcjs.LogLevelLabel.SILENT;
58
+ }
59
+ return _chunk7QBTVNMRcjs.LogLevelLabel.INFO;
60
+ };
61
+ var isVerbose = (label = _chunk7QBTVNMRcjs.LogLevelLabel.SILENT) => {
62
+ const logLevel = typeof label === "string" ? getLogLevel(label) : label;
63
+ return logLevel >= _chunk7QBTVNMRcjs.LogLevel.DEBUG;
64
+ };
65
+
66
+
67
+
68
+
69
+
70
+ exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose;
@@ -3,7 +3,7 @@
3
3
  var _chunk3CNCDDWZcjs = require('./chunk-3CNCDDWZ.cjs');
4
4
 
5
5
 
6
- var _chunk2YZ5KRRZcjs = require('./chunk-2YZ5KRRZ.cjs');
6
+ var _chunk2MKLDXCRcjs = require('./chunk-2MKLDXCR.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
- _chunk2YZ5KRRZcjs.writeTrace.call(void 0,
55
+ _chunk2MKLDXCRcjs.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
- _chunk2YZ5KRRZcjs.writeTrace.call(void 0,
71
+ _chunk2MKLDXCRcjs.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 _chunk2YZ5KRRZcjs = require('./chunk-2YZ5KRRZ.cjs');
6
+ var _chunk2MKLDXCRcjs = require('./chunk-2MKLDXCR.cjs');
7
7
 
8
8
  // src/utilities/process-handler.ts
9
9
  var exitWithError = (config) => {
10
- _chunk2YZ5KRRZcjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
10
+ _chunk2MKLDXCRcjs.writeFatal.call(void 0, "Exiting script with an error status...", config);
11
11
  process.exit(1);
12
12
  };
13
13
  var exitWithSuccess = (config) => {
14
- _chunk2YZ5KRRZcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
14
+ _chunk2MKLDXCRcjs.writeSuccess.call(void 0, "Script completed successfully. Exiting...", config);
15
15
  process.exit(0);
16
16
  };
17
17
  var handleProcess = (config) => {
18
- _chunk2YZ5KRRZcjs.writeTrace.call(void 0,
18
+ _chunk2MKLDXCRcjs.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
- _chunk2YZ5KRRZcjs.writeError.call(void 0,
23
+ _chunk2MKLDXCRcjs.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
- _chunk2YZ5KRRZcjs.writeError.call(void 0,
30
+ _chunk2MKLDXCRcjs.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
- _chunk2YZ5KRRZcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
38
+ _chunk2MKLDXCRcjs.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
- _chunk2YZ5KRRZcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
42
+ _chunk2MKLDXCRcjs.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
- _chunk2YZ5KRRZcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
46
+ _chunk2MKLDXCRcjs.writeError.call(void 0, `The program terminated with signal code: ${signal}`, config);
47
47
  exitWithError(config);
48
48
  });
49
49
  };
@@ -3,7 +3,7 @@
3
3
  var _chunkBDATZ3UBcjs = require('./chunk-BDATZ3UB.cjs');
4
4
 
5
5
 
6
- var _chunk4PX5UVANcjs = require('./chunk-4PX5UVAN.cjs');
6
+ var _chunkJWLDCEBZcjs = require('./chunk-JWLDCEBZ.cjs');
7
7
 
8
8
  // src/env/get-env.ts
9
9
 
@@ -105,7 +105,7 @@ var getConfigEnv = () => {
105
105
  },
106
106
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
107
107
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
108
- ) ? _chunk4PX5UVANcjs.getLogLevelLabel.call(void 0,
108
+ ) ? _chunkJWLDCEBZcjs.getLogLevelLabel.call(void 0,
109
109
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
110
110
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
111
111
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -180,6 +180,7 @@ var getSingleThemeColorsEnv = (prefix) => {
180
180
  warning: process.env[`${prefix}WARNING`],
181
181
  danger: process.env[`${prefix}DANGER`],
182
182
  fatal: process.env[`${prefix}FATAL`],
183
+ performance: process.env[`${prefix}PERFORMANCE`],
183
184
  positive: process.env[`${prefix}POSITIVE`],
184
185
  negative: process.env[`${prefix}NEGATIVE`],
185
186
  gradient
@@ -219,6 +220,7 @@ var getBaseThemeColorsEnv = (prefix) => {
219
220
  warning: process.env[`${prefix}WARNING`],
220
221
  danger: process.env[`${prefix}DANGER`],
221
222
  fatal: process.env[`${prefix}FATAL`],
223
+ performance: process.env[`${prefix}PERFORMANCE`],
222
224
  positive: process.env[`${prefix}POSITIVE`],
223
225
  negative: process.env[`${prefix}NEGATIVE`],
224
226
  gradient
@@ -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 _chunk2YZ5KRRZcjs = require('./chunk-2YZ5KRRZ.cjs');
3
+ var _chunk2MKLDXCRcjs = require('./chunk-2MKLDXCR.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
- _chunk2YZ5KRRZcjs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
10
+ _chunk2MKLDXCRcjs.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);
@@ -6,6 +6,7 @@ var LogLevel = {
6
6
  WARN: 30,
7
7
  SUCCESS: 35,
8
8
  INFO: 40,
9
+ PERFORMANCE: 50,
9
10
  DEBUG: 60,
10
11
  TRACE: 70,
11
12
  ALL: 100
@@ -17,6 +18,7 @@ var LogLevelLabel = {
17
18
  WARN: "warn",
18
19
  SUCCESS: "success",
19
20
  INFO: "info",
21
+ PERFORMANCE: "performance",
20
22
  DEBUG: "debug",
21
23
  TRACE: "trace",
22
24
  ALL: "all"
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-V3GMJ4TX.js";
4
4
  import {
5
5
  getLogLevel
6
- } from "./chunk-K4CDYUQR.js";
6
+ } from "./chunk-SXPH7ILL.js";
7
7
  import {
8
8
  LogLevel
9
- } from "./chunk-POXTJ6GF.js";
9
+ } from "./chunk-RALMUN5C.js";
10
10
 
11
11
  // src/env/set-env.ts
12
12
  var setExtensionEnv = (extensionName, extension) => {
@@ -312,6 +312,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
312
312
  if (config.fatal) {
313
313
  process.env[`${prefix}FATAL`] = config.fatal;
314
314
  }
315
+ if (config.performance) {
316
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
317
+ }
315
318
  if (config.positive) {
316
319
  process.env[`${prefix}POSITIVE`] = config.positive;
317
320
  }
@@ -370,6 +373,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
370
373
  if (config.fatal) {
371
374
  process.env[`${prefix}FATAL`] = config.fatal;
372
375
  }
376
+ if (config.performance) {
377
+ process.env[`${prefix}PERFORMANCE`] = config.performance;
378
+ }
373
379
  if (config.positive) {
374
380
  process.env[`${prefix}POSITIVE`] = config.positive;
375
381
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadStormWorkspaceConfig,
3
3
  tryLoadStormWorkspaceConfig
4
- } from "./chunk-VOEYKXJ6.js";
4
+ } from "./chunk-JIQOUQGG.js";
5
5
  import {
6
6
  findWorkspaceRoot
7
7
  } from "./chunk-LF3SAK2O.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LogLevel,
3
3
  LogLevelLabel
4
- } from "./chunk-POXTJ6GF.js";
4
+ } from "./chunk-RALMUN5C.js";
5
5
 
6
6
  // src/logger/get-log-level.ts
7
7
  var getLogLevel = (label) => {
@@ -12,6 +12,8 @@ var getLogLevel = (label) => {
12
12
  return LogLevel.TRACE;
13
13
  case "debug":
14
14
  return LogLevel.DEBUG;
15
+ case "performance":
16
+ return LogLevel.PERFORMANCE;
15
17
  case "info":
16
18
  return LogLevel.INFO;
17
19
  case "warn":
@@ -36,6 +38,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
36
38
  if (logLevel >= LogLevel.DEBUG) {
37
39
  return LogLevelLabel.DEBUG;
38
40
  }
41
+ if (logLevel >= LogLevel.PERFORMANCE) {
42
+ return LogLevelLabel.PERFORMANCE;
43
+ }
39
44
  if (logLevel >= LogLevel.INFO) {
40
45
  return LogLevelLabel.INFO;
41
46
  }
@@ -12,6 +12,7 @@ var DEFAULT_COLOR_CONFIG = {
12
12
  warning: "#e3b341",
13
13
  danger: "#D8314A",
14
14
  fatal: "#51070f",
15
+ performance: "#83ff83",
15
16
  link: "#3fa6ff",
16
17
  positive: "#22c55e",
17
18
  negative: "#dc2626",
@@ -29,6 +30,7 @@ var DEFAULT_COLOR_CONFIG = {
29
30
  warning: "#f3d371",
30
31
  danger: "#D8314A",
31
32
  fatal: "#a40e26",
33
+ performance: "#00ff00",
32
34
  link: "#3fa6ff",
33
35
  positive: "#22c55e",
34
36
  negative: "#dc2626",
@@ -12,6 +12,7 @@ var DEFAULT_COLOR_CONFIG = {
12
12
  warning: "#e3b341",
13
13
  danger: "#D8314A",
14
14
  fatal: "#51070f",
15
+ performance: "#83ff83",
15
16
  link: "#3fa6ff",
16
17
  positive: "#22c55e",
17
18
  negative: "#dc2626",
@@ -29,6 +30,7 @@ var DEFAULT_COLOR_CONFIG = {
29
30
  warning: "#f3d371",
30
31
  danger: "#D8314A",
31
32
  fatal: "#a40e26",
33
+ performance: "#00ff00",
32
34
  link: "#3fa6ff",
33
35
  positive: "#22c55e",
34
36
  negative: "#dc2626",
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  DEFAULT_COLOR_CONFIG,
3
3
  getColor
4
- } from "./chunk-DJB7XLHA.js";
4
+ } from "./chunk-TEXP3QH5.js";
5
5
  import {
6
6
  getChalk
7
7
  } from "./chunk-HVVJHTFS.js";
8
8
  import {
9
9
  CONSOLE_ICONS
10
- } from "./chunk-AITAR5W5.js";
10
+ } from "./chunk-ZFNAUMQS.js";
11
11
  import {
12
12
  formatTimestamp
13
13
  } from "./chunk-CZ4IE2QN.js";
14
14
  import {
15
15
  getLogLevel
16
- } from "./chunk-K4CDYUQR.js";
16
+ } from "./chunk-SXPH7ILL.js";
17
17
  import {
18
18
  LogLevel,
19
19
  LogLevelLabel
20
- } from "./chunk-POXTJ6GF.js";
20
+ } from "./chunk-RALMUN5C.js";
21
21
 
22
22
  // ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js
23
23
  var daysInYear = 365.2425;
@@ -828,6 +828,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
828
828
  )(
829
829
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
830
830
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
831
+ `
832
+ );
833
+ };
834
+ }
835
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
836
+ return (message) => {
837
+ console.debug(
838
+ `
839
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
840
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
841
+ )(
842
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
843
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
831
844
  `
832
845
  );
833
846
  };
@@ -873,19 +886,17 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
873
886
  var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
874
887
  var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
875
888
  var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
889
+ var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
876
890
  var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
877
891
  var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
878
892
  var writeSystem = (message, config) => getLogFn(LogLevel.ALL, config)(message);
879
893
  var getStopwatch = (name) => {
880
894
  const start = /* @__PURE__ */ new Date();
881
895
  return () => {
882
- console.info(
883
- `> \u23F1 The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(
884
- start,
885
- {
886
- includeSeconds: true
887
- }
888
- )} to complete`
896
+ writePerformance(
897
+ `The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
898
+ includeSeconds: true
899
+ })} to complete`
889
900
  );
890
901
  };
891
902
  };
@@ -922,6 +933,7 @@ export {
922
933
  writeWarning,
923
934
  writeInfo,
924
935
  writeSuccess,
936
+ writePerformance,
925
937
  writeDebug,
926
938
  writeTrace,
927
939
  writeSystem,
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkZ6KNQQGDcjs = require('./chunk-Z6KNQQGD.cjs');
4
+ var _chunk42MF5U4Wcjs = require('./chunk-42MF5U4W.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 _chunkZ6KNQQGDcjs.loadStormWorkspaceConfig.call(void 0, workspaceRoot, skipLogs);
11
+ return _chunk42MF5U4Wcjs.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 _chunkZ6KNQQGDcjs.tryLoadStormWorkspaceConfig.call(void 0,
26
+ return _chunk42MF5U4Wcjs.tryLoadStormWorkspaceConfig.call(void 0,
27
27
  workspaceRoot,
28
28
  skipLogs,
29
29
  options.useDefault
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-G2MK47WL.js";
4
4
  import {
5
5
  LogLevelLabel
6
- } from "./chunk-POXTJ6GF.js";
6
+ } from "./chunk-RALMUN5C.js";
7
7
 
8
8
  // src/logger/console-icons.ts
9
9
  var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
@@ -12,6 +12,7 @@ var CONSOLE_ICONS = {
12
12
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
13
13
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
14
14
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
15
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
15
16
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
16
17
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
17
18
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -1,28 +1,28 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkIOQ5VDAAcjs = require('../chunk-IOQ5VDAA.cjs');
4
+ var _chunkL6OEQWIMcjs = require('../chunk-L6OEQWIM.cjs');
5
5
  require('../chunk-3COHMHPU.cjs');
6
- require('../chunk-GLF62BIP.cjs');
6
+ require('../chunk-N3MDR6PN.cjs');
7
7
  require('../chunk-6Y623TCS.cjs');
8
- require('../chunk-FIJZNJOM.cjs');
8
+ require('../chunk-QDKDWAXR.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-D7M3EBCK.cjs');
16
- require('../chunk-2YZ5KRRZ.cjs');
17
- require('../chunk-IKP3QKCZ.cjs');
15
+ require('../chunk-7YFI7PKP.cjs');
16
+ require('../chunk-2MKLDXCR.cjs');
17
+ require('../chunk-TMFTOZIF.cjs');
18
18
  require('../chunk-LOY6ICHZ.cjs');
19
- require('../chunk-NSUIDUD7.cjs');
19
+ require('../chunk-EC2KPWRG.cjs');
20
20
  require('../chunk-DTGT4OI3.cjs');
21
21
  require('../chunk-BN6MEGGY.cjs');
22
22
  require('../chunk-BDATZ3UB.cjs');
23
- require('../chunk-4PX5UVAN.cjs');
24
- require('../chunk-IRCFHYKZ.cjs');
23
+ require('../chunk-JWLDCEBZ.cjs');
24
+ require('../chunk-7QBTVNMR.cjs');
25
25
 
26
26
 
27
27
 
28
- exports.getConfigFile = _chunkIOQ5VDAAcjs.getConfigFile; exports.getConfigFileByName = _chunkIOQ5VDAAcjs.getConfigFileByName;
28
+ exports.getConfigFile = _chunkL6OEQWIMcjs.getConfigFile; exports.getConfigFileByName = _chunkL6OEQWIMcjs.getConfigFileByName;
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  getConfigFile,
3
3
  getConfigFileByName
4
- } from "../chunk-ZFTN72CN.js";
4
+ } from "../chunk-HVUY6B36.js";
5
5
  import "../chunk-UKGRDKIH.js";
6
- import "../chunk-T4YVVO6G.js";
6
+ import "../chunk-5GK5A26Z.js";
7
7
  import "../chunk-EENQN6N2.js";
8
- import "../chunk-7XZ53BLB.js";
8
+ import "../chunk-5WXW2CMV.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-WH6MLTFO.js";
16
- import "../chunk-SPHE3YEH.js";
17
- import "../chunk-DJB7XLHA.js";
15
+ import "../chunk-JW6YJAGA.js";
16
+ import "../chunk-V5S4LLZX.js";
17
+ import "../chunk-TEXP3QH5.js";
18
18
  import "../chunk-HVVJHTFS.js";
19
- import "../chunk-AITAR5W5.js";
19
+ import "../chunk-ZFNAUMQS.js";
20
20
  import "../chunk-G2MK47WL.js";
21
21
  import "../chunk-CZ4IE2QN.js";
22
22
  import "../chunk-V3GMJ4TX.js";
23
- import "../chunk-K4CDYUQR.js";
24
- import "../chunk-POXTJ6GF.js";
23
+ import "../chunk-SXPH7ILL.js";
24
+ import "../chunk-RALMUN5C.js";
25
25
  export {
26
26
  getConfigFile,
27
27
  getConfigFileByName