diff --git a/package-lock.json b/package-lock.json index 83d1852b..a350da90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "i18next-fs-backend": "^2.1.5", "i18next-http-middleware": "^3.3.2", "image-size": "^1.0.2", - "jimp": "*", + "jimp": "^0.22.12", "json-bigint": "^1.0.0", "jsonwebtoken": "^9.0.1", "lambert-server": "^1.2.12", diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 4213a409..537c5da1 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -135,7 +135,8 @@ export async function ImageProxy(req: Request, res: Response) { if (sharp === false && !Jimp) { try { - // @ts-expect-error Typings don't fit + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore Typings don't fit Jimp = await import("jimp"); } catch { sentImageProxyWarning = true;