Comparing version 3.2.3 to 3.3.0
@@ -29,3 +29,5 @@ /** | ||
return true; | ||
} | ||
}, | ||
suffix: '', | ||
prefix: chalk.green('?') | ||
}); | ||
@@ -130,3 +132,3 @@ | ||
Prompt.prototype.getQuestion = function () { | ||
var message = chalk.green('?') + ' ' + chalk.bold(this.opt.message) + chalk.reset(' '); | ||
var message = this.opt.prefix + ' ' + chalk.bold(this.opt.message) + this.opt.suffix + chalk.reset(' '); | ||
@@ -133,0 +135,0 @@ // Append the default if available, and if question isn't answered |
{ | ||
"name": "inquirer", | ||
"version": "3.2.3", | ||
"version": "3.3.0", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -25,3 +25,3 @@ "author": "Simon Boudrias <admin@simonboudrias.com>", | ||
"dependencies": { | ||
"ansi-escapes": "^2.0.0", | ||
"ansi-escapes": "^3.0.0", | ||
"chalk": "^2.0.0", | ||
@@ -28,0 +28,0 @@ "cli-cursor": "^2.1.0", |
@@ -116,2 +116,4 @@ Inquirer.js | ||
- **pageSize**: (Number) Change the number of lines that will be rendered when using `list`, `rawList`, `expand` or `checkbox`. | ||
- **prefix**: (String) Change the default _prefix_ message. | ||
- **suffix**: (String) Change the default _suffix_ message. | ||
@@ -379,2 +381,3 @@ `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. | ||
[__command__](https://github.com/sullof/inquirer-command-prompt)<br> | ||
<br> | ||
Simple prompt with command history and dynamic autocomplete | ||
@@ -381,0 +384,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
70439
1849
387
+ Addedansi-escapes@3.2.0(transitive)
- Removedansi-escapes@2.0.0(transitive)
Updatedansi-escapes@^3.0.0