2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

chore: release v1.0.0

This commit is contained in:
Jay
2022-10-04 20:25:21 +02:00
parent aa001e2946
commit ff34f6dd51
15 changed files with 6849 additions and 1914 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ const bower = gulp.task('bower', async function () {
async function getContributors(user, repo, maxCount = 1) {
const contributors = (await axios.get(
`https://api.github.com/repos/${encodeURIComponent(user)}/${encodeURIComponent(repo)}/contributors?per_page=${maxCount}`
`https://api.github.com/repos/${encodeURIComponent(user)}/${encodeURIComponent(repo)}/contributors`,
{ params: { per_page: maxCount } }
)).data;
return Promise.all(contributors.map(async (contributor)=> {