diff --git a/package-lock.json b/package-lock.json index d3038c24..81e6be48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@fastify/bearer-auth": "^8.0.1", "@fastify/compress": "^6.1.1", "@fastify/cors": "^8.1.0", - "@fastify/helmet": "^9.1.0", + "@fastify/helmet": "^10.0.0", "@fastify/rate-limit": "^7.4.0", "@fastify/sensible": "^5.1.1", "@fastify/static": "^6.5.0", @@ -1372,19 +1372,14 @@ } }, "node_modules/@fastify/helmet": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@fastify/helmet/-/helmet-9.1.0.tgz", - "integrity": "sha512-wAtu/38t90vH46GdLM6pVi8tM1HZXb6PRdLTNBo9pudSfSw5i5Ogm8Hq1Nx337WjgSOeU6MefaTd+1avlOlCDQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@fastify/helmet/-/helmet-10.0.0.tgz", + "integrity": "sha512-PQI8YXr6Aa1srsMexDBZC+ThD4sCHoDo3T4F1JlfeJ0JfWnl4hoBgsXGJ+jpNcE61Ily6P6p/tTnOXdLRYnEeQ==", "dependencies": { - "fastify-plugin": "^3.0.0", - "helmet": "^5.0.1" + "fastify-plugin": "^4.2.1", + "helmet": "^6.0.0" } }, - "node_modules/@fastify/helmet/node_modules/fastify-plugin": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/fastify-plugin/-/fastify-plugin-3.0.1.tgz", - "integrity": "sha512-qKcDXmuZadJqdTm6vlCqioEbyewF60b/0LOFCcYN1B6BIZGlYJumWWOYs70SFYLDAH4YqdE1cxH/RKMG7rFxgA==" - }, "node_modules/@fastify/rate-limit": { "version": "7.4.0", "resolved": "https://registry.npmjs.org/@fastify/rate-limit/-/rate-limit-7.4.0.tgz", @@ -5315,11 +5310,11 @@ "dev": true }, "node_modules/helmet": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/helmet/-/helmet-5.1.1.tgz", - "integrity": "sha512-/yX0oVZBggA9cLJh8aw3PPCfedBnbd7J2aowjzsaWwZh7/UFY0nccn/aHAggIgWUFfnykX8GKd3a1pSbrmlcVQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-6.0.0.tgz", + "integrity": "sha512-FO9RpR1wNJepH/GbLPQVtkE2eESglXL641p7SdyoT4LngHFJcZheHMoyUcjCZF4qpuMMO1u5q6RK0l9Ux8JBcg==", "engines": { - "node": ">=12.0.0" + "node": ">=14.0.0" } }, "node_modules/help-me": { @@ -12063,19 +12058,12 @@ } }, "@fastify/helmet": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@fastify/helmet/-/helmet-9.1.0.tgz", - "integrity": "sha512-wAtu/38t90vH46GdLM6pVi8tM1HZXb6PRdLTNBo9pudSfSw5i5Ogm8Hq1Nx337WjgSOeU6MefaTd+1avlOlCDQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@fastify/helmet/-/helmet-10.0.0.tgz", + "integrity": "sha512-PQI8YXr6Aa1srsMexDBZC+ThD4sCHoDo3T4F1JlfeJ0JfWnl4hoBgsXGJ+jpNcE61Ily6P6p/tTnOXdLRYnEeQ==", "requires": { - "fastify-plugin": "^3.0.0", - "helmet": "^5.0.1" - }, - "dependencies": { - "fastify-plugin": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/fastify-plugin/-/fastify-plugin-3.0.1.tgz", - "integrity": "sha512-qKcDXmuZadJqdTm6vlCqioEbyewF60b/0LOFCcYN1B6BIZGlYJumWWOYs70SFYLDAH4YqdE1cxH/RKMG7rFxgA==" - } + "fastify-plugin": "^4.2.1", + "helmet": "^6.0.0" } }, "@fastify/rate-limit": { @@ -15157,9 +15145,9 @@ "dev": true }, "helmet": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/helmet/-/helmet-5.1.1.tgz", - "integrity": "sha512-/yX0oVZBggA9cLJh8aw3PPCfedBnbd7J2aowjzsaWwZh7/UFY0nccn/aHAggIgWUFfnykX8GKd3a1pSbrmlcVQ==" + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-6.0.0.tgz", + "integrity": "sha512-FO9RpR1wNJepH/GbLPQVtkE2eESglXL641p7SdyoT4LngHFJcZheHMoyUcjCZF4qpuMMO1u5q6RK0l9Ux8JBcg==" }, "help-me": { "version": "4.0.1", diff --git a/package.json b/package.json index 99551d3f..524b82d5 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "@fastify/bearer-auth": "^8.0.1", "@fastify/compress": "^6.1.1", "@fastify/cors": "^8.1.0", - "@fastify/helmet": "^9.1.0", + "@fastify/helmet": "^10.0.0", "@fastify/rate-limit": "^7.4.0", "@fastify/sensible": "^5.1.1", "@fastify/static": "^6.5.0", diff --git a/src/server.test.js b/src/server.test.js index e3743fd8..aa4fc8f0 100644 --- a/src/server.test.js +++ b/src/server.test.js @@ -73,7 +73,6 @@ const expResHeaders = { "content-security-policy": "default-src 'self';frame-ancestors 'none'", "content-type": expect.stringContaining("text/plain"), date: expect.any(String), - "expect-ct": "max-age=0", expires: "0", "permissions-policy": "interest-cohort=()", pragma: "no-cache",