First upload version 0.0.1
This commit is contained in:
12
node_modules/@octokit/auth-unauthenticated/dist-src/is-rate-limit-error.js
generated
vendored
Normal file
12
node_modules/@octokit/auth-unauthenticated/dist-src/is-rate-limit-error.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
function isRateLimitError(error) {
|
||||
if (error.status !== 403) {
|
||||
return false;
|
||||
}
|
||||
if (!error.response) {
|
||||
return false;
|
||||
}
|
||||
return error.response.headers["x-ratelimit-remaining"] === "0";
|
||||
}
|
||||
export {
|
||||
isRateLimitError
|
||||
};
|
||||
Reference in New Issue
Block a user