@storm-software/git-tools 2.67.0 → 2.70.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.
@@ -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 ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
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,9 +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
- `${_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(
5954
5954
  " \u{1F480} Fatal "
5955
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
5955
+ )} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
5956
5956
  `
5957
5957
  );
5958
5958
  };
@@ -5962,7 +5962,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5962
5962
  console.error(
5963
5963
  `${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
5964
5964
  " \u2718 Error "
5965
- )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
5965
+ )} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
5966
5966
  `
5967
5967
  );
5968
5968
  };
@@ -5972,7 +5972,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5972
5972
  console.warn(
5973
5973
  `${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
5974
5974
  " \u26A0 Warn "
5975
- )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
5975
+ )} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
5976
5976
  `
5977
5977
  );
5978
5978
  };
@@ -5982,7 +5982,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5982
5982
  console.info(
5983
5983
  `${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
5984
5984
  " \u2713 Success "
5985
- )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
5985
+ )} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
5986
5986
  `
5987
5987
  );
5988
5988
  };
@@ -5992,17 +5992,17 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
5992
5992
  console.info(
5993
5993
  `${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
5994
5994
  " \u2139 Info "
5995
- )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
5995
+ )} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
5996
5996
  `
5997
5997
  );
5998
5998
  };
5999
5999
  }
6000
- if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
6000
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
6001
6001
  return (message) => {
6002
6002
  console.debug(
6003
6003
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
6004
6004
  " \u{1F6E0} Debug "
6005
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
6005
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
6006
6006
  `
6007
6007
  );
6008
6008
  };
@@ -6011,7 +6011,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
6011
6011
  console.log(
6012
6012
  `${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
6013
6013
  " \u2709 System "
6014
- )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
6014
+ )} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
6015
6015
  `
6016
6016
  );
6017
6017
  };