@storm-software/git-tools 2.65.0 → 2.67.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/git.js +33 -41
- package/bin/post-checkout.js +33 -41
- package/bin/post-commit.js +33 -41
- package/bin/post-merge.js +33 -41
- package/bin/pre-commit.js +33 -41
- package/bin/pre-install.js +33 -41
- package/bin/pre-push.js +33 -41
- package/bin/prepare.js +33 -41
- package/bin/version-warning.js +33 -41
- package/package.json +1 -1
- package/src/cli/index.js +33 -41
- package/src/commit/index.js +25 -53
- package/src/commitizen/index.js +25 -53
- package/src/index.js +33 -41
- package/src/release/index.js +25 -53
package/bin/version-warning.js
CHANGED
|
@@ -66213,17 +66213,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66213
66213
|
});
|
|
66214
66214
|
|
|
66215
66215
|
// packages/config/src/schema.ts
|
|
66216
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66216
|
+
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");
|
|
66217
66217
|
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");
|
|
66218
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66218
|
+
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");
|
|
66219
66219
|
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");
|
|
66220
66220
|
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");
|
|
66221
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66221
|
+
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");
|
|
66222
66222
|
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");
|
|
66223
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66224
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66223
|
+
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");
|
|
66224
|
+
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");
|
|
66225
66225
|
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");
|
|
66226
|
-
var
|
|
66226
|
+
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");
|
|
66227
66227
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66228
66228
|
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");
|
|
66229
66229
|
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");
|
|
@@ -66238,7 +66238,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66238
66238
|
success: SuccessColorSchema,
|
|
66239
66239
|
info: InfoColorSchema,
|
|
66240
66240
|
warning: WarningColorSchema,
|
|
66241
|
-
|
|
66241
|
+
danger: DangerColorSchema,
|
|
66242
66242
|
fatal: FatalColorSchema,
|
|
66243
66243
|
positive: PositiveColorSchema,
|
|
66244
66244
|
negative: NegativeColorSchema
|
|
@@ -66254,7 +66254,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66254
66254
|
success: SuccessColorSchema,
|
|
66255
66255
|
info: InfoColorSchema,
|
|
66256
66256
|
warning: WarningColorSchema,
|
|
66257
|
-
|
|
66257
|
+
danger: DangerColorSchema,
|
|
66258
66258
|
fatal: FatalColorSchema,
|
|
66259
66259
|
positive: PositiveColorSchema,
|
|
66260
66260
|
negative: NegativeColorSchema
|
|
@@ -66274,7 +66274,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66274
66274
|
success: SuccessColorSchema,
|
|
66275
66275
|
info: InfoColorSchema,
|
|
66276
66276
|
warning: WarningColorSchema,
|
|
66277
|
-
|
|
66277
|
+
danger: DangerColorSchema,
|
|
66278
66278
|
fatal: FatalColorSchema,
|
|
66279
66279
|
positive: PositiveColorSchema,
|
|
66280
66280
|
negative: NegativeColorSchema
|
|
@@ -66371,7 +66371,7 @@ var COLOR_KEYS = [
|
|
|
66371
66371
|
"help",
|
|
66372
66372
|
"info",
|
|
66373
66373
|
"warning",
|
|
66374
|
-
"
|
|
66374
|
+
"danger",
|
|
66375
66375
|
"fatal",
|
|
66376
66376
|
"positive",
|
|
66377
66377
|
"negative"
|
|
@@ -66390,7 +66390,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66390
66390
|
"success": "#087f5b",
|
|
66391
66391
|
"info": "#0550ae",
|
|
66392
66392
|
"warning": "#e3b341",
|
|
66393
|
-
"
|
|
66393
|
+
"danger": "#D8314A",
|
|
66394
66394
|
"positive": "#22c55e",
|
|
66395
66395
|
"negative": "#dc2626"
|
|
66396
66396
|
},
|
|
@@ -66403,7 +66403,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66403
66403
|
"success": "#10b981",
|
|
66404
66404
|
"info": "#58a6ff",
|
|
66405
66405
|
"warning": "#f3d371",
|
|
66406
|
-
"
|
|
66406
|
+
"danger": "#D8314A",
|
|
66407
66407
|
"positive": "#22c55e",
|
|
66408
66408
|
"negative": "#dc2626"
|
|
66409
66409
|
}
|
|
@@ -66426,7 +66426,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66426
66426
|
organization: "storm-software",
|
|
66427
66427
|
configFile: null,
|
|
66428
66428
|
runtimeVersion: "1.0.0",
|
|
66429
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66430
66429
|
extensions: {}
|
|
66431
66430
|
};
|
|
66432
66431
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66469,7 +66468,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66469
66468
|
}
|
|
66470
66469
|
return ret;
|
|
66471
66470
|
}, {}),
|
|
66472
|
-
colors: config.colors
|
|
66471
|
+
colors: config.colors,
|
|
66473
66472
|
workspaceRoot,
|
|
66474
66473
|
name,
|
|
66475
66474
|
namespace,
|
|
@@ -66570,10 +66569,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66570
66569
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
66571
66570
|
return (message) => {
|
|
66572
66571
|
console.error(
|
|
66573
|
-
|
|
66574
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66572
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66575
66573
|
" \u{1F480} Fatal "
|
|
66576
|
-
)} ${_chalk.hex(colors.
|
|
66574
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66577
66575
|
`
|
|
66578
66576
|
);
|
|
66579
66577
|
};
|
|
@@ -66581,10 +66579,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66581
66579
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66582
66580
|
return (message) => {
|
|
66583
66581
|
console.error(
|
|
66584
|
-
|
|
66585
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
66582
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66586
66583
|
" \u2718 Error "
|
|
66587
|
-
)} ${_chalk.hex(colors.
|
|
66584
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66588
66585
|
`
|
|
66589
66586
|
);
|
|
66590
66587
|
};
|
|
@@ -66592,10 +66589,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
66592
66589
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66593
66590
|
return (message) => {
|
|
66594
66591
|
console.warn(
|
|
66595
|
-
|
|
66596
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66592
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66597
66593
|
" \u26A0 Warn "
|
|
66598
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66594
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
66599
66595
|
`
|
|
66600
66596
|
);
|
|
66601
66597
|
};
|
|
@@ -66603,10 +66599,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66603
66599
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66604
66600
|
return (message) => {
|
|
66605
66601
|
console.info(
|
|
66606
|
-
|
|
66607
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66602
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66608
66603
|
" \u2713 Success "
|
|
66609
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66604
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
66610
66605
|
`
|
|
66611
66606
|
);
|
|
66612
66607
|
};
|
|
@@ -66614,10 +66609,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66614
66609
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66615
66610
|
return (message) => {
|
|
66616
66611
|
console.info(
|
|
66617
|
-
|
|
66618
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66612
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66619
66613
|
" \u2139 Info "
|
|
66620
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66614
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
66621
66615
|
`
|
|
66622
66616
|
);
|
|
66623
66617
|
};
|
|
@@ -66625,20 +66619,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
66625
66619
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
66626
66620
|
return (message) => {
|
|
66627
66621
|
console.debug(
|
|
66628
|
-
|
|
66629
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66622
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66630
66623
|
" \u{1F6E0} Debug "
|
|
66631
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66624
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66632
66625
|
`
|
|
66633
66626
|
);
|
|
66634
66627
|
};
|
|
66635
66628
|
}
|
|
66636
66629
|
return (message) => {
|
|
66637
66630
|
console.log(
|
|
66638
|
-
|
|
66639
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66631
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66640
66632
|
" \u2709 System "
|
|
66641
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66633
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66642
66634
|
`
|
|
66643
66635
|
);
|
|
66644
66636
|
};
|
|
@@ -66893,7 +66885,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66893
66885
|
success: process.env[`${prefix}SUCCESS`],
|
|
66894
66886
|
info: process.env[`${prefix}INFO`],
|
|
66895
66887
|
warning: process.env[`${prefix}WARNING`],
|
|
66896
|
-
|
|
66888
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66897
66889
|
fatal: process.env[`${prefix}FATAL`],
|
|
66898
66890
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66899
66891
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66919,7 +66911,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66919
66911
|
success: process.env[`${prefix}SUCCESS`],
|
|
66920
66912
|
info: process.env[`${prefix}INFO`],
|
|
66921
66913
|
warning: process.env[`${prefix}WARNING`],
|
|
66922
|
-
|
|
66914
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66923
66915
|
fatal: process.env[`${prefix}FATAL`],
|
|
66924
66916
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66925
66917
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67139,8 +67131,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67139
67131
|
if (config.warning) {
|
|
67140
67132
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67141
67133
|
}
|
|
67142
|
-
if (config.
|
|
67143
|
-
process.env[`${prefix}
|
|
67134
|
+
if (config.danger) {
|
|
67135
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67144
67136
|
}
|
|
67145
67137
|
if (config.fatal) {
|
|
67146
67138
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67189,8 +67181,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67189
67181
|
if (config.warning) {
|
|
67190
67182
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67191
67183
|
}
|
|
67192
|
-
if (config.
|
|
67193
|
-
process.env[`${prefix}
|
|
67184
|
+
if (config.danger) {
|
|
67185
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67194
67186
|
}
|
|
67195
67187
|
if (config.fatal) {
|
|
67196
67188
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/package.json
CHANGED
package/src/cli/index.js
CHANGED
|
@@ -225735,17 +225735,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
225735
225735
|
});
|
|
225736
225736
|
|
|
225737
225737
|
// packages/config/src/schema.ts
|
|
225738
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225738
|
+
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");
|
|
225739
225739
|
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");
|
|
225740
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225740
|
+
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");
|
|
225741
225741
|
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");
|
|
225742
225742
|
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");
|
|
225743
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
225743
|
+
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");
|
|
225744
225744
|
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");
|
|
225745
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225746
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
225745
|
+
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");
|
|
225746
|
+
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");
|
|
225747
225747
|
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");
|
|
225748
|
-
var
|
|
225748
|
+
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");
|
|
225749
225749
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
225750
225750
|
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");
|
|
225751
225751
|
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");
|
|
@@ -225760,7 +225760,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
225760
225760
|
success: SuccessColorSchema,
|
|
225761
225761
|
info: InfoColorSchema,
|
|
225762
225762
|
warning: WarningColorSchema,
|
|
225763
|
-
|
|
225763
|
+
danger: DangerColorSchema,
|
|
225764
225764
|
fatal: FatalColorSchema,
|
|
225765
225765
|
positive: PositiveColorSchema,
|
|
225766
225766
|
negative: NegativeColorSchema
|
|
@@ -225776,7 +225776,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
225776
225776
|
success: SuccessColorSchema,
|
|
225777
225777
|
info: InfoColorSchema,
|
|
225778
225778
|
warning: WarningColorSchema,
|
|
225779
|
-
|
|
225779
|
+
danger: DangerColorSchema,
|
|
225780
225780
|
fatal: FatalColorSchema,
|
|
225781
225781
|
positive: PositiveColorSchema,
|
|
225782
225782
|
negative: NegativeColorSchema
|
|
@@ -225796,7 +225796,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
225796
225796
|
success: SuccessColorSchema,
|
|
225797
225797
|
info: InfoColorSchema,
|
|
225798
225798
|
warning: WarningColorSchema,
|
|
225799
|
-
|
|
225799
|
+
danger: DangerColorSchema,
|
|
225800
225800
|
fatal: FatalColorSchema,
|
|
225801
225801
|
positive: PositiveColorSchema,
|
|
225802
225802
|
negative: NegativeColorSchema
|
|
@@ -225893,7 +225893,7 @@ var COLOR_KEYS = [
|
|
|
225893
225893
|
"help",
|
|
225894
225894
|
"info",
|
|
225895
225895
|
"warning",
|
|
225896
|
-
"
|
|
225896
|
+
"danger",
|
|
225897
225897
|
"fatal",
|
|
225898
225898
|
"positive",
|
|
225899
225899
|
"negative"
|
|
@@ -225912,7 +225912,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225912
225912
|
"success": "#087f5b",
|
|
225913
225913
|
"info": "#0550ae",
|
|
225914
225914
|
"warning": "#e3b341",
|
|
225915
|
-
"
|
|
225915
|
+
"danger": "#D8314A",
|
|
225916
225916
|
"positive": "#22c55e",
|
|
225917
225917
|
"negative": "#dc2626"
|
|
225918
225918
|
},
|
|
@@ -225925,7 +225925,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
225925
225925
|
"success": "#10b981",
|
|
225926
225926
|
"info": "#58a6ff",
|
|
225927
225927
|
"warning": "#f3d371",
|
|
225928
|
-
"
|
|
225928
|
+
"danger": "#D8314A",
|
|
225929
225929
|
"positive": "#22c55e",
|
|
225930
225930
|
"negative": "#dc2626"
|
|
225931
225931
|
}
|
|
@@ -225948,7 +225948,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
225948
225948
|
organization: "storm-software",
|
|
225949
225949
|
configFile: null,
|
|
225950
225950
|
runtimeVersion: "1.0.0",
|
|
225951
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
225952
225951
|
extensions: {}
|
|
225953
225952
|
};
|
|
225954
225953
|
var getDefaultConfig = (config2 = {}, root3) => {
|
|
@@ -225991,7 +225990,7 @@ var getDefaultConfig = (config2 = {}, root3) => {
|
|
|
225991
225990
|
}
|
|
225992
225991
|
return ret;
|
|
225993
225992
|
}, {}),
|
|
225994
|
-
colors: config2.colors
|
|
225993
|
+
colors: config2.colors,
|
|
225995
225994
|
workspaceRoot: workspaceRoot3,
|
|
225996
225995
|
name,
|
|
225997
225996
|
namespace,
|
|
@@ -226092,10 +226091,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
226092
226091
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
226093
226092
|
return (message) => {
|
|
226094
226093
|
console.error(
|
|
226095
|
-
|
|
226096
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
226094
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
226097
226095
|
" \u{1F480} Fatal "
|
|
226098
|
-
)} ${_chalk.hex(colors.
|
|
226096
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
226099
226097
|
`
|
|
226100
226098
|
);
|
|
226101
226099
|
};
|
|
@@ -226103,10 +226101,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
226103
226101
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
226104
226102
|
return (message) => {
|
|
226105
226103
|
console.error(
|
|
226106
|
-
|
|
226107
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
226104
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
226108
226105
|
" \u2718 Error "
|
|
226109
|
-
)} ${_chalk.hex(colors.
|
|
226106
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
226110
226107
|
`
|
|
226111
226108
|
);
|
|
226112
226109
|
};
|
|
@@ -226114,10 +226111,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
226114
226111
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
226115
226112
|
return (message) => {
|
|
226116
226113
|
console.warn(
|
|
226117
|
-
|
|
226118
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
226114
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
226119
226115
|
" \u26A0 Warn "
|
|
226120
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
226116
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
226121
226117
|
`
|
|
226122
226118
|
);
|
|
226123
226119
|
};
|
|
@@ -226125,10 +226121,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
226125
226121
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
226126
226122
|
return (message) => {
|
|
226127
226123
|
console.info(
|
|
226128
|
-
|
|
226129
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
226124
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
226130
226125
|
" \u2713 Success "
|
|
226131
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
226126
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
226132
226127
|
`
|
|
226133
226128
|
);
|
|
226134
226129
|
};
|
|
@@ -226136,10 +226131,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
226136
226131
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
226137
226132
|
return (message) => {
|
|
226138
226133
|
console.info(
|
|
226139
|
-
|
|
226140
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
226134
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
226141
226135
|
" \u2139 Info "
|
|
226142
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
226136
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
226143
226137
|
`
|
|
226144
226138
|
);
|
|
226145
226139
|
};
|
|
@@ -226147,20 +226141,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
226147
226141
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
226148
226142
|
return (message) => {
|
|
226149
226143
|
console.debug(
|
|
226150
|
-
|
|
226151
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226144
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226152
226145
|
" \u{1F6E0} Debug "
|
|
226153
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226146
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
226154
226147
|
`
|
|
226155
226148
|
);
|
|
226156
226149
|
};
|
|
226157
226150
|
}
|
|
226158
226151
|
return (message) => {
|
|
226159
226152
|
console.log(
|
|
226160
|
-
|
|
226161
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226153
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
226162
226154
|
" \u2709 System "
|
|
226163
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
226155
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
226164
226156
|
`
|
|
226165
226157
|
);
|
|
226166
226158
|
};
|
|
@@ -226378,7 +226370,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
226378
226370
|
success: process.env[`${prefix}SUCCESS`],
|
|
226379
226371
|
info: process.env[`${prefix}INFO`],
|
|
226380
226372
|
warning: process.env[`${prefix}WARNING`],
|
|
226381
|
-
|
|
226373
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226382
226374
|
fatal: process.env[`${prefix}FATAL`],
|
|
226383
226375
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226384
226376
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226404,7 +226396,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
226404
226396
|
success: process.env[`${prefix}SUCCESS`],
|
|
226405
226397
|
info: process.env[`${prefix}INFO`],
|
|
226406
226398
|
warning: process.env[`${prefix}WARNING`],
|
|
226407
|
-
|
|
226399
|
+
danger: process.env[`${prefix}DANGER`],
|
|
226408
226400
|
fatal: process.env[`${prefix}FATAL`],
|
|
226409
226401
|
positive: process.env[`${prefix}POSITIVE`],
|
|
226410
226402
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -226624,8 +226616,8 @@ var setSingleThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226624
226616
|
if (config2.warning) {
|
|
226625
226617
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226626
226618
|
}
|
|
226627
|
-
if (config2.
|
|
226628
|
-
process.env[`${prefix}
|
|
226619
|
+
if (config2.danger) {
|
|
226620
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226629
226621
|
}
|
|
226630
226622
|
if (config2.fatal) {
|
|
226631
226623
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
@@ -226674,8 +226666,8 @@ var setBaseThemeColorConfigEnv = (prefix, config2) => {
|
|
|
226674
226666
|
if (config2.warning) {
|
|
226675
226667
|
process.env[`${prefix}WARNING`] = config2.warning;
|
|
226676
226668
|
}
|
|
226677
|
-
if (config2.
|
|
226678
|
-
process.env[`${prefix}
|
|
226669
|
+
if (config2.danger) {
|
|
226670
|
+
process.env[`${prefix}DANGER`] = config2.danger;
|
|
226679
226671
|
}
|
|
226680
226672
|
if (config2.fatal) {
|
|
226681
226673
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
package/src/commit/index.js
CHANGED
|
@@ -37312,17 +37312,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
37312
37312
|
});
|
|
37313
37313
|
|
|
37314
37314
|
// packages/config/src/schema.ts
|
|
37315
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37315
|
+
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");
|
|
37316
37316
|
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");
|
|
37317
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37317
|
+
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");
|
|
37318
37318
|
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");
|
|
37319
37319
|
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");
|
|
37320
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
37320
|
+
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");
|
|
37321
37321
|
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");
|
|
37322
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37323
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37322
|
+
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");
|
|
37323
|
+
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");
|
|
37324
37324
|
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");
|
|
37325
|
-
var
|
|
37325
|
+
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");
|
|
37326
37326
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
37327
37327
|
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");
|
|
37328
37328
|
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");
|
|
@@ -37337,7 +37337,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
37337
37337
|
success: SuccessColorSchema,
|
|
37338
37338
|
info: InfoColorSchema,
|
|
37339
37339
|
warning: WarningColorSchema,
|
|
37340
|
-
|
|
37340
|
+
danger: DangerColorSchema,
|
|
37341
37341
|
fatal: FatalColorSchema,
|
|
37342
37342
|
positive: PositiveColorSchema,
|
|
37343
37343
|
negative: NegativeColorSchema
|
|
@@ -37353,7 +37353,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
37353
37353
|
success: SuccessColorSchema,
|
|
37354
37354
|
info: InfoColorSchema,
|
|
37355
37355
|
warning: WarningColorSchema,
|
|
37356
|
-
|
|
37356
|
+
danger: DangerColorSchema,
|
|
37357
37357
|
fatal: FatalColorSchema,
|
|
37358
37358
|
positive: PositiveColorSchema,
|
|
37359
37359
|
negative: NegativeColorSchema
|
|
@@ -37373,7 +37373,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
37373
37373
|
success: SuccessColorSchema,
|
|
37374
37374
|
info: InfoColorSchema,
|
|
37375
37375
|
warning: WarningColorSchema,
|
|
37376
|
-
|
|
37376
|
+
danger: DangerColorSchema,
|
|
37377
37377
|
fatal: FatalColorSchema,
|
|
37378
37378
|
positive: PositiveColorSchema,
|
|
37379
37379
|
negative: NegativeColorSchema
|
|
@@ -37468,7 +37468,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37468
37468
|
"success": "#087f5b",
|
|
37469
37469
|
"info": "#0550ae",
|
|
37470
37470
|
"warning": "#e3b341",
|
|
37471
|
-
"
|
|
37471
|
+
"danger": "#D8314A",
|
|
37472
37472
|
"positive": "#22c55e",
|
|
37473
37473
|
"negative": "#dc2626"
|
|
37474
37474
|
},
|
|
@@ -37481,32 +37481,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37481
37481
|
"success": "#10b981",
|
|
37482
37482
|
"info": "#58a6ff",
|
|
37483
37483
|
"warning": "#f3d371",
|
|
37484
|
-
"
|
|
37484
|
+
"danger": "#D8314A",
|
|
37485
37485
|
"positive": "#22c55e",
|
|
37486
37486
|
"negative": "#dc2626"
|
|
37487
37487
|
}
|
|
37488
37488
|
};
|
|
37489
|
-
var DEFAULT_STORM_CONFIG = {
|
|
37490
|
-
name: "storm",
|
|
37491
|
-
namespace: "storm-software",
|
|
37492
|
-
license: "Apache 2.0",
|
|
37493
|
-
homepage: "https://stormsoftware.com",
|
|
37494
|
-
owner: "@storm-software/development",
|
|
37495
|
-
worker: "stormie-bot",
|
|
37496
|
-
runtimeDirectory: "node_modules/.storm",
|
|
37497
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
37498
|
-
skipCache: false,
|
|
37499
|
-
packageManager: "npm",
|
|
37500
|
-
timezone: "America/New_York",
|
|
37501
|
-
locale: "en-US",
|
|
37502
|
-
env: "production",
|
|
37503
|
-
branch: "main",
|
|
37504
|
-
organization: "storm-software",
|
|
37505
|
-
configFile: null,
|
|
37506
|
-
runtimeVersion: "1.0.0",
|
|
37507
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
37508
|
-
extensions: {}
|
|
37509
|
-
};
|
|
37510
37489
|
|
|
37511
37490
|
// packages/config-tools/src/types.ts
|
|
37512
37491
|
var LogLevel = {
|
|
@@ -37567,10 +37546,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37567
37546
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
37568
37547
|
return (message) => {
|
|
37569
37548
|
console.error(
|
|
37570
|
-
|
|
37571
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37549
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37572
37550
|
" \u{1F480} Fatal "
|
|
37573
|
-
)} ${_chalk.hex(colors.
|
|
37551
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
37574
37552
|
`
|
|
37575
37553
|
);
|
|
37576
37554
|
};
|
|
@@ -37578,10 +37556,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
37578
37556
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
37579
37557
|
return (message) => {
|
|
37580
37558
|
console.error(
|
|
37581
|
-
|
|
37582
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
37559
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
37583
37560
|
" \u2718 Error "
|
|
37584
|
-
)} ${_chalk.hex(colors.
|
|
37561
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
37585
37562
|
`
|
|
37586
37563
|
);
|
|
37587
37564
|
};
|
|
@@ -37589,10 +37566,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
37589
37566
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
37590
37567
|
return (message) => {
|
|
37591
37568
|
console.warn(
|
|
37592
|
-
|
|
37593
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
37569
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
37594
37570
|
" \u26A0 Warn "
|
|
37595
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
37571
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
37596
37572
|
`
|
|
37597
37573
|
);
|
|
37598
37574
|
};
|
|
@@ -37600,10 +37576,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
37600
37576
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
37601
37577
|
return (message) => {
|
|
37602
37578
|
console.info(
|
|
37603
|
-
|
|
37604
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
37579
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
37605
37580
|
" \u2713 Success "
|
|
37606
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
37581
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
37607
37582
|
`
|
|
37608
37583
|
);
|
|
37609
37584
|
};
|
|
@@ -37611,10 +37586,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
37611
37586
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
37612
37587
|
return (message) => {
|
|
37613
37588
|
console.info(
|
|
37614
|
-
|
|
37615
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
37589
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
37616
37590
|
" \u2139 Info "
|
|
37617
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
37591
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
37618
37592
|
`
|
|
37619
37593
|
);
|
|
37620
37594
|
};
|
|
@@ -37622,20 +37596,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
37622
37596
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
37623
37597
|
return (message) => {
|
|
37624
37598
|
console.debug(
|
|
37625
|
-
|
|
37626
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37599
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37627
37600
|
" \u{1F6E0} Debug "
|
|
37628
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37601
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
37629
37602
|
`
|
|
37630
37603
|
);
|
|
37631
37604
|
};
|
|
37632
37605
|
}
|
|
37633
37606
|
return (message) => {
|
|
37634
37607
|
console.log(
|
|
37635
|
-
|
|
37636
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37608
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37637
37609
|
" \u2709 System "
|
|
37638
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37610
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
37639
37611
|
`
|
|
37640
37612
|
);
|
|
37641
37613
|
};
|