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.1.9 to 0.1.11

examples/nestedCall.js

0

examples/pizza.js

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

@@ -0,0 +0,0 @@ /*jshint strict:false */

@@ -71,3 +71,4 @@ /**

// Close the readline
this.rl.pause();
this.rl.close();
this.rl = null;

@@ -125,4 +126,9 @@ if ( _.isFunction(allDone) ) {

cli.onForceClose = function() {
this.rl.output.unmute();
// close the readline
this.rl.close();
this.rl = null;
console.log("\n"); // Line return
}.bind(cli);

4

lib/prompts/base.js

@@ -201,3 +201,3 @@ /**

str || (str = "");
return str + ": ";
return (str.length < 1 || /([a-z])$/i.test(str) ? str + ":" : str).trim() + " ";
};

@@ -213,3 +213,3 @@

var message = this.prefix() + this.opt.message + this.suffix();
var message = _.compose(this.prefix, this.suffix)(this.opt.message);

@@ -216,0 +216,0 @@ // Append the default if available, and if question isn't answered

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

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

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

@@ -133,2 +133,3 @@ /**

this.rl.removeAllListeners("line");
this.rl.removeAllListeners("keypress");
this.done( this.opt.choices[this.selected].value );

@@ -152,9 +153,11 @@ return;

Prompt.prototype.onKeypress = function( s, key ) {
var input = Number(this.rl.line);
var index = input - 1;
var index = this.rl.line.length ? Number(this.rl.line) - 1 : 0;
if ( this.opt.choices[index] ) {
this.selected = index;
this.down().clean(1).render();
this.rl.output.write( input.toString() );
} else {
this.selected = undefined;
}
this.down().clean(1).render().write( this.rl.line );
};

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

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

{
"name": "inquirer",
"version": "0.1.9",
"version": "0.1.11",
"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 EventEmitter = require("events").EventEmitter;

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

@@ -27,3 +27,4 @@ /**

expect(rl.resume.called).to.be.true;
expect(rl.pause.called).to.be.true;
expect(rl.close.called).to.be.true;
expect(inquirer.rl).to.be.null;

@@ -37,3 +38,4 @@ rl = inquirer.rl = new ReadlineStub();

expect(rl.resume.called).to.be.true;
expect(rl.pause.called).to.be.true;
expect(rl.close.called).to.be.true;
expect(inquirer.rl).to.be.null;
done();

@@ -40,0 +42,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;

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