Socket
Socket
Sign inDemoInstall

bagofcli

Package Overview
Dependencies
42
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.1.0

5

CHANGELOG.md

@@ -8,2 +8,7 @@ # Changelog

## 2.1.0 - 2020-11-01
### Changed
- Replace buster-istanbul with c8 for test coverage
- Replace prompt with inquirer for input prompt
## 2.0.2 - 2020-06-07

@@ -10,0 +15,0 @@ ### Fixed

20

lib/bagofcli.js

@@ -10,3 +10,3 @@ "use strict"

import p from 'path';
import prompt from 'prompt';
import inquirer from 'inquirer';
import util from 'util';

@@ -440,15 +440,21 @@ import validators from 'iz/lib/validators.js';

// environment variables and configuration file
let promptKeys = [];
let promptQuestions = [];
keys.forEach((key) => {
if (results[key] === undefined) {
const promptQuestion = {
name: key,
message: key,
default: false,
};
if (key.toLowerCase().indexOf('password') >= 0) {
promptKeys.push({ name: key, hidden: true });
promptQuestion.type = 'input';
} else {
promptKeys.push(key);
promptQuestion.type = 'password';
}
promptQuestions.push(promptQuestion);
}
});
if (promptKeys.length > 0) {
prompt.get(promptKeys, function (err, promptResults) {
results = _.extend(results, promptResults);
if (promptQuestions.length > 0) {
inquirer.prompt(promptQuestions).then((promptAnswers) => {
results = _.extend(results, promptAnswers);
cb(err, results);

@@ -455,0 +461,0 @@ });

@@ -9,3 +9,3 @@ {

],
"version": "2.0.2",
"version": "2.1.0",
"homepage": "http://github.com/cliffano/bagofcli",

@@ -31,6 +31,6 @@ "author": "Cliffano Subagio <blah@cliffano.com> (http://blog.cliffano.com)",

"colors": "^1.4.0",
"commander": "^5.1.0",
"commander": "^6.2.0",
"inquirer": "^7.3.3",
"iz": "^3.0.0",
"lodash": "^4.17.15",
"prompt": "^1.0.0",
"lodash": "^4.17.20",
"wrench-sui": "^0.0.3",

@@ -40,5 +40,5 @@ "yaml-js": "^0.2.3"

"devDependencies": {
"mocha": "^7.1.2",
"sinon": "^9.0.2",
"@sinonjs/referee": "^5.0.1"
"mocha": "^8.2.0",
"sinon": "^9.2.1",
"@sinonjs/referee": "^6.1.0"
},

@@ -45,0 +45,0 @@ "scripts": {},

@@ -106,4 +106,4 @@ <img align="right" src="https://raw.github.com/cliffano/bagofcli/master/avatar.jpg" alt="Avatar"/>

* [Code complexity report](http://cliffano.github.io/bagofcli/complexity/plato/index.html)
* [Unit tests report](http://cliffano.github.io/bagofcli/test/buster.out)
* [Test coverage report](http://cliffano.github.io/bagofcli/coverage/buster-istanbul/lcov-report/lib/index.html)
* [API Documentation](http://cliffano.github.io/bagofcli/doc/dox-foundation/index.html)
* [Unit tests report](http://cliffano.github.io/bagofcli/test/mocha.txt)
* [Test coverage report](http://cliffano.github.io/bagofcli/coverage/c8/index.html)
* [API Documentation](http://cliffano.github.io/bagofcli/doc/jsdoc/index.html)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc