@storm-software/config-tools 1.108.0 → 1.110.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 +19 -3
- package/README.md +2 -2
- package/index.cjs +23 -24
- package/index.js +23 -24
- package/meta.cjs.json +17 -17
- package/meta.esm.json +17 -17
- package/package.json +1 -1
- package/src/utilities/get-default-config.d.ts +1 -1
- package/utilities/logger.cjs +15 -36
- package/utilities/logger.js +15 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
|
+
## 1.110.0 (2024-11-08)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **config:** Regenerate the Storm configuration schema ([baeb1c6f](https://github.com/storm-software/storm-ops/commit/baeb1c6f))
|
|
6
|
+
|
|
7
|
+
## 1.109.0 (2024-11-07)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **config:** Add the `danger` color token
|
|
12
|
+
([06dba937](https://github.com/storm-software/storm-ops/commit/06dba937))
|
|
13
|
+
|
|
1
14
|
## 1.108.0 (2024-11-01)
|
|
2
15
|
|
|
3
16
|
### Features
|
|
4
17
|
|
|
5
|
-
- **eslint:** Resolve type issues with Nx plugin in preset
|
|
6
|
-
|
|
7
|
-
- **config:**
|
|
18
|
+
- **eslint:** Resolve type issues with Nx plugin in preset
|
|
19
|
+
([d27162e2](https://github.com/storm-software/storm-ops/commit/d27162e2))
|
|
20
|
+
- **config:** Regenerate the config JSON Schema file
|
|
21
|
+
([7258f12d](https://github.com/storm-software/storm-ops/commit/7258f12d))
|
|
22
|
+
- **config:** Added the `positive` and `negative` color tokens
|
|
23
|
+
([24c5e15f](https://github.com/storm-software/storm-ops/commit/24c5e15f))
|
|
8
24
|
|
|
9
25
|
## 1.107.0 (2024-10-31)
|
|
10
26
|
|
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 -->
|
|
@@ -78,7 +78,7 @@ environment variables:
|
|
|
78
78
|
| ----------------------- | -------------------------------------------------------------------------------------- | --------------------------- |
|
|
79
79
|
| STORM_COLOR_LIGHT | The workspace's light background theme color | `#f4f4f5` |
|
|
80
80
|
| STORM_COLOR_DARK | The workspace's dark background theme color | `#1d232a` |
|
|
81
|
-
|
|
|
81
|
+
| STORM_COLOR_DANGER | The workspace's danger theme color | `#990000` |
|
|
82
82
|
| STORM_COLOR_FATAL | The workspace's fatal theme color | `#7d1a1a` |
|
|
83
83
|
| STORM_COLOR_INFO | The workspace's info theme color | `#0ea5e9` |
|
|
84
84
|
| STORM_COLOR_PRIMARY | The workspace's primary theme color | `#1fb2a6` |
|
package/index.cjs
CHANGED
|
@@ -66115,17 +66115,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66115
66115
|
});
|
|
66116
66116
|
|
|
66117
66117
|
// packages/config/src/schema.ts
|
|
66118
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66118
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
66119
66119
|
var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
66120
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66120
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
66121
66121
|
var AlternateColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
66122
66122
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
66123
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66123
|
+
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
66124
66124
|
var HelpColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
66125
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66126
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66125
|
+
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
66126
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
66127
66127
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
66128
|
-
var
|
|
66128
|
+
var DangerColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
66129
66129
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66130
66130
|
var PositiveColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
66131
66131
|
var NegativeColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -66140,7 +66140,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66140
66140
|
success: SuccessColorSchema,
|
|
66141
66141
|
info: InfoColorSchema,
|
|
66142
66142
|
warning: WarningColorSchema,
|
|
66143
|
-
|
|
66143
|
+
danger: DangerColorSchema,
|
|
66144
66144
|
fatal: FatalColorSchema,
|
|
66145
66145
|
positive: PositiveColorSchema,
|
|
66146
66146
|
negative: NegativeColorSchema
|
|
@@ -66156,7 +66156,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66156
66156
|
success: SuccessColorSchema,
|
|
66157
66157
|
info: InfoColorSchema,
|
|
66158
66158
|
warning: WarningColorSchema,
|
|
66159
|
-
|
|
66159
|
+
danger: DangerColorSchema,
|
|
66160
66160
|
fatal: FatalColorSchema,
|
|
66161
66161
|
positive: PositiveColorSchema,
|
|
66162
66162
|
negative: NegativeColorSchema
|
|
@@ -66176,7 +66176,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66176
66176
|
success: SuccessColorSchema,
|
|
66177
66177
|
info: InfoColorSchema,
|
|
66178
66178
|
warning: WarningColorSchema,
|
|
66179
|
-
|
|
66179
|
+
danger: DangerColorSchema,
|
|
66180
66180
|
fatal: FatalColorSchema,
|
|
66181
66181
|
positive: PositiveColorSchema,
|
|
66182
66182
|
negative: NegativeColorSchema
|
|
@@ -66273,7 +66273,7 @@ var COLOR_KEYS = [
|
|
|
66273
66273
|
"help",
|
|
66274
66274
|
"info",
|
|
66275
66275
|
"warning",
|
|
66276
|
-
"
|
|
66276
|
+
"danger",
|
|
66277
66277
|
"fatal",
|
|
66278
66278
|
"positive",
|
|
66279
66279
|
"negative"
|
|
@@ -66292,7 +66292,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66292
66292
|
"success": "#087f5b",
|
|
66293
66293
|
"info": "#0550ae",
|
|
66294
66294
|
"warning": "#e3b341",
|
|
66295
|
-
"
|
|
66295
|
+
"danger": "#D8314A",
|
|
66296
66296
|
"positive": "#22c55e",
|
|
66297
66297
|
"negative": "#dc2626"
|
|
66298
66298
|
},
|
|
@@ -66305,7 +66305,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66305
66305
|
"success": "#10b981",
|
|
66306
66306
|
"info": "#58a6ff",
|
|
66307
66307
|
"warning": "#f3d371",
|
|
66308
|
-
"
|
|
66308
|
+
"danger": "#D8314A",
|
|
66309
66309
|
"positive": "#22c55e",
|
|
66310
66310
|
"negative": "#dc2626"
|
|
66311
66311
|
}
|
|
@@ -66328,7 +66328,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66328
66328
|
organization: "storm-software",
|
|
66329
66329
|
configFile: null,
|
|
66330
66330
|
runtimeVersion: "1.0.0",
|
|
66331
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66332
66331
|
extensions: {}
|
|
66333
66332
|
};
|
|
66334
66333
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66371,7 +66370,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66371
66370
|
}
|
|
66372
66371
|
return ret;
|
|
66373
66372
|
}, {}),
|
|
66374
|
-
colors: config.colors
|
|
66373
|
+
colors: config.colors,
|
|
66375
66374
|
workspaceRoot,
|
|
66376
66375
|
name,
|
|
66377
66376
|
namespace,
|
|
@@ -66473,9 +66472,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66473
66472
|
return (message) => {
|
|
66474
66473
|
console.error(
|
|
66475
66474
|
`
|
|
66476
|
-
${_chalk.bold.hex(colors.
|
|
66475
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66477
66476
|
" \u{1F480} Fatal "
|
|
66478
|
-
)} ${_chalk.hex(colors.
|
|
66477
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66479
66478
|
`
|
|
66480
66479
|
);
|
|
66481
66480
|
};
|
|
@@ -66484,9 +66483,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66484
66483
|
return (message) => {
|
|
66485
66484
|
console.error(
|
|
66486
66485
|
`
|
|
66487
|
-
${_chalk.bold.hex(colors.
|
|
66486
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66488
66487
|
" \u2718 Error "
|
|
66489
|
-
)} ${_chalk.hex(colors.
|
|
66488
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66490
66489
|
`
|
|
66491
66490
|
);
|
|
66492
66491
|
};
|
|
@@ -66844,7 +66843,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66844
66843
|
success: process.env[`${prefix}SUCCESS`],
|
|
66845
66844
|
info: process.env[`${prefix}INFO`],
|
|
66846
66845
|
warning: process.env[`${prefix}WARNING`],
|
|
66847
|
-
|
|
66846
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66848
66847
|
fatal: process.env[`${prefix}FATAL`],
|
|
66849
66848
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66850
66849
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66870,7 +66869,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66870
66869
|
success: process.env[`${prefix}SUCCESS`],
|
|
66871
66870
|
info: process.env[`${prefix}INFO`],
|
|
66872
66871
|
warning: process.env[`${prefix}WARNING`],
|
|
66873
|
-
|
|
66872
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66874
66873
|
fatal: process.env[`${prefix}FATAL`],
|
|
66875
66874
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66876
66875
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67090,8 +67089,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67090
67089
|
if (config.warning) {
|
|
67091
67090
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67092
67091
|
}
|
|
67093
|
-
if (config.
|
|
67094
|
-
process.env[`${prefix}
|
|
67092
|
+
if (config.danger) {
|
|
67093
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67095
67094
|
}
|
|
67096
67095
|
if (config.fatal) {
|
|
67097
67096
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67140,8 +67139,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67140
67139
|
if (config.warning) {
|
|
67141
67140
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67142
67141
|
}
|
|
67143
|
-
if (config.
|
|
67144
|
-
process.env[`${prefix}
|
|
67142
|
+
if (config.danger) {
|
|
67143
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67145
67144
|
}
|
|
67146
67145
|
if (config.fatal) {
|
|
67147
67146
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/index.js
CHANGED
|
@@ -66072,17 +66072,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66072
66072
|
});
|
|
66073
66073
|
|
|
66074
66074
|
// packages/config/src/schema.ts
|
|
66075
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66075
|
+
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
66076
66076
|
var LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
66077
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66077
|
+
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
66078
66078
|
var AlternateColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
66079
66079
|
var AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
66080
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66080
|
+
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
66081
66081
|
var HelpColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
66082
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66083
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66082
|
+
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
66083
|
+
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
66084
66084
|
var WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
66085
|
-
var
|
|
66085
|
+
var DangerColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
66086
66086
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66087
66087
|
var PositiveColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
66088
66088
|
var NegativeColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -66097,7 +66097,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66097
66097
|
success: SuccessColorSchema,
|
|
66098
66098
|
info: InfoColorSchema,
|
|
66099
66099
|
warning: WarningColorSchema,
|
|
66100
|
-
|
|
66100
|
+
danger: DangerColorSchema,
|
|
66101
66101
|
fatal: FatalColorSchema,
|
|
66102
66102
|
positive: PositiveColorSchema,
|
|
66103
66103
|
negative: NegativeColorSchema
|
|
@@ -66113,7 +66113,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66113
66113
|
success: SuccessColorSchema,
|
|
66114
66114
|
info: InfoColorSchema,
|
|
66115
66115
|
warning: WarningColorSchema,
|
|
66116
|
-
|
|
66116
|
+
danger: DangerColorSchema,
|
|
66117
66117
|
fatal: FatalColorSchema,
|
|
66118
66118
|
positive: PositiveColorSchema,
|
|
66119
66119
|
negative: NegativeColorSchema
|
|
@@ -66133,7 +66133,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66133
66133
|
success: SuccessColorSchema,
|
|
66134
66134
|
info: InfoColorSchema,
|
|
66135
66135
|
warning: WarningColorSchema,
|
|
66136
|
-
|
|
66136
|
+
danger: DangerColorSchema,
|
|
66137
66137
|
fatal: FatalColorSchema,
|
|
66138
66138
|
positive: PositiveColorSchema,
|
|
66139
66139
|
negative: NegativeColorSchema
|
|
@@ -66230,7 +66230,7 @@ var COLOR_KEYS = [
|
|
|
66230
66230
|
"help",
|
|
66231
66231
|
"info",
|
|
66232
66232
|
"warning",
|
|
66233
|
-
"
|
|
66233
|
+
"danger",
|
|
66234
66234
|
"fatal",
|
|
66235
66235
|
"positive",
|
|
66236
66236
|
"negative"
|
|
@@ -66249,7 +66249,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66249
66249
|
"success": "#087f5b",
|
|
66250
66250
|
"info": "#0550ae",
|
|
66251
66251
|
"warning": "#e3b341",
|
|
66252
|
-
"
|
|
66252
|
+
"danger": "#D8314A",
|
|
66253
66253
|
"positive": "#22c55e",
|
|
66254
66254
|
"negative": "#dc2626"
|
|
66255
66255
|
},
|
|
@@ -66262,7 +66262,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66262
66262
|
"success": "#10b981",
|
|
66263
66263
|
"info": "#58a6ff",
|
|
66264
66264
|
"warning": "#f3d371",
|
|
66265
|
-
"
|
|
66265
|
+
"danger": "#D8314A",
|
|
66266
66266
|
"positive": "#22c55e",
|
|
66267
66267
|
"negative": "#dc2626"
|
|
66268
66268
|
}
|
|
@@ -66285,7 +66285,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66285
66285
|
organization: "storm-software",
|
|
66286
66286
|
configFile: null,
|
|
66287
66287
|
runtimeVersion: "1.0.0",
|
|
66288
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66289
66288
|
extensions: {}
|
|
66290
66289
|
};
|
|
66291
66290
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66328,7 +66327,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66328
66327
|
}
|
|
66329
66328
|
return ret;
|
|
66330
66329
|
}, {}),
|
|
66331
|
-
colors: config.colors
|
|
66330
|
+
colors: config.colors,
|
|
66332
66331
|
workspaceRoot,
|
|
66333
66332
|
name,
|
|
66334
66333
|
namespace,
|
|
@@ -66430,9 +66429,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66430
66429
|
return (message) => {
|
|
66431
66430
|
console.error(
|
|
66432
66431
|
`
|
|
66433
|
-
${_chalk.bold.hex(colors.
|
|
66432
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66434
66433
|
" \u{1F480} Fatal "
|
|
66435
|
-
)} ${_chalk.hex(colors.
|
|
66434
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66436
66435
|
`
|
|
66437
66436
|
);
|
|
66438
66437
|
};
|
|
@@ -66441,9 +66440,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66441
66440
|
return (message) => {
|
|
66442
66441
|
console.error(
|
|
66443
66442
|
`
|
|
66444
|
-
${_chalk.bold.hex(colors.
|
|
66443
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66445
66444
|
" \u2718 Error "
|
|
66446
|
-
)} ${_chalk.hex(colors.
|
|
66445
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66447
66446
|
`
|
|
66448
66447
|
);
|
|
66449
66448
|
};
|
|
@@ -66801,7 +66800,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66801
66800
|
success: process.env[`${prefix}SUCCESS`],
|
|
66802
66801
|
info: process.env[`${prefix}INFO`],
|
|
66803
66802
|
warning: process.env[`${prefix}WARNING`],
|
|
66804
|
-
|
|
66803
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66805
66804
|
fatal: process.env[`${prefix}FATAL`],
|
|
66806
66805
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66807
66806
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66827,7 +66826,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66827
66826
|
success: process.env[`${prefix}SUCCESS`],
|
|
66828
66827
|
info: process.env[`${prefix}INFO`],
|
|
66829
66828
|
warning: process.env[`${prefix}WARNING`],
|
|
66830
|
-
|
|
66829
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66831
66830
|
fatal: process.env[`${prefix}FATAL`],
|
|
66832
66831
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66833
66832
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67047,8 +67046,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67047
67046
|
if (config.warning) {
|
|
67048
67047
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67049
67048
|
}
|
|
67050
|
-
if (config.
|
|
67051
|
-
process.env[`${prefix}
|
|
67049
|
+
if (config.danger) {
|
|
67050
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67052
67051
|
}
|
|
67053
67052
|
if (config.fatal) {
|
|
67054
67053
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67097,8 +67096,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67097
67096
|
if (config.warning) {
|
|
67098
67097
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67099
67098
|
}
|
|
67100
|
-
if (config.
|
|
67101
|
-
process.env[`${prefix}
|
|
67099
|
+
if (config.danger) {
|
|
67100
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67102
67101
|
}
|
|
67103
67102
|
if (config.fatal) {
|
|
67104
67103
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/meta.cjs.json
CHANGED
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
"format": "esm"
|
|
3381
3381
|
},
|
|
3382
3382
|
"packages/config/src/schema.ts": {
|
|
3383
|
-
"bytes":
|
|
3383
|
+
"bytes": 10999,
|
|
3384
3384
|
"imports": [
|
|
3385
3385
|
{
|
|
3386
3386
|
"path": "node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs",
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
"format": "esm"
|
|
3397
3397
|
},
|
|
3398
3398
|
"packages/config/src/types.ts": {
|
|
3399
|
-
"bytes":
|
|
3399
|
+
"bytes": 1954,
|
|
3400
3400
|
"imports": [],
|
|
3401
3401
|
"format": "esm"
|
|
3402
3402
|
},
|
|
@@ -3427,7 +3427,7 @@
|
|
|
3427
3427
|
"format": "esm"
|
|
3428
3428
|
},
|
|
3429
3429
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
3430
|
-
"bytes":
|
|
3430
|
+
"bytes": 3500,
|
|
3431
3431
|
"imports": [
|
|
3432
3432
|
{
|
|
3433
3433
|
"path": "packages/config/src/index.ts",
|
|
@@ -3469,7 +3469,7 @@
|
|
|
3469
3469
|
"format": "esm"
|
|
3470
3470
|
},
|
|
3471
3471
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
3472
|
-
"bytes":
|
|
3472
|
+
"bytes": 9437,
|
|
3473
3473
|
"imports": [
|
|
3474
3474
|
{
|
|
3475
3475
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -3610,7 +3610,7 @@
|
|
|
3610
3610
|
"format": "esm"
|
|
3611
3611
|
},
|
|
3612
3612
|
"packages/config-tools/src/env/get-env.ts": {
|
|
3613
|
-
"bytes":
|
|
3613
|
+
"bytes": 9364,
|
|
3614
3614
|
"imports": [
|
|
3615
3615
|
{
|
|
3616
3616
|
"path": "packages/config/src/index.ts",
|
|
@@ -3631,7 +3631,7 @@
|
|
|
3631
3631
|
"format": "esm"
|
|
3632
3632
|
},
|
|
3633
3633
|
"packages/config-tools/src/env/set-env.ts": {
|
|
3634
|
-
"bytes":
|
|
3634
|
+
"bytes": 11104,
|
|
3635
3635
|
"imports": [
|
|
3636
3636
|
{
|
|
3637
3637
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -5172,13 +5172,13 @@
|
|
|
5172
5172
|
"bytesInOutput": 117366
|
|
5173
5173
|
},
|
|
5174
5174
|
"packages/config/src/schema.ts": {
|
|
5175
|
-
"bytesInOutput":
|
|
5175
|
+
"bytesInOutput": 9200
|
|
5176
5176
|
},
|
|
5177
5177
|
"packages/config/src/types.ts": {
|
|
5178
|
-
"bytesInOutput":
|
|
5178
|
+
"bytesInOutput": 197
|
|
5179
5179
|
},
|
|
5180
5180
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5181
|
-
"bytesInOutput":
|
|
5181
|
+
"bytesInOutput": 3002
|
|
5182
5182
|
},
|
|
5183
5183
|
"packages/config-tools/src/types.ts": {
|
|
5184
5184
|
"bytesInOutput": 297
|
|
@@ -5187,7 +5187,7 @@
|
|
|
5187
5187
|
"bytesInOutput": 1125
|
|
5188
5188
|
},
|
|
5189
5189
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5190
|
-
"bytesInOutput":
|
|
5190
|
+
"bytesInOutput": 5815
|
|
5191
5191
|
},
|
|
5192
5192
|
"packages/config-tools/src/utilities/process-handler.ts": {
|
|
5193
5193
|
"bytesInOutput": 1268
|
|
@@ -5202,16 +5202,16 @@
|
|
|
5202
5202
|
"bytesInOutput": 2799
|
|
5203
5203
|
},
|
|
5204
5204
|
"packages/config-tools/src/env/get-env.ts": {
|
|
5205
|
-
"bytesInOutput":
|
|
5205
|
+
"bytesInOutput": 6602
|
|
5206
5206
|
},
|
|
5207
5207
|
"packages/config-tools/src/env/set-env.ts": {
|
|
5208
|
-
"bytesInOutput":
|
|
5208
|
+
"bytesInOutput": 8711
|
|
5209
5209
|
},
|
|
5210
5210
|
"packages/config-tools/src/env/index.ts": {
|
|
5211
5211
|
"bytesInOutput": 0
|
|
5212
5212
|
}
|
|
5213
5213
|
},
|
|
5214
|
-
"bytes":
|
|
5214
|
+
"bytes": 4132450
|
|
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": 6277
|
|
5344
5344
|
},
|
|
5345
5345
|
"packages/config-tools/src/types.ts": {
|
|
5346
5346
|
"bytesInOutput": 297
|
|
@@ -5358,16 +5358,16 @@
|
|
|
5358
5358
|
"bytesInOutput": 116969
|
|
5359
5359
|
},
|
|
5360
5360
|
"packages/config/src/schema.ts": {
|
|
5361
|
-
"bytesInOutput":
|
|
5361
|
+
"bytesInOutput": 9143
|
|
5362
5362
|
},
|
|
5363
5363
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5364
|
-
"bytesInOutput":
|
|
5364
|
+
"bytesInOutput": 638
|
|
5365
5365
|
},
|
|
5366
5366
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
5367
5367
|
"bytesInOutput": 468
|
|
5368
5368
|
}
|
|
5369
5369
|
},
|
|
5370
|
-
"bytes":
|
|
5370
|
+
"bytes": 186094
|
|
5371
5371
|
}
|
|
5372
5372
|
}
|
|
5373
5373
|
}
|
package/meta.esm.json
CHANGED
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
"format": "esm"
|
|
3381
3381
|
},
|
|
3382
3382
|
"packages/config/src/schema.ts": {
|
|
3383
|
-
"bytes":
|
|
3383
|
+
"bytes": 10999,
|
|
3384
3384
|
"imports": [
|
|
3385
3385
|
{
|
|
3386
3386
|
"path": "node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs",
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
"format": "esm"
|
|
3397
3397
|
},
|
|
3398
3398
|
"packages/config/src/types.ts": {
|
|
3399
|
-
"bytes":
|
|
3399
|
+
"bytes": 1954,
|
|
3400
3400
|
"imports": [],
|
|
3401
3401
|
"format": "esm"
|
|
3402
3402
|
},
|
|
@@ -3427,7 +3427,7 @@
|
|
|
3427
3427
|
"format": "esm"
|
|
3428
3428
|
},
|
|
3429
3429
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
3430
|
-
"bytes":
|
|
3430
|
+
"bytes": 3500,
|
|
3431
3431
|
"imports": [
|
|
3432
3432
|
{
|
|
3433
3433
|
"path": "packages/config/src/index.ts",
|
|
@@ -3469,7 +3469,7 @@
|
|
|
3469
3469
|
"format": "esm"
|
|
3470
3470
|
},
|
|
3471
3471
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
3472
|
-
"bytes":
|
|
3472
|
+
"bytes": 9437,
|
|
3473
3473
|
"imports": [
|
|
3474
3474
|
{
|
|
3475
3475
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -3610,7 +3610,7 @@
|
|
|
3610
3610
|
"format": "esm"
|
|
3611
3611
|
},
|
|
3612
3612
|
"packages/config-tools/src/env/get-env.ts": {
|
|
3613
|
-
"bytes":
|
|
3613
|
+
"bytes": 9364,
|
|
3614
3614
|
"imports": [
|
|
3615
3615
|
{
|
|
3616
3616
|
"path": "packages/config/src/index.ts",
|
|
@@ -3631,7 +3631,7 @@
|
|
|
3631
3631
|
"format": "esm"
|
|
3632
3632
|
},
|
|
3633
3633
|
"packages/config-tools/src/env/set-env.ts": {
|
|
3634
|
-
"bytes":
|
|
3634
|
+
"bytes": 11104,
|
|
3635
3635
|
"imports": [
|
|
3636
3636
|
{
|
|
3637
3637
|
"path": "packages/config-tools/src/types.ts",
|
|
@@ -5212,13 +5212,13 @@
|
|
|
5212
5212
|
"bytesInOutput": 117366
|
|
5213
5213
|
},
|
|
5214
5214
|
"packages/config/src/schema.ts": {
|
|
5215
|
-
"bytesInOutput":
|
|
5215
|
+
"bytesInOutput": 9200
|
|
5216
5216
|
},
|
|
5217
5217
|
"packages/config/src/types.ts": {
|
|
5218
|
-
"bytesInOutput":
|
|
5218
|
+
"bytesInOutput": 197
|
|
5219
5219
|
},
|
|
5220
5220
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5221
|
-
"bytesInOutput":
|
|
5221
|
+
"bytesInOutput": 2954
|
|
5222
5222
|
},
|
|
5223
5223
|
"packages/config-tools/src/types.ts": {
|
|
5224
5224
|
"bytesInOutput": 297
|
|
@@ -5227,7 +5227,7 @@
|
|
|
5227
5227
|
"bytesInOutput": 1125
|
|
5228
5228
|
},
|
|
5229
5229
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5230
|
-
"bytesInOutput":
|
|
5230
|
+
"bytesInOutput": 5815
|
|
5231
5231
|
},
|
|
5232
5232
|
"packages/config-tools/src/utilities/process-handler.ts": {
|
|
5233
5233
|
"bytesInOutput": 1268
|
|
@@ -5245,16 +5245,16 @@
|
|
|
5245
5245
|
"bytesInOutput": 2799
|
|
5246
5246
|
},
|
|
5247
5247
|
"packages/config-tools/src/env/get-env.ts": {
|
|
5248
|
-
"bytesInOutput":
|
|
5248
|
+
"bytesInOutput": 6602
|
|
5249
5249
|
},
|
|
5250
5250
|
"packages/config-tools/src/env/set-env.ts": {
|
|
5251
|
-
"bytesInOutput":
|
|
5251
|
+
"bytesInOutput": 8711
|
|
5252
5252
|
},
|
|
5253
5253
|
"packages/config-tools/src/env/index.ts": {
|
|
5254
5254
|
"bytesInOutput": 0
|
|
5255
5255
|
}
|
|
5256
5256
|
},
|
|
5257
|
-
"bytes":
|
|
5257
|
+
"bytes": 4127064
|
|
5258
5258
|
},
|
|
5259
5259
|
"dist/packages/config-tools/utilities/find-workspace-root.js": {
|
|
5260
5260
|
"imports": [
|
|
@@ -5415,19 +5415,19 @@
|
|
|
5415
5415
|
"bytesInOutput": 116969
|
|
5416
5416
|
},
|
|
5417
5417
|
"packages/config/src/schema.ts": {
|
|
5418
|
-
"bytesInOutput":
|
|
5418
|
+
"bytesInOutput": 9143
|
|
5419
5419
|
},
|
|
5420
5420
|
"packages/config-tools/src/utilities/get-default-config.ts": {
|
|
5421
|
-
"bytesInOutput":
|
|
5421
|
+
"bytesInOutput": 638
|
|
5422
5422
|
},
|
|
5423
5423
|
"packages/config-tools/src/utilities/get-log-level.ts": {
|
|
5424
5424
|
"bytesInOutput": 468
|
|
5425
5425
|
},
|
|
5426
5426
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5427
|
-
"bytesInOutput":
|
|
5427
|
+
"bytesInOutput": 5803
|
|
5428
5428
|
}
|
|
5429
5429
|
},
|
|
5430
|
-
"bytes":
|
|
5430
|
+
"bytes": 185611
|
|
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.
|
|
3
|
+
"version": "1.110.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
|
@@ -5560,17 +5560,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5560
5560
|
});
|
|
5561
5561
|
|
|
5562
5562
|
// packages/config/src/schema.ts
|
|
5563
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5563
|
+
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
5564
5564
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
5565
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5565
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
5566
5566
|
var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
5567
5567
|
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
5568
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
5568
|
+
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
5569
5569
|
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
5570
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5571
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5570
|
+
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
5571
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
5572
5572
|
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
5573
|
-
var
|
|
5573
|
+
var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
5574
5574
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
5575
5575
|
var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
5576
5576
|
var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -5585,7 +5585,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
5585
5585
|
success: SuccessColorSchema,
|
|
5586
5586
|
info: InfoColorSchema,
|
|
5587
5587
|
warning: WarningColorSchema,
|
|
5588
|
-
|
|
5588
|
+
danger: DangerColorSchema,
|
|
5589
5589
|
fatal: FatalColorSchema,
|
|
5590
5590
|
positive: PositiveColorSchema,
|
|
5591
5591
|
negative: NegativeColorSchema
|
|
@@ -5601,7 +5601,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
5601
5601
|
success: SuccessColorSchema,
|
|
5602
5602
|
info: InfoColorSchema,
|
|
5603
5603
|
warning: WarningColorSchema,
|
|
5604
|
-
|
|
5604
|
+
danger: DangerColorSchema,
|
|
5605
5605
|
fatal: FatalColorSchema,
|
|
5606
5606
|
positive: PositiveColorSchema,
|
|
5607
5607
|
negative: NegativeColorSchema
|
|
@@ -5621,7 +5621,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
5621
5621
|
success: SuccessColorSchema,
|
|
5622
5622
|
info: InfoColorSchema,
|
|
5623
5623
|
warning: WarningColorSchema,
|
|
5624
|
-
|
|
5624
|
+
danger: DangerColorSchema,
|
|
5625
5625
|
fatal: FatalColorSchema,
|
|
5626
5626
|
positive: PositiveColorSchema,
|
|
5627
5627
|
negative: NegativeColorSchema
|
|
@@ -5716,7 +5716,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5716
5716
|
"success": "#087f5b",
|
|
5717
5717
|
"info": "#0550ae",
|
|
5718
5718
|
"warning": "#e3b341",
|
|
5719
|
-
"
|
|
5719
|
+
"danger": "#D8314A",
|
|
5720
5720
|
"positive": "#22c55e",
|
|
5721
5721
|
"negative": "#dc2626"
|
|
5722
5722
|
},
|
|
@@ -5729,32 +5729,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5729
5729
|
"success": "#10b981",
|
|
5730
5730
|
"info": "#58a6ff",
|
|
5731
5731
|
"warning": "#f3d371",
|
|
5732
|
-
"
|
|
5732
|
+
"danger": "#D8314A",
|
|
5733
5733
|
"positive": "#22c55e",
|
|
5734
5734
|
"negative": "#dc2626"
|
|
5735
5735
|
}
|
|
5736
5736
|
};
|
|
5737
|
-
var DEFAULT_STORM_CONFIG = {
|
|
5738
|
-
name: "storm",
|
|
5739
|
-
namespace: "storm-software",
|
|
5740
|
-
license: "Apache 2.0",
|
|
5741
|
-
homepage: "https://stormsoftware.com",
|
|
5742
|
-
owner: "@storm-software/development",
|
|
5743
|
-
worker: "stormie-bot",
|
|
5744
|
-
runtimeDirectory: "node_modules/.storm",
|
|
5745
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
5746
|
-
skipCache: false,
|
|
5747
|
-
packageManager: "npm",
|
|
5748
|
-
timezone: "America/New_York",
|
|
5749
|
-
locale: "en-US",
|
|
5750
|
-
env: "production",
|
|
5751
|
-
branch: "main",
|
|
5752
|
-
organization: "storm-software",
|
|
5753
|
-
configFile: null,
|
|
5754
|
-
runtimeVersion: "1.0.0",
|
|
5755
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
5756
|
-
extensions: {}
|
|
5757
|
-
};
|
|
5758
5737
|
|
|
5759
5738
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
5760
5739
|
var getLogLevel = (label) => {
|
|
@@ -5793,9 +5772,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5793
5772
|
return (message) => {
|
|
5794
5773
|
console.error(
|
|
5795
5774
|
`
|
|
5796
|
-
${_chalk.bold.hex(colors.
|
|
5775
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5797
5776
|
" \u{1F480} Fatal "
|
|
5798
|
-
)} ${_chalk.hex(colors.
|
|
5777
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5799
5778
|
`
|
|
5800
5779
|
);
|
|
5801
5780
|
};
|
|
@@ -5804,9 +5783,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
5804
5783
|
return (message) => {
|
|
5805
5784
|
console.error(
|
|
5806
5785
|
`
|
|
5807
|
-
${_chalk.bold.hex(colors.
|
|
5786
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5808
5787
|
" \u2718 Error "
|
|
5809
|
-
)} ${_chalk.hex(colors.
|
|
5788
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5810
5789
|
`
|
|
5811
5790
|
);
|
|
5812
5791
|
};
|
package/utilities/logger.js
CHANGED
|
@@ -5544,17 +5544,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5544
5544
|
});
|
|
5545
5545
|
|
|
5546
5546
|
// packages/config/src/schema.ts
|
|
5547
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5547
|
+
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
5548
5548
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
5549
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5549
|
+
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
5550
5550
|
var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
|
|
5551
5551
|
var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
|
|
5552
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
5552
|
+
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
|
|
5553
5553
|
var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
5554
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5555
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5554
|
+
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
|
|
5555
|
+
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
|
|
5556
5556
|
var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
5557
|
-
var
|
|
5557
|
+
var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
|
|
5558
5558
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
5559
5559
|
var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
|
|
5560
5560
|
var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
|
|
@@ -5569,7 +5569,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
5569
5569
|
success: SuccessColorSchema,
|
|
5570
5570
|
info: InfoColorSchema,
|
|
5571
5571
|
warning: WarningColorSchema,
|
|
5572
|
-
|
|
5572
|
+
danger: DangerColorSchema,
|
|
5573
5573
|
fatal: FatalColorSchema,
|
|
5574
5574
|
positive: PositiveColorSchema,
|
|
5575
5575
|
negative: NegativeColorSchema
|
|
@@ -5585,7 +5585,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
5585
5585
|
success: SuccessColorSchema,
|
|
5586
5586
|
info: InfoColorSchema,
|
|
5587
5587
|
warning: WarningColorSchema,
|
|
5588
|
-
|
|
5588
|
+
danger: DangerColorSchema,
|
|
5589
5589
|
fatal: FatalColorSchema,
|
|
5590
5590
|
positive: PositiveColorSchema,
|
|
5591
5591
|
negative: NegativeColorSchema
|
|
@@ -5605,7 +5605,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
5605
5605
|
success: SuccessColorSchema,
|
|
5606
5606
|
info: InfoColorSchema,
|
|
5607
5607
|
warning: WarningColorSchema,
|
|
5608
|
-
|
|
5608
|
+
danger: DangerColorSchema,
|
|
5609
5609
|
fatal: FatalColorSchema,
|
|
5610
5610
|
positive: PositiveColorSchema,
|
|
5611
5611
|
negative: NegativeColorSchema
|
|
@@ -5700,7 +5700,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5700
5700
|
"success": "#087f5b",
|
|
5701
5701
|
"info": "#0550ae",
|
|
5702
5702
|
"warning": "#e3b341",
|
|
5703
|
-
"
|
|
5703
|
+
"danger": "#D8314A",
|
|
5704
5704
|
"positive": "#22c55e",
|
|
5705
5705
|
"negative": "#dc2626"
|
|
5706
5706
|
},
|
|
@@ -5713,32 +5713,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5713
5713
|
"success": "#10b981",
|
|
5714
5714
|
"info": "#58a6ff",
|
|
5715
5715
|
"warning": "#f3d371",
|
|
5716
|
-
"
|
|
5716
|
+
"danger": "#D8314A",
|
|
5717
5717
|
"positive": "#22c55e",
|
|
5718
5718
|
"negative": "#dc2626"
|
|
5719
5719
|
}
|
|
5720
5720
|
};
|
|
5721
|
-
var DEFAULT_STORM_CONFIG = {
|
|
5722
|
-
name: "storm",
|
|
5723
|
-
namespace: "storm-software",
|
|
5724
|
-
license: "Apache 2.0",
|
|
5725
|
-
homepage: "https://stormsoftware.com",
|
|
5726
|
-
owner: "@storm-software/development",
|
|
5727
|
-
worker: "stormie-bot",
|
|
5728
|
-
runtimeDirectory: "node_modules/.storm",
|
|
5729
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
5730
|
-
skipCache: false,
|
|
5731
|
-
packageManager: "npm",
|
|
5732
|
-
timezone: "America/New_York",
|
|
5733
|
-
locale: "en-US",
|
|
5734
|
-
env: "production",
|
|
5735
|
-
branch: "main",
|
|
5736
|
-
organization: "storm-software",
|
|
5737
|
-
configFile: null,
|
|
5738
|
-
runtimeVersion: "1.0.0",
|
|
5739
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
5740
|
-
extensions: {}
|
|
5741
|
-
};
|
|
5742
5721
|
|
|
5743
5722
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
5744
5723
|
var getLogLevel = (label) => {
|
|
@@ -5777,9 +5756,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5777
5756
|
return (message) => {
|
|
5778
5757
|
console.error(
|
|
5779
5758
|
`
|
|
5780
|
-
${_chalk.bold.hex(colors.
|
|
5759
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5781
5760
|
" \u{1F480} Fatal "
|
|
5782
|
-
)} ${_chalk.hex(colors.
|
|
5761
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5783
5762
|
`
|
|
5784
5763
|
);
|
|
5785
5764
|
};
|
|
@@ -5788,9 +5767,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
5788
5767
|
return (message) => {
|
|
5789
5768
|
console.error(
|
|
5790
5769
|
`
|
|
5791
|
-
${_chalk.bold.hex(colors.
|
|
5770
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5792
5771
|
" \u2718 Error "
|
|
5793
|
-
)} ${_chalk.hex(colors.
|
|
5772
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5794
5773
|
`
|
|
5795
5774
|
);
|
|
5796
5775
|
};
|