Socket
Socket
Sign inDemoInstall

inquirer

Package Overview
Dependencies
Maintainers
4
Versions
173
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 9.1.5 to 9.2.0

1

lib/prompts/base.js

@@ -35,2 +35,3 @@ import defaults from 'lodash/defaults.js';

prefix: chalk.green('?'),
transformer: (val) => val,
});

@@ -37,0 +38,0 @@

@@ -65,2 +65,4 @@ /**

message += chalk.cyan(answer ? 'Yes' : 'No');
} else if (answer) {
message += answer;
} else {

@@ -82,3 +84,6 @@ message += this.rl.line;

const output = this.opt.filter(input);
let output = this.opt.filter(input);
if (this.opt.transformer) {
output = this.opt.transformer(output);
}
this.render(output);

@@ -85,0 +90,0 @@

4

package.json
{
"name": "inquirer",
"type": "module",
"version": "9.1.5",
"version": "9.2.0",
"description": "A collection of common interactive command line user interfaces.",

@@ -93,3 +93,3 @@ "author": "Simon Boudrias <admin@simonboudrias.com>",

},
"gitHead": "bd58130dd8204945a31b062070b829003b8385fc"
"gitHead": "e93c4cb14f0c35ebd1efb065776b90f48899b075"
}

@@ -6,3 +6,3 @@

[![npm](https://badge.fury.io/js/inquirer.svg)](http://badge.fury.io/js/inquirer)
[![npm](https://badge.fury.io/js/inquirer.svg)](https://badge.fury.io/js/inquirer)
[![Coverage Status](https://codecov.io/gh/SBoudrias/Inquirer.js/branch/master/graph/badge.svg)](https://codecov.io/gh/SBoudrias/Inquirer.js)

@@ -273,3 +273,3 @@ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FSBoudrias%2FInquirer.js.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FSBoudrias%2FInquirer.js?ref=badge_shield)

Take `type`, `name`, `message`, [`default`] properties. `default` is expected to be a boolean if used.
Take `type`, `name`, `message`, [`default`, `transformer`] properties. `default` is expected to be a boolean if used.

@@ -395,3 +395,3 @@ ![Confirm prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/confirm.svg)

- **nodemon** - Makes the arrow keys print gibrish on list prompts.
- **nodemon** - Makes the arrow keys print gibrish on list prompts.
Workaround: Add `{ stdin : false }` in the configuration file or pass `--no-stdin` in the CLI.

@@ -398,0 +398,0 @@ Please refer to [this issue](https://github.com/SBoudrias/Inquirer.js/issues/844#issuecomment-736675867)

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc