forked from mirrored/github-readme-stats
feat: added repo card hide border option (#488)
* 🚀 Prettier config * 🚀 hide_border for Repo Card * fix: wrong total commits (#490) * chore: run prettier on all files * chore: lol lets add the trailing commas Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ const fetcher = (variables, token) => {
|
||||
},
|
||||
{
|
||||
Authorization: `bearer ${token}`,
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ const fetcher = (variables, token) => {
|
||||
},
|
||||
{
|
||||
Authorization: `bearer ${token}`,
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
@@ -86,7 +86,7 @@ const totalCommitsFetcher = async (username) => {
|
||||
async function fetchStats(
|
||||
username,
|
||||
count_private = false,
|
||||
include_all_commits = false
|
||||
include_all_commits = false,
|
||||
) {
|
||||
if (!username) throw Error("Invalid username");
|
||||
|
||||
@@ -106,7 +106,7 @@ async function fetchStats(
|
||||
logger.error(res.data.errors);
|
||||
throw new CustomError(
|
||||
res.data.errors[0].message || "Could not fetch user",
|
||||
CustomError.USER_NOT_FOUND
|
||||
CustomError.USER_NOT_FOUND,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ const fetcher = (variables, token) => {
|
||||
},
|
||||
{
|
||||
Authorization: `bearer ${token}`,
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ const axios = require("axios");
|
||||
|
||||
const fetchLast7Days = async ({ username }) => {
|
||||
const { data } = await axios.get(
|
||||
`https://wakatime.com/api/v1/users/${username}/stats/last_7_days?is_including_today=true`
|
||||
`https://wakatime.com/api/v1/users/${username}/stats/last_7_days?is_including_today=true`,
|
||||
);
|
||||
|
||||
return data.data;
|
||||
|
||||
Reference in New Issue
Block a user