diff --git a/package-lock.json b/package-lock.json index d6379ec1b..0cd867fdb 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 1f1e61ced..35108b716 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@types/morgan": "^1.9.10", "@types/multer": "^2.1.0", "@types/murmurhash-js": "^1.0.7", - "@types/node": "^25.9.0", + "@types/node": "^25.9.1", "@types/nodemailer": "^8.0.0", "@types/probe-image-size": "^7.2.5", "@types/sharp": "^0.31.1", @@ -89,7 +89,7 @@ "chalk": "^5.6.2", "cheerio": "^1.2.0", "cookie-parser": "^1.4.7", - "discord-protos": "^1.2.198", + "discord-protos": "^1.2.202", "dotenv": "^17.4.2", "email-providers": "^2.22.0", "exif-be-gone": "^1.5.1", @@ -100,8 +100,8 @@ "form-data": "^4.0.5", "harmony-erlpack": "^0.0.1", "i18next": "^26.2.0", - "i18next-fs-backend": "^2.6.5", - "i18next-http-middleware": "^3.9.6", + "i18next-fs-backend": "^2.6.6", + "i18next-http-middleware": "^3.9.7", "image-size": "^2.0.2", "json-bigint": "^1.0.0", "jsonwebtoken": "^9.0.3", @@ -118,8 +118,8 @@ "reflect-metadata": "^0.2.2", "tslib": "^2.8.1", "typeorm": "^0.3.30", - "wretch": "^3.0.7", - "ws": "^8.20.1" + "wretch": "^3.0.8", + "ws": "^8.21.0" }, "_moduleAliases": { "@spacebar/api": "dist/api", @@ -133,9 +133,9 @@ "optionalDependencies": { "@sendgrid/mail": "^8.1.6", "jimp": "^1.6.1", - "mailgun.js": "^13.0.1", + "mailgun.js": "^13.1.0", "node-mailjet": "^6.0.11", - "nodemailer": "^8.0.7" + "nodemailer": "^8.0.8" }, "overrides": { "typeorm": { diff --git a/src/connections/Spotify/index.ts b/src/connections/Spotify/index.ts index e64626b17..97884b030 100644 --- a/src/connections/Spotify/index.ts +++ b/src/connections/Spotify/index.ts @@ -16,7 +16,7 @@ along with this program. If not, see . */ -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() .catch((e) => { diff --git a/src/connections/Twitch/index.ts b/src/connections/Twitch/index.ts index 116b31921..da2d1f637 100644 --- a/src/connections/Twitch/index.ts +++ b/src/connections/Twitch/index.ts @@ -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() .catch((e) => {