@inquirer/select
Advanced tools
+3
-1
@@ -76,4 +76,6 @@ import { createPrompt, useState, useKeypress, usePrefix, usePagination, useRef, useMemo, useEffect, isBackspaceKey, isEnterKey, isUpKey, isDownKey, isNumberKey, Separator, ValidationError, makeTheme, } from '@inquirer/core'; | ||
| const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex); | ||
| // Safe to assume the cursor position always point to a Choice. | ||
| const selectedChoice = items[active]; | ||
| if (selectedChoice == null || Separator.isSeparator(selectedChoice)) { | ||
| throw new Error('Active index does not point to a choice'); | ||
| } | ||
| const [errorMsg, setError] = useState(); | ||
@@ -80,0 +82,0 @@ useKeypress((key, rl) => { |
+7
-7
| { | ||
| "name": "@inquirer/select", | ||
| "version": "5.1.2", | ||
| "version": "5.1.3", | ||
| "description": "Inquirer select/list 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.
17281
0.47%228
0.88%0
-100%Updated
Updated
Updated
Updated