@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/src/commitizen/index.js
CHANGED
|
@@ -37259,17 +37259,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
37259
37259
|
});
|
|
37260
37260
|
|
|
37261
37261
|
// packages/config/src/schema.ts
|
|
37262
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37262
|
+
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");
|
|
37263
37263
|
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");
|
|
37264
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37264
|
+
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");
|
|
37265
37265
|
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");
|
|
37266
37266
|
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");
|
|
37267
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
37267
|
+
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");
|
|
37268
37268
|
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");
|
|
37269
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37270
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
37269
|
+
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");
|
|
37270
|
+
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");
|
|
37271
37271
|
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");
|
|
37272
|
-
var
|
|
37272
|
+
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");
|
|
37273
37273
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
37274
37274
|
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");
|
|
37275
37275
|
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");
|
|
@@ -37284,7 +37284,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
37284
37284
|
success: SuccessColorSchema,
|
|
37285
37285
|
info: InfoColorSchema,
|
|
37286
37286
|
warning: WarningColorSchema,
|
|
37287
|
-
|
|
37287
|
+
danger: DangerColorSchema,
|
|
37288
37288
|
fatal: FatalColorSchema,
|
|
37289
37289
|
positive: PositiveColorSchema,
|
|
37290
37290
|
negative: NegativeColorSchema
|
|
@@ -37300,7 +37300,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
37300
37300
|
success: SuccessColorSchema,
|
|
37301
37301
|
info: InfoColorSchema,
|
|
37302
37302
|
warning: WarningColorSchema,
|
|
37303
|
-
|
|
37303
|
+
danger: DangerColorSchema,
|
|
37304
37304
|
fatal: FatalColorSchema,
|
|
37305
37305
|
positive: PositiveColorSchema,
|
|
37306
37306
|
negative: NegativeColorSchema
|
|
@@ -37320,7 +37320,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
37320
37320
|
success: SuccessColorSchema,
|
|
37321
37321
|
info: InfoColorSchema,
|
|
37322
37322
|
warning: WarningColorSchema,
|
|
37323
|
-
|
|
37323
|
+
danger: DangerColorSchema,
|
|
37324
37324
|
fatal: FatalColorSchema,
|
|
37325
37325
|
positive: PositiveColorSchema,
|
|
37326
37326
|
negative: NegativeColorSchema
|
|
@@ -37415,7 +37415,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37415
37415
|
"success": "#087f5b",
|
|
37416
37416
|
"info": "#0550ae",
|
|
37417
37417
|
"warning": "#e3b341",
|
|
37418
|
-
"
|
|
37418
|
+
"danger": "#D8314A",
|
|
37419
37419
|
"positive": "#22c55e",
|
|
37420
37420
|
"negative": "#dc2626"
|
|
37421
37421
|
},
|
|
@@ -37428,32 +37428,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
37428
37428
|
"success": "#10b981",
|
|
37429
37429
|
"info": "#58a6ff",
|
|
37430
37430
|
"warning": "#f3d371",
|
|
37431
|
-
"
|
|
37431
|
+
"danger": "#D8314A",
|
|
37432
37432
|
"positive": "#22c55e",
|
|
37433
37433
|
"negative": "#dc2626"
|
|
37434
37434
|
}
|
|
37435
37435
|
};
|
|
37436
|
-
var DEFAULT_STORM_CONFIG = {
|
|
37437
|
-
name: "storm",
|
|
37438
|
-
namespace: "storm-software",
|
|
37439
|
-
license: "Apache 2.0",
|
|
37440
|
-
homepage: "https://stormsoftware.com",
|
|
37441
|
-
owner: "@storm-software/development",
|
|
37442
|
-
worker: "stormie-bot",
|
|
37443
|
-
runtimeDirectory: "node_modules/.storm",
|
|
37444
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
37445
|
-
skipCache: false,
|
|
37446
|
-
packageManager: "npm",
|
|
37447
|
-
timezone: "America/New_York",
|
|
37448
|
-
locale: "en-US",
|
|
37449
|
-
env: "production",
|
|
37450
|
-
branch: "main",
|
|
37451
|
-
organization: "storm-software",
|
|
37452
|
-
configFile: null,
|
|
37453
|
-
runtimeVersion: "1.0.0",
|
|
37454
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
37455
|
-
extensions: {}
|
|
37456
|
-
};
|
|
37457
37436
|
|
|
37458
37437
|
// packages/config-tools/src/types.ts
|
|
37459
37438
|
var LogLevel = {
|
|
@@ -37514,10 +37493,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}) => {
|
|
|
37514
37493
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
37515
37494
|
return (message) => {
|
|
37516
37495
|
console.error(
|
|
37517
|
-
|
|
37518
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37496
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
37519
37497
|
" \u{1F480} Fatal "
|
|
37520
|
-
)} ${_chalk.hex(colors.
|
|
37498
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
37521
37499
|
`
|
|
37522
37500
|
);
|
|
37523
37501
|
};
|
|
@@ -37525,10 +37503,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
37525
37503
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
37526
37504
|
return (message) => {
|
|
37527
37505
|
console.error(
|
|
37528
|
-
|
|
37529
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
37506
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
37530
37507
|
" \u2718 Error "
|
|
37531
|
-
)} ${_chalk.hex(colors.
|
|
37508
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
37532
37509
|
`
|
|
37533
37510
|
);
|
|
37534
37511
|
};
|
|
@@ -37536,10 +37513,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
37536
37513
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
37537
37514
|
return (message) => {
|
|
37538
37515
|
console.warn(
|
|
37539
|
-
|
|
37540
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
37516
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
37541
37517
|
" \u26A0 Warn "
|
|
37542
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
37518
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
37543
37519
|
`
|
|
37544
37520
|
);
|
|
37545
37521
|
};
|
|
@@ -37547,10 +37523,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
37547
37523
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
37548
37524
|
return (message) => {
|
|
37549
37525
|
console.info(
|
|
37550
|
-
|
|
37551
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
37526
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
37552
37527
|
" \u2713 Success "
|
|
37553
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
37528
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
37554
37529
|
`
|
|
37555
37530
|
);
|
|
37556
37531
|
};
|
|
@@ -37558,10 +37533,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
37558
37533
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
37559
37534
|
return (message) => {
|
|
37560
37535
|
console.info(
|
|
37561
|
-
|
|
37562
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
37536
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
37563
37537
|
" \u2139 Info "
|
|
37564
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
37538
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
37565
37539
|
`
|
|
37566
37540
|
);
|
|
37567
37541
|
};
|
|
@@ -37569,20 +37543,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
37569
37543
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
37570
37544
|
return (message) => {
|
|
37571
37545
|
console.debug(
|
|
37572
|
-
|
|
37573
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37546
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37574
37547
|
" \u{1F6E0} Debug "
|
|
37575
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37548
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
37576
37549
|
`
|
|
37577
37550
|
);
|
|
37578
37551
|
};
|
|
37579
37552
|
}
|
|
37580
37553
|
return (message) => {
|
|
37581
37554
|
console.log(
|
|
37582
|
-
|
|
37583
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37555
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
37584
37556
|
" \u2709 System "
|
|
37585
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
37557
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
37586
37558
|
`
|
|
37587
37559
|
);
|
|
37588
37560
|
};
|
package/src/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/release/index.js
CHANGED
|
@@ -5716,17 +5716,17 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5716
5716
|
});
|
|
5717
5717
|
|
|
5718
5718
|
// packages/config/src/schema.ts
|
|
5719
|
-
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5719
|
+
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");
|
|
5720
5720
|
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");
|
|
5721
|
-
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5721
|
+
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");
|
|
5722
5722
|
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");
|
|
5723
5723
|
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");
|
|
5724
|
-
var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display ");
|
|
5724
|
+
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");
|
|
5725
5725
|
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");
|
|
5726
|
-
var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5727
|
-
var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
5726
|
+
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");
|
|
5727
|
+
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");
|
|
5728
5728
|
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");
|
|
5729
|
-
var
|
|
5729
|
+
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");
|
|
5730
5730
|
var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
5731
5731
|
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");
|
|
5732
5732
|
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");
|
|
@@ -5741,7 +5741,7 @@ var DarkThemeColorConfigSchema = z.object({
|
|
|
5741
5741
|
success: SuccessColorSchema,
|
|
5742
5742
|
info: InfoColorSchema,
|
|
5743
5743
|
warning: WarningColorSchema,
|
|
5744
|
-
|
|
5744
|
+
danger: DangerColorSchema,
|
|
5745
5745
|
fatal: FatalColorSchema,
|
|
5746
5746
|
positive: PositiveColorSchema,
|
|
5747
5747
|
negative: NegativeColorSchema
|
|
@@ -5757,7 +5757,7 @@ var LightThemeColorConfigSchema = z.object({
|
|
|
5757
5757
|
success: SuccessColorSchema,
|
|
5758
5758
|
info: InfoColorSchema,
|
|
5759
5759
|
warning: WarningColorSchema,
|
|
5760
|
-
|
|
5760
|
+
danger: DangerColorSchema,
|
|
5761
5761
|
fatal: FatalColorSchema,
|
|
5762
5762
|
positive: PositiveColorSchema,
|
|
5763
5763
|
negative: NegativeColorSchema
|
|
@@ -5777,7 +5777,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
5777
5777
|
success: SuccessColorSchema,
|
|
5778
5778
|
info: InfoColorSchema,
|
|
5779
5779
|
warning: WarningColorSchema,
|
|
5780
|
-
|
|
5780
|
+
danger: DangerColorSchema,
|
|
5781
5781
|
fatal: FatalColorSchema,
|
|
5782
5782
|
positive: PositiveColorSchema,
|
|
5783
5783
|
negative: NegativeColorSchema
|
|
@@ -5872,7 +5872,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5872
5872
|
"success": "#087f5b",
|
|
5873
5873
|
"info": "#0550ae",
|
|
5874
5874
|
"warning": "#e3b341",
|
|
5875
|
-
"
|
|
5875
|
+
"danger": "#D8314A",
|
|
5876
5876
|
"positive": "#22c55e",
|
|
5877
5877
|
"negative": "#dc2626"
|
|
5878
5878
|
},
|
|
@@ -5885,32 +5885,11 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
5885
5885
|
"success": "#10b981",
|
|
5886
5886
|
"info": "#58a6ff",
|
|
5887
5887
|
"warning": "#f3d371",
|
|
5888
|
-
"
|
|
5888
|
+
"danger": "#D8314A",
|
|
5889
5889
|
"positive": "#22c55e",
|
|
5890
5890
|
"negative": "#dc2626"
|
|
5891
5891
|
}
|
|
5892
5892
|
};
|
|
5893
|
-
var DEFAULT_STORM_CONFIG = {
|
|
5894
|
-
name: "storm",
|
|
5895
|
-
namespace: "storm-software",
|
|
5896
|
-
license: "Apache 2.0",
|
|
5897
|
-
homepage: "https://stormsoftware.com",
|
|
5898
|
-
owner: "@storm-software/development",
|
|
5899
|
-
worker: "stormie-bot",
|
|
5900
|
-
runtimeDirectory: "node_modules/.storm",
|
|
5901
|
-
cacheDirectory: "node_modules/.cache/storm",
|
|
5902
|
-
skipCache: false,
|
|
5903
|
-
packageManager: "npm",
|
|
5904
|
-
timezone: "America/New_York",
|
|
5905
|
-
locale: "en-US",
|
|
5906
|
-
env: "production",
|
|
5907
|
-
branch: "main",
|
|
5908
|
-
organization: "storm-software",
|
|
5909
|
-
configFile: null,
|
|
5910
|
-
runtimeVersion: "1.0.0",
|
|
5911
|
-
colors: { ...DEFAULT_COLOR_CONFIG },
|
|
5912
|
-
extensions: {}
|
|
5913
|
-
};
|
|
5914
5893
|
|
|
5915
5894
|
// packages/config-tools/src/types.ts
|
|
5916
5895
|
var LogLevel = {
|
|
@@ -5971,10 +5950,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5971
5950
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
5972
5951
|
return (message) => {
|
|
5973
5952
|
console.error(
|
|
5974
|
-
|
|
5975
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5953
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5976
5954
|
" \u{1F480} Fatal "
|
|
5977
|
-
)} ${_chalk.hex(colors.
|
|
5955
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
5978
5956
|
`
|
|
5979
5957
|
);
|
|
5980
5958
|
};
|
|
@@ -5982,10 +5960,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fa
|
|
|
5982
5960
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
5983
5961
|
return (message) => {
|
|
5984
5962
|
console.error(
|
|
5985
|
-
|
|
5986
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
5963
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5987
5964
|
" \u2718 Error "
|
|
5988
|
-
)} ${_chalk.hex(colors.
|
|
5965
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
5989
5966
|
`
|
|
5990
5967
|
);
|
|
5991
5968
|
};
|
|
@@ -5993,10 +5970,9 @@ ${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.er
|
|
|
5993
5970
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
5994
5971
|
return (message) => {
|
|
5995
5972
|
console.warn(
|
|
5996
|
-
|
|
5997
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5973
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5998
5974
|
" \u26A0 Warn "
|
|
5999
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5975
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
6000
5976
|
`
|
|
6001
5977
|
);
|
|
6002
5978
|
};
|
|
@@ -6004,10 +5980,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
6004
5980
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
6005
5981
|
return (message) => {
|
|
6006
5982
|
console.info(
|
|
6007
|
-
|
|
6008
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
5983
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
6009
5984
|
" \u2713 Success "
|
|
6010
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5985
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
6011
5986
|
`
|
|
6012
5987
|
);
|
|
6013
5988
|
};
|
|
@@ -6015,10 +5990,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
6015
5990
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
6016
5991
|
return (message) => {
|
|
6017
5992
|
console.info(
|
|
6018
|
-
|
|
6019
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
5993
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
6020
5994
|
" \u2139 Info "
|
|
6021
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
5995
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
6022
5996
|
`
|
|
6023
5997
|
);
|
|
6024
5998
|
};
|
|
@@ -6026,20 +6000,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
6026
6000
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
6027
6001
|
return (message) => {
|
|
6028
6002
|
console.debug(
|
|
6029
|
-
|
|
6030
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
6003
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
6031
6004
|
" \u{1F6E0} Debug "
|
|
6032
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
6005
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
6033
6006
|
`
|
|
6034
6007
|
);
|
|
6035
6008
|
};
|
|
6036
6009
|
}
|
|
6037
6010
|
return (message) => {
|
|
6038
6011
|
console.log(
|
|
6039
|
-
|
|
6040
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
6012
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
6041
6013
|
" \u2709 System "
|
|
6042
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
6014
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
6043
6015
|
`
|
|
6044
6016
|
);
|
|
6045
6017
|
};
|