@storm-software/config-tools 1.110.0 → 1.111.1

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/CHANGELOG.md CHANGED
@@ -1,8 +1,22 @@
1
+ ## 1.111.1 (2024-11-08)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **config-tools:** Cleaned up the logger's formatting ([6ed06104](https://github.com/storm-software/storm-ops/commit/6ed06104))
6
+
7
+ ## 1.111.0 (2024-11-08)
8
+
9
+ ### Features
10
+
11
+ - **build-tools:** Added back cjs build and local package.json dependencies
12
+ ([d86d3c2a](https://github.com/storm-software/storm-ops/commit/d86d3c2a))
13
+
1
14
  ## 1.110.0 (2024-11-08)
2
15
 
3
16
  ### Features
4
17
 
5
- - **config:** Regenerate the Storm configuration schema ([baeb1c6f](https://github.com/storm-software/storm-ops/commit/baeb1c6f))
18
+ - **config:** Regenerate the Storm configuration schema
19
+ ([baeb1c6f](https://github.com/storm-software/storm-ops/commit/baeb1c6f))
6
20
 
7
21
  ## 1.109.0 (2024-11-07)
8
22
 
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
- [![Version](https://img.shields.io/badge/version-1.109.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.111.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/index.cjs CHANGED
@@ -66463,7 +66463,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
66463
66463
  var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66464
66464
  const _chalk = getChalk();
66465
66465
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
66466
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66466
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66467
66467
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66468
66468
  return (_6) => {
66469
66469
  };
@@ -66471,10 +66471,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66471
66471
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66472
66472
  return (message) => {
66473
66473
  console.error(
66474
- `
66475
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66474
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66476
66475
  " \u{1F480} Fatal "
66477
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66476
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66478
66477
  `
66479
66478
  );
66480
66479
  };
@@ -66482,8 +66481,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
66482
66481
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
66483
66482
  return (message) => {
66484
66483
  console.error(
66485
- `
66486
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66484
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66487
66485
  " \u2718 Error "
66488
66486
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66489
66487
  `
@@ -66493,8 +66491,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
66493
66491
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
66494
66492
  return (message) => {
66495
66493
  console.warn(
66496
- `
66497
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66494
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66498
66495
  " \u26A0 Warn "
66499
66496
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66500
66497
  `
@@ -66504,8 +66501,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
66504
66501
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
66505
66502
  return (message) => {
66506
66503
  console.info(
66507
- `
66508
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66504
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66509
66505
  " \u2713 Success "
66510
66506
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66511
66507
  `
@@ -66515,19 +66511,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
66515
66511
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
66516
66512
  return (message) => {
66517
66513
  console.info(
66518
- `
66519
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66514
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66520
66515
  " \u2139 Info "
66521
66516
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66522
66517
  `
66523
66518
  );
66524
66519
  };
66525
66520
  }
66526
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66521
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66527
66522
  return (message) => {
66528
66523
  console.debug(
66529
- `
66530
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66524
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66531
66525
  " \u{1F6E0} Debug "
66532
66526
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66533
66527
  `
@@ -66536,8 +66530,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
66536
66530
  }
66537
66531
  return (message) => {
66538
66532
  console.log(
66539
- `
66540
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66533
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66541
66534
  " \u2709 System "
66542
66535
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66543
66536
  `
@@ -66662,8 +66655,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
66662
66655
  name: fileName,
66663
66656
  envName: fileName?.toUpperCase(),
66664
66657
  jitiOptions: {
66665
- debug: true,
66666
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66658
+ debug: false,
66659
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66667
66660
  },
66668
66661
  ...options
66669
66662
  });
@@ -66674,8 +66667,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
66674
66667
  name: fileName,
66675
66668
  envName: fileName?.toUpperCase(),
66676
66669
  jitiOptions: {
66677
- debug: true,
66678
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66670
+ debug: false,
66671
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66679
66672
  },
66680
66673
  configFile: fileName,
66681
66674
  ...options
package/index.js CHANGED
@@ -66420,7 +66420,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
66420
66420
  var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66421
66421
  const _chalk = getChalk();
66422
66422
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
66423
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
66423
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
66424
66424
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
66425
66425
  return (_6) => {
66426
66426
  };
@@ -66428,10 +66428,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
66428
66428
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
66429
66429
  return (message) => {
66430
66430
  console.error(
66431
- `
66432
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66431
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
66433
66432
  " \u{1F480} Fatal "
66434
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66433
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
66435
66434
  `
66436
66435
  );
66437
66436
  };
@@ -66439,8 +66438,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
66439
66438
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
66440
66439
  return (message) => {
66441
66440
  console.error(
66442
- `
66443
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66441
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
66444
66442
  " \u2718 Error "
66445
66443
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
66446
66444
  `
@@ -66450,8 +66448,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
66450
66448
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
66451
66449
  return (message) => {
66452
66450
  console.warn(
66453
- `
66454
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66451
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
66455
66452
  " \u26A0 Warn "
66456
66453
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
66457
66454
  `
@@ -66461,8 +66458,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
66461
66458
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
66462
66459
  return (message) => {
66463
66460
  console.info(
66464
- `
66465
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66461
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
66466
66462
  " \u2713 Success "
66467
66463
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
66468
66464
  `
@@ -66472,19 +66468,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
66472
66468
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
66473
66469
  return (message) => {
66474
66470
  console.info(
66475
- `
66476
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66471
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
66477
66472
  " \u2139 Info "
66478
66473
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
66479
66474
  `
66480
66475
  );
66481
66476
  };
66482
66477
  }
66483
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
66478
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
66484
66479
  return (message) => {
66485
66480
  console.debug(
66486
- `
66487
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66481
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66488
66482
  " \u{1F6E0} Debug "
66489
66483
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66490
66484
  `
@@ -66493,8 +66487,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
66493
66487
  }
66494
66488
  return (message) => {
66495
66489
  console.log(
66496
- `
66497
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66490
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
66498
66491
  " \u2709 System "
66499
66492
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
66500
66493
  `
@@ -66619,8 +66612,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
66619
66612
  name: fileName,
66620
66613
  envName: fileName?.toUpperCase(),
66621
66614
  jitiOptions: {
66622
- debug: true,
66623
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66615
+ debug: false,
66616
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66624
66617
  },
66625
66618
  ...options
66626
66619
  });
@@ -66631,8 +66624,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
66631
66624
  name: fileName,
66632
66625
  envName: fileName?.toUpperCase(),
66633
66626
  jitiOptions: {
66634
- debug: true,
66635
- cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
66627
+ debug: false,
66628
+ cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
66636
66629
  },
66637
66630
  configFile: fileName,
66638
66631
  ...options
package/meta.cjs.json CHANGED
@@ -3469,7 +3469,7 @@
3469
3469
  "format": "esm"
3470
3470
  },
3471
3471
  "packages/config-tools/src/utilities/logger.ts": {
3472
- "bytes": 9437,
3472
+ "bytes": 9413,
3473
3473
  "imports": [
3474
3474
  {
3475
3475
  "path": "packages/config-tools/src/types.ts",
@@ -3573,7 +3573,7 @@
3573
3573
  "format": "esm"
3574
3574
  },
3575
3575
  "packages/config-tools/src/config-file/get-config-file.ts": {
3576
- "bytes": 3059,
3576
+ "bytes": 3197,
3577
3577
  "imports": [
3578
3578
  {
3579
3579
  "path": "node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/index.mjs",
@@ -5139,7 +5139,7 @@
5139
5139
  "bytesInOutput": 61
5140
5140
  },
5141
5141
  "packages/config-tools/src/config-file/get-config-file.ts": {
5142
- "bytesInOutput": 2085
5142
+ "bytesInOutput": 2181
5143
5143
  },
5144
5144
  "packages/config-tools/src/utilities/correct-paths.ts": {
5145
5145
  "bytesInOutput": 209
@@ -5187,7 +5187,7 @@
5187
5187
  "bytesInOutput": 1125
5188
5188
  },
5189
5189
  "packages/config-tools/src/utilities/logger.ts": {
5190
- "bytesInOutput": 5815
5190
+ "bytesInOutput": 5805
5191
5191
  },
5192
5192
  "packages/config-tools/src/utilities/process-handler.ts": {
5193
5193
  "bytesInOutput": 1268
@@ -5211,7 +5211,7 @@
5211
5211
  "bytesInOutput": 0
5212
5212
  }
5213
5213
  },
5214
- "bytes": 4132450
5214
+ "bytes": 4132536
5215
5215
  },
5216
5216
  "dist/packages/config-tools/utilities/find-workspace-root.cjs": {
5217
5217
  "imports": [
@@ -5340,7 +5340,7 @@
5340
5340
  "bytesInOutput": 5939
5341
5341
  },
5342
5342
  "packages/config-tools/src/utilities/logger.ts": {
5343
- "bytesInOutput": 6277
5343
+ "bytesInOutput": 6267
5344
5344
  },
5345
5345
  "packages/config-tools/src/types.ts": {
5346
5346
  "bytesInOutput": 297
@@ -5367,7 +5367,7 @@
5367
5367
  "bytesInOutput": 468
5368
5368
  }
5369
5369
  },
5370
- "bytes": 186094
5370
+ "bytes": 186084
5371
5371
  }
5372
5372
  }
5373
5373
  }
package/meta.esm.json CHANGED
@@ -3469,7 +3469,7 @@
3469
3469
  "format": "esm"
3470
3470
  },
3471
3471
  "packages/config-tools/src/utilities/logger.ts": {
3472
- "bytes": 9437,
3472
+ "bytes": 9413,
3473
3473
  "imports": [
3474
3474
  {
3475
3475
  "path": "packages/config-tools/src/types.ts",
@@ -3573,7 +3573,7 @@
3573
3573
  "format": "esm"
3574
3574
  },
3575
3575
  "packages/config-tools/src/config-file/get-config-file.ts": {
3576
- "bytes": 3059,
3576
+ "bytes": 3197,
3577
3577
  "imports": [
3578
3578
  {
3579
3579
  "path": "node_modules/.pnpm/c12@2.0.0-beta.2/node_modules/c12/dist/index.mjs",
@@ -5179,7 +5179,7 @@
5179
5179
  "bytesInOutput": 61
5180
5180
  },
5181
5181
  "packages/config-tools/src/config-file/get-config-file.ts": {
5182
- "bytesInOutput": 2085
5182
+ "bytesInOutput": 2181
5183
5183
  },
5184
5184
  "packages/config-tools/src/utilities/correct-paths.ts": {
5185
5185
  "bytesInOutput": 209
@@ -5227,7 +5227,7 @@
5227
5227
  "bytesInOutput": 1125
5228
5228
  },
5229
5229
  "packages/config-tools/src/utilities/logger.ts": {
5230
- "bytesInOutput": 5815
5230
+ "bytesInOutput": 5805
5231
5231
  },
5232
5232
  "packages/config-tools/src/utilities/process-handler.ts": {
5233
5233
  "bytesInOutput": 1268
@@ -5254,7 +5254,7 @@
5254
5254
  "bytesInOutput": 0
5255
5255
  }
5256
5256
  },
5257
- "bytes": 4127064
5257
+ "bytes": 4127150
5258
5258
  },
5259
5259
  "dist/packages/config-tools/utilities/find-workspace-root.js": {
5260
5260
  "imports": [
@@ -5424,10 +5424,10 @@
5424
5424
  "bytesInOutput": 468
5425
5425
  },
5426
5426
  "packages/config-tools/src/utilities/logger.ts": {
5427
- "bytesInOutput": 5803
5427
+ "bytesInOutput": 5793
5428
5428
  }
5429
5429
  },
5430
- "bytes": 185611
5430
+ "bytes": 185601
5431
5431
  }
5432
5432
  }
5433
5433
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/config-tools",
3
- "version": "1.110.0",
3
+ "version": "1.111.1",
4
4
  "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -5763,7 +5763,7 @@ var getLogLevel = (label) => {
5763
5763
  var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5764
5764
  const _chalk = getChalk();
5765
5765
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
5766
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
5766
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
5767
5767
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
5768
5768
  return (_) => {
5769
5769
  };
@@ -5771,10 +5771,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5771
5771
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
5772
5772
  return (message) => {
5773
5773
  console.error(
5774
- `
5775
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
5774
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
5776
5775
  " \u{1F480} Fatal "
5777
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
5776
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
5778
5777
  `
5779
5778
  );
5780
5779
  };
@@ -5782,8 +5781,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
5782
5781
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
5783
5782
  return (message) => {
5784
5783
  console.error(
5785
- `
5786
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
5784
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
5787
5785
  " \u2718 Error "
5788
5786
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
5789
5787
  `
@@ -5793,8 +5791,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
5793
5791
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
5794
5792
  return (message) => {
5795
5793
  console.warn(
5796
- `
5797
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
5794
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
5798
5795
  " \u26A0 Warn "
5799
5796
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
5800
5797
  `
@@ -5804,8 +5801,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
5804
5801
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
5805
5802
  return (message) => {
5806
5803
  console.info(
5807
- `
5808
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
5804
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
5809
5805
  " \u2713 Success "
5810
5806
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
5811
5807
  `
@@ -5815,19 +5811,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
5815
5811
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
5816
5812
  return (message) => {
5817
5813
  console.info(
5818
- `
5819
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
5814
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
5820
5815
  " \u2139 Info "
5821
5816
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
5822
5817
  `
5823
5818
  );
5824
5819
  };
5825
5820
  }
5826
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
5821
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
5827
5822
  return (message) => {
5828
5823
  console.debug(
5829
- `
5830
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5824
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5831
5825
  " \u{1F6E0} Debug "
5832
5826
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
5833
5827
  `
@@ -5836,8 +5830,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
5836
5830
  }
5837
5831
  return (message) => {
5838
5832
  console.log(
5839
- `
5840
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5833
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5841
5834
  " \u2709 System "
5842
5835
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
5843
5836
  `
@@ -5747,7 +5747,7 @@ var getLogLevel = (label) => {
5747
5747
  var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5748
5748
  const _chalk = getChalk();
5749
5749
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
5750
- const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
5750
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
5751
5751
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
5752
5752
  return (_) => {
5753
5753
  };
@@ -5755,10 +5755,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5755
5755
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
5756
5756
  return (message) => {
5757
5757
  console.error(
5758
- `
5759
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
5758
+ `${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
5760
5759
  " \u{1F480} Fatal "
5761
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
5760
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
5762
5761
  `
5763
5762
  );
5764
5763
  };
@@ -5766,8 +5765,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
5766
5765
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
5767
5766
  return (message) => {
5768
5767
  console.error(
5769
- `
5770
- ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
5768
+ `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
5771
5769
  " \u2718 Error "
5772
5770
  )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
5773
5771
  `
@@ -5777,8 +5775,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
5777
5775
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
5778
5776
  return (message) => {
5779
5777
  console.warn(
5780
- `
5781
- ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
5778
+ `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
5782
5779
  " \u26A0 Warn "
5783
5780
  )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
5784
5781
  `
@@ -5788,8 +5785,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
5788
5785
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
5789
5786
  return (message) => {
5790
5787
  console.info(
5791
- `
5792
- ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
5788
+ `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
5793
5789
  " \u2713 Success "
5794
5790
  )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
5795
5791
  `
@@ -5799,19 +5795,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
5799
5795
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
5800
5796
  return (message) => {
5801
5797
  console.info(
5802
- `
5803
- ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
5798
+ `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
5804
5799
  " \u2139 Info "
5805
5800
  )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
5806
5801
  `
5807
5802
  );
5808
5803
  };
5809
5804
  }
5810
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
5805
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
5811
5806
  return (message) => {
5812
5807
  console.debug(
5813
- `
5814
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5808
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5815
5809
  " \u{1F6E0} Debug "
5816
5810
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
5817
5811
  `
@@ -5820,8 +5814,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
5820
5814
  }
5821
5815
  return (message) => {
5822
5816
  console.log(
5823
- `
5824
- ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5817
+ `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
5825
5818
  " \u2709 System "
5826
5819
  )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
5827
5820
  `