@storm-software/git-tools 2.124.61 → 2.124.62
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-YBTSEKHW.cjs → chunk-EGBAPP6Q.cjs} +43 -13
- package/bin/chunk-EGBAPP6Q.cjs.map +1 -0
- package/bin/{chunk-TMQCIJTZ.js → chunk-X6QPG2T4.js} +43 -13
- package/bin/{chunk-YBTSEKHW.cjs.map → chunk-X6QPG2T4.js.map} +1 -1
- package/bin/git.cjs +75 -75
- package/bin/git.js +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-73HIS2A2.cjs → chunk-NKCUBWZU.cjs} +41 -11
- package/dist/{chunk-PFHNJI5V.js → chunk-RVPCQYBR.js} +41 -11
- 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 +4 -4
- package/bin/chunk-TMQCIJTZ.js.map +0 -1
|
@@ -98,9 +98,9 @@ function isUnicodeSupported() {
|
|
|
98
98
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
99
99
|
var CONSOLE_ICONS = {
|
|
100
100
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
101
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
101
|
+
[LogLevelLabel.FATAL]: useIcon("\u2622", "\xD7"),
|
|
102
102
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
103
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
103
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
104
104
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
105
105
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
106
106
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -179,7 +179,11 @@ var getLogFn = (logLevel = LogLevel.INFO, config2 = {}, _chalk = getChalk()) =>
|
|
|
179
179
|
return (message) => {
|
|
180
180
|
console.error(
|
|
181
181
|
`
|
|
182
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
182
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
183
|
+
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
184
|
+
)(
|
|
185
|
+
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
186
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
183
187
|
`
|
|
184
188
|
);
|
|
185
189
|
};
|
|
@@ -188,7 +192,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CON
|
|
|
188
192
|
return (message) => {
|
|
189
193
|
console.error(
|
|
190
194
|
`
|
|
191
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
195
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
196
|
+
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
197
|
+
)(
|
|
198
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
199
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
192
200
|
`
|
|
193
201
|
);
|
|
194
202
|
};
|
|
@@ -197,7 +205,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CO
|
|
|
197
205
|
return (message) => {
|
|
198
206
|
console.warn(
|
|
199
207
|
`
|
|
200
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
208
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
209
|
+
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
210
|
+
)(
|
|
211
|
+
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
212
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
201
213
|
`
|
|
202
214
|
);
|
|
203
215
|
};
|
|
@@ -206,7 +218,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_C
|
|
|
206
218
|
return (message) => {
|
|
207
219
|
console.info(
|
|
208
220
|
`
|
|
209
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
221
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
222
|
+
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
223
|
+
)(
|
|
224
|
+
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
225
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
210
226
|
`
|
|
211
227
|
);
|
|
212
228
|
};
|
|
@@ -215,7 +231,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_C
|
|
|
215
231
|
return (message) => {
|
|
216
232
|
console.info(
|
|
217
233
|
`
|
|
218
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
234
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
235
|
+
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
236
|
+
)(
|
|
237
|
+
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
238
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
219
239
|
`
|
|
220
240
|
);
|
|
221
241
|
};
|
|
@@ -224,7 +244,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
224
244
|
return (message) => {
|
|
225
245
|
console.debug(
|
|
226
246
|
`
|
|
227
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
247
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
248
|
+
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
249
|
+
)(
|
|
250
|
+
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
251
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
228
252
|
`
|
|
229
253
|
);
|
|
230
254
|
};
|
|
@@ -233,7 +257,9 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
233
257
|
return (message) => {
|
|
234
258
|
console.debug(
|
|
235
259
|
`
|
|
236
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
260
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
261
|
+
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
262
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
237
263
|
`
|
|
238
264
|
);
|
|
239
265
|
};
|
|
@@ -241,7 +267,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogL
|
|
|
241
267
|
return (message) => {
|
|
242
268
|
console.log(
|
|
243
269
|
`
|
|
244
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
270
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
271
|
+
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
272
|
+
)(
|
|
273
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
274
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
245
275
|
`
|
|
246
276
|
);
|
|
247
277
|
};
|
|
@@ -253,7 +283,7 @@ var writeInfo = (message, config2) => getLogFn(LogLevel.INFO, config2)(message);
|
|
|
253
283
|
var writeSuccess = (message, config2) => getLogFn(LogLevel.SUCCESS, config2)(message);
|
|
254
284
|
var writeDebug = (message, config2) => getLogFn(LogLevel.DEBUG, config2)(message);
|
|
255
285
|
var writeTrace = (message, config2) => getLogFn(LogLevel.TRACE, config2)(message);
|
|
256
|
-
var MAX_DEPTH =
|
|
286
|
+
var MAX_DEPTH = 6;
|
|
257
287
|
var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
258
288
|
if (depth2 > MAX_DEPTH) {
|
|
259
289
|
return "<max depth>";
|
|
@@ -3812,5 +3842,5 @@ exports.writeInfo = writeInfo;
|
|
|
3812
3842
|
exports.writeSuccess = writeSuccess;
|
|
3813
3843
|
exports.writeTrace = writeTrace;
|
|
3814
3844
|
exports.writeWarning = writeWarning;
|
|
3815
|
-
//# sourceMappingURL=chunk-
|
|
3816
|
-
//# sourceMappingURL=chunk-
|
|
3845
|
+
//# sourceMappingURL=chunk-EGBAPP6Q.cjs.map
|
|
3846
|
+
//# sourceMappingURL=chunk-EGBAPP6Q.cjs.map
|