Updating NPM dependencies
This commit is contained in:
6
node_modules/prompts/dist/elements/toggle.js
generated
vendored
6
node_modules/prompts/dist/elements/toggle.js
generated
vendored
@@ -40,6 +40,10 @@ class TogglePrompt extends Prompt {
|
||||
this.render();
|
||||
}
|
||||
|
||||
exit() {
|
||||
this.abort();
|
||||
}
|
||||
|
||||
abort() {
|
||||
this.done = this.aborted = true;
|
||||
this.fire();
|
||||
@@ -109,7 +113,7 @@ class TogglePrompt extends Prompt {
|
||||
|
||||
render() {
|
||||
if (this.closed) return;
|
||||
if (this.firstRender) this.out.write(cursor.hide);else this.out.write(clear(this.outputText));
|
||||
if (this.firstRender) this.out.write(cursor.hide);else this.out.write(clear(this.outputText, this.out.columns));
|
||||
super.render();
|
||||
this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.value ? this.inactive : color.cyan().underline(this.inactive), color.gray('/'), this.value ? color.cyan().underline(this.active) : this.active].join(' ');
|
||||
this.out.write(erase.line + cursor.to(0) + this.outputText);
|
||||
|
||||
Reference in New Issue
Block a user