diff --git a/package.json b/package.json index 2be920658..64ceaa1c6 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "class-validator": "0.13.2", "discord.js": "12.5.3", "generate-password": "1.7.0", - "helmet": "4.6.0", + "helmet": "5.0.2", "joi": "17.6.0", "jsonschema": "1.4.0", "jsonwebtoken": "8.5.1", diff --git a/src/main.ts b/src/main.ts index 05f74f6b7..1b15d0e88 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; -import * as helmet from 'helmet'; +import helmet from 'helmet'; import { LogLevel } from '@nestjs/common'; import { IoAdapter } from '@nestjs/platform-socket.io'; import { ServerOptions } from 'socket.io'; diff --git a/yarn.lock b/yarn.lock index 426fdbef9..634dc7f2d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6010,10 +6010,10 @@ __metadata: languageName: node linkType: hard -"helmet@npm:4.6.0": - version: 4.6.0 - resolution: "helmet@npm:4.6.0" - checksum: 139ad678d1cab207b043c206f50f6744eff2ef1f463e4626d36718b45b337485c77d10260ef9d89d292fa678da5153d86b08172b3b365cc8e680241015ed3a49 +"helmet@npm:5.0.2": + version: 5.0.2 + resolution: "helmet@npm:5.0.2" + checksum: 3fe107f3f73fb6a79173e5599f87a016c69f1c7cc46bcde1c60043ea36e64f893434592890d3c0be68f1d35731f2f2f22094a1cfd70438f9d35740861071dcf3 languageName: node linkType: hard @@ -10036,7 +10036,7 @@ __metadata: eslint-plugin-jest: 26.0.0 eslint-plugin-prettier: 4.0.0 generate-password: 1.7.0 - helmet: 4.6.0 + helmet: 5.0.2 jest: 27.4.7 joi: 17.6.0 jsonschema: 1.4.0