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

inquirer

Package Overview
Dependencies
Maintainers
3
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 6.1.0 to 6.2.0

9

lib/prompts/checkbox.js

@@ -229,5 +229,8 @@ 'use strict';

} else {
var isSelected = i - separatorOffset === pointer;
output += isSelected ? chalk.cyan(figures.pointer) : ' ';
output += getCheckbox(choice.checked) + ' ' + choice.name;
var line = getCheckbox(choice.checked) + ' ' + choice.name;
if (i - separatorOffset === pointer) {
output += chalk.cyan(figures.pointer + line);
} else {
output += ' ' + line;
}
}

@@ -234,0 +237,0 @@

@@ -100,17 +100,6 @@ 'use strict';

onKeypress(event) {
const { key } = event;
// Empty the default when a user clears the input
// The `this.hasInput` flag is required to properly detect when the user
// has pressed the backspace key while the line is already empty, in which
// case we reset the default, which allows a user to supply an empty response.
if (key.name === 'backspace' && !this.rl.line) {
if (this.hasInput) {
this.hasInput = undefined;
} else {
this.opt.default = undefined;
}
} else if (this.rl.line && !this.hasInput) {
this.hasInput = true;
onKeypress() {
// If user press a key, just clear the default value
if (this.opt.default) {
this.opt.default = undefined;
}

@@ -117,0 +106,0 @@

{
"name": "inquirer",
"version": "6.1.0",
"version": "6.2.0",
"description": "A collection of common interactive command line user interfaces.",

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

"figures": "^2.0.0",
"lodash": "^4.3.0",
"lodash": "^4.17.10",
"mute-stream": "0.0.7",

@@ -48,0 +48,0 @@ "run-async": "^2.2.0",

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