Comparing version 3.0.5 to 3.0.6
@@ -40,2 +40,3 @@ /** | ||
this.pointer = 0; | ||
this.firstRender = true; | ||
@@ -76,2 +77,3 @@ // Make sure no default is set (so it won't be printed) | ||
this.render(); | ||
this.firstRender = false; | ||
@@ -91,3 +93,3 @@ return this; | ||
if (!this.spaceKeyPressed) { | ||
if (this.firstRender) { | ||
message += '(Press ' + chalk.cyan.bold('<space>') + ' to select, ' + chalk.cyan.bold('<a>') + ' to toggle all, ' + chalk.cyan.bold('<i>') + ' to inverse selection)'; | ||
@@ -161,3 +163,2 @@ } | ||
Prompt.prototype.onSpaceKey = function () { | ||
this.spaceKeyPressed = true; | ||
this.toggleChoice(this.pointer); | ||
@@ -164,0 +165,0 @@ this.render(); |
@@ -32,2 +32,3 @@ 'use strict'; | ||
this.close(); | ||
console.log(''); | ||
}; | ||
@@ -34,0 +35,0 @@ |
{ | ||
"name": "inquirer", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "A collection of common interactive command line user interfaces.", | ||
@@ -5,0 +5,0 @@ "author": "Simon Boudrias <admin@simonboudrias.com>", |
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
69037
1845