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

prompts-ncu

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompts-ncu - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

1

lib/elements/multiselect.js

@@ -24,2 +24,3 @@ 'use strict';

super(opts);
this.isSelect = true;
this.msg = opts.message;

@@ -26,0 +27,0 @@ // set the cursor to the first non-heading

3

lib/elements/prompt.js

@@ -26,5 +26,4 @@ 'use strict';

if (this.in.isTTY) this.in.setRawMode(true);
const isSelect = [ 'SelectPrompt', 'MultiselectPrompt' ].indexOf(this.constructor.name) > -1;
const keypress = (str, key) => {
let a = action(key, isSelect);
let a = action(key, this.isSelect);
if (a === false) {

@@ -31,0 +30,0 @@ this._ && this._(str, key);

@@ -22,2 +22,3 @@ 'use strict';

super(opts);
this.isSelect = true;
this.msg = opts.message;

@@ -24,0 +25,0 @@ this.hint = opts.hint || '- Use arrow-keys. Return to submit.';

{
"name": "prompts-ncu",
"version": "3.0.0",
"version": "3.0.1",
"description": "Lightweight, beautiful and user-friendly prompts",

@@ -5,0 +5,0 @@ "license": "MIT",

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