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

inquirer

Package Overview
Dependencies
Maintainers
1
Versions
183
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 0.5.0 to 0.5.1

1

lib/objects/choice.js

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

var _ = require("lodash");
var Separator = require("./separator");

@@ -10,0 +9,0 @@ /**

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

var _ = require("lodash");
var clc = require("cli-color");
var Separator = require("./separator");

@@ -10,0 +9,0 @@ var Choice = require("./choice");

8

lib/prompts/base.js

@@ -8,3 +8,3 @@ /**

var clc = require("cli-color");
var ansiTrim = require("cli-color/trim");
var chalk = require("chalk");
var readline = require("readline");

@@ -102,3 +102,3 @@ var utils = require("../utils/utils");

var errMsg = clc.red(">> ") +
var errMsg = chalk.red(">> ") +
(error || "Please enter a valid value");

@@ -122,3 +122,3 @@ this.write( errMsg );

if ( hint.length ) {
var hintMsg = clc.cyan(">> ") + hint;
var hintMsg = chalk.cyan(">> ") + hint;
this.write( hintMsg );

@@ -164,3 +164,3 @@ }

str || (str = "");
return "[" + clc.green("?") + "] " + str;
return "[" + chalk.green("?") + "] " + str;
};

@@ -167,0 +167,0 @@

@@ -7,5 +7,4 @@ /**

var util = require("util");
var clc = require("cli-color");
var chalk = require("chalk");
var Base = require("./base");
var Separator = require("../objects/separator");
var utils = require("../utils/utils");

@@ -96,3 +95,3 @@

if ( this.status === "answered" ) {
message += clc.cyan( this.selection.join(", ") ) + "\n";
message += chalk.cyan( this.selection.join(", ") ) + "\n";
} else {

@@ -206,3 +205,3 @@ message += choicesStr;

var isSelected = (i - separatorOffset === pointer);
output += isSelected ? clc.cyan(utils.getPointer()) : " ";
output += isSelected ? chalk.cyan(utils.getPointer()) : " ";
output += utils.getCheckbox( choice.checked, choice.name );

@@ -209,0 +208,0 @@ }

@@ -7,3 +7,3 @@ /**

var util = require("util");
var clc = require("cli-color");
var chalk = require("chalk");
var Base = require("./base");

@@ -96,3 +96,3 @@

this.clean(1).render();
this.write( clc.cyan(output ? "Yes" : "No") + "\n" );
this.write( chalk.cyan(output ? "Yes" : "No") + "\n" );

@@ -99,0 +99,0 @@ this.done( input ); // send "input" because the master class will refilter

@@ -7,3 +7,3 @@ /**

var util = require("util");
var clc = require("cli-color");
var chalk = require("chalk");
var Base = require("./base");

@@ -88,3 +88,3 @@ var Separator = require("../objects/separator");

if ( this.status === "answered" ) {
message += clc.cyan( this.selected.name ) + "\n";
message += chalk.cyan( this.selected.name ) + "\n";
} else if ( this.status === "expanded" ) {

@@ -123,3 +123,3 @@ message += this.opt.choices.render( this.selectedKey );

if ( this.selectedKey === choice.key ) {
choiceStr = clc.cyan( choiceStr );
choiceStr = chalk.cyan( choiceStr );
}

@@ -245,3 +245,3 @@ output += choiceStr;

if ( pointer === choice.key ) {
choiceStr = clc.cyan( choiceStr );
choiceStr = chalk.cyan( choiceStr );
}

@@ -248,0 +248,0 @@ output += choiceStr;

@@ -7,3 +7,3 @@ /**

var util = require("util");
var clc = require("cli-color");
var chalk = require("chalk");
var Base = require("./base");

@@ -72,3 +72,3 @@

if ( !value ) {
var value = this.opt.default != null ? this.opt.default : "";
value = this.opt.default != null ? this.opt.default : "";
}

@@ -85,3 +85,3 @@

// Render answer
this.write( clc.cyan(value) + "\n" );
this.write( chalk.cyan(value) + "\n" );

@@ -88,0 +88,0 @@ this.rl.removeAllListeners("line");

@@ -7,5 +7,4 @@ /**

var util = require("util");
var clc = require("cli-color");
var chalk = require("chalk");
var Base = require("./base");
var Separator = require("../objects/separator");
var utils = require("../utils/utils");

@@ -100,3 +99,3 @@

if ( this.status === "answered" ) {
message += clc.cyan( this.opt.choices.getChoice(this.selected).name ) + "\n";
message += chalk.cyan( this.opt.choices.getChoice(this.selected).name ) + "\n";
} else {

@@ -187,3 +186,3 @@ message += choicesStr;

if ( isSelected ) {
line = clc.cyan( line );
line = chalk.cyan( line );
}

@@ -190,0 +189,0 @@ output += line + " \n";

@@ -7,3 +7,3 @@ /**

var util = require("util");
var clc = require("cli-color");
var chalk = require("chalk");
var Base = require("./base");

@@ -93,3 +93,3 @@

// Render answer
this.write( clc.cyan(mask) + "\n" );
this.write( chalk.cyan(mask) + "\n" );

@@ -96,0 +96,0 @@ this.rl.removeAllListeners("line");

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

var clc = require("cli-color");
var chalk = require("chalk");
var Base = require("./base");

@@ -82,3 +83,3 @@ var Separator = require("../objects/separator");

if ( this.status === "answered" ) {
message += clc.cyan(this.opt.choices.getChoice(this.selected).name) + "\n";
message += chalk.cyan(this.opt.choices.getChoice(this.selected).name) + "\n";
} else {

@@ -174,3 +175,3 @@ message += choicesStr;

if ( index === pointer ) {
display = clc.cyan( display );
display = chalk.cyan( display );
}

@@ -177,0 +178,0 @@ output += display;

@@ -7,5 +7,3 @@ /**

var _ = require("lodash");
var clc = require("cli-color");
var Separator = require("../objects/separator");
var Choice = require("../objects/choice");
var chalk = require("chalk");

@@ -74,3 +72,3 @@

if ( checked ) {
check = clc.green( win32 ? "[X]" : "⬢" );
check = chalk.green( win32 ? "[X]" : "⬢" );
} else {

@@ -77,0 +75,0 @@ check = win32 ? "[ ]" : "⬡";

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

@@ -27,3 +27,4 @@ "main": "lib/inquirer.js",

"readline2": "~0.1.0",
"through": "~2.3.4"
"through": "~2.3.4",
"chalk": "~0.4.0"
},

@@ -30,0 +31,0 @@ "devDependencies": {

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