Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function display() {
if (this._logBuffer.length) {
logUpdate.clear();
// eslint-disable-next-line no-console
console.log(this._logBuffer.join("\n"));
this._logBuffer = [];
}
logUpdate(this._warningLine
+ output.getMatchingLine(this._status)
+ output.getUploadingLine(this._status)
+ output.getDeletingLine(this._status)
+ output.getStatLine(this._status)
+ output.getElapsedLine(this._status));
}
clear() {
logUpdate.clear();
}
static silly(message, data = null, callback = null) {
logUpdate.clear();
Logger.getInstance().silly(message, data, callback);
logUpdate.done();
}
unslog() {
this._slogging = false;
slog.clear();
return this;
}
br() {
slog.clear();
this.write('');
return this;
}
function hideSpinner() {
if(isSilent()) return;
clearInterval(spinnerInt);
logUpdate.clear();
}