prompts-ncu
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -87,3 +87,5 @@ "use strict"; | ||
super.render(); | ||
this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)].join(' '); | ||
const abortedOrNo = this.aborted || this.done && !this.value; | ||
this.outputText = [// override ✓ with ✗ when answer is no | ||
style.symbol(this.done, abortedOrNo), color.bold(this.msg), style.delimiter(this.done), this.done ? this.value && !this.aborted ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)].join(' '); | ||
this.out.write(erase.line + cursor.to(0) + this.outputText); | ||
@@ -90,0 +92,0 @@ } |
@@ -77,7 +77,9 @@ const color = require('kleur'); | ||
const abortedOrNo = this.aborted || (this.done && !this.value) | ||
this.outputText = [ | ||
style.symbol(this.done, this.aborted), | ||
// override ✓ with ✗ when answer is no | ||
style.symbol(this.done, abortedOrNo), | ||
color.bold(this.msg), | ||
style.delimiter(this.done), | ||
this.done ? (this.value ? this.yesMsg : this.noMsg) | ||
this.done ? (this.value && !this.aborted ? this.yesMsg : this.noMsg) | ||
: color.gray(this.initialValue ? this.yesOption : this.noOption) | ||
@@ -84,0 +86,0 @@ ].join(' '); |
{ | ||
"name": "prompts-ncu", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Lightweight, beautiful and user-friendly prompts", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189184
4651