Updating NPM dependencies
This commit is contained in:
8
node_modules/prompts/lib/elements/number.js
generated
vendored
8
node_modules/prompts/lib/elements/number.js
generated
vendored
@@ -78,6 +78,10 @@ class NumberPrompt extends Prompt {
|
||||
this.render();
|
||||
}
|
||||
|
||||
exit() {
|
||||
this.abort();
|
||||
}
|
||||
|
||||
abort() {
|
||||
let x = this.value;
|
||||
this.value = x !== `` ? x : this.initial;
|
||||
@@ -181,8 +185,8 @@ class NumberPrompt extends Prompt {
|
||||
if (this.closed) return;
|
||||
if (!this.firstRender) {
|
||||
if (this.outputError)
|
||||
this.out.write(cursor.down(lines(this.outputError) - 1) + clear(this.outputError));
|
||||
this.out.write(clear(this.outputText));
|
||||
this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));
|
||||
this.out.write(clear(this.outputText, this.out.columns));
|
||||
}
|
||||
super.render();
|
||||
this.outputError = '';
|
||||
|
||||
Reference in New Issue
Block a user