Comparing version 0.3.1 to 0.3.2
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -9,11 +9,13 @@ /** | ||
inquirer.prompt({ | ||
type: "input", | ||
name: "candy", | ||
message: "What's your favorite candy?" | ||
type: "list", | ||
name: "chocolate", | ||
message: "What's your favorite chocolate?", | ||
choices: [ "Mars", "Oh Henry", "Hershey" ] | ||
}, function( answers ) { | ||
inquirer.prompt({ | ||
type: "input", | ||
type: "list", | ||
name: "liquor", | ||
message: "And your favorite liquor?" | ||
message: "And your favorite liquor?", | ||
choices: [ "Pepsi", "Coke", "7up", "Mountain Dew", "Red bull" ] | ||
}); | ||
}); |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /*jshint strict:false */ |
@@ -71,6 +71,7 @@ /** | ||
// Remove events listeners | ||
this.rl.removeListener("SIGINT", this.onForceClose); | ||
this.rl.removeListener( "SIGINT", this.onForceClose ); | ||
process.stdin.removeListener( "keypress", this.onKeypress ); | ||
// Close the readline | ||
this.rl.output.end(); | ||
this.rl.pause(); | ||
@@ -129,3 +130,2 @@ this.rl.close(); | ||
inquirer.onKeypress = function( s, key ) { | ||
// Ignore `enter` key (readline `line` event is the only one we care for) | ||
@@ -132,0 +132,0 @@ if ( key && (key.name === "enter" || key.name === "return") ) return; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "inquirer", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -5,0 +5,0 @@ "main": "lib/inquirer.js", |
@@ -0,0 +0,0 @@ Inquirer.js [![Build Status](https://travis-ci.org/SBoudrias/Inquirer.js.png?branch=master)](http://travis-ci.org/SBoudrias/Inquirer.js) |
@@ -0,0 +0,0 @@ var inquirer = require("../../lib/inquirer"); |
@@ -14,2 +14,3 @@ var EventEmitter = require("events").EventEmitter; | ||
output : { | ||
end : sinon.stub().returns(stub), | ||
mute : sinon.stub().returns(stub), | ||
@@ -16,0 +17,0 @@ unmute : sinon.stub().returns(stub), |
@@ -0,0 +0,0 @@ /** |
@@ -32,2 +32,3 @@ /** | ||
expect(rl1.close.called).to.be.true; | ||
expect(rl1.output.end.called).to.be.true; | ||
expect(inquirer.rl).to.not.exist; | ||
@@ -41,2 +42,3 @@ | ||
expect(rl2.close.called).to.be.true; | ||
expect(rl2.output.end.called).to.be.true; | ||
expect(inquirer.rl).to.not.exist; | ||
@@ -43,0 +45,0 @@ |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
@@ -0,0 +0,0 @@ var expect = require("chai").expect; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3035
103387