all-contributors-cli
Advanced tools
Comparing version 6.11.0 to 6.11.1
@@ -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); |
@@ -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 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
9
62113
1184
144
6
+ Addedansi-regex@5.0.1(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)
- Removeddidyoumean@^1.2.1
- Removedcliui@5.0.0(transitive)
- Removeddidyoumean@1.2.2(transitive)
- Removedemoji-regex@7.0.3(transitive)
- Removedfind-up@3.0.0(transitive)
- Removedlocate-path@3.0.0(transitive)
- Removedp-locate@3.0.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedstring-width@3.1.0(transitive)
- Removedwrap-ansi@5.1.0(transitive)
- Removedyargs@14.2.3(transitive)
- Removedyargs-parser@15.0.3(transitive)
Updatedyargs@^15.0.1