@inquirer/select
Advanced tools
Comparing version 0.0.26-alpha.0 to 0.0.27-alpha.0
@@ -6,3 +6,3 @@ import { createPrompt, useState, useKeypress, useRef, usePrefix, isEnterKey, isUpKey, isDownKey, isNumberKey, Paginator, } from '@inquirer/core'; | ||
export default createPrompt((config, done) => { | ||
const { choices, pageSize = 7 } = config; | ||
const { choices } = config; | ||
const paginator = useRef(new Paginator()).current; | ||
@@ -60,3 +60,3 @@ const firstRender = useRef(true); | ||
.join('\n'); | ||
const windowedChoices = paginator.paginate(allChoices, cursorPosition, pageSize); | ||
const windowedChoices = paginator.paginate(allChoices, cursorPosition, config.pageSize); | ||
const choice = choices[cursorPosition]; | ||
@@ -63,0 +63,0 @@ const choiceDescription = choice && choice.description ? `\n${choice.description}` : ``; |
{ | ||
"name": "@inquirer/select", | ||
"type": "module", | ||
"version": "0.0.26-alpha.0", | ||
"version": "0.0.27-alpha.0", | ||
"description": "Inquirer select/list prompt", | ||
@@ -13,6 +13,40 @@ "main": "dist/index.js", | ||
"keywords": [ | ||
"answer", | ||
"answers", | ||
"ask", | ||
"base", | ||
"cli", | ||
"cli", | ||
"command", | ||
"command-line", | ||
"confirm", | ||
"enquirer", | ||
"generate", | ||
"generator", | ||
"hyper", | ||
"input", | ||
"inquire", | ||
"inquirer", | ||
"interface", | ||
"iterm", | ||
"javascript", | ||
"menu", | ||
"node", | ||
"nodejs", | ||
"prompt", | ||
"command-line", | ||
"input" | ||
"promptly", | ||
"prompts", | ||
"question", | ||
"readline", | ||
"scaffold", | ||
"scaffolder", | ||
"scaffolding", | ||
"stdin", | ||
"stdout", | ||
"terminal", | ||
"tty", | ||
"ui", | ||
"yeoman", | ||
"yo", | ||
"zsh" | ||
], | ||
@@ -34,3 +68,3 @@ "author": "Simon Boudrias", | ||
}, | ||
"gitHead": "6e0a7e28b5ac9fc526cf787e0b6c53cb44bd7ae3" | ||
"gitHead": "0e3ef8e31fc34b5fa5308be95af77ba9f5ede8fa" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7012