Comparing version 1.1.0 to 1.1.1
@@ -10,2 +10,3 @@ /** | ||
var cliCursor = require('cli-cursor'); | ||
var runAsync = require('run-async'); | ||
var Base = require('./base'); | ||
@@ -67,6 +68,6 @@ var observe = require('../utils/events'); | ||
events.numberKey.takeUntil(events.line).forEach(this.onNumberKey.bind(this)); | ||
var validation = this.handleSubmitEvents( | ||
events.line.map(this.getCurrentValue.bind(this)) | ||
); | ||
validation.success.forEach(this.onSubmit.bind(this)); | ||
events.line | ||
.map(this.getCurrentValue.bind(this)) | ||
.flatMap(runAsync(this.opt.filter)) | ||
.forEach(this.onSubmit.bind(this)); | ||
@@ -111,3 +112,3 @@ // Init the prompt | ||
Prompt.prototype.onSubmit = function (state) { | ||
Prompt.prototype.onSubmit = function (value) { | ||
this.status = 'answered'; | ||
@@ -120,3 +121,3 @@ | ||
cliCursor.show(); | ||
this.done(state.value); | ||
this.done(value); | ||
}; | ||
@@ -123,0 +124,0 @@ |
{ | ||
"name": "inquirer", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -5,0 +5,0 @@ "author": "Simon Boudrias <admin@simonboudrias.com>", |
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
53369
1770