Comparing version 2.0.0 to 3.0.0
@@ -11,3 +11,2 @@ /** | ||
var ScreenManager = require('../utils/screen-manager'); | ||
var Promise = require('pinkie-promise'); | ||
@@ -92,2 +91,4 @@ var Prompt = module.exports = function (question, rl, answers) { | ||
return {isValid: isValid, value: filteredValue}; | ||
}, function (err) { | ||
return {isValid: err}; | ||
}); | ||
@@ -94,0 +95,0 @@ }, function (err) { |
@@ -63,3 +63,4 @@ /** | ||
/** | ||
* Rerender the prompt | ||
* Write out log data | ||
* @param {String} data - The log data to be output | ||
* @return {Prompt} self | ||
@@ -69,5 +70,8 @@ */ | ||
Prompt.prototype.writeLog = function (data) { | ||
rlUtils.clearLine(this.rl, 1); | ||
this.rl.output.unmute(); | ||
this.clean(); | ||
this.rl.output.write(this.enforceLF(data.toString())); | ||
return this.render(); | ||
this.render(); | ||
this.rl.output.mute(); | ||
return this; | ||
}; | ||
@@ -74,0 +78,0 @@ |
{ | ||
"name": "inquirer", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -27,9 +27,8 @@ "author": "Simon Boudrias <admin@simonboudrias.com>", | ||
"chalk": "^1.0.0", | ||
"cli-cursor": "^1.0.1", | ||
"cli-cursor": "^2.1.0", | ||
"cli-width": "^2.0.0", | ||
"external-editor": "^1.1.0", | ||
"external-editor": "^2.0.1", | ||
"figures": "^2.0.0", | ||
"lodash": "^4.3.0", | ||
"mute-stream": "0.0.6", | ||
"pinkie-promise": "^2.0.0", | ||
"mute-stream": "0.0.7", | ||
"run-async": "^2.2.0", | ||
@@ -36,0 +35,0 @@ "rx": "^4.1.0", |
@@ -114,2 +114,3 @@ Inquirer.js | ||
- **when**: (Function, Boolean) Receive the current user answers hash and should return `true` or `false` depending on whether or not this question should be asked. The value can also be a simple boolean. | ||
- **pageSize**: (Number) Change the number of lines that will be rendered when using `list`, `rawList`, `expand` or `checkbox`. | ||
@@ -116,0 +117,0 @@ `default`, `choices`(if defined as functions), `validate`, `filter` and `when` functions can be called asynchronous. Either return a promise or use `this.async()` to get a callback you'll call with the final value. |
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
68567
13
1831
355
+ Addedchardet@0.4.2(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedexternal-editor@2.2.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedmute-stream@0.0.7(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedtmp@0.0.33(transitive)
- Removedpinkie-promise@^2.0.0
- Removedbuffer-from@1.1.2(transitive)
- Removedcli-cursor@1.0.2(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedexit-hook@1.1.1(transitive)
- Removedextend@3.0.2(transitive)
- Removedexternal-editor@1.1.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmute-stream@0.0.6(transitive)
- Removedonetime@1.1.0(transitive)
- Removedos-shim@0.1.3(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedrestore-cursor@1.0.1(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedspawn-sync@1.0.15(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedtmp@0.0.29(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedcli-cursor@^2.1.0
Updatedexternal-editor@^2.0.1
Updatedmute-stream@0.0.7