Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@inquirer/checkbox

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/checkbox - npm Package Compare versions

Comparing version
5.1.2
to
5.1.3
+1
-1
dist/index.d.ts

@@ -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;

@@ -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,

{
"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"
}