Socket
Socket
Sign inDemoInstall

inquirer

Package Overview
Dependencies
Maintainers
1
Versions
176
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 1.1.0 to 1.1.1

13

lib/prompts/list.js

@@ -10,2 +10,3 @@ /**

var cliCursor = require('cli-cursor');
var runAsync = require('run-async');
var Base = require('./base');

@@ -67,6 +68,6 @@ var observe = require('../utils/events');

events.numberKey.takeUntil(events.line).forEach(this.onNumberKey.bind(this));
var validation = this.handleSubmitEvents(
events.line.map(this.getCurrentValue.bind(this))
);
validation.success.forEach(this.onSubmit.bind(this));
events.line
.map(this.getCurrentValue.bind(this))
.flatMap(runAsync(this.opt.filter))
.forEach(this.onSubmit.bind(this));

@@ -111,3 +112,3 @@ // Init the prompt

Prompt.prototype.onSubmit = function (state) {
Prompt.prototype.onSubmit = function (value) {
this.status = 'answered';

@@ -120,3 +121,3 @@

cliCursor.show();
this.done(state.value);
this.done(value);
};

@@ -123,0 +124,0 @@

{
"name": "inquirer",
"version": "1.1.0",
"version": "1.1.1",
"description": "A collection of common interactive command line user interfaces.",

@@ -5,0 +5,0 @@ "author": "Simon Boudrias <admin@simonboudrias.com>",

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