twitch-new-api
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -75,2 +75,5 @@ "use strict"; | ||
} | ||
if (retryCount <= currentRetryCount + 1) { | ||
throw new Error(`Failed to get token after trying for ${currentRetryCount} times.`); | ||
} | ||
return getTokenFromTwitch(retryCount, currentRetryCount + 1); | ||
@@ -77,0 +80,0 @@ } |
{ | ||
"name": "twitch-new-api", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Twitchfa Helix Api Wrapper in TypeScript", | ||
@@ -11,3 +11,4 @@ "main": "dist/index.js", | ||
"test": "npx jest", | ||
"test:watch": "npx jest --watch" | ||
"test:watch": "npx jest --watch", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -14,0 +15,0 @@ "keywords": [ |
@@ -24,3 +24,3 @@ # Install | ||
(async () => { | ||
const user = await twitch.getUserById(['mechiller']); | ||
const user = await twitch.getUserByName(['mechiller']); | ||
const profilePicture = user[0].profile_image_url; | ||
@@ -27,0 +27,0 @@ })(); |
15021
366