twitchrequest
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -79,3 +79,3 @@ "use strict"; | ||
response = _a.sent(); | ||
if (!response) return [3 /*break*/, 5]; | ||
if (!(response && response.data && response.data.length)) return [3 /*break*/, 5]; | ||
e = response.data.find(function (d) { return d.display_name === ch.name; }); | ||
@@ -233,3 +233,3 @@ return [4 /*yield*/, this.getData("https://api.twitch.tv/helix/games?id=" + e.game_id, token)]; | ||
response = _a.sent(); | ||
if (response.data === undefined) { | ||
if (!response || !response.data) { | ||
console.log("[TwitchRequest] Error while fetching user data! (User=" + username.toLowerCase() + ")"); | ||
@@ -236,0 +236,0 @@ resolve(undefined); |
{ | ||
"name": "twitchrequest", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "Get Twitch requests for streams, especially when a stream goes live or stops streaming", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
260140
25
3486