Socket
Socket
Sign inDemoInstall

inquirer

Package Overview
Dependencies
Maintainers
2
Versions
176
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 2.0.0 to 3.0.0

3

lib/prompts/base.js

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

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