Comparing version 10.1.2 to 10.1.3
@@ -57,2 +57,8 @@ "use strict"; | ||
super(...arguments); | ||
Object.defineProperty(this, "name", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: 'TTYError' | ||
}); | ||
Object.defineProperty(this, "isTtyError", { | ||
@@ -252,5 +258,8 @@ enumerable: true, | ||
question.choices = question.choices.map((choice) => { | ||
if (typeof choice === 'string') { | ||
if (typeof choice === 'string' || typeof choice === 'number') { | ||
return { name: choice, value: choice }; | ||
} | ||
else if (!('value' in choice)) { | ||
return Object.assign(Object.assign({}, choice), { value: choice.name }); | ||
} | ||
return choice; | ||
@@ -257,0 +266,0 @@ }); |
{ | ||
"name": "inquirer", | ||
"version": "10.1.2", | ||
"version": "10.1.3", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -58,3 +58,3 @@ "author": "Simon Boudrias <admin@simonboudrias.com>", | ||
"dependencies": { | ||
"@inquirer/prompts": "^5.3.2", | ||
"@inquirer/prompts": "^5.3.3", | ||
"@inquirer/type": "^1.5.1", | ||
@@ -88,3 +88,3 @@ "@types/mute-stream": "^0.0.4", | ||
"typings": "./dist/cjs/types/index.d.ts", | ||
"gitHead": "2a40d8a08ab037188d9f91f66c5e69b82cb94563" | ||
"gitHead": "7a061f13e053dd64ef7373b08e8a10130131ea59" | ||
} |
Sorry, the diff of this file is not supported yet
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
67710
886
Updated@inquirer/prompts@^5.3.3