From f7f46e7c6524c22ad04f4bf755910dd4eeded731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 29 Mar 2021 21:00:12 -0400 Subject: [PATCH] feat: upgrade sharp (#9442) --- install/package.json | 2 +- test/uploads.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/package.json b/install/package.json index 2e1cc8ebf8..b5e8b6c025 100644 --- a/install/package.json +++ b/install/package.json @@ -116,7 +116,7 @@ "sanitize-html": "^2.3.2", "semver": "^7.3.4", "serve-favicon": "^2.5.0", - "sharp": "0.27.2", + "sharp": "0.28.0", "sitemap": "^6.4.0", "slideout": "1.0.1", "socket.io": "4.0.0", diff --git a/test/uploads.js b/test/uploads.js index 57be8c9d97..f8fe857d23 100644 --- a/test/uploads.js +++ b/test/uploads.js @@ -162,7 +162,7 @@ describe('Upload Controllers', () => { assert.ifError(err); assert.strictEqual(res.statusCode, 500); assert(body && body.status && body.status.message); - assert(body.status.message.startsWith('pngload_buffer: non-recoverable state')); + assert(body.status.message.startsWith('Input file has corrupt header: pngload: end of stream')); done(); }); });