prompts-ncu
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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 |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2295
104657