Socket
Socket
Sign inDemoInstall

@inquirer/rawlist

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inquirer/rawlist - npm Package Compare versions

Comparing version 2.1.18 to 2.2.0

6

dist/cjs/index.js

@@ -21,2 +21,3 @@ "use strict";

(0, core_1.useKeypress)((key, rl) => {
var _a, _b;
if ((0, core_1.isEnterKey)(key)) {

@@ -29,7 +30,6 @@ let selectedChoice;

else {
const answer = value.toLowerCase();
selectedChoice = choices.find((choice) => isSelectableChoice(choice) && choice.key === answer);
selectedChoice = choices.find((choice) => isSelectableChoice(choice) && choice.key === value);
}
if (isSelectableChoice(selectedChoice)) {
setValue(selectedChoice.name || String(selectedChoice.value));
setValue((_b = (_a = selectedChoice.short) !== null && _a !== void 0 ? _a : selectedChoice.name) !== null && _b !== void 0 ? _b : String(selectedChoice.value));
setStatus('done');

@@ -36,0 +36,0 @@ done(selectedChoice.value);

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

name?: string;
short?: string;
key?: string;

@@ -8,0 +9,0 @@ };

{
"name": "@inquirer/rawlist",
"version": "2.1.18",
"version": "2.2.0",
"description": "Inquirer rawlist prompt",

@@ -89,3 +89,3 @@ "main": "./dist/cjs/index.js",

"sideEffects": false,
"gitHead": "7a061f13e053dd64ef7373b08e8a10130131ea59"
"gitHead": "f881e68060d48fdc27424b738e84f61eecae981f"
}

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