Update npm packages, patches

This commit is contained in:
Rory&
2026-05-24 02:03:17 +02:00
parent bdad4ae634
commit 65a22bbfa4
4 changed files with 13 additions and 11 deletions
+3 -2
View File
@@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { ConnectedAccount, ConnectionLoader, DiscordApiErrors, RefreshableConnection } from "@spacebar/util";
import { ApiError, ConnectedAccount, ConnectionLoader, DiscordApiErrors, RefreshableConnection } from "@spacebar/util";
import wretch from "wretch";
import { GenericOAuthSettings as SpotifySettings } from "../GenericOAuthSettings";
import { ConnectedAccountCommonOAuthTokenResponse, ConnectionCallbackSchema } from "@spacebar/schemas";
@@ -129,7 +129,8 @@ export default class SpotifyConnection extends RefreshableConnection {
.unauthorized(async () => {
// assume the token was revoked
await connectedAccount.revoke();
return DiscordApiErrors.CONNECTION_REVOKED;
// TODO: this used to be return, investigate how to properly handle this, or how this even behaves?
throw DiscordApiErrors.CONNECTION_REVOKED;
})
.json<ConnectedAccountCommonOAuthTokenResponse>()
.catch((e) => {
+2 -1
View File
@@ -124,7 +124,8 @@ export default class TwitchConnection extends RefreshableConnection {
.unauthorized(async () => {
// assume the token was revoked
await connectedAccount.revoke();
return DiscordApiErrors.CONNECTION_REVOKED;
// TODO: this used to be return, investigate how to properly handle this, or how this even behaves?
throw DiscordApiErrors.CONNECTION_REVOKED;
})
.json<ConnectedAccountCommonOAuthTokenResponse>()
.catch((e) => {