Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
milankomaj authored Aug 2, 2024
1 parent 750de99 commit 7ad0a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"Npm-install": "npm install --save",
"E-build": "esbuild ./updater.js --format=esm --target=esnext --bundle --platform=node --minify --analyze --log-level=debug --tree-shaking=true --external:svgo --outfile=dist/esbuild_updater.js --resolve-extensions=.json,.js,.ts --legal-comments=eof",
"update": "node ./updater.js $GITHUB_owner -info -svgo"
"update": "node ./updater.js $GITHUB_owner -debug -svgo"
},
"dependencies": {
"@octokit/plugin-paginate-graphql": "^5.2.2",
Expand Down
4 changes: 2 additions & 2 deletions src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ class GithubUser {
});

if (response.status === 202) {
const retryAfter = parseInt(response.headers["Retry-After"], 10) || 10; // Handle missing or invalid headers
const retryAfter = parseInt(response.headers["Retry-After"]) || 10; // Handle missing or invalid headers
octokit.log.info(
`${util.color.blue(response.status)} ` +
`${util.color.green(repo)} ` +
`(${util.color.blue("retry")} ${util.color.yellow((retryCount) + 1)}) ` +
`${util.color.green(retryAfter) + " s"} `
`${util.color.green(retryAfter) + "s"} `
);
await new Promise((resolve) => setTimeout(resolve, retryAfter * 1000));
retryCount++;
Expand Down

0 comments on commit 7ad0a46

Please sign in to comment.