Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@inquirer/checkbox

Package Overview
Dependencies
Maintainers
3
Versions
86
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 1.0.2 to 1.1.0

4

dist/cjs/index.js

@@ -14,5 +14,3 @@ "use strict";

const [status, setStatus] = (0, core_1.useState)('pending');
const [choices, setChoices] = (0, core_1.useState)([
...config.choices,
]);
const [choices, setChoices] = (0, core_1.useState)(config.choices.map((choice) => (Object.assign({}, choice))));
const [cursorPosition, setCursorPosition] = (0, core_1.useState)(0);

@@ -19,0 +17,0 @@ const [showHelpTip, setShowHelpTip] = (0, core_1.useState)(true);

{
"name": "@inquirer/checkbox",
"version": "1.0.2",
"version": "1.1.0",
"engines": {

@@ -60,4 +60,4 @@ "node": ">=14.18.0"

"dependencies": {
"@inquirer/core": "^1.0.3",
"@inquirer/type": "^1.0.2",
"@inquirer/core": "^1.0.4",
"@inquirer/type": "^1.0.3",
"ansi-escapes": "^4.3.2",

@@ -72,3 +72,3 @@ "chalk": "^4.1.2",

"tsc:cjs": "tsc -p ./tsconfig.cjs.json && yarn run fix-ext",
"fix-ext": "node --no-warnings=ExperimentalWarning --loader ts-node/esm ../../tools/rename-ext.mts"
"fix-ext": "node --no-warnings=ExperimentalWarning --loader=ts-node/esm ../../tools/rename-ext.mts"
},

@@ -90,3 +90,3 @@ "publishConfig": {

},
"gitHead": "865c589ffbc4a66f328dc4e64a08646200c755f3"
"gitHead": "12fecef5292da253564c845ef5be67b37441e381"
}

@@ -37,6 +37,6 @@ # `@inquirer/checkbox`

| Property | Type | Required | Description |
| -------- | ----------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| message | `string` | yes | The question to ask |
| choices | `Array<{ value: string, name?: string, disabled?: boolean \| string }>` | yes | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. Choices who're `disabled` will be displayed, but not selectable. |
| Property | Type | Required | Description |
| -------- | ------------------------------------------------------------------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| message | `string` | yes | The question to ask |
| choices | `Array<{ value: string, name?: string, disabled?: boolean \| string, checked?: boolean }>` | yes | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. Choices who're `disabled` will be displayed, but not selectable. |

@@ -43,0 +43,0 @@ # License

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc