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.0.0 to 6.1.0

5

lib/prompts/base.js

@@ -106,3 +106,6 @@ 'use strict';

var success = validation.pipe(filter(state => state.isValid === true), take(1));
var success = validation.pipe(
filter(state => state.isValid === true),
take(1)
);
var error = validation.pipe(

@@ -109,0 +112,0 @@ filter(state => state.isValid !== true),

18

lib/prompts/input.js

@@ -100,3 +100,19 @@ 'use strict';

onKeypress() {
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;
}
this.render();

@@ -103,0 +119,0 @@ }

@@ -40,6 +40,15 @@ 'use strict';

spaceKey: keypress.pipe(filter(({ key }) => key && key.name === 'space'), share()),
aKey: keypress.pipe(filter(({ key }) => key && key.name === 'a'), share()),
iKey: keypress.pipe(filter(({ key }) => key && key.name === 'i'), share())
spaceKey: keypress.pipe(
filter(({ key }) => key && key.name === 'space'),
share()
),
aKey: keypress.pipe(
filter(({ key }) => key && key.name === 'a'),
share()
),
iKey: keypress.pipe(
filter(({ key }) => key && key.name === 'i'),
share()
)
};
};
{
"name": "inquirer",
"version": "6.0.0",
"description":
"A collection of common interactive command line user interfaces.",
"version": "6.1.0",
"description": "A collection of common interactive command line user interfaces.",
"author": "Simon Boudrias <admin@simonboudrias.com>",
"files": ["lib"],
"files": [
"lib"
],
"main": "lib/inquirer.js",
"keywords": ["command", "prompt", "stdin", "cli", "tty", "menu"],
"keywords": [
"command",
"prompt",
"stdin",
"cli",
"tty",
"menu"
],
"engines": {

@@ -17,9 +25,2 @@ "node": ">=6.0.0"

"cmdify": "^0.0.4",
"coveralls": "^3.0.0",
"eslint": "^4.1.0",
"eslint-config-prettier": "^2.4.0",
"eslint-config-xo": "^0.22.1",
"eslint-plugin-prettier": "^2.2.0",
"husky": "^0.14.3",
"lint-staged": "^7.0.0",
"mocha": "^5.0.0",

@@ -29,3 +30,2 @@ "mockery": "^2.1.0",

"nyc": "^12.0.1",
"prettier": "^1.7.0",
"sinon": "^5.0.0"

@@ -35,6 +35,4 @@ },

"test": "nyc mocha test/**/* -r ./test/before",
"prepublish": "nsp check",
"pretest": "eslint .",
"precommit": "lint-staged",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"posttest": "nyc report --reporter=text-lcov > ../../coverage/nyc-report.lcov",
"prepublish": "nsp check"
},

@@ -57,32 +55,3 @@ "repository": "SBoudrias/Inquirer.js",

"through": "^2.3.6"
},
"lint-staged": {
"*.js": ["eslint --fix", "git add"],
"*.json": ["prettier --write", "git add"]
},
"eslintConfig": {
"extends": ["xo", "prettier"],
"env": {
"mocha": true,
"node": true
},
"rules": {
"no-eq-null": "off",
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"printWidth": 90
}
]
},
"plugins": ["prettier"]
}
}
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