@storm-software/config-tools 1.41.1 → 1.41.3
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 +24 -0
- package/index.cjs +21 -12
- package/index.js +21 -12
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/utilities/logger.cjs +6 -6
- package/utilities/logger.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.41.
|
|
3
|
+
"version": "1.41.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
package/utilities/logger.cjs
CHANGED
|
@@ -5467,7 +5467,7 @@ var StormConfigSchema = z.object({
|
|
|
5467
5467
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
5468
5468
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
5469
5469
|
repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
5470
|
-
license: z.string().trim().default("Apache
|
|
5470
|
+
license: z.string().trim().default("Apache 2.0").describe("The root directory of the package"),
|
|
5471
5471
|
homepage: z.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),
|
|
5472
5472
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
5473
5473
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
@@ -5534,7 +5534,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5534
5534
|
var DEFAULT_STORM_CONFIG = {
|
|
5535
5535
|
name: "storm",
|
|
5536
5536
|
namespace: "storm-software",
|
|
5537
|
-
license: "Apache
|
|
5537
|
+
license: "Apache 2.0",
|
|
5538
5538
|
homepage: "https://stormsoftware.com",
|
|
5539
5539
|
owner: "@storm-software/development",
|
|
5540
5540
|
worker: "stormie-bot",
|
|
@@ -5663,10 +5663,10 @@ var getStopwatch = (name) => {
|
|
|
5663
5663
|
};
|
|
5664
5664
|
};
|
|
5665
5665
|
var formatLogMessage = (message, prefix = "-") => {
|
|
5666
|
-
return
|
|
5667
|
-
|
|
5668
|
-
${formatLogMessage(message[key], `${prefix}-`)
|
|
5669
|
-
).join("\n") : message
|
|
5666
|
+
return `
|
|
5667
|
+
${typeof message === "string" ? message : typeof message === "object" ? Object.keys(message).map(
|
|
5668
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
|
|
5669
|
+
).join("\n") : message}`;
|
|
5670
5670
|
};
|
|
5671
5671
|
var _isFunction = (value) => {
|
|
5672
5672
|
try {
|
package/utilities/logger.js
CHANGED
|
@@ -5452,7 +5452,7 @@ var StormConfigSchema = z.object({
|
|
|
5452
5452
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
5453
5453
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
5454
5454
|
repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
5455
|
-
license: z.string().trim().default("Apache
|
|
5455
|
+
license: z.string().trim().default("Apache 2.0").describe("The root directory of the package"),
|
|
5456
5456
|
homepage: z.string().trim().url().default("https://stormsoftware.com").describe("The homepage of the workspace"),
|
|
5457
5457
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
5458
5458
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
@@ -5519,7 +5519,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5519
5519
|
var DEFAULT_STORM_CONFIG = {
|
|
5520
5520
|
name: "storm",
|
|
5521
5521
|
namespace: "storm-software",
|
|
5522
|
-
license: "Apache
|
|
5522
|
+
license: "Apache 2.0",
|
|
5523
5523
|
homepage: "https://stormsoftware.com",
|
|
5524
5524
|
owner: "@storm-software/development",
|
|
5525
5525
|
worker: "stormie-bot",
|
|
@@ -5648,10 +5648,10 @@ var getStopwatch = (name) => {
|
|
|
5648
5648
|
};
|
|
5649
5649
|
};
|
|
5650
5650
|
var formatLogMessage = (message, prefix = "-") => {
|
|
5651
|
-
return
|
|
5652
|
-
|
|
5653
|
-
${formatLogMessage(message[key], `${prefix}-`)
|
|
5654
|
-
).join("\n") : message
|
|
5651
|
+
return `
|
|
5652
|
+
${typeof message === "string" ? message : typeof message === "object" ? Object.keys(message).map(
|
|
5653
|
+
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
|
|
5654
|
+
).join("\n") : message}`;
|
|
5655
5655
|
};
|
|
5656
5656
|
var _isFunction = (value) => {
|
|
5657
5657
|
try {
|