Skip to content

Commit

Permalink
Add new build
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 authored and akhilmhdh committed May 3, 2024
1 parent cdcdde6 commit c78bc93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33860,15 +33860,6 @@ const templateParser = inputTemplate => {

/* harmony default export */ const utils_templateParser = (templateParser);

;// CONCATENATED MODULE: ./src/utils/capitalize.js
const capitalCaseUtil = str => {
return str.charAt(0).toUpperCase() + str.substring(1);
};

/* harmony default export */ const capitalize = (str => {
return str ? str.split(' ').map(capitalCaseUtil).join(' ') : '';
});

;// CONCATENATED MODULE: ./src/utils/stripDuplicates.js
/**
* function to clean an array of objects with duplicates
Expand Down Expand Up @@ -33902,7 +33893,6 @@ const htmlEncoding = string => {




const getTemplate = (userID, imageSize, name, avatarUrl) => {
return `
<td align="center">
Expand Down Expand Up @@ -33931,7 +33921,7 @@ const getUserInfo = async (login, avatarUrl, prevContributors, useUserName) => {
} = await src_octokit.rest.users.getByUsername({ username: login });
// Use login (== username) when useUserName is true, otherwise try to use name.
// Unless name is null, then fallback to login.
const finalName = (useUserName) ? login: (name) ? capitalize(htmlEncoding(name)) : login
const finalName = (useUserName) ? login: (name) ? htmlEncoding(name) : login
return { name: finalName, url: avatar_url };
} catch (error) {
console.log(`Oops...given github id ${login} is invalid :(`);
Expand All @@ -33942,7 +33932,7 @@ const getUserInfo = async (login, avatarUrl, prevContributors, useUserName) => {
// Use login (== username) when useUserName is true, otherwise try to use name.
// If name is null, then fallback to login.
const finalName = (useUserName) ? login : (prevContributors[login] && prevContributors[login].name) ?
capitalize(htmlEncoding(prevContributors[login].name)) : login
htmlEncoding(prevContributors[login].name) : login
return {
name: finalName,
url: avatarUrl || prevContributors[login].url
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit c78bc93

Please sign in to comment.