Socket
Socket
Sign inDemoInstall

inquirer

Package Overview
Dependencies
Maintainers
4
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inquirer - npm Package Compare versions

Comparing version 10.1.2 to 10.1.3

11

dist/cjs/ui/prompt.js

@@ -57,2 +57,8 @@ "use strict";

super(...arguments);
Object.defineProperty(this, "name", {
enumerable: true,
configurable: true,
writable: true,
value: 'TTYError'
});
Object.defineProperty(this, "isTtyError", {

@@ -252,5 +258,8 @@ enumerable: true,

question.choices = question.choices.map((choice) => {
if (typeof choice === 'string') {
if (typeof choice === 'string' || typeof choice === 'number') {
return { name: choice, value: choice };
}
else if (!('value' in choice)) {
return Object.assign(Object.assign({}, choice), { value: choice.name });
}
return choice;

@@ -257,0 +266,0 @@ });

6

package.json
{
"name": "inquirer",
"version": "10.1.2",
"version": "10.1.3",
"description": "A collection of common interactive command line user interfaces.",

@@ -58,3 +58,3 @@ "author": "Simon Boudrias <admin@simonboudrias.com>",

"dependencies": {
"@inquirer/prompts": "^5.3.2",
"@inquirer/prompts": "^5.3.3",
"@inquirer/type": "^1.5.1",

@@ -88,3 +88,3 @@ "@types/mute-stream": "^0.0.4",

"typings": "./dist/cjs/types/index.d.ts",
"gitHead": "2a40d8a08ab037188d9f91f66c5e69b82cb94563"
"gitHead": "7a061f13e053dd64ef7373b08e8a10130131ea59"
}

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