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

@inquirer/select

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/select - npm Package Compare versions

Comparing version 0.0.20-alpha.0 to 0.0.21-alpha.0

2

demo.js

@@ -1,2 +0,2 @@

const select = require('.');
import select from './index.js';

@@ -3,0 +3,0 @@ (async () => {

@@ -1,10 +0,18 @@

const { createPrompt, useState, useKeypress, useRef } = require('@inquirer/core/hooks');
const { usePrefix } = require('@inquirer/core/lib/prefix');
const { isEnterKey, isUpKey, isDownKey, isNumberKey } = require('@inquirer/core/lib/key');
const Paginator = require('@inquirer/core/lib/Paginator');
const chalk = require('chalk');
const figures = require('figures');
const { cursorHide } = require('ansi-escapes');
import {
createPrompt,
useState,
useKeypress,
useRef,
usePrefix,
isEnterKey,
isUpKey,
isDownKey,
isNumberKey,
Paginator,
} from '@inquirer/core';
import chalk from 'chalk';
import figures from 'figures';
import ansiEscapes from 'ansi-escapes';
module.exports = createPrompt((config, done) => {
export default createPrompt((config, done) => {
const [status, setStatus] = useState('pending');

@@ -71,3 +79,3 @@ const [cursorPosition, setCursorPos] = useState(0);

return `${prefix} ${message}\n${windowedChoices}${choiceDescription}${cursorHide}`;
return `${prefix} ${message}\n${windowedChoices}${choiceDescription}${ansiEscapes.cursorHide}`;
});
{
"name": "@inquirer/select",
"version": "0.0.20-alpha.0",
"type": "module",
"version": "0.0.21-alpha.0",
"description": "Inquirer select/list prompt",

@@ -17,5 +18,6 @@ "main": "index.js",

"dependencies": {
"@inquirer/core": "^0.0.20-alpha.0",
"chalk": "^4.1.1",
"figures": "^3.0.0"
"@inquirer/core": "^0.0.21-alpha.0",
"ansi-escapes": "^5.0.0",
"chalk": "^5.0.1",
"figures": "^4.0.1"
},

@@ -25,3 +27,3 @@ "publishConfig": {

},
"gitHead": "83b807522ca6e10ab90a6921eac9d9655e2dac38"
"gitHead": "cd0d1465327c0e98a89c937a80b7c473b6d00f74"
}
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