twitch-eventsub
Advanced tools
Comparing version 4.4.6 to 4.4.7
@@ -92,6 +92,6 @@ "use strict"; | ||
listenerPort = (_a = adapterListenerPort !== null && adapterListenerPort !== void 0 ? adapterListenerPort : port) !== null && _a !== void 0 ? _a : 443; | ||
this._currentListenerPort = listenerPort; | ||
return [4 /*yield*/, this._server.listen(listenerPort)]; | ||
case 2: | ||
_b.sent(); | ||
this._currentListenerPort = listenerPort; | ||
this._logger.info("Listening on port " + listenerPort); | ||
@@ -111,4 +111,2 @@ return [4 /*yield*/, this._apiClient.helix.eventSub.getSubscriptionsPaginated().getAll()]; | ||
var id = url.slice(urlPrefix.length); | ||
// false positive | ||
// eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style | ||
return [id, sub]; | ||
@@ -624,5 +622,8 @@ } | ||
subscription = new (clazz.bind.apply(clazz, tslib_1.__spread([void 0, handler, client], params)))(); | ||
if (!this._currentListenerPort) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, subscription.start(this._twitchSubscriptions.get(subscription.id))]; | ||
case 1: | ||
_a.sent(); | ||
_a.label = 2; | ||
case 2: | ||
this._subscriptions.set(subscription.id, subscription); | ||
@@ -629,0 +630,0 @@ return [2 /*return*/, subscription]; |
{ | ||
"name": "twitch-eventsub", | ||
"version": "4.4.6", | ||
"version": "4.4.7", | ||
"description": "Listen to events on Twitch via their EventSub API.", | ||
@@ -37,7 +37,7 @@ "keywords": [ | ||
"tslib": "^2.0.3", | ||
"twitch-auth": "^4.4.6", | ||
"twitch-common": "^4.4.6" | ||
"twitch-auth": "^4.4.7", | ||
"twitch-common": "^4.4.7" | ||
}, | ||
"devDependencies": { | ||
"twitch": "^4.4.6" | ||
"twitch": "^4.4.7" | ||
}, | ||
@@ -57,3 +57,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "3d82693894457637faea2b84a3f59cd722e7107b" | ||
"gitHead": "86fa09eb31cceb459c39486a4fd32c51a013251f" | ||
} |
Sorry, the diff of this file is not supported yet
10059
407755
Updatedtwitch-auth@^4.4.7
Updatedtwitch-common@^4.4.7