@twurple/api
Advanced tools
Comparing version 5.0.10 to 5.0.11
@@ -12,3 +12,4 @@ "use strict"; | ||
needsToRetryAfter(res) { | ||
if (res.status === 429) { | ||
if (res.status === 429 && | ||
(!res.headers.has('ratelimit-remaining') || Number(res.headers.get('ratelimit-remaining')) === 0)) { | ||
return +res.headers.get('ratelimit-reset') * 1000 - Date.now(); | ||
@@ -15,0 +16,0 @@ } |
{ | ||
"name": "@twurple/api", | ||
"version": "5.0.10", | ||
"version": "5.0.11", | ||
"publishConfig": { | ||
@@ -39,8 +39,8 @@ "access": "public" | ||
"@d-fischer/shared-utils": "^3.2.0", | ||
"@twurple/api-call": "^5.0.10", | ||
"@twurple/common": "^5.0.10", | ||
"@twurple/api-call": "^5.0.11", | ||
"@twurple/common": "^5.0.11", | ||
"tslib": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
"@twurple/auth": "^5.0.10" | ||
"@twurple/auth": "^5.0.11" | ||
}, | ||
@@ -61,3 +61,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "1791de16f66a5c11031d41c8d9952e3fb429eb6c" | ||
"gitHead": "8ec06e6f31abec244f2ee03c6f088bdbb0efe20c" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
806112
23370
Updated@twurple/api-call@^5.0.11
Updated@twurple/common@^5.0.11