@storm-software/git-tools 2.66.0 → 2.67.1
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 +21 -27
- package/bin/post-checkout.js +21 -27
- package/bin/post-commit.js +21 -27
- package/bin/post-merge.js +21 -27
- package/bin/pre-commit.js +21 -27
- package/bin/pre-install.js +21 -27
- package/bin/pre-push.js +21 -27
- package/bin/prepare.js +21 -27
- package/bin/version-warning.js +21 -27
- package/package.json +1 -1
- package/src/cli/index.js +21 -27
- package/src/commit/index.js +10 -17
- package/src/commitizen/index.js +10 -17
- package/src/index.js +21 -27
- package/src/release/index.js +10 -17
package/src/release/index.js
CHANGED
|
@@ -5942,7 +5942,7 @@ var getLogLevel = (label) => {
|
|
|
5942
5942
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
5943
5943
|
const _chalk = getChalk();
|
|
5944
5944
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
5945
|
-
const configLogLevel = config.logLevel
|
|
5945
|
+
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
5946
5946
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
5947
5947
|
return (_) => {
|
|
5948
5948
|
};
|
|
@@ -5950,10 +5950,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5950
5950
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
5951
5951
|
return (message) => {
|
|
5952
5952
|
console.error(
|
|
5953
|
-
|
|
5954
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5953
|
+
`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5955
5954
|
" \u{1F480} Fatal "
|
|
5956
|
-
)} ${_chalk.hex(colors.
|
|
5955
|
+
)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
|
|
5957
5956
|
`
|
|
5958
5957
|
);
|
|
5959
5958
|
};
|
|
@@ -5961,8 +5960,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
5961
5960
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
5962
5961
|
return (message) => {
|
|
5963
5962
|
console.error(
|
|
5964
|
-
|
|
5965
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5963
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5966
5964
|
" \u2718 Error "
|
|
5967
5965
|
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5968
5966
|
`
|
|
@@ -5972,8 +5970,7 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
5972
5970
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
5973
5971
|
return (message) => {
|
|
5974
5972
|
console.warn(
|
|
5975
|
-
|
|
5976
|
-
${_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(
|
|
5977
5974
|
" \u26A0 Warn "
|
|
5978
5975
|
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5979
5976
|
`
|
|
@@ -5983,8 +5980,7 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
5983
5980
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
5984
5981
|
return (message) => {
|
|
5985
5982
|
console.info(
|
|
5986
|
-
|
|
5987
|
-
${_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(
|
|
5988
5984
|
" \u2713 Success "
|
|
5989
5985
|
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5990
5986
|
`
|
|
@@ -5994,19 +5990,17 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
5994
5990
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
5995
5991
|
return (message) => {
|
|
5996
5992
|
console.info(
|
|
5997
|
-
|
|
5998
|
-
${_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(
|
|
5999
5994
|
" \u2139 Info "
|
|
6000
5995
|
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
6001
5996
|
`
|
|
6002
5997
|
);
|
|
6003
5998
|
};
|
|
6004
5999
|
}
|
|
6005
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
6000
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
6006
6001
|
return (message) => {
|
|
6007
6002
|
console.debug(
|
|
6008
|
-
|
|
6009
|
-
${_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(
|
|
6010
6004
|
" \u{1F6E0} Debug "
|
|
6011
6005
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
6012
6006
|
`
|
|
@@ -6015,8 +6009,7 @@ ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.br
|
|
|
6015
6009
|
}
|
|
6016
6010
|
return (message) => {
|
|
6017
6011
|
console.log(
|
|
6018
|
-
|
|
6019
|
-
${_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(
|
|
6020
6013
|
" \u2709 System "
|
|
6021
6014
|
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
6022
6015
|
`
|