awesome-logging
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -16,3 +16,3 @@ "use strict"; | ||
? param1 | ||
: !!param2 | ||
: param2 | ||
? logger_creator_1.LoggerCreator.create(param1, param2) | ||
@@ -19,0 +19,0 @@ : AwesomeLogger.create('text', { text: param1 }); |
@@ -52,6 +52,6 @@ "use strict"; | ||
if (this._succeed === true) { | ||
return (_a = chalk_1.default.green('√') + this._stoppedText) !== null && _a !== void 0 ? _a : this._text; | ||
return (_a = chalk_1.default.green('√ ') + this._stoppedText) !== null && _a !== void 0 ? _a : this._text; | ||
} | ||
else if (this._succeed === false) { | ||
return (_b = chalk_1.default.red('X') + this._stoppedText) !== null && _b !== void 0 ? _b : this._text; | ||
return (_b = chalk_1.default.red('X ') + this._stoppedText) !== null && _b !== void 0 ? _b : this._text; | ||
} | ||
@@ -62,3 +62,3 @@ else { | ||
} | ||
return this._options.spinnerFrames[this._animationIndex] + this._text; | ||
return `${this._options.spinnerFrames[this._animationIndex]} ${this._text}`; | ||
} | ||
@@ -65,0 +65,0 @@ stop(options) { |
@@ -34,9 +34,9 @@ "use strict"; | ||
if (i === 0 && scrollAmount > 0) { | ||
visibleRow = '↑ ' + visibleRow; | ||
visibleRow = `↑ ${visibleRow}`; | ||
} | ||
else if (i === maxRowCount - 1 && scrollAmount < actualRowCount - maxRowCount) { | ||
visibleRow = '↓ ' + visibleRow; | ||
visibleRow = `↓ ${visibleRow}`; | ||
} | ||
else { | ||
visibleRow = '| ' + visibleRow; | ||
visibleRow = `| ${visibleRow}`; | ||
} | ||
@@ -43,0 +43,0 @@ visibleRowsWithScrollPrefix.push(visibleRow); |
@@ -12,3 +12,3 @@ "use strict"; | ||
let cursorVisible = true; | ||
let debug = false; | ||
const debug = false; | ||
// @internal | ||
@@ -15,0 +15,0 @@ const MOVE_LEFT = () => process.stdout.write(`${exports.CONTROL_PREFIX}1000D`); |
{ | ||
"name": "awesome-logging", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Advanced logging messages, interactive prompts, loading animations and more in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
123884