@storm-software/config-tools 1.111.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 +8 -1
- package/README.md +1 -1
- package/index.cjs +14 -14
- package/index.js +14 -14
- package/meta.cjs.json +7 -7
- package/meta.esm.json +7 -7
- package/package.json +1 -1
- package/utilities/logger.cjs +10 -10
- package/utilities/logger.js +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
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
|
+
|
|
1
7
|
## 1.111.0 (2024-11-08)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
4
10
|
|
|
5
|
-
- **build-tools:** Added back cjs build and local package.json dependencies
|
|
11
|
+
- **build-tools:** Added back cjs build and local package.json dependencies
|
|
12
|
+
([d86d3c2a](https://github.com/storm-software/storm-ops/commit/d86d3c2a))
|
|
6
13
|
|
|
7
14
|
## 1.110.0 (2024-11-08)
|
|
8
15
|
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/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
|
|
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,9 +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
|
-
`${_chalk.bold.hex(colors.
|
|
66474
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66475
66475
|
" \u{1F480} Fatal "
|
|
66476
|
-
)} ${_chalk.hex(colors.
|
|
66476
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
66477
66477
|
`
|
|
66478
66478
|
);
|
|
66479
66479
|
};
|
|
@@ -66483,7 +66483,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66483
66483
|
console.error(
|
|
66484
66484
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66485
66485
|
" \u2718 Error "
|
|
66486
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66486
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66487
66487
|
`
|
|
66488
66488
|
);
|
|
66489
66489
|
};
|
|
@@ -66493,7 +66493,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66493
66493
|
console.warn(
|
|
66494
66494
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66495
66495
|
" \u26A0 Warn "
|
|
66496
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66496
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66497
66497
|
`
|
|
66498
66498
|
);
|
|
66499
66499
|
};
|
|
@@ -66503,7 +66503,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66503
66503
|
console.info(
|
|
66504
66504
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66505
66505
|
" \u2713 Success "
|
|
66506
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66506
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66507
66507
|
`
|
|
66508
66508
|
);
|
|
66509
66509
|
};
|
|
@@ -66513,17 +66513,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66513
66513
|
console.info(
|
|
66514
66514
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66515
66515
|
" \u2139 Info "
|
|
66516
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66516
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66517
66517
|
`
|
|
66518
66518
|
);
|
|
66519
66519
|
};
|
|
66520
66520
|
}
|
|
66521
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
66521
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
66522
66522
|
return (message) => {
|
|
66523
66523
|
console.debug(
|
|
66524
66524
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66525
66525
|
" \u{1F6E0} Debug "
|
|
66526
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66526
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66527
66527
|
`
|
|
66528
66528
|
);
|
|
66529
66529
|
};
|
|
@@ -66532,7 +66532,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66532
66532
|
console.log(
|
|
66533
66533
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66534
66534
|
" \u2709 System "
|
|
66535
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66535
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66536
66536
|
`
|
|
66537
66537
|
);
|
|
66538
66538
|
};
|
|
@@ -66655,8 +66655,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66655
66655
|
name: fileName,
|
|
66656
66656
|
envName: fileName?.toUpperCase(),
|
|
66657
66657
|
jitiOptions: {
|
|
66658
|
-
debug:
|
|
66659
|
-
cache: process.env.
|
|
66658
|
+
debug: false,
|
|
66659
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66660
66660
|
},
|
|
66661
66661
|
...options
|
|
66662
66662
|
});
|
|
@@ -66667,8 +66667,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66667
66667
|
name: fileName,
|
|
66668
66668
|
envName: fileName?.toUpperCase(),
|
|
66669
66669
|
jitiOptions: {
|
|
66670
|
-
debug:
|
|
66671
|
-
cache: process.env.
|
|
66670
|
+
debug: false,
|
|
66671
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66672
66672
|
},
|
|
66673
66673
|
configFile: fileName,
|
|
66674
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
|
|
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,9 +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
|
-
`${_chalk.bold.hex(colors.
|
|
66431
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66432
66432
|
" \u{1F480} Fatal "
|
|
66433
|
-
)} ${_chalk.hex(colors.
|
|
66433
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
66434
66434
|
`
|
|
66435
66435
|
);
|
|
66436
66436
|
};
|
|
@@ -66440,7 +66440,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66440
66440
|
console.error(
|
|
66441
66441
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66442
66442
|
" \u2718 Error "
|
|
66443
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66443
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66444
66444
|
`
|
|
66445
66445
|
);
|
|
66446
66446
|
};
|
|
@@ -66450,7 +66450,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66450
66450
|
console.warn(
|
|
66451
66451
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66452
66452
|
" \u26A0 Warn "
|
|
66453
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66453
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66454
66454
|
`
|
|
66455
66455
|
);
|
|
66456
66456
|
};
|
|
@@ -66460,7 +66460,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66460
66460
|
console.info(
|
|
66461
66461
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66462
66462
|
" \u2713 Success "
|
|
66463
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66463
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66464
66464
|
`
|
|
66465
66465
|
);
|
|
66466
66466
|
};
|
|
@@ -66470,17 +66470,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66470
66470
|
console.info(
|
|
66471
66471
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66472
66472
|
" \u2139 Info "
|
|
66473
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66473
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66474
66474
|
`
|
|
66475
66475
|
);
|
|
66476
66476
|
};
|
|
66477
66477
|
}
|
|
66478
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
66478
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
66479
66479
|
return (message) => {
|
|
66480
66480
|
console.debug(
|
|
66481
66481
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66482
66482
|
" \u{1F6E0} Debug "
|
|
66483
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66483
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66484
66484
|
`
|
|
66485
66485
|
);
|
|
66486
66486
|
};
|
|
@@ -66489,7 +66489,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66489
66489
|
console.log(
|
|
66490
66490
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66491
66491
|
" \u2709 System "
|
|
66492
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66492
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66493
66493
|
`
|
|
66494
66494
|
);
|
|
66495
66495
|
};
|
|
@@ -66612,8 +66612,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66612
66612
|
name: fileName,
|
|
66613
66613
|
envName: fileName?.toUpperCase(),
|
|
66614
66614
|
jitiOptions: {
|
|
66615
|
-
debug:
|
|
66616
|
-
cache: process.env.
|
|
66615
|
+
debug: false,
|
|
66616
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66617
66617
|
},
|
|
66618
66618
|
...options
|
|
66619
66619
|
});
|
|
@@ -66624,8 +66624,8 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
66624
66624
|
name: fileName,
|
|
66625
66625
|
envName: fileName?.toUpperCase(),
|
|
66626
66626
|
jitiOptions: {
|
|
66627
|
-
debug:
|
|
66628
|
-
cache: process.env.
|
|
66627
|
+
debug: false,
|
|
66628
|
+
cache: process.env.STORM_SKIP_CACHE === "true" ? false : process.env.STORM_CACHE_DIRECTORY || "node_modules/.cache/storm"
|
|
66629
66629
|
},
|
|
66630
66630
|
configFile: fileName,
|
|
66631
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
5427
|
+
"bytesInOutput": 5793
|
|
5428
5428
|
}
|
|
5429
5429
|
},
|
|
5430
|
-
"bytes":
|
|
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.111.
|
|
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",
|
package/utilities/logger.cjs
CHANGED
|
@@ -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
|
|
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,9 +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
|
-
`${_chalk.bold.hex(colors.
|
|
5774
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5775
5775
|
" \u{1F480} Fatal "
|
|
5776
|
-
)} ${_chalk.hex(colors.
|
|
5776
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
5777
5777
|
`
|
|
5778
5778
|
);
|
|
5779
5779
|
};
|
|
@@ -5783,7 +5783,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5783
5783
|
console.error(
|
|
5784
5784
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5785
5785
|
" \u2718 Error "
|
|
5786
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5786
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5787
5787
|
`
|
|
5788
5788
|
);
|
|
5789
5789
|
};
|
|
@@ -5793,7 +5793,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5793
5793
|
console.warn(
|
|
5794
5794
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5795
5795
|
" \u26A0 Warn "
|
|
5796
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5796
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5797
5797
|
`
|
|
5798
5798
|
);
|
|
5799
5799
|
};
|
|
@@ -5803,7 +5803,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5803
5803
|
console.info(
|
|
5804
5804
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
5805
5805
|
" \u2713 Success "
|
|
5806
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5806
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5807
5807
|
`
|
|
5808
5808
|
);
|
|
5809
5809
|
};
|
|
@@ -5813,17 +5813,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5813
5813
|
console.info(
|
|
5814
5814
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
5815
5815
|
" \u2139 Info "
|
|
5816
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
5816
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
5817
5817
|
`
|
|
5818
5818
|
);
|
|
5819
5819
|
};
|
|
5820
5820
|
}
|
|
5821
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
5821
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
5822
5822
|
return (message) => {
|
|
5823
5823
|
console.debug(
|
|
5824
5824
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5825
5825
|
" \u{1F6E0} Debug "
|
|
5826
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5826
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5827
5827
|
`
|
|
5828
5828
|
);
|
|
5829
5829
|
};
|
|
@@ -5832,7 +5832,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5832
5832
|
console.log(
|
|
5833
5833
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5834
5834
|
" \u2709 System "
|
|
5835
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5835
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5836
5836
|
`
|
|
5837
5837
|
);
|
|
5838
5838
|
};
|
package/utilities/logger.js
CHANGED
|
@@ -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
|
|
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,9 +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
|
-
`${_chalk.bold.hex(colors.
|
|
5758
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5759
5759
|
" \u{1F480} Fatal "
|
|
5760
|
-
)} ${_chalk.hex(colors.
|
|
5760
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
5761
5761
|
`
|
|
5762
5762
|
);
|
|
5763
5763
|
};
|
|
@@ -5767,7 +5767,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5767
5767
|
console.error(
|
|
5768
5768
|
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5769
5769
|
" \u2718 Error "
|
|
5770
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5770
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5771
5771
|
`
|
|
5772
5772
|
);
|
|
5773
5773
|
};
|
|
@@ -5777,7 +5777,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5777
5777
|
console.warn(
|
|
5778
5778
|
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5779
5779
|
" \u26A0 Warn "
|
|
5780
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5780
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5781
5781
|
`
|
|
5782
5782
|
);
|
|
5783
5783
|
};
|
|
@@ -5787,7 +5787,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5787
5787
|
console.info(
|
|
5788
5788
|
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
5789
5789
|
" \u2713 Success "
|
|
5790
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5790
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5791
5791
|
`
|
|
5792
5792
|
);
|
|
5793
5793
|
};
|
|
@@ -5797,17 +5797,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5797
5797
|
console.info(
|
|
5798
5798
|
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
5799
5799
|
" \u2139 Info "
|
|
5800
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
5800
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
5801
5801
|
`
|
|
5802
5802
|
);
|
|
5803
5803
|
};
|
|
5804
5804
|
}
|
|
5805
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
5805
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
5806
5806
|
return (message) => {
|
|
5807
5807
|
console.debug(
|
|
5808
5808
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5809
5809
|
" \u{1F6E0} Debug "
|
|
5810
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5810
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5811
5811
|
`
|
|
5812
5812
|
);
|
|
5813
5813
|
};
|
|
@@ -5816,7 +5816,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5816
5816
|
console.log(
|
|
5817
5817
|
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5818
5818
|
" \u2709 System "
|
|
5819
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5819
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5820
5820
|
`
|
|
5821
5821
|
);
|
|
5822
5822
|
};
|