Comparing version 0.1.3 to 0.1.4
@@ -34,3 +34,3 @@ /** | ||
choices: [ "Large", "Medium", "Small" ], | ||
filter: String.prototype.toLowerCase | ||
filter: function(val) { return val.toLowerCase(); } | ||
}, | ||
@@ -37,0 +37,0 @@ { |
@@ -68,3 +68,3 @@ /** | ||
utils.cleanLine(this.height + extra); | ||
charm.left(300).foreground("white"); | ||
charm.left(300).display("reset"); | ||
return this; | ||
@@ -81,3 +81,3 @@ }; | ||
charm.erase("line"); | ||
charm.foreground("red").write(">> ").foreground("white") | ||
charm.foreground("red").write(">> ").display("reset") | ||
.write(error || "Please enter a valid value"); | ||
@@ -84,0 +84,0 @@ charm.up(1); |
@@ -82,5 +82,5 @@ /** | ||
this.filter(input, function(output) { | ||
charm.foreground("cyan").write(output ? "Yes" : "No").foreground("white").write("\n"); | ||
charm.foreground("cyan").write(output ? "Yes" : "No").display("reset").write("\n"); | ||
this.done(input); | ||
}.bind(this)); | ||
}; |
@@ -78,3 +78,3 @@ /** | ||
this.clean(1).render(); | ||
charm.foreground("cyan").write(value).foreground("white").write("\n"); | ||
charm.foreground("cyan").write(value).display("reset").write("\n"); | ||
this.rl.removeAllListeners("line"); | ||
@@ -81,0 +81,0 @@ this.done(value); |
@@ -72,4 +72,4 @@ /** | ||
charm.foreground("cyan").write(" [" + (i === self.selected ? "X" : " ") + "] "); | ||
(i !== self.selected) && charm.foreground("white"); | ||
charm.write(choice.name + "\n").foreground("white"); | ||
(i !== self.selected) && charm.display("reset"); | ||
charm.write(choice.name + "\n").display("reset"); | ||
self.height++; | ||
@@ -76,0 +76,0 @@ }); |
@@ -68,3 +68,3 @@ /** | ||
(i === self.selected) && charm.foreground("cyan"); | ||
charm.write(" " + (i + 1) + ") " + choice.name + "\n").foreground("white"); | ||
charm.write(" " + (i + 1) + ") " + choice.name + "\n").display("reset"); | ||
self.height++; | ||
@@ -71,0 +71,0 @@ }); |
{ | ||
"name": "inquirer", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -5,0 +5,0 @@ "main": "lib/inquirer.js", |
@@ -142,2 +142,3 @@ Inquirer.js [![Build Status](https://travis-ci.org/SBoudrias/Inquirer.js.png?branch=master)](http://travis-ci.org/SBoudrias/Inquirer.js) | ||
+ **0.1.3** : Add async support for validation and filtering functions. | ||
+ **0.1.0** : First official release. There's 4 prompt types: `input`, `confirm`, `list` and | ||
@@ -144,0 +145,0 @@ `rawlist`. There's functionnality to allow the validation of input, and the filtering of values. |
Sorry, the diff of this file is not supported yet
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
151
65153