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
BIN
View File
Binary file not shown.
+8 -8
View File
@@ -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": {
+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) => {