diff --git a/package.json b/package.json index 7ecb4ea..419df92 100644 --- a/package.json +++ b/package.json @@ -5,27 +5,27 @@ "main": "index.js", "types": "types/index.d.ts", "dependencies": { - "@fastify/accept-negotiator": "^1.0.0", - "fastify-plugin": "^4.0.0", + "@fastify/accept-negotiator": "^1.1.0", + "fastify-plugin": "^4.5.0", "into-stream": "^6.0.0", - "mime-db": "^1.51.0", - "minipass": "^6.0.0", + "mime-db": "^1.52.0", + "minipass": "^7.0.2", "peek-stream": "^1.1.3", "pump": "^3.0.0", "pumpify": "^2.0.1" }, "devDependencies": { "@fastify/pre-commit": "^2.0.2", - "@types/node": "^20.1.0", - "@typescript-eslint/eslint-plugin": "^5.9.0", - "@typescript-eslint/parser": "^5.9.0", - "adm-zip": "^0.5.9", - "fastify": "^4.0.0-rc.2", + "@types/node": "^20.4.2", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "adm-zip": "^0.5.10", + "fastify": "^4.19.2", "jsonstream": "^1.0.3", - "standard": "^17.0.0", - "tap": "^16.0.0", - "tsd": "^0.28.0", - "typescript": "^5.0.2" + "standard": "^17.1.0", + "tap": "^16.3.7", + "tsd": "^0.28.1", + "typescript": "^5.1.6" }, "scripts": { "coverage": "npm run unit -- --cov", diff --git a/test/global-compress.test.js b/test/global-compress.test.js index ff04341..d2d4f87 100644 --- a/test/global-compress.test.js +++ b/test/global-compress.test.js @@ -1442,7 +1442,7 @@ test('It should not double-compress :', async (t) => { }) const payload = zlib.brotliDecompressSync(response.rawPayload) t.equal(response.headers['content-encoding'], 'br') - t.equal(response.headers['content-length'], response.rawPayload.length) + t.equal(response.headers['content-length'], response.rawPayload.length.toString()) t.equal(payload.toString('utf-8'), file) }) @@ -1472,7 +1472,7 @@ test('It should not double-compress :', async (t) => { }) const payload = zlib.inflateSync(response.rawPayload) t.equal(response.headers['content-encoding'], 'deflate') - t.equal(response.headers['content-length'], response.rawPayload.length) + t.equal(response.headers['content-length'], response.rawPayload.length.toString()) t.equal(payload.toString('utf-8'), file) }) @@ -1502,7 +1502,7 @@ test('It should not double-compress :', async (t) => { }) const payload = zlib.gunzipSync(response.rawPayload) t.equal(response.headers['content-encoding'], 'gzip') - t.equal(response.headers['content-length'], response.rawPayload.length) + t.equal(response.headers['content-length'], response.rawPayload.length.toString()) t.equal(payload.toString('utf-8'), file) }) })