typed-github-api
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -23,3 +23,3 @@ "use strict"; | ||
// Check whether reached rate limit | ||
if (response.headers.has("X-RateLimit-Remaining") && parseInt(response.headers.get("X-RateLimit-Remaining"), 10) <= 1) { | ||
if (response.headers.has("X-RateLimit-Remaining") && parseInt(response.headers.get("X-RateLimit-Remaining"), 10) <= 0) { | ||
const rateLimitReset = moment(parseInt(response.headers.get("X-RateLimit-Reset"), 10) * 1000); | ||
@@ -26,0 +26,0 @@ logger.info(`GitHub rate limit reached, retrying at ${rateLimitReset.format("LTS")}`); |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"author": "Nathan Phillips", | ||
@@ -13,0 +13,0 @@ "main": "dist/index.js", |