From 8c5cdda82ccdd66ddd02b37695321fe9d52f7403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20N=C4=9Bmec?= Date: Wed, 21 Feb 2024 12:22:06 +0100 Subject: [PATCH] Fix @koa/cors vulnerability --- package-lock.json | 20 ++++++++++---------- package.json | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index c93e5ed..c2a040d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nest-koa-adapter", - "version": "2.0.1", + "version": "3.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "nest-koa-adapter", - "version": "2.0.1", + "version": "3.1.0", "license": "MIT", "dependencies": { "koa": "2.14.1", @@ -14,7 +14,7 @@ "koa-router": "12.0.0" }, "devDependencies": { - "@koa/cors": "4.0.0", + "@koa/cors": "5.0.0", "@nestjs/common": "9.3.9", "@nestjs/core": "9.3.9", "@nestjs/testing": "9.3.9", @@ -45,7 +45,7 @@ "typescript": "4.9.5" }, "optionalDependencies": { - "@koa/cors": "4.0.0", + "@koa/cors": "5.0.0", "koa-static": "5.0.0", "koa-views": "8.0.0" }, @@ -285,9 +285,9 @@ } }, "node_modules/@koa/cors": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@koa/cors/-/cors-4.0.0.tgz", - "integrity": "sha512-Y4RrbvGTlAaa04DBoPBWJqDR5gPj32OOz827ULXfgB1F7piD1MB/zwn8JR2LAnvdILhxUbXbkXGWuNVsFuVFCQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@koa/cors/-/cors-5.0.0.tgz", + "integrity": "sha512-x/iUDjcS90W69PryLDIMgFyV21YLTnG9zOpPXS7Bkt2b8AsY3zZsIpOLBkYr9fBcF3HbkKaER5hOBZLfpLgYNw==", "dev": true, "dependencies": { "vary": "^1.1.2" @@ -8253,9 +8253,9 @@ } }, "@koa/cors": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@koa/cors/-/cors-4.0.0.tgz", - "integrity": "sha512-Y4RrbvGTlAaa04DBoPBWJqDR5gPj32OOz827ULXfgB1F7piD1MB/zwn8JR2LAnvdILhxUbXbkXGWuNVsFuVFCQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@koa/cors/-/cors-5.0.0.tgz", + "integrity": "sha512-x/iUDjcS90W69PryLDIMgFyV21YLTnG9zOpPXS7Bkt2b8AsY3zZsIpOLBkYr9fBcF3HbkKaER5hOBZLfpLgYNw==", "dev": true, "requires": { "vary": "^1.1.2" diff --git a/package.json b/package.json index 3e899a5..8a99714 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nest-koa-adapter", - "version": "3.0.0", + "version": "3.1.0", "description": "Koa HTTP adapter for Nest.js", "main": "dist/index.js", "files": [ @@ -35,21 +35,21 @@ "@nestjs/core": "^9" }, "optionalDependencies": { - "@koa/cors": "4.0.0", + "@koa/cors": "5.0.0", "koa-static": "5.0.0", "koa-views": "8.0.0" }, "devDependencies": { - "@koa/cors": "4.0.0", + "@koa/cors": "5.0.0", "@nestjs/common": "9.3.9", "@nestjs/core": "9.3.9", "@nestjs/testing": "9.3.9", "@types/koa": "2.13.5", + "@types/koa__cors": "3.3.1", "@types/koa-bodyparser": "4.3.10", "@types/koa-router": "7.4.4", "@types/koa-static": "4.0.2", "@types/koa-views": "2.0.4", - "@types/koa__cors": "3.3.1", "@types/mocha": "10.0.1", "@types/supertest": "2.0.12", "@typescript-eslint/eslint-plugin": "5.53.0",