@inquirer/checkbox
Advanced tools
+1
-1
@@ -49,3 +49,3 @@ import { Separator, type Theme, type Keybinding } from '@inquirer/core'; | ||
| pageSize?: number | undefined; | ||
| choices: readonly (string | Separator)[] | readonly (Separator | Choice<Value>)[]; | ||
| choices: readonly (Separator | Value | Choice<Value>)[]; | ||
| loop?: boolean | undefined; | ||
@@ -52,0 +52,0 @@ required?: boolean | undefined; |
+5
-4
@@ -45,8 +45,9 @@ import { createPrompt, useState, useKeypress, usePrefix, usePagination, useMemo, makeTheme, isUpKey, isDownKey, isSpaceKey, isNumberKey, isEnterKey, ValidationError, Separator, } from '@inquirer/core'; | ||
| return choice; | ||
| if (typeof choice === 'string') { | ||
| if (typeof choice !== 'object' || choice === null || !('value' in choice)) { | ||
| const name = String(choice); | ||
| return { | ||
| value: choice, | ||
| name: choice, | ||
| short: choice, | ||
| checkedName: choice, | ||
| name, | ||
| short: name, | ||
| checkedName: name, | ||
| disabled: false, | ||
@@ -53,0 +54,0 @@ checked: false, |
+7
-7
| { | ||
| "name": "@inquirer/checkbox", | ||
| "version": "5.1.2", | ||
| "version": "5.1.3", | ||
| "description": "Inquirer checkbox prompt", | ||
@@ -70,9 +70,9 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@inquirer/ansi": "^2.0.4", | ||
| "@inquirer/core": "^11.1.7", | ||
| "@inquirer/figures": "^2.0.4", | ||
| "@inquirer/type": "^4.0.4" | ||
| "@inquirer/ansi": "^2.0.5", | ||
| "@inquirer/core": "^11.1.8", | ||
| "@inquirer/figures": "^2.0.5", | ||
| "@inquirer/type": "^4.0.5" | ||
| }, | ||
| "devDependencies": { | ||
| "typescript": "^5.9.3" | ||
| "typescript": "^6.0.2" | ||
| }, | ||
@@ -92,3 +92,3 @@ "peerDependencies": { | ||
| "types": "./dist/index.d.ts", | ||
| "gitHead": "b218fcc4afe888a58957aa78c9a032f9bd2d60cb" | ||
| "gitHead": "e68fe01d65359e083581c48c4a18cd8f97d88842" | ||
| } |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20331
0.23%268
0.37%0
-100%Updated
Updated
Updated
Updated