@storm-software/config-tools 1.82.0 → 1.83.0
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 +12 -0
- package/README.md +1 -1
- package/index.cjs +23 -16
- package/index.js +23 -16
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/utilities/logger.cjs +3 -2
- package/utilities/logger.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.83.0",
|
|
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
|
@@ -5623,7 +5623,8 @@ var RegistryConfigSchema = z.object({
|
|
|
5623
5623
|
github: RegistryUrlConfigSchema,
|
|
5624
5624
|
npm: RegistryUrlConfigSchema,
|
|
5625
5625
|
cargo: RegistryUrlConfigSchema,
|
|
5626
|
-
cyclone: RegistryUrlConfigSchema
|
|
5626
|
+
cyclone: RegistryUrlConfigSchema,
|
|
5627
|
+
container: RegistryUrlConfigSchema
|
|
5627
5628
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
5628
5629
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
5629
5630
|
MultiThemeColorConfigSchema
|
|
@@ -5771,7 +5772,7 @@ var getLogLevel = (label) => {
|
|
|
5771
5772
|
|
|
5772
5773
|
// packages/config-tools/src/utilities/logger.ts
|
|
5773
5774
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
5774
|
-
|
|
5775
|
+
const _chalk = getChalk();
|
|
5775
5776
|
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;
|
|
5776
5777
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
5777
5778
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
package/utilities/logger.js
CHANGED
|
@@ -5607,7 +5607,8 @@ var RegistryConfigSchema = z.object({
|
|
|
5607
5607
|
github: RegistryUrlConfigSchema,
|
|
5608
5608
|
npm: RegistryUrlConfigSchema,
|
|
5609
5609
|
cargo: RegistryUrlConfigSchema,
|
|
5610
|
-
cyclone: RegistryUrlConfigSchema
|
|
5610
|
+
cyclone: RegistryUrlConfigSchema,
|
|
5611
|
+
container: RegistryUrlConfigSchema
|
|
5611
5612
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
5612
5613
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
5613
5614
|
MultiThemeColorConfigSchema
|
|
@@ -5755,7 +5756,7 @@ var getLogLevel = (label) => {
|
|
|
5755
5756
|
|
|
5756
5757
|
// packages/config-tools/src/utilities/logger.ts
|
|
5757
5758
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
5758
|
-
|
|
5759
|
+
const _chalk = getChalk();
|
|
5759
5760
|
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;
|
|
5760
5761
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
5761
5762
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|