Socket
Socket
Sign inDemoInstall

all-contributors-cli

Package Overview
Dependencies
103
Maintainers
4
Versions
121
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.11.0 to 6.11.1

16

dist/cli.js

@@ -14,7 +14,2 @@ #!/usr/bin/env node

var didYouMean = require('didyoumean'); // Setting edit length to be 60% of the input string's length
didYouMean.threshold = 0.6;
var init = require('./init');

@@ -32,3 +27,3 @@

var defaultRCFile = path.join(cwd, '.all-contributorsrc');
var yargv = yargs.help('help').alias('h', 'help').alias('v', 'version').version().command('generate', 'Generate the list of contributors').usage('Usage: $0 generate').command('add', 'add a new contributor').usage('Usage: $0 add <username> <contribution>').command('init', 'Prepare the project to be used with this tool').usage('Usage: $0 init').command('check', 'Compares contributors from the repository with the ones credited in .all-contributorsrc').usage('Usage: $0 check').boolean('commit').default('files', ['README.md']).default('contributorsPerLine', 7).default('contributors', []).default('config', defaultRCFile).config('config', function (configPath) {
var yargv = yargs.help('help').alias('h', 'help').alias('v', 'version').version().recommendCommands().command('generate', 'Generate the list of contributors').usage('Usage: $0 generate').command('add', 'add a new contributor').usage('Usage: $0 add <username> <contribution>').command('init', 'Prepare the project to be used with this tool').usage('Usage: $0 init').command('check', 'Compares contributors from the repository with the ones credited in .all-contributorsrc').usage('Usage: $0 check').boolean('commit').default('files', ['README.md']).default('contributorsPerLine', 7).default('contributors', []).default('config', defaultRCFile).config('config', function (configPath) {
try {

@@ -43,10 +38,2 @@ return util.configFile.readConfig(configPath);

function suggestCommands(cmd) {
var suggestion = didYouMean(cmd, ['generate', 'add', 'init', 'check']);
if (suggestion) {
console.log(chalk.bold(`Did you mean ${suggestion}`));
}
}
function startGeneration(argv) {

@@ -153,5 +140,4 @@ return Promise.all(argv.files.map(function (file) {

default:
suggestCommands(command);
throw new Error(`Unknown command ${command}`);
}
}).catch(onError);

2

dist/generate/format-contributor.js

@@ -7,3 +7,3 @@ "use strict";

var avatarTemplate = _.template('<img src="<%= contributor.avatar_url %>" width="<%= options.imageSize %>px;" alt="<%= name %>"/>');
var avatarTemplate = _.template('<img src="<%= contributor.avatar_url %>" width="<%= options.imageSize %>px;" alt=""/>');

@@ -10,0 +10,0 @@ var avatarBlockTemplate = _.template('<a href="<%= contributor.profile %>"><%= avatar %><br /><sub><b><%= name %></b></sub></a>');

{
"name": "all-contributors-cli",
"version": "6.11.0",
"version": "6.11.1",
"description": "Tool to easily add recognition for new contributors",

@@ -48,3 +48,2 @@ "bin": {

"chalk": "^3.0.0",
"didyoumean": "^1.2.1",
"inquirer": "^6.2.1",

@@ -55,3 +54,3 @@ "json-fixer": "^1.3.1-0",

"request": "^2.72.0",
"yargs": "^14.0.0"
"yargs": "^15.0.1"
},

@@ -58,0 +57,0 @@ "devDependencies": {

@@ -78,4 +78,3 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update -->

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<!-- prettier-ignore -->
<table>

@@ -133,8 +132,6 @@ <tr>

<td align="center"><a href="https://github.com/marceloalves"><img src="https://avatars1.githubusercontent.com/u/216782?v=4" width="100px;" alt="Marcelo Alves"/><br /><sub><b>Marcelo Alves</b></sub></a><br /><a href="https://github.com/all-contributors/all-contributors-cli/commits?author=MarceloAlves" title="Code">💻</a></td>
<td align="center"><a href="https://phacks.dev/"><img src="https://avatars1.githubusercontent.com/u/2587348?v=4" width="100px;" alt="Nicolas Goutay"/><br /><sub><b>Nicolas Goutay</b></sub></a><br /><a href="https://github.com/all-contributors/all-contributors-cli/commits?author=phacks" title="Code">💻</a></td>
</tr>
</table>
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

@@ -141,0 +138,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc