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

all-contributors-cli

Package Overview
Dependencies
Maintainers
2
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-contributors-cli - npm Package Compare versions

Comparing version 4.11.2 to 5.0.0

21

dist/contributors/prompt.js

@@ -56,6 +56,25 @@ 'use strict';

function getValidUserContributions(options, contributions) {
var validContributionTypes = util.contributionTypes(options);
var userContributions = contributions && contributions.split(',');
var validUserContributions = _.filter(function (userContribution) {
return validContributionTypes[userContribution] !== undefined;
})(userContributions);
var invalidUserContributions = _.filter(function (userContribution) {
return validContributionTypes[userContribution] === undefined;
})(userContributions);
if (_.isEmpty(validUserContributions)) {
throw new Error(`${invalidUserContributions.toString()} is/are invalid contribution type(s)`);
}
return validUserContributions;
}
module.exports = function (options, username, contributions) {
var defaults = {
username,
contributions: contributions && contributions.split(',')
contributions: username === undefined && contributions === undefined ? [] : getValidUserContributions(options, contributions)
};

@@ -62,0 +81,0 @@ var questions = getQuestions(options, username, contributions);

'use strict';
var _ = require('lodash/fp');
var util = require('../util');

@@ -5,0 +6,0 @@

2

package.json

@@ -1,1 +0,1 @@

{"name":"all-contributors-cli","version":"4.11.2","description":"Tool to easily add recognition for new contributors","bin":{"all-contributors":"dist/cli.js"},"files":["dist"],"engines":{"node":">=4"},"scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build","lint":"kcd-scripts lint","test":"kcd-scripts test","validate":"kcd-scripts validate","precommit":"kcd-scripts precommit"},"repository":{"type":"git","url":"https://github.com/jfmengels/all-contributors-cli.git"},"keywords":["all-contributors","contributors"],"author":"Jeroen Engels <jfm.engels@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/jfmengels/all-contributors-cli/issues"},"homepage":"https://github.com/jfmengels/all-contributors-cli#readme","dependencies":{"async":"^2.0.0-rc.1","chalk":"^2.3.0","inquirer":"^4.0.0","lodash":"^4.11.2","pify":"^3.0.0","request":"^2.72.0","yargs":"^10.0.3"},"devDependencies":{"kcd-scripts":"^0.29.0","nock":"^9.1.0"},"eslintIgnore":["node_modules","coverage","dist"],"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js","rules":{"camelcase":"off","no-process-exit":"off","import/extensions":"off","func-names":"off","consistent-return":"off"}}}
{"name":"all-contributors-cli","version":"5.0.0","description":"Tool to easily add recognition for new contributors","bin":{"all-contributors":"dist/cli.js"},"files":["dist"],"engines":{"node":">=4"},"scripts":{"add-contributor":"kcd-scripts contributors add","build":"kcd-scripts build","lint":"kcd-scripts lint","test":"kcd-scripts test","validate":"kcd-scripts validate","precommit":"kcd-scripts precommit"},"repository":{"type":"git","url":"https://github.com/jfmengels/all-contributors-cli.git"},"keywords":["all-contributors","contributors"],"author":"Jeroen Engels <jfm.engels@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/jfmengels/all-contributors-cli/issues"},"homepage":"https://github.com/jfmengels/all-contributors-cli#readme","dependencies":{"async":"^2.0.0-rc.1","chalk":"^2.3.0","inquirer":"^4.0.0","lodash":"^4.11.2","pify":"^3.0.0","request":"^2.72.0","yargs":"^10.0.3"},"devDependencies":{"kcd-scripts":"^0.29.0","nock":"^9.1.0"},"eslintIgnore":["node_modules","coverage","dist"],"eslintConfig":{"extends":"./node_modules/kcd-scripts/eslint.js","rules":{"camelcase":"off","no-process-exit":"off","import/extensions":"off","func-names":"off","consistent-return":"off"}}}

@@ -181,3 +181,3 @@ <h1 align="center">

| [<img src="https://avatars2.githubusercontent.com/u/1026002?v=4" width="100px;"/><br /><sub><b>Bryce Reynolds</b></sub>](https://github.com/brycereynolds)<br />[💻](https://github.com/jfmengels/all-contributors-cli/commits?author=brycereynolds "Code") | [<img src="https://avatars3.githubusercontent.com/u/2322305?v=4" width="100px;"/><br /><sub><b>James, please</b></sub>](http://www.jmeas.com)<br />[🤔](#ideas-jmeas "Ideas, Planning, & Feedback") [💻](https://github.com/jfmengels/all-contributors-cli/commits?author=jmeas "Code") | [<img src="https://avatars3.githubusercontent.com/u/1057324?v=4" width="100px;"/><br /><sub><b>Spyros Ioakeimidis</b></sub>](http://www.spyros.io)<br />[💻](https://github.com/jfmengels/all-contributors-cli/commits?author=spirosikmd "Code") | [<img src="https://avatars3.githubusercontent.com/u/12335761?v=4" width="100px;"/><br /><sub><b>Fernando Costa</b></sub>](https://github.com/fadc80)<br />[💻](https://github.com/jfmengels/all-contributors-cli/commits?author=fadc80 "Code") | [<img src="https://avatars0.githubusercontent.com/u/197404?v=4" width="100px;"/><br /><sub><b>snipe</b></sub>](https://snipe.net)<br />[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=snipe "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/997157?v=4" width="100px;"/><br /><sub><b>Gant Laborde</b></sub>](http://gantlaborde.com/)<br />[💻](https://github.com/jfmengels/all-contributors-cli/commits?author=GantMan "Code") |
| [<img src="https://avatars2.githubusercontent.com/u/17708702?v=4" width="100px;"/><br /><sub><b>Md Zubair Ahmed</b></sub>](https://in.linkedin.com/in/mzubairahmed)<br />[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=M-ZubairAhmed "Documentation") [🐛](https://github.com/jfmengels/all-contributors-cli/issues?q=author%3AM-ZubairAhmed "Bug reports") | [<img src="https://avatars3.githubusercontent.com/u/6177621?v=4" width="100px;"/><br /><sub><b>Divjot Singh</b></sub>](http://bogas04.github.io)<br />[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=bogas04 "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/15315098?v=4" width="100px;"/><br /><sub><b>João Marques</b></sub>](https://github.com/tigermarques)<br />[💻](https://github.com/jfmengels/all-contributors-cli/commits?author=tigermarques "Code") [📖](https://github.com/jfmengels/all-contributors-cli/commits?author=tigermarques "Documentation") [🤔](#ideas-tigermarques "Ideas, Planning, & Feedback") |
| [<img src="https://avatars2.githubusercontent.com/u/17708702?v=4" width="100px;"/><br /><sub><b>Md Zubair Ahmed</b></sub>](https://in.linkedin.com/in/mzubairahmed)<br />[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=M-ZubairAhmed "Documentation") [🐛](https://github.com/jfmengels/all-contributors-cli/issues?q=author%3AM-ZubairAhmed "Bug reports") [💻](https://github.com/jfmengels/all-contributors-cli/commits?author=M-ZubairAhmed "Code") [⚠️](https://github.com/jfmengels/all-contributors-cli/commits?author=M-ZubairAhmed "Tests") | [<img src="https://avatars3.githubusercontent.com/u/6177621?v=4" width="100px;"/><br /><sub><b>Divjot Singh</b></sub>](http://bogas04.github.io)<br />[📖](https://github.com/jfmengels/all-contributors-cli/commits?author=bogas04 "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/15315098?v=4" width="100px;"/><br /><sub><b>João Marques</b></sub>](https://github.com/tigermarques)<br />[💻](https://github.com/jfmengels/all-contributors-cli/commits?author=tigermarques "Code") [📖](https://github.com/jfmengels/all-contributors-cli/commits?author=tigermarques "Documentation") [🤔](#ideas-tigermarques "Ideas, Planning, & Feedback") |
<!-- ALL-CONTRIBUTORS-LIST:END -->

@@ -184,0 +184,0 @@

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