@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/pre-push.js
CHANGED
|
@@ -66218,17 +66218,17 @@ var z2 = /* @__PURE__ */ Object.freeze({
|
|
|
66218
66218
|
});
|
|
66219
66219
|
|
|
66220
66220
|
// packages/config/src/schema.ts
|
|
66221
|
-
var DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66221
|
+
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");
|
|
66222
66222
|
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");
|
|
66223
|
-
var BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66223
|
+
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");
|
|
66224
66224
|
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");
|
|
66225
66225
|
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");
|
|
66226
|
-
var LinkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
66226
|
+
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");
|
|
66227
66227
|
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");
|
|
66228
|
-
var SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66229
|
-
var InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
66228
|
+
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");
|
|
66229
|
+
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");
|
|
66230
66230
|
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");
|
|
66231
|
-
var
|
|
66231
|
+
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");
|
|
66232
66232
|
var FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
66233
66233
|
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");
|
|
66234
66234
|
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");
|
|
@@ -66243,7 +66243,7 @@ var DarkThemeColorConfigSchema = z2.object({
|
|
|
66243
66243
|
success: SuccessColorSchema,
|
|
66244
66244
|
info: InfoColorSchema,
|
|
66245
66245
|
warning: WarningColorSchema,
|
|
66246
|
-
|
|
66246
|
+
danger: DangerColorSchema,
|
|
66247
66247
|
fatal: FatalColorSchema,
|
|
66248
66248
|
positive: PositiveColorSchema,
|
|
66249
66249
|
negative: NegativeColorSchema
|
|
@@ -66259,7 +66259,7 @@ var LightThemeColorConfigSchema = z2.object({
|
|
|
66259
66259
|
success: SuccessColorSchema,
|
|
66260
66260
|
info: InfoColorSchema,
|
|
66261
66261
|
warning: WarningColorSchema,
|
|
66262
|
-
|
|
66262
|
+
danger: DangerColorSchema,
|
|
66263
66263
|
fatal: FatalColorSchema,
|
|
66264
66264
|
positive: PositiveColorSchema,
|
|
66265
66265
|
negative: NegativeColorSchema
|
|
@@ -66279,7 +66279,7 @@ var SingleThemeColorConfigSchema = z2.object({
|
|
|
66279
66279
|
success: SuccessColorSchema,
|
|
66280
66280
|
info: InfoColorSchema,
|
|
66281
66281
|
warning: WarningColorSchema,
|
|
66282
|
-
|
|
66282
|
+
danger: DangerColorSchema,
|
|
66283
66283
|
fatal: FatalColorSchema,
|
|
66284
66284
|
positive: PositiveColorSchema,
|
|
66285
66285
|
negative: NegativeColorSchema
|
|
@@ -66376,7 +66376,7 @@ var COLOR_KEYS = [
|
|
|
66376
66376
|
"help",
|
|
66377
66377
|
"info",
|
|
66378
66378
|
"warning",
|
|
66379
|
-
"
|
|
66379
|
+
"danger",
|
|
66380
66380
|
"fatal",
|
|
66381
66381
|
"positive",
|
|
66382
66382
|
"negative"
|
|
@@ -66395,7 +66395,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66395
66395
|
"success": "#087f5b",
|
|
66396
66396
|
"info": "#0550ae",
|
|
66397
66397
|
"warning": "#e3b341",
|
|
66398
|
-
"
|
|
66398
|
+
"danger": "#D8314A",
|
|
66399
66399
|
"positive": "#22c55e",
|
|
66400
66400
|
"negative": "#dc2626"
|
|
66401
66401
|
},
|
|
@@ -66408,7 +66408,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
66408
66408
|
"success": "#10b981",
|
|
66409
66409
|
"info": "#58a6ff",
|
|
66410
66410
|
"warning": "#f3d371",
|
|
66411
|
-
"
|
|
66411
|
+
"danger": "#D8314A",
|
|
66412
66412
|
"positive": "#22c55e",
|
|
66413
66413
|
"negative": "#dc2626"
|
|
66414
66414
|
}
|
|
@@ -66431,7 +66431,6 @@ var DEFAULT_STORM_CONFIG = {
|
|
|
66431
66431
|
organization: "storm-software",
|
|
66432
66432
|
configFile: null,
|
|
66433
66433
|
runtimeVersion: "1.0.0",
|
|
66434
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
66435
66434
|
extensions: {}
|
|
66436
66435
|
};
|
|
66437
66436
|
var getDefaultConfig = (config = {}, root) => {
|
|
@@ -66474,7 +66473,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
66474
66473
|
}
|
|
66475
66474
|
return ret;
|
|
66476
66475
|
}, {}),
|
|
66477
|
-
colors: config.colors
|
|
66476
|
+
colors: config.colors,
|
|
66478
66477
|
workspaceRoot,
|
|
66479
66478
|
name,
|
|
66480
66479
|
namespace,
|
|
@@ -66575,10 +66574,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66575
66574
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
66576
66575
|
return (message) => {
|
|
66577
66576
|
console.error(
|
|
66578
|
-
|
|
66579
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66577
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66580
66578
|
" \u{1F480} Fatal "
|
|
66581
|
-
)} ${_chalk.hex(colors.
|
|
66579
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66582
66580
|
`
|
|
66583
66581
|
);
|
|
66584
66582
|
};
|
|
@@ -66586,10 +66584,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
66586
66584
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66587
66585
|
return (message) => {
|
|
66588
66586
|
console.error(
|
|
66589
|
-
|
|
66590
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
66587
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66591
66588
|
" \u2718 Error "
|
|
66592
|
-
)} ${_chalk.hex(colors.
|
|
66589
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66593
66590
|
`
|
|
66594
66591
|
);
|
|
66595
66592
|
};
|
|
@@ -66597,10 +66594,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
66597
66594
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66598
66595
|
return (message) => {
|
|
66599
66596
|
console.warn(
|
|
66600
|
-
|
|
66601
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66597
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66602
66598
|
" \u26A0 Warn "
|
|
66603
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66599
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
66604
66600
|
`
|
|
66605
66601
|
);
|
|
66606
66602
|
};
|
|
@@ -66608,10 +66604,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66608
66604
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66609
66605
|
return (message) => {
|
|
66610
66606
|
console.info(
|
|
66611
|
-
|
|
66612
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66607
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66613
66608
|
" \u2713 Success "
|
|
66614
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66609
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
66615
66610
|
`
|
|
66616
66611
|
);
|
|
66617
66612
|
};
|
|
@@ -66619,10 +66614,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66619
66614
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66620
66615
|
return (message) => {
|
|
66621
66616
|
console.info(
|
|
66622
|
-
|
|
66623
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66617
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66624
66618
|
" \u2139 Info "
|
|
66625
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66619
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
66626
66620
|
`
|
|
66627
66621
|
);
|
|
66628
66622
|
};
|
|
@@ -66630,20 +66624,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
66630
66624
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
66631
66625
|
return (message) => {
|
|
66632
66626
|
console.debug(
|
|
66633
|
-
|
|
66634
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66627
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66635
66628
|
" \u{1F6E0} Debug "
|
|
66636
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66629
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66637
66630
|
`
|
|
66638
66631
|
);
|
|
66639
66632
|
};
|
|
66640
66633
|
}
|
|
66641
66634
|
return (message) => {
|
|
66642
66635
|
console.log(
|
|
66643
|
-
|
|
66644
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66636
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66645
66637
|
" \u2709 System "
|
|
66646
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66638
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66647
66639
|
`
|
|
66648
66640
|
);
|
|
66649
66641
|
};
|
|
@@ -66919,7 +66911,7 @@ var getSingleThemeColorConfigEnv = (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`]
|
|
@@ -66945,7 +66937,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66945
66937
|
success: process.env[`${prefix}SUCCESS`],
|
|
66946
66938
|
info: process.env[`${prefix}INFO`],
|
|
66947
66939
|
warning: process.env[`${prefix}WARNING`],
|
|
66948
|
-
|
|
66940
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66949
66941
|
fatal: process.env[`${prefix}FATAL`],
|
|
66950
66942
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66951
66943
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67165,8 +67157,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67165
67157
|
if (config.warning) {
|
|
67166
67158
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67167
67159
|
}
|
|
67168
|
-
if (config.
|
|
67169
|
-
process.env[`${prefix}
|
|
67160
|
+
if (config.danger) {
|
|
67161
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67170
67162
|
}
|
|
67171
67163
|
if (config.fatal) {
|
|
67172
67164
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67215,8 +67207,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67215
67207
|
if (config.warning) {
|
|
67216
67208
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67217
67209
|
}
|
|
67218
|
-
if (config.
|
|
67219
|
-
process.env[`${prefix}
|
|
67210
|
+
if (config.danger) {
|
|
67211
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67220
67212
|
}
|
|
67221
67213
|
if (config.fatal) {
|
|
67222
67214
|
process.env[`${prefix}FATAL`] = config.fatal;
|
package/bin/prepare.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
|
};
|
|
@@ -66914,7 +66906,7 @@ var getSingleThemeColorConfigEnv = (prefix) => {
|
|
|
66914
66906
|
success: process.env[`${prefix}SUCCESS`],
|
|
66915
66907
|
info: process.env[`${prefix}INFO`],
|
|
66916
66908
|
warning: process.env[`${prefix}WARNING`],
|
|
66917
|
-
|
|
66909
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66918
66910
|
fatal: process.env[`${prefix}FATAL`],
|
|
66919
66911
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66920
66912
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -66940,7 +66932,7 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
66940
66932
|
success: process.env[`${prefix}SUCCESS`],
|
|
66941
66933
|
info: process.env[`${prefix}INFO`],
|
|
66942
66934
|
warning: process.env[`${prefix}WARNING`],
|
|
66943
|
-
|
|
66935
|
+
danger: process.env[`${prefix}DANGER`],
|
|
66944
66936
|
fatal: process.env[`${prefix}FATAL`],
|
|
66945
66937
|
positive: process.env[`${prefix}POSITIVE`],
|
|
66946
66938
|
negative: process.env[`${prefix}NEGATIVE`]
|
|
@@ -67160,8 +67152,8 @@ var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
|
67160
67152
|
if (config.warning) {
|
|
67161
67153
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67162
67154
|
}
|
|
67163
|
-
if (config.
|
|
67164
|
-
process.env[`${prefix}
|
|
67155
|
+
if (config.danger) {
|
|
67156
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67165
67157
|
}
|
|
67166
67158
|
if (config.fatal) {
|
|
67167
67159
|
process.env[`${prefix}FATAL`] = config.fatal;
|
|
@@ -67210,8 +67202,8 @@ var setBaseThemeColorConfigEnv = (prefix, config) => {
|
|
|
67210
67202
|
if (config.warning) {
|
|
67211
67203
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
67212
67204
|
}
|
|
67213
|
-
if (config.
|
|
67214
|
-
process.env[`${prefix}
|
|
67205
|
+
if (config.danger) {
|
|
67206
|
+
process.env[`${prefix}DANGER`] = config.danger;
|
|
67215
67207
|
}
|
|
67216
67208
|
if (config.fatal) {
|
|
67217
67209
|
process.env[`${prefix}FATAL`] = config.fatal;
|