@storm-software/linting-tools 1.87.6 → 1.89.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 +30 -26
- package/package.json +1 -1
- package/src/cli/index.js +30 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.89.0 (2024-11-07)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **config:** Add the `danger` color token ([06dba937](https://github.com/storm-software/storm-ops/commit/06dba937))
|
|
6
|
+
|
|
7
|
+
## 1.88.0 (2024-11-01)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **eslint:** Resolve type issues with Nx plugin in preset ([d27162e2](https://github.com/storm-software/storm-ops/commit/d27162e2))
|
|
12
|
+
|
|
1
13
|
## 1.87.6 (2024-10-31)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
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
|
|
@@ -356757,14 +356757,19 @@ var StormConfigSchema = z2.object({
|
|
|
356757
356757
|
var COLOR_KEYS = [
|
|
356758
356758
|
"dark",
|
|
356759
356759
|
"light",
|
|
356760
|
+
"base",
|
|
356760
356761
|
"brand",
|
|
356762
|
+
"alternate",
|
|
356761
356763
|
"accent",
|
|
356762
|
-
"
|
|
356764
|
+
"link",
|
|
356763
356765
|
"success",
|
|
356766
|
+
"help",
|
|
356764
356767
|
"info",
|
|
356765
356768
|
"warning",
|
|
356766
|
-
"
|
|
356767
|
-
"fatal"
|
|
356769
|
+
"danger",
|
|
356770
|
+
"fatal",
|
|
356771
|
+
"positive",
|
|
356772
|
+
"negative"
|
|
356768
356773
|
];
|
|
356769
356774
|
|
|
356770
356775
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -356780,7 +356785,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
356780
356785
|
"success": "#087f5b",
|
|
356781
356786
|
"info": "#0550ae",
|
|
356782
356787
|
"warning": "#e3b341",
|
|
356783
|
-
"
|
|
356788
|
+
"danger": "#D8314A",
|
|
356784
356789
|
"positive": "#22c55e",
|
|
356785
356790
|
"negative": "#dc2626"
|
|
356786
356791
|
},
|
|
@@ -356793,7 +356798,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
356793
356798
|
"success": "#10b981",
|
|
356794
356799
|
"info": "#58a6ff",
|
|
356795
356800
|
"warning": "#f3d371",
|
|
356796
|
-
"
|
|
356801
|
+
"danger": "#D8314A",
|
|
356797
356802
|
"positive": "#22c55e",
|
|
356798
356803
|
"negative": "#dc2626"
|
|
356799
356804
|
}
|
|
@@ -356816,7 +356821,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
356816
356821
|
organization: "storm-software",
|
|
356817
356822
|
configFile: null,
|
|
356818
356823
|
runtimeVersion: "1.0.0",
|
|
356819
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
356820
356824
|
extensions: {}
|
|
356821
356825
|
};
|
|
356822
356826
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -356859,7 +356863,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
356859
356863
|
}
|
|
356860
356864
|
return ret;
|
|
356861
356865
|
}, {}),
|
|
356862
|
-
colors: config.colors
|
|
356866
|
+
colors: config.colors,
|
|
356863
356867
|
workspaceRoot,
|
|
356864
356868
|
name,
|
|
356865
356869
|
namespace,
|
|
@@ -356961,9 +356965,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
356961
356965
|
return (message) => {
|
|
356962
356966
|
console.error(
|
|
356963
356967
|
`
|
|
356964
|
-
${_chalk.bold.hex(colors.
|
|
356968
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
356965
356969
|
" \u{1F480} Fatal "
|
|
356966
|
-
)} ${_chalk.hex(colors.
|
|
356970
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
356967
356971
|
`
|
|
356968
356972
|
);
|
|
356969
356973
|
};
|
|
@@ -356972,9 +356976,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
356972
356976
|
return (message) => {
|
|
356973
356977
|
console.error(
|
|
356974
356978
|
`
|
|
356975
|
-
${_chalk.bold.hex(colors.
|
|
356979
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
356976
356980
|
" \u2718 Error "
|
|
356977
|
-
)} ${_chalk.hex(colors.
|
|
356981
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
356978
356982
|
`
|
|
356979
356983
|
);
|
|
356980
356984
|
};
|
|
@@ -357289,7 +357293,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
357289
357293
|
success: process.env[`${prefix}SUCCESS`],
|
|
357290
357294
|
info: process.env[`${prefix}INFO`],
|
|
357291
357295
|
warning: process.env[`${prefix}WARNING`],
|
|
357292
|
-
|
|
357296
|
+
danger: process.env[`${prefix}DANGER`],
|
|
357293
357297
|
fatal: process.env[`${prefix}FATAL`],
|
|
357294
357298
|
positive: process.env[`${prefix}POSITIVE`],
|
|
357295
357299
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -357315,7 +357319,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
357315
357319
|
success: process.env[`${prefix}SUCCESS`],
|
|
357316
357320
|
info: process.env[`${prefix}INFO`],
|
|
357317
357321
|
warning: process.env[`${prefix}WARNING`],
|
|
357318
|
-
|
|
357322
|
+
danger: process.env[`${prefix}DANGER`],
|
|
357319
357323
|
fatal: process.env[`${prefix}FATAL`],
|
|
357320
357324
|
positive: process.env[`${prefix}POSITIVE`],
|
|
357321
357325
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -357535,8 +357539,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
357535
357539
|
if (config.warning) {
|
|
357536
357540
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
357537
357541
|
}
|
|
357538
|
-
if (config.
|
|
357539
|
-
process.env[`${prefix}
|
|
357542
|
+
if (config.danger) {
|
|
357543
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
357540
357544
|
}
|
|
357541
357545
|
if (config.fatal) {
|
|
357542
357546
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -357585,8 +357589,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
357585
357589
|
if (config.warning) {
|
|
357586
357590
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
357587
357591
|
}
|
|
357588
|
-
if (config.
|
|
357589
|
-
process.env[`${prefix}
|
|
357592
|
+
if (config.danger) {
|
|
357593
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
357590
357594
|
}
|
|
357591
357595
|
if (config.fatal) {
|
|
357592
357596
|
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.89.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
|
|
@@ -354947,14 +354947,19 @@ var StormConfigSchema = z2.object({
|
|
|
354947
354947
|
var COLOR_KEYS = [
|
|
354948
354948
|
"dark",
|
|
354949
354949
|
"light",
|
|
354950
|
+
"base",
|
|
354950
354951
|
"brand",
|
|
354952
|
+
"alternate",
|
|
354951
354953
|
"accent",
|
|
354952
|
-
"
|
|
354954
|
+
"link",
|
|
354953
354955
|
"success",
|
|
354956
|
+
"help",
|
|
354954
354957
|
"info",
|
|
354955
354958
|
"warning",
|
|
354956
|
-
"
|
|
354957
|
-
"fatal"
|
|
354959
|
+
"danger",
|
|
354960
|
+
"fatal",
|
|
354961
|
+
"positive",
|
|
354962
|
+
"negative"
|
|
354958
354963
|
];
|
|
354959
354964
|
|
|
354960
354965
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
@@ -354970,7 +354975,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
354970
354975
|
"success": "#087f5b",
|
|
354971
354976
|
"info": "#0550ae",
|
|
354972
354977
|
"warning": "#e3b341",
|
|
354973
|
-
"
|
|
354978
|
+
"danger": "#D8314A",
|
|
354974
354979
|
"positive": "#22c55e",
|
|
354975
354980
|
"negative": "#dc2626"
|
|
354976
354981
|
},
|
|
@@ -354983,7 +354988,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
354983
354988
|
"success": "#10b981",
|
|
354984
354989
|
"info": "#58a6ff",
|
|
354985
354990
|
"warning": "#f3d371",
|
|
354986
|
-
"
|
|
354991
|
+
"danger": "#D8314A",
|
|
354987
354992
|
"positive": "#22c55e",
|
|
354988
354993
|
"negative": "#dc2626"
|
|
354989
354994
|
}
|
|
@@ -355006,7 +355011,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
355006
355011
|
organization: "storm-software",
|
|
355007
355012
|
configFile: null,
|
|
355008
355013
|
runtimeVersion: "1.0.0",
|
|
355009
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
355010
355014
|
extensions: {}
|
|
355011
355015
|
};
|
|
355012
355016
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -355049,7 +355053,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
355049
355053
|
}
|
|
355050
355054
|
return ret;
|
|
355051
355055
|
}, {}),
|
|
355052
|
-
colors: config.colors
|
|
355056
|
+
colors: config.colors,
|
|
355053
355057
|
workspaceRoot,
|
|
355054
355058
|
name,
|
|
355055
355059
|
namespace,
|
|
@@ -355151,9 +355155,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
355151
355155
|
return (message) => {
|
|
355152
355156
|
console.error(
|
|
355153
355157
|
`
|
|
355154
|
-
${_chalk.bold.hex(colors.
|
|
355158
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
355155
355159
|
" \u{1F480} Fatal "
|
|
355156
|
-
)} ${_chalk.hex(colors.
|
|
355160
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
355157
355161
|
`
|
|
355158
355162
|
);
|
|
355159
355163
|
};
|
|
@@ -355162,9 +355166,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
355162
355166
|
return (message) => {
|
|
355163
355167
|
console.error(
|
|
355164
355168
|
`
|
|
355165
|
-
${_chalk.bold.hex(colors.
|
|
355169
|
+
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
355166
355170
|
" \u2718 Error "
|
|
355167
|
-
)} ${_chalk.hex(colors.
|
|
355171
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
355168
355172
|
`
|
|
355169
355173
|
);
|
|
355170
355174
|
};
|
|
@@ -355436,7 +355440,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
355436
355440
|
success: process.env[`${prefix}SUCCESS`],
|
|
355437
355441
|
info: process.env[`${prefix}INFO`],
|
|
355438
355442
|
warning: process.env[`${prefix}WARNING`],
|
|
355439
|
-
|
|
355443
|
+
danger: process.env[`${prefix}DANGER`],
|
|
355440
355444
|
fatal: process.env[`${prefix}FATAL`],
|
|
355441
355445
|
positive: process.env[`${prefix}POSITIVE`],
|
|
355442
355446
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -355462,7 +355466,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
355462
355466
|
success: process.env[`${prefix}SUCCESS`],
|
|
355463
355467
|
info: process.env[`${prefix}INFO`],
|
|
355464
355468
|
warning: process.env[`${prefix}WARNING`],
|
|
355465
|
-
|
|
355469
|
+
danger: process.env[`${prefix}DANGER`],
|
|
355466
355470
|
fatal: process.env[`${prefix}FATAL`],
|
|
355467
355471
|
positive: process.env[`${prefix}POSITIVE`],
|
|
355468
355472
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -355682,8 +355686,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
355682
355686
|
if (config.warning) {
|
|
355683
355687
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
355684
355688
|
}
|
|
355685
|
-
if (config.
|
|
355686
|
-
process.env[`${prefix}
|
|
355689
|
+
if (config.danger) {
|
|
355690
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
355687
355691
|
}
|
|
355688
355692
|
if (config.fatal) {
|
|
355689
355693
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -355732,8 +355736,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
355732
355736
|
if (config.warning) {
|
|
355733
355737
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
355734
355738
|
}
|
|
355735
|
-
if (config.
|
|
355736
|
-
process.env[`${prefix}
|
|
355739
|
+
if (config.danger) {
|
|
355740
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
355737
355741
|
}
|
|
355738
355742
|
if (config.fatal) {
|
|
355739
355743
|
process.env[`${prefix}FATAL`] = config.fatal;
|