@inquirer/select
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -13,3 +13,3 @@ "use strict"; | ||
function isSelectableChoice(choice) { | ||
return choice != null && choice.type !== 'separator' && !choice.disabled; | ||
return choice != null && !core_1.Separator.isSeparator(choice) && !choice.disabled; | ||
} | ||
@@ -67,3 +67,3 @@ exports.default = (0, core_1.createPrompt)((config, done) => { | ||
.map((choice, index) => { | ||
if (choice.type === 'separator') { | ||
if (core_1.Separator.isSeparator(choice)) { | ||
return ` ${choice.separator}`; | ||
@@ -70,0 +70,0 @@ } |
@@ -13,3 +13,3 @@ "use strict"; | ||
function isSelectableChoice(choice) { | ||
return choice != null && choice.type !== 'separator' && !choice.disabled; | ||
return choice != null && !core_1.Separator.isSeparator(choice) && !choice.disabled; | ||
} | ||
@@ -67,3 +67,3 @@ exports.default = (0, core_1.createPrompt)((config, done) => { | ||
.map((choice, index) => { | ||
if (choice.type === 'separator') { | ||
if (core_1.Separator.isSeparator(choice)) { | ||
return ` ${choice.separator}`; | ||
@@ -70,0 +70,0 @@ } |
{ | ||
"name": "@inquirer/select", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Inquirer select/list prompt", | ||
@@ -57,3 +57,3 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@inquirer/core": "^1.1.3", | ||
"@inquirer/core": "^1.2.0", | ||
"@inquirer/type": "^1.0.3", | ||
@@ -89,3 +89,3 @@ "ansi-escapes": "^4.3.2", | ||
}, | ||
"gitHead": "fdfa190cb12f2e28299878f433b0a9a15befc535" | ||
"gitHead": "f3a176d916fe26038c9fb57f1ab485aa79c053ce" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
18109
Updated@inquirer/core@^1.2.0