Socket
Socket
Sign inDemoInstall

@inquirer/checkbox

Package Overview
Dependencies
Maintainers
0
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 2.5.0 to 3.0.0

6

dist/cjs/index.js

@@ -75,5 +75,5 @@ "use strict";

const theme = (0, core_1.makeTheme)(checkboxTheme, config.theme);
const prefix = (0, core_1.usePrefix)({ theme });
const firstRender = (0, core_1.useRef)(true);
const [status, setStatus] = (0, core_1.useState)('pending');
const [status, setStatus] = (0, core_1.useState)('idle');
const prefix = (0, core_1.usePrefix)({ status, theme });
const [items, setItems] = (0, core_1.useState)(normalizeChoices(config.choices));

@@ -140,3 +140,3 @@ const bounds = (0, core_1.useMemo)(() => {

}));
const message = theme.style.message(config.message);
const message = theme.style.message(config.message, status);
let description;

@@ -143,0 +143,0 @@ const page = (0, core_1.usePagination)({

@@ -43,4 +43,6 @@ import { Separator, type Theme } from '@inquirer/core';

theme?: PartialDeep<Theme<CheckboxTheme>> | undefined;
}, context?: import("@inquirer/type").Context) => import("@inquirer/type").CancelablePromise<Value[]>;
}, context?: import("@inquirer/type").Context) => Promise<Value[]> & {
cancel: () => void;
};
export default _default;
export { Separator } from '@inquirer/core';
{
"name": "@inquirer/checkbox",
"version": "2.5.0",
"version": "3.0.0",
"engines": {

@@ -60,5 +60,5 @@ "node": ">=18"

"dependencies": {
"@inquirer/core": "^9.1.0",
"@inquirer/core": "^9.2.0",
"@inquirer/figures": "^1.0.5",
"@inquirer/type": "^1.5.3",
"@inquirer/type": "^1.5.4",
"ansi-escapes": "^4.3.2",

@@ -68,3 +68,3 @@ "yoctocolors-cjs": "^2.1.2"

"devDependencies": {
"@inquirer/testing": "^2.1.32"
"@inquirer/testing": "^2.1.33"
},

@@ -93,3 +93,3 @@ "scripts": {

"sideEffects": false,
"gitHead": "0c039599ef88fe9eb804fe083ee386ec906a856f"
"gitHead": "5fe03a4686d349d0d6cf281f86f12a4f7c992ad4"
}

@@ -122,3 +122,3 @@ # `@inquirer/checkbox`

type Theme = {
prefix: string;
prefix: string | { idle: string; done: string };
spinner: {

@@ -130,3 +130,3 @@ interval: number;

answer: (text: string) => string;
message: (text: string) => string;
message: (text: string, status: 'idle' | 'done' | 'loading') => string;
error: (text: string) => string;

@@ -133,0 +133,0 @@ defaultAnswer: (text: string) => string;

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