Skip to content

Commit

Permalink
ADDED: github username
Browse files Browse the repository at this point in the history
  • Loading branch information
taitems committed Oct 22, 2021
1 parent ba08a00 commit c33eacc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enrich-email",
"version": "0.0.11",
"version": "0.0.12",
"main": "dist/node/index.js",
"license": "MIT",
"author": "Tait Brown <taitbrown@gmail.com>",
Expand Down
1 change: 1 addition & 0 deletions src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const transform = (ghProfile, gravProfile, inferredName, companyFromEmail) => {
twitterUsername: ghProfile?.twitter_username,
twitterUrl: ghProfile?.twitter_username ? `https://twitter.com/${ghProfile.twitter_username}` : null,
githubUrl: ghProfile?.profile_url,
githubUsername: ghProfile?.username,
website: ghProfile?.website
};
return {
Expand Down
1 change: 1 addition & 0 deletions src/transform.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ test('If all arguments are given', async () => {
expect(guess.company).toBe(EXAMPLE_DOMAIN);
expect(guess.avatar_url).toBe(GITHUB_AVATAR_URL);
expect(guess.githubUrl).toBe(GITHUB_PROFILE_URL);
expect(guess.githubUsername).toBe(GITHUB_USERNAME);

// profile
expect(Object.keys(profiles).length).toBe(2);
Expand Down

0 comments on commit c33eacc

Please sign in to comment.