Updating NPM dependencies
This commit is contained in:
6
node_modules/prompts/lib/elements/toggle.js
generated
vendored
6
node_modules/prompts/lib/elements/toggle.js
generated
vendored
@@ -30,6 +30,10 @@ class TogglePrompt extends Prompt {
|
||||
this.render();
|
||||
}
|
||||
|
||||
exit() {
|
||||
this.abort();
|
||||
}
|
||||
|
||||
abort() {
|
||||
this.done = this.aborted = true;
|
||||
this.fire();
|
||||
@@ -95,7 +99,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));
|
||||
else this.out.write(clear(this.outputText, this.out.columns));
|
||||
super.render();
|
||||
|
||||
this.outputText = [
|
||||
|
||||
Reference in New Issue
Block a user