Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inquirer

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inquirer - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

Inquirer.js.sublime-project

0

examples/checkbox.js

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

12

examples/nested-call.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc