Updating NPM dependencies
This commit is contained in:
8
node_modules/prompts/dist/elements/number.js
generated
vendored
8
node_modules/prompts/dist/elements/number.js
generated
vendored
@@ -99,6 +99,10 @@ class NumberPrompt extends Prompt {
|
||||
this.render();
|
||||
}
|
||||
|
||||
exit() {
|
||||
this.abort();
|
||||
}
|
||||
|
||||
abort() {
|
||||
let x = this.value;
|
||||
this.value = x !== `` ? x : this.initial;
|
||||
@@ -225,8 +229,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));
|
||||
if (this.outputError) 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();
|
||||
|
||||
Reference in New Issue
Block a user