@mablhq/mabl-cli 1.32.2 → 1.32.3

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.
@@ -22,7 +22,9 @@ function registerConsoleLoggerForOutput(eventEmitter) {
22
22
  .getOutputEventChannel()
23
23
  .on(messaging_1.EventChannelMessageType.outputLogLine, (line, timestamp, color, metadata) => {
24
24
  var _a;
25
- const formatted = color ? chalk_1.default[color](line) : line;
25
+ const stepNumberPrefix = (_a = metadata === null || metadata === void 0 ? void 0 : metadata.stepNumberPrefix) !== null && _a !== void 0 ? _a : '';
26
+ const lineWithPrefix = stepNumberPrefix + line;
27
+ const formatted = color ? chalk_1.default[color](lineWithPrefix) : lineWithPrefix;
26
28
  if ((metadata === null || metadata === void 0 ? void 0 : metadata.shouldOutputInConsole) === false) {
27
29
  return;
28
30
  }
@@ -31,8 +33,7 @@ function registerConsoleLoggerForOutput(eventEmitter) {
31
33
  formattedTimestamp = `${moment
32
34
  .unix(timestamp / 1000)
33
35
  .format('LTS')} - `;
34
- const stepNumberPrefix = (_a = metadata === null || metadata === void 0 ? void 0 : metadata.stepNumberPrefix) !== null && _a !== void 0 ? _a : '';
35
- loggingProvider_1.logger.info(`${chalk_1.default.yellow(formattedTimestamp)}${stepNumberPrefix}${formatted}`);
36
+ loggingProvider_1.logger.info(`${chalk_1.default.yellow(formattedTimestamp)}${formatted}`);
36
37
  }
37
38
  else {
38
39
  loggingProvider_1.logger.info(formatted);