Socket
Socket
Sign inDemoInstall

all-contributors-cli

Package Overview
Dependencies
Maintainers
1
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 2.0.0-beta1 to 2.0.0-beta2

14

lib/contributors/add.test.js

@@ -9,3 +9,3 @@ import test from 'ava';

avatar_url: 'www.avatar.url',
html_url: 'www.html.url'
profile: 'www.profile.url'
});

@@ -20,3 +20,3 @@ }

avatar_url: 'www.avatar.url',
html_url: 'www.html.url',
profile: 'www.profile.url',
contributions: [

@@ -29,3 +29,3 @@ 'code'

avatar_url: 'www.avatar.url',
html_url: 'www.html.url',
profile: 'www.profile.url',
contributions: [

@@ -66,3 +66,3 @@ { type: 'blog', url: 'www.blog.url/path' },

avatar_url: 'www.avatar.url',
html_url: 'www.html.url',
profile: 'www.profile.url',
contributions: [

@@ -89,3 +89,3 @@ 'doc'

avatar_url: 'www.avatar.url',
html_url: 'www.html.url',
profile: 'www.profile.url',
contributions: [

@@ -123,3 +123,3 @@ { type: 'doc', url: 'www.foo.bar' }

avatar_url: 'www.avatar.url',
html_url: 'www.html.url',
profile: 'www.profile.url',
contributions: [

@@ -147,3 +147,3 @@ 'code',

avatar_url: 'www.avatar.url',
html_url: 'www.html.url',
profile: 'www.profile.url',
contributions: [

@@ -150,0 +150,0 @@ 'code',

@@ -16,5 +16,11 @@ 'use strict';

}
var user = JSON.parse(res.body);
return cb(null, _.pick(['login', 'name', 'avatar_url', 'html_url'], user));
var body = JSON.parse(res.body);
var user = {
login: body.login,
name: body.name,
avatar_url: body.avatar_url,
profile: body.blog || body.html_url
};
return cb(null, user);
});
}

@@ -5,3 +5,3 @@ {

"name": "Kent C. Dodds",
"html_url": "http://kentcdodds.com",
"profile": "http://kentcdodds.com",
"avatar_url": "https://avatars1.githubusercontent.com/u/1500684",

@@ -17,3 +17,3 @@ "contributions": [

"name": "Divjot Singh",
"html_url": "http://bogas04.github.io",
"profile": "http://bogas04.github.io",
"avatar_url": "https://avatars1.githubusercontent.com/u/6177621",

@@ -20,0 +20,0 @@ "contributions": [

@@ -8,3 +8,3 @@ 'use strict';

var avatarTemplate = _.template('![<%= contributor.name %>](<%= contributor.avatar_url %>)');
var avatarBlockTemplate = _.template('[<%= avatar %><br /><sub><%= contributor.name %></sub>](<%= contributor.html_url %>)');
var avatarBlockTemplate = _.template('[<%= avatar %><br /><sub><%= contributor.name %></sub>](<%= contributor.profile %>)');
var contributorTemplate = _.template('<%= avatarBlock %><br /><%= contributions %>');

@@ -11,0 +11,0 @@

{
"name": "all-contributors-cli",
"version": "2.0.0-beta1",
"version": "2.0.0-beta2",
"description": "Tool to easily add recognition for new contributors",

@@ -5,0 +5,0 @@ "bin": {

Sorry, the diff of this file is not supported yet

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