@ms-cloudpack/task-reporter
Advanced tools
Comparing version 0.12.0 to 0.13.0
import type { TaskReporterTaskStatus } from './TaskReporterTaskStatus.js'; | ||
export type StatusDictionary = { | ||
[key in TaskReporterTaskStatus | 'default']?: string; | ||
[key in TaskReporterTaskStatus]: string; | ||
}; | ||
//# sourceMappingURL=StatusDictionary.d.ts.map |
@@ -5,8 +5,14 @@ import { green, red, yellow } from './ansiHelpers.js'; | ||
warn: yellow('!'), | ||
abort: yellow('?'), | ||
pass: green('✓'), | ||
complete: green('✓'), | ||
fail: red('✗'), | ||
abort: yellow('?'), | ||
default: '-', | ||
error: red('✗'), | ||
debug: '-', | ||
idle: '-', | ||
info: '-', | ||
log: '-', | ||
pending: '-', | ||
skip: '-', | ||
}; | ||
//# sourceMappingURL=statusCharacter.js.map |
@@ -27,3 +27,2 @@ import { Writer } from './Writer.js'; | ||
debug: 'debug', | ||
default: 'unknown', | ||
}); | ||
@@ -235,5 +234,5 @@ const statusColor = { | ||
_reportConsoleLog(status, message) { | ||
const char = statusCharacter[status] || statusCharacter.default; | ||
const char = statusCharacter[status]; | ||
const color = statusColor[status] || statusColor.default || ((arg) => arg); | ||
const messageType = statusMessage[status] || statusMessage.default; | ||
const messageType = statusMessage[status]; | ||
if (message.length) { | ||
@@ -248,5 +247,5 @@ this._writer.write(`${darkGrey(`[${getTimestamp()}]`)} ${char} ${bold(color(messageType))} ${message}`); | ||
if (this._options.showCompleted || task.forceShow || (this._options.showErrors && task.status === 'fail')) { | ||
const char = statusCharacter[task.status] || statusCharacter.default; | ||
const char = statusCharacter[task.status]; | ||
const color = statusColor[task.status] || statusColor.default || ((arg) => arg); | ||
const messageType = color(statusMessage[task.status] || statusMessage.default); | ||
const messageType = color(statusMessage[task.status]); | ||
const resultDetails = task.message ? `${task.message[0] === '\n' ? '' : '- '}${task.message}` : ''; | ||
@@ -253,0 +252,0 @@ const resultDuration = task.duration && task.status !== 'abort' ? `(${formatTime(task.duration)})` : ''; |
import type { TaskReporterTaskStatus } from './TaskReporterTaskStatus.js'; | ||
export type StatusDictionary = { | ||
[key in TaskReporterTaskStatus | 'default']?: string; | ||
[key in TaskReporterTaskStatus]: string; | ||
}; | ||
//# sourceMappingURL=StatusDictionary.d.ts.map |
{ | ||
"name": "@ms-cloudpack/task-reporter", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "Helpers for logging tasks to the console.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2598
278854