Updating NPM dependencies
This commit is contained in:
8
node_modules/prompts/lib/elements/date.js
generated
vendored
8
node_modules/prompts/lib/elements/date.js
generated
vendored
@@ -50,7 +50,7 @@ class DatePrompt extends Prompt {
|
||||
this.errorMsg = opts.error || 'Please Enter A Valid Value';
|
||||
this.validator = opts.validate || (() => true);
|
||||
this.mask = opts.mask || 'YYYY-MM-DD HH:mm:ss';
|
||||
this.clear = clear('');
|
||||
this.clear = clear('', this.out.columns);
|
||||
this.render();
|
||||
}
|
||||
|
||||
@@ -101,6 +101,10 @@ class DatePrompt extends Prompt {
|
||||
this.render();
|
||||
}
|
||||
|
||||
exit() {
|
||||
this.abort();
|
||||
}
|
||||
|
||||
abort() {
|
||||
this.done = this.aborted = true;
|
||||
this.error = false;
|
||||
@@ -180,7 +184,7 @@ class DatePrompt 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();
|
||||
|
||||
// Print prompt
|
||||
|
||||
Reference in New Issue
Block a user