First upload version 0.0.1
This commit is contained in:
10
node_modules/@octokit/auth-unauthenticated/dist-src/is-abuse-limit-error.js
generated
vendored
Normal file
10
node_modules/@octokit/auth-unauthenticated/dist-src/is-abuse-limit-error.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
const REGEX_ABUSE_LIMIT_MESSAGE = /\babuse\b/i;
|
||||
function isAbuseLimitError(error) {
|
||||
if (error.status !== 403) {
|
||||
return false;
|
||||
}
|
||||
return REGEX_ABUSE_LIMIT_MESSAGE.test(error.message);
|
||||
}
|
||||
export {
|
||||
isAbuseLimitError
|
||||
};
|
||||
Reference in New Issue
Block a user