@storm-software/git-tools 2.124.62 → 2.124.64
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/bin/{chunk-EGBAPP6Q.cjs → chunk-GU6JHGME.cjs} +56 -4
- package/bin/chunk-GU6JHGME.cjs.map +1 -0
- package/bin/{chunk-X6QPG2T4.js → chunk-SAG2FKFE.js} +56 -5
- package/bin/chunk-SAG2FKFE.js.map +1 -0
- package/bin/git.cjs +82 -79
- package/bin/git.cjs.map +1 -1
- package/bin/git.js +10 -7
- package/bin/git.js.map +1 -1
- package/bin/post-checkout.cjs +9 -9
- package/bin/post-checkout.js +1 -1
- package/bin/post-commit.cjs +9 -9
- package/bin/post-commit.js +1 -1
- package/bin/post-merge.cjs +9 -9
- package/bin/post-merge.js +1 -1
- package/bin/pre-commit.cjs +9 -9
- package/bin/pre-commit.js +1 -1
- package/bin/pre-install.cjs +9 -9
- package/bin/pre-install.js +1 -1
- package/bin/pre-push.cjs +13 -13
- package/bin/pre-push.js +1 -1
- package/bin/prepare.cjs +7 -7
- package/bin/prepare.js +1 -1
- package/bin/version-warning.cjs +5 -5
- package/bin/version-warning.js +1 -1
- package/dist/{chunk-NKCUBWZU.cjs → chunk-7W6KKQAE.cjs} +1 -1
- package/dist/{chunk-RVPCQYBR.js → chunk-LCKUTJW7.js} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +1 -1
- package/dist/release/config.cjs +8 -8
- package/dist/release/config.js +1 -1
- package/package.json +5 -5
- package/bin/chunk-EGBAPP6Q.cjs.map +0 -1
- package/bin/chunk-X6QPG2T4.js.map +0 -1
|
@@ -43,15 +43,65 @@ var LogLevelLabel = {
|
|
|
43
43
|
|
|
44
44
|
// ../config-tools/src/utilities/colors.ts
|
|
45
45
|
var DEFAULT_COLOR_CONFIG = {
|
|
46
|
+
light: {
|
|
47
|
+
background: "#fafafa",
|
|
48
|
+
foreground: "#1d1e22",
|
|
49
|
+
brand: "#1fb2a6",
|
|
50
|
+
alternate: "#db2777",
|
|
51
|
+
help: "#5C4EE5",
|
|
52
|
+
success: "#087f5b",
|
|
53
|
+
info: "#0550ae",
|
|
54
|
+
debug: "#8afafc",
|
|
55
|
+
warning: "#e3b341",
|
|
56
|
+
danger: "#D8314A",
|
|
57
|
+
fatal: "#51070f",
|
|
58
|
+
link: "#3fa6ff",
|
|
59
|
+
positive: "#22c55e",
|
|
60
|
+
negative: "#dc2626",
|
|
61
|
+
gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
|
|
62
|
+
},
|
|
46
63
|
dark: {
|
|
64
|
+
background: "#1d1e22",
|
|
65
|
+
foreground: "#cbd5e1",
|
|
47
66
|
brand: "#2dd4bf",
|
|
67
|
+
alternate: "#db2777",
|
|
68
|
+
help: "#818cf8",
|
|
48
69
|
success: "#10b981",
|
|
49
70
|
info: "#58a6ff",
|
|
50
71
|
debug: "#8afafc",
|
|
51
72
|
warning: "#f3d371",
|
|
52
73
|
danger: "#D8314A",
|
|
53
|
-
fatal: "#a40e26"
|
|
74
|
+
fatal: "#a40e26",
|
|
75
|
+
link: "#3fa6ff",
|
|
76
|
+
positive: "#22c55e",
|
|
77
|
+
negative: "#dc2626",
|
|
78
|
+
gradient: ["#1fb2a6", "#db2777", "#818cf8"]
|
|
79
|
+
}
|
|
54
80
|
};
|
|
81
|
+
function getColors(config2) {
|
|
82
|
+
if (!config2?.colors || typeof config2.colors !== "object" || !config2.colors["dark"] && (!config2.colors["base"] || typeof config2.colors !== "object" || !config2.colors["base"]?.["dark"])) {
|
|
83
|
+
return DEFAULT_COLOR_CONFIG;
|
|
84
|
+
}
|
|
85
|
+
if (config2.colors["base"]) {
|
|
86
|
+
if (typeof config2.colors["base"]["dark"] === "object") {
|
|
87
|
+
return config2.colors["base"]["dark"];
|
|
88
|
+
} else if (config2.colors["base"]["dark"] === "string") {
|
|
89
|
+
return config2.colors["base"];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (typeof config2.colors["dark"] === "object") {
|
|
93
|
+
return config2.colors["dark"];
|
|
94
|
+
}
|
|
95
|
+
return config2.colors ?? DEFAULT_COLOR_CONFIG;
|
|
96
|
+
}
|
|
97
|
+
function getColor(key, config2) {
|
|
98
|
+
const colors = getColors(config2);
|
|
99
|
+
const result = (typeof colors["dark"] === "object" ? colors["dark"][key] : colors[key]) || DEFAULT_COLOR_CONFIG["dark"][key] || DEFAULT_COLOR_CONFIG[key];
|
|
100
|
+
if (result) {
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
return getColor("brand", config2);
|
|
104
|
+
}
|
|
55
105
|
var chalkDefault = {
|
|
56
106
|
hex: (_) => (message) => message,
|
|
57
107
|
bgHex: (_) => ({
|
|
@@ -98,7 +148,7 @@ function isUnicodeSupported() {
|
|
|
98
148
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
99
149
|
var CONSOLE_ICONS = {
|
|
100
150
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
101
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
151
|
+
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
102
152
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
103
153
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
104
154
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
@@ -307,6 +357,7 @@ var _isFunction = (value) => {
|
|
|
307
357
|
return false;
|
|
308
358
|
}
|
|
309
359
|
};
|
|
360
|
+
var brandIcon = (config2 = {}, _chalk = getChalk()) => _chalk.hex(getColor("brand", config2))("\u{1F5F2}");
|
|
310
361
|
|
|
311
362
|
// ../config-tools/src/utilities/process-handler.ts
|
|
312
363
|
var exitWithError = (config2) => {
|
|
@@ -3826,6 +3877,7 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
|
|
|
3826
3877
|
}
|
|
3827
3878
|
|
|
3828
3879
|
exports.STORM_DEFAULT_RELEASE_BANNER = STORM_DEFAULT_RELEASE_BANNER;
|
|
3880
|
+
exports.brandIcon = brandIcon;
|
|
3829
3881
|
exports.defu = defu;
|
|
3830
3882
|
exports.exitWithError = exitWithError;
|
|
3831
3883
|
exports.exitWithSuccess = exitWithSuccess;
|
|
@@ -3842,5 +3894,5 @@ exports.writeInfo = writeInfo;
|
|
|
3842
3894
|
exports.writeSuccess = writeSuccess;
|
|
3843
3895
|
exports.writeTrace = writeTrace;
|
|
3844
3896
|
exports.writeWarning = writeWarning;
|
|
3845
|
-
//# sourceMappingURL=chunk-
|
|
3846
|
-
//# sourceMappingURL=chunk-
|
|
3897
|
+
//# sourceMappingURL=chunk-GU6JHGME.cjs.map
|
|
3898
|
+
//# sourceMappingURL=chunk-GU6JHGME.cjs.map
|