@storm-software/linting-tools 1.88.0 → 1.90.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/bin/lint.js +33 -41
- package/package.json +1 -1
- package/src/cli/index.js +33 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.90.0 (2024-11-08)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **build-tools:** Added back cjs build and local package.json dependencies ([d86d3c2a](https://github.com/storm-software/storm-ops/commit/d86d3c2a))
|
|
6
|
+
|
|
7
|
+
## 1.89.0 (2024-11-07)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **config:** Add the `danger` color token ([06dba937](https://github.com/storm-software/storm-ops/commit/06dba937))
|
|
12
|
+
|
|
1
13
|
## 1.88.0 (2024-11-01)
|
|
2
14
|
|
|
3
15
|
### Features
|
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/bin/lint.js
CHANGED
|
@@ -356608,17 +356608,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
356608
356608
|
});
|
|
356609
356609
|
|
|
356610
356610
|
// packages/config/src/schema.ts
|
|
356611
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
356611
|
+
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");
|
|
356612
356612
|
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");
|
|
356613
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
356613
|
+
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");
|
|
356614
356614
|
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");
|
|
356615
356615
|
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");
|
|
356616
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
356616
|
+
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");
|
|
356617
356617
|
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");
|
|
356618
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
356619
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
356618
|
+
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");
|
|
356619
|
+
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");
|
|
356620
356620
|
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");
|
|
356621
|
-
var
|
|
356621
|
+
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");
|
|
356622
356622
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
356623
356623
|
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");
|
|
356624
356624
|
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");
|
|
@@ -356633,7 +356633,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
356633
356633
|
success: SuccessColorSchema,
|
|
356634
356634
|
info: InfoColorSchema,
|
|
356635
356635
|
warning: WarningColorSchema,
|
|
356636
|
-
|
|
356636
|
+
danger: DangerColorSchema,
|
|
356637
356637
|
fatal: FatalColorSchema,
|
|
356638
356638
|
positive: PositiveColorSchema,
|
|
356639
356639
|
negative: NegativeColorSchema
|
|
@@ -356649,7 +356649,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
356649
356649
|
success: SuccessColorSchema,
|
|
356650
356650
|
info: InfoColorSchema,
|
|
356651
356651
|
warning: WarningColorSchema,
|
|
356652
|
-
|
|
356652
|
+
danger: DangerColorSchema,
|
|
356653
356653
|
fatal: FatalColorSchema,
|
|
356654
356654
|
positive: PositiveColorSchema,
|
|
356655
356655
|
negative: NegativeColorSchema
|
|
@@ -356669,7 +356669,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
356669
356669
|
success: SuccessColorSchema,
|
|
356670
356670
|
info: InfoColorSchema,
|
|
356671
356671
|
warning: WarningColorSchema,
|
|
356672
|
-
|
|
356672
|
+
danger: DangerColorSchema,
|
|
356673
356673
|
fatal: FatalColorSchema,
|
|
356674
356674
|
positive: PositiveColorSchema,
|
|
356675
356675
|
negative: NegativeColorSchema
|
|
@@ -356766,7 +356766,7 @@ var COLOR_KEYS = [
|
|
|
356766
356766
|
"help",
|
|
356767
356767
|
"info",
|
|
356768
356768
|
"warning",
|
|
356769
|
-
"
|
|
356769
|
+
"danger",
|
|
356770
356770
|
"fatal",
|
|
356771
356771
|
"positive",
|
|
356772
356772
|
"negative"
|
|
@@ -356785,7 +356785,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
356785
356785
|
"success": "#087f5b",
|
|
356786
356786
|
"info": "#0550ae",
|
|
356787
356787
|
"warning": "#e3b341",
|
|
356788
|
-
"
|
|
356788
|
+
"danger": "#D8314A",
|
|
356789
356789
|
"positive": "#22c55e",
|
|
356790
356790
|
"negative": "#dc2626"
|
|
356791
356791
|
},
|
|
@@ -356798,7 +356798,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
356798
356798
|
"success": "#10b981",
|
|
356799
356799
|
"info": "#58a6ff",
|
|
356800
356800
|
"warning": "#f3d371",
|
|
356801
|
-
"
|
|
356801
|
+
"danger": "#D8314A",
|
|
356802
356802
|
"positive": "#22c55e",
|
|
356803
356803
|
"negative": "#dc2626"
|
|
356804
356804
|
}
|
|
@@ -356821,7 +356821,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
356821
356821
|
organization: "storm-software",
|
|
356822
356822
|
configFile: null,
|
|
356823
356823
|
runtimeVersion: "1.0.0",
|
|
356824
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
356825
356824
|
extensions: {}
|
|
356826
356825
|
};
|
|
356827
356826
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -356864,7 +356863,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
356864
356863
|
}
|
|
356865
356864
|
return ret;
|
|
356866
356865
|
}, {}),
|
|
356867
|
-
colors: config.colors
|
|
356866
|
+
colors: config.colors,
|
|
356868
356867
|
workspaceRoot,
|
|
356869
356868
|
name,
|
|
356870
356869
|
namespace,
|
|
@@ -356965,10 +356964,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
356965
356964
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
356966
356965
|
return (message) => {
|
|
356967
356966
|
console.error(
|
|
356968
|
-
|
|
356969
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
356967
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
356970
356968
|
" \u{1F480} Fatal "
|
|
356971
|
-
)} ${_chalk.hex(colors.
|
|
356969
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
356972
356970
|
`
|
|
356973
356971
|
);
|
|
356974
356972
|
};
|
|
@@ -356976,10 +356974,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
356976
356974
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
356977
356975
|
return (message) => {
|
|
356978
356976
|
console.error(
|
|
356979
|
-
|
|
356980
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
356977
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
356981
356978
|
" \u2718 Error "
|
|
356982
|
-
)} ${_chalk.hex(colors.
|
|
356979
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
356983
356980
|
`
|
|
356984
356981
|
);
|
|
356985
356982
|
};
|
|
@@ -356987,10 +356984,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
356987
356984
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
356988
356985
|
return (message) => {
|
|
356989
356986
|
console.warn(
|
|
356990
|
-
|
|
356991
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
356987
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
356992
356988
|
" \u26A0 Warn "
|
|
356993
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
356989
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
356994
356990
|
`
|
|
356995
356991
|
);
|
|
356996
356992
|
};
|
|
@@ -356998,10 +356994,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
356998
356994
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
356999
356995
|
return (message) => {
|
|
357000
356996
|
console.info(
|
|
357001
|
-
|
|
357002
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
356997
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
357003
356998
|
" \u2713 Success "
|
|
357004
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
356999
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
357005
357000
|
`
|
|
357006
357001
|
);
|
|
357007
357002
|
};
|
|
@@ -357009,10 +357004,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
357009
357004
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
357010
357005
|
return (message) => {
|
|
357011
357006
|
console.info(
|
|
357012
|
-
|
|
357013
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
357007
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
357014
357008
|
" \u2139 Info "
|
|
357015
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
357009
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
357016
357010
|
`
|
|
357017
357011
|
);
|
|
357018
357012
|
};
|
|
@@ -357020,20 +357014,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
357020
357014
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
357021
357015
|
return (message) => {
|
|
357022
357016
|
console.debug(
|
|
357023
|
-
|
|
357024
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357017
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357025
357018
|
" \u{1F6E0} Debug "
|
|
357026
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
357019
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
357027
357020
|
`
|
|
357028
357021
|
);
|
|
357029
357022
|
};
|
|
357030
357023
|
}
|
|
357031
357024
|
return (message) => {
|
|
357032
357025
|
console.log(
|
|
357033
|
-
|
|
357034
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357026
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357035
357027
|
" \u2709 System "
|
|
357036
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
357028
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
357037
357029
|
`
|
|
357038
357030
|
);
|
|
357039
357031
|
};
|
|
@@ -357294,7 +357286,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
357294
357286
|
success: process.env[`${prefix}SUCCESS`],
|
|
357295
357287
|
info: process.env[`${prefix}INFO`],
|
|
357296
357288
|
warning: process.env[`${prefix}WARNING`],
|
|
357297
|
-
|
|
357289
|
+
danger: process.env[`${prefix}DANGER`],
|
|
357298
357290
|
fatal: process.env[`${prefix}FATAL`],
|
|
357299
357291
|
positive: process.env[`${prefix}POSITIVE`],
|
|
357300
357292
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -357320,7 +357312,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
357320
357312
|
success: process.env[`${prefix}SUCCESS`],
|
|
357321
357313
|
info: process.env[`${prefix}INFO`],
|
|
357322
357314
|
warning: process.env[`${prefix}WARNING`],
|
|
357323
|
-
|
|
357315
|
+
danger: process.env[`${prefix}DANGER`],
|
|
357324
357316
|
fatal: process.env[`${prefix}FATAL`],
|
|
357325
357317
|
positive: process.env[`${prefix}POSITIVE`],
|
|
357326
357318
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -357540,8 +357532,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
357540
357532
|
if (config.warning) {
|
|
357541
357533
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
357542
357534
|
}
|
|
357543
|
-
if (config.
|
|
357544
|
-
process.env[`${prefix}
|
|
357535
|
+
if (config.danger) {
|
|
357536
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
357545
357537
|
}
|
|
357546
357538
|
if (config.fatal) {
|
|
357547
357539
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -357590,8 +357582,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
357590
357582
|
if (config.warning) {
|
|
357591
357583
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
357592
357584
|
}
|
|
357593
|
-
if (config.
|
|
357594
|
-
process.env[`${prefix}
|
|
357585
|
+
if (config.danger) {
|
|
357586
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
357595
357587
|
}
|
|
357596
357588
|
if (config.fatal) {
|
|
357597
357589
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.90.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"repository": {
|
package/src/cli/index.js
CHANGED
|
@@ -354798,17 +354798,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
354798
354798
|
});
|
|
354799
354799
|
|
|
354800
354800
|
// packages/config/src/schema.ts
|
|
354801
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
354801
|
+
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");
|
|
354802
354802
|
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");
|
|
354803
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
354803
|
+
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");
|
|
354804
354804
|
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");
|
|
354805
354805
|
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");
|
|
354806
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
354806
|
+
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");
|
|
354807
354807
|
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");
|
|
354808
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
354809
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
354808
|
+
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");
|
|
354809
|
+
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");
|
|
354810
354810
|
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");
|
|
354811
|
-
var
|
|
354811
|
+
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");
|
|
354812
354812
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
354813
354813
|
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");
|
|
354814
354814
|
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");
|
|
@@ -354823,7 +354823,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
354823
354823
|
success: SuccessColorSchema,
|
|
354824
354824
|
info: InfoColorSchema,
|
|
354825
354825
|
warning: WarningColorSchema,
|
|
354826
|
-
|
|
354826
|
+
danger: DangerColorSchema,
|
|
354827
354827
|
fatal: FatalColorSchema,
|
|
354828
354828
|
positive: PositiveColorSchema,
|
|
354829
354829
|
negative: NegativeColorSchema
|
|
@@ -354839,7 +354839,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
354839
354839
|
success: SuccessColorSchema,
|
|
354840
354840
|
info: InfoColorSchema,
|
|
354841
354841
|
warning: WarningColorSchema,
|
|
354842
|
-
|
|
354842
|
+
danger: DangerColorSchema,
|
|
354843
354843
|
fatal: FatalColorSchema,
|
|
354844
354844
|
positive: PositiveColorSchema,
|
|
354845
354845
|
negative: NegativeColorSchema
|
|
@@ -354859,7 +354859,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
354859
354859
|
success: SuccessColorSchema,
|
|
354860
354860
|
info: InfoColorSchema,
|
|
354861
354861
|
warning: WarningColorSchema,
|
|
354862
|
-
|
|
354862
|
+
danger: DangerColorSchema,
|
|
354863
354863
|
fatal: FatalColorSchema,
|
|
354864
354864
|
positive: PositiveColorSchema,
|
|
354865
354865
|
negative: NegativeColorSchema
|
|
@@ -354956,7 +354956,7 @@ var COLOR_KEYS = [
|
|
|
354956
354956
|
"help",
|
|
354957
354957
|
"info",
|
|
354958
354958
|
"warning",
|
|
354959
|
-
"
|
|
354959
|
+
"danger",
|
|
354960
354960
|
"fatal",
|
|
354961
354961
|
"positive",
|
|
354962
354962
|
"negative"
|
|
@@ -354975,7 +354975,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
354975
354975
|
"success": "#087f5b",
|
|
354976
354976
|
"info": "#0550ae",
|
|
354977
354977
|
"warning": "#e3b341",
|
|
354978
|
-
"
|
|
354978
|
+
"danger": "#D8314A",
|
|
354979
354979
|
"positive": "#22c55e",
|
|
354980
354980
|
"negative": "#dc2626"
|
|
354981
354981
|
},
|
|
@@ -354988,7 +354988,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
354988
354988
|
"success": "#10b981",
|
|
354989
354989
|
"info": "#58a6ff",
|
|
354990
354990
|
"warning": "#f3d371",
|
|
354991
|
-
"
|
|
354991
|
+
"danger": "#D8314A",
|
|
354992
354992
|
"positive": "#22c55e",
|
|
354993
354993
|
"negative": "#dc2626"
|
|
354994
354994
|
}
|
|
@@ -355011,7 +355011,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
355011
355011
|
organization: "storm-software",
|
|
355012
355012
|
configFile: null,
|
|
355013
355013
|
runtimeVersion: "1.0.0",
|
|
355014
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
355015
355014
|
extensions: {}
|
|
355016
355015
|
};
|
|
355017
355016
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -355054,7 +355053,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
355054
355053
|
}
|
|
355055
355054
|
return ret;
|
|
355056
355055
|
}, {}),
|
|
355057
|
-
colors: config.colors
|
|
355056
|
+
colors: config.colors,
|
|
355058
355057
|
workspaceRoot,
|
|
355059
355058
|
name,
|
|
355060
355059
|
namespace,
|
|
@@ -355155,10 +355154,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
355155
355154
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
355156
355155
|
return (message) => {
|
|
355157
355156
|
console.error(
|
|
355158
|
-
|
|
355159
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
355157
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
355160
355158
|
" \u{1F480} Fatal "
|
|
355161
|
-
)} ${_chalk.hex(colors.
|
|
355159
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
355162
355160
|
`
|
|
355163
355161
|
);
|
|
355164
355162
|
};
|
|
@@ -355166,10 +355164,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
355166
355164
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
355167
355165
|
return (message) => {
|
|
355168
355166
|
console.error(
|
|
355169
|
-
|
|
355170
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
355167
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
355171
355168
|
" \u2718 Error "
|
|
355172
|
-
)} ${_chalk.hex(colors.
|
|
355169
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
355173
355170
|
`
|
|
355174
355171
|
);
|
|
355175
355172
|
};
|
|
@@ -355177,10 +355174,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
355177
355174
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
355178
355175
|
return (message) => {
|
|
355179
355176
|
console.warn(
|
|
355180
|
-
|
|
355181
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
355177
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
355182
355178
|
" \u26A0 Warn "
|
|
355183
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
355179
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
355184
355180
|
`
|
|
355185
355181
|
);
|
|
355186
355182
|
};
|
|
@@ -355188,10 +355184,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
355188
355184
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
355189
355185
|
return (message) => {
|
|
355190
355186
|
console.info(
|
|
355191
|
-
|
|
355192
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
355187
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
355193
355188
|
" \u2713 Success "
|
|
355194
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
355189
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
355195
355190
|
`
|
|
355196
355191
|
);
|
|
355197
355192
|
};
|
|
@@ -355199,10 +355194,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
355199
355194
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
355200
355195
|
return (message) => {
|
|
355201
355196
|
console.info(
|
|
355202
|
-
|
|
355203
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
355197
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
355204
355198
|
" \u2139 Info "
|
|
355205
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
355199
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
355206
355200
|
`
|
|
355207
355201
|
);
|
|
355208
355202
|
};
|
|
@@ -355210,20 +355204,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
355210
355204
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
355211
355205
|
return (message) => {
|
|
355212
355206
|
console.debug(
|
|
355213
|
-
|
|
355214
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355207
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355215
355208
|
" \u{1F6E0} Debug "
|
|
355216
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
355209
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
355217
355210
|
`
|
|
355218
355211
|
);
|
|
355219
355212
|
};
|
|
355220
355213
|
}
|
|
355221
355214
|
return (message) => {
|
|
355222
355215
|
console.log(
|
|
355223
|
-
|
|
355224
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355216
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355225
355217
|
" \u2709 System "
|
|
355226
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
355218
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
355227
355219
|
`
|
|
355228
355220
|
);
|
|
355229
355221
|
};
|
|
@@ -355441,7 +355433,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
355441
355433
|
success: process.env[`${prefix}SUCCESS`],
|
|
355442
355434
|
info: process.env[`${prefix}INFO`],
|
|
355443
355435
|
warning: process.env[`${prefix}WARNING`],
|
|
355444
|
-
|
|
355436
|
+
danger: process.env[`${prefix}DANGER`],
|
|
355445
355437
|
fatal: process.env[`${prefix}FATAL`],
|
|
355446
355438
|
positive: process.env[`${prefix}POSITIVE`],
|
|
355447
355439
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -355467,7 +355459,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
355467
355459
|
success: process.env[`${prefix}SUCCESS`],
|
|
355468
355460
|
info: process.env[`${prefix}INFO`],
|
|
355469
355461
|
warning: process.env[`${prefix}WARNING`],
|
|
355470
|
-
|
|
355462
|
+
danger: process.env[`${prefix}DANGER`],
|
|
355471
355463
|
fatal: process.env[`${prefix}FATAL`],
|
|
355472
355464
|
positive: process.env[`${prefix}POSITIVE`],
|
|
355473
355465
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -355687,8 +355679,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
355687
355679
|
if (config.warning) {
|
|
355688
355680
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
355689
355681
|
}
|
|
355690
|
-
if (config.
|
|
355691
|
-
process.env[`${prefix}
|
|
355682
|
+
if (config.danger) {
|
|
355683
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
355692
355684
|
}
|
|
355693
355685
|
if (config.fatal) {
|
|
355694
355686
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -355737,8 +355729,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
355737
355729
|
if (config.warning) {
|
|
355738
355730
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
355739
355731
|
}
|
|
355740
|
-
if (config.
|
|
355741
|
-
process.env[`${prefix}
|
|
355732
|
+
if (config.danger) {
|
|
355733
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
355742
355734
|
}
|
|
355743
355735
|
if (config.fatal) {
|
|
355744
355736
|
process.env[`${prefix}FATAL`] = config.fatal;
|