Comparing version 6.1.0 to 6.2.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57789
1943
Updatedlodash@^4.17.10