@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config-tools",
3
- "version": "1.189.40",
3
+ "version": "1.189.41",
4
4
  "type": "module",
5
5
  "description": "A package containing various utilities to support custom workspace configurations and environment management for Storm Software projects, including configuration file handling, environment variable management, and logging utilities.",
6
6
  "repository": {
@@ -211,7 +211,7 @@
211
211
  ],
212
212
  "dependencies": {
213
213
  "@ltd/j-toml": "1.38.0",
214
- "@storm-software/config": "^1.135.41",
214
+ "@storm-software/config": "^1.136.0",
215
215
  "c12": "^2.0.4",
216
216
  "chalk": "^4.1.2",
217
217
  "commander": "^12.1.0",
@@ -225,5 +225,5 @@
225
225
  "devDependencies": { "@types/node": "^25.5.0", "tsup": "8.4.0" },
226
226
  "publishConfig": { "access": "public" },
227
227
  "sideEffects": false,
228
- "gitHead": "f5dd2e96c8a8f7afd74015f40e6fbfb7fb0b57c9"
228
+ "gitHead": "86357db0291c9364860c12fda996cd88e8a5e0bd"
229
229
  }
@@ -1,65 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
5
-
6
- // src/logger/get-log-level.ts
7
- var getLogLevel = (label) => {
8
- switch (label) {
9
- case "all":
10
- return _chunkIRCFHYKZcjs.LogLevel.ALL;
11
- case "trace":
12
- return _chunkIRCFHYKZcjs.LogLevel.TRACE;
13
- case "debug":
14
- return _chunkIRCFHYKZcjs.LogLevel.DEBUG;
15
- case "info":
16
- return _chunkIRCFHYKZcjs.LogLevel.INFO;
17
- case "warn":
18
- return _chunkIRCFHYKZcjs.LogLevel.WARN;
19
- case "error":
20
- return _chunkIRCFHYKZcjs.LogLevel.ERROR;
21
- case "fatal":
22
- return _chunkIRCFHYKZcjs.LogLevel.FATAL;
23
- case "silent":
24
- return _chunkIRCFHYKZcjs.LogLevel.SILENT;
25
- default:
26
- return _chunkIRCFHYKZcjs.LogLevel.INFO;
27
- }
28
- };
29
- var getLogLevelLabel = (logLevel = _chunkIRCFHYKZcjs.LogLevel.INFO) => {
30
- if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.ALL) {
31
- return _chunkIRCFHYKZcjs.LogLevelLabel.ALL;
32
- }
33
- if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.TRACE) {
34
- return _chunkIRCFHYKZcjs.LogLevelLabel.TRACE;
35
- }
36
- if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.DEBUG) {
37
- return _chunkIRCFHYKZcjs.LogLevelLabel.DEBUG;
38
- }
39
- if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.INFO) {
40
- return _chunkIRCFHYKZcjs.LogLevelLabel.INFO;
41
- }
42
- if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.WARN) {
43
- return _chunkIRCFHYKZcjs.LogLevelLabel.WARN;
44
- }
45
- if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.ERROR) {
46
- return _chunkIRCFHYKZcjs.LogLevelLabel.ERROR;
47
- }
48
- if (logLevel >= _chunkIRCFHYKZcjs.LogLevel.FATAL) {
49
- return _chunkIRCFHYKZcjs.LogLevelLabel.FATAL;
50
- }
51
- if (logLevel <= _chunkIRCFHYKZcjs.LogLevel.SILENT) {
52
- return _chunkIRCFHYKZcjs.LogLevelLabel.SILENT;
53
- }
54
- return _chunkIRCFHYKZcjs.LogLevelLabel.INFO;
55
- };
56
- var isVerbose = (label = _chunkIRCFHYKZcjs.LogLevelLabel.SILENT) => {
57
- const logLevel = typeof label === "string" ? getLogLevel(label) : label;
58
- return logLevel >= _chunkIRCFHYKZcjs.LogLevel.DEBUG;
59
- };
60
-
61
-
62
-
63
-
64
-
65
- exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.isVerbose = isVerbose;
@@ -1,33 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
-
3
-
4
- var _chunk2YZ5KRRZcjs = require('./chunk-2YZ5KRRZ.cjs');
5
-
6
-
7
- var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.cjs');
8
-
9
- // src/logger/create-logger.ts
10
- var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);
11
- async function createLogger(config) {
12
- const writeFatal = _chunk2YZ5KRRZcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.FATAL, config, _chalk2.default);
13
- const writeError = _chunk2YZ5KRRZcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.ERROR, config, _chalk2.default);
14
- const writeWarning = _chunk2YZ5KRRZcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.WARN, config, _chalk2.default);
15
- const writeInfo = _chunk2YZ5KRRZcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.INFO, config, _chalk2.default);
16
- const writeSuccess = _chunk2YZ5KRRZcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.SUCCESS, config, _chalk2.default);
17
- const writeDebug = _chunk2YZ5KRRZcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.DEBUG, config, _chalk2.default);
18
- const writeTrace = _chunk2YZ5KRRZcjs.getLogFn.call(void 0, _chunkIRCFHYKZcjs.LogLevel.TRACE, config, _chalk2.default);
19
- return {
20
- fatal: writeFatal,
21
- error: writeError,
22
- warning: writeWarning,
23
- info: writeInfo,
24
- success: writeSuccess,
25
- debug: writeDebug,
26
- trace: writeTrace,
27
- getStopwatch: _chunk2YZ5KRRZcjs.getStopwatch
28
- };
29
- }
30
-
31
-
32
-
33
- exports.createLogger = createLogger;
@@ -1,23 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkDTGT4OI3cjs = require('./chunk-DTGT4OI3.cjs');
4
-
5
-
6
- var _chunkIRCFHYKZcjs = require('./chunk-IRCFHYKZ.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
- [_chunkIRCFHYKZcjs.LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
12
- [_chunkIRCFHYKZcjs.LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
13
- [_chunkIRCFHYKZcjs.LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
14
- [_chunkIRCFHYKZcjs.LogLevelLabel.INFO]: useIcon("\u2139", "i"),
15
- [_chunkIRCFHYKZcjs.LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
16
- [_chunkIRCFHYKZcjs.LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
17
- [_chunkIRCFHYKZcjs.LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
18
- [_chunkIRCFHYKZcjs.LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
19
- };
20
-
21
-
22
-
23
- exports.CONSOLE_ICONS = CONSOLE_ICONS;