diff --git a/server/package.json b/server/package.json index 622c034e..ba77e373 100644 --- a/server/package.json +++ b/server/package.json @@ -24,7 +24,7 @@ "cors": "^2.8.5", "dotenv": "^16.0.0", "express": "^4.16.2", - "express-jwt": "^6.1.1", + "express-jwt": "^7.0.0", "jsonwebtoken": "^8.5.1", "marked": "^4.0.12", "nodemon": "^2.0.15", diff --git a/server/pnpm-lock.yaml b/server/pnpm-lock.yaml index 8d817a23..2fa1282e 100644 --- a/server/pnpm-lock.yaml +++ b/server/pnpm-lock.yaml @@ -20,7 +20,7 @@ specifiers: cross-env: 7.0.3 dotenv: ^16.0.0 express: ^4.16.2 - express-jwt: ^6.1.1 + express-jwt: ^7.0.0 jest: 27.5.1 jsonwebtoken: ^8.5.1 marked: ^4.0.12 @@ -32,7 +32,7 @@ specifiers: reflect-metadata: ^0.1.10 sequelize: ^6.17.0 sequelize-typescript: ^2.1.3 - sqlite3: ^5.1.2 + sqlite3: ^5.0.3 strong-error-handler: ^4.0.0 supertest: 6.2.3 ts-jest: 27.1.4 @@ -50,7 +50,7 @@ dependencies: cors: 2.8.5 dotenv: 16.0.3 express: 4.18.2 - express-jwt: 6.1.2 + express-jwt: 7.7.7 jsonwebtoken: 8.5.1 marked: 4.2.2 nodemon: 2.0.20 @@ -935,7 +935,6 @@ packages: resolution: {integrity: sha512-zm6xBQpFDIDM6o9r6HSgDeIcLy82TKWctCXEPbJJcXb5AKmi5BNNdLXneixK4lplX3PqIVcwLBCGE/kAGnlD4A==} dependencies: '@types/node': 17.0.21 - dev: true /@types/marked/4.0.3: resolution: {integrity: sha512-HnMWQkLJEf/PnxZIfbm0yGJRRZYYMhb++O9M36UCTA9z53uPvVoSlAwJr3XOpDEryb7Hwl1qAx/MV6YIW1RXxg==} @@ -1950,23 +1949,17 @@ packages: jest-message-util: 27.5.1 dev: true - /express-jwt/6.1.2: - resolution: {integrity: sha512-l5dlf5lNM/1EODMsJGfHn1VnrhhsUYEetzrKFStJZLjFQXtR+HGdBiW+jUNZ+ISsFe+h7Wl/hQKjLrY2TX0Qkg==} + /express-jwt/7.7.7: + resolution: {integrity: sha512-7s04HZ7sAahx7lwKU5AInhVon1kWVitRFxd7cGUKQaLDOQJsAQjB/OEBXaN0GS22RBgX75TjOJXGY7myQmVz5A==} engines: {node: '>= 8.0.0'} dependencies: - async: 3.2.4 - express-unless: 1.0.0 + '@types/jsonwebtoken': 8.5.8 + express-unless: 2.1.3 jsonwebtoken: 8.5.1 - lodash: 4.17.21 - dev: false - - /express-unless/1.0.0: - resolution: {integrity: sha512-zXSSClWBPfcSYjg0hcQNompkFN/MxQQ53eyrzm9BYgik2ut2I7PxAf2foVqBRMYCwWaZx/aWodi+uk76npdSAw==} dev: false /express-unless/2.1.3: resolution: {integrity: sha512-wj4tLMyCVYuIIKHGt0FhCtIViBcwzWejX0EjNxveAa6dG+0XBCQhMbx+PnkLkFCxLC69qoFrxds4pIyL88inaQ==} - dev: true /express/4.18.2: resolution: {integrity: sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==} diff --git a/server/yarn.lock b/server/yarn.lock index 84d9d526..da80f45b 100644 --- a/server/yarn.lock +++ b/server/yarn.lock @@ -810,6 +810,13 @@ dependencies: "@types/node" "*" +"@types/jsonwebtoken@^8.5.8": + version "8.5.9" + resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz#2c064ecb0b3128d837d2764aa0b117b0ff6e4586" + integrity sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg== + dependencies: + "@types/node" "*" + "@types/marked@4.0.3": version "4.0.3" resolved "https://registry.yarnpkg.com/@types/marked/-/marked-4.0.3.tgz#2098f4a77adaba9ce881c9e0b6baf29116e5acc4" @@ -1106,11 +1113,6 @@ async@0.9.x: resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d" integrity sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0= -async@^1.5.0: - version "1.5.2" - resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" - integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -1977,20 +1979,19 @@ expect@^27.5.1: jest-matcher-utils "^27.5.1" jest-message-util "^27.5.1" -express-jwt@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/express-jwt/-/express-jwt-6.1.1.tgz#2b157fb4fa33c2d367ee71c61b5aca762de39657" - integrity sha512-m8gkY04v5jtiFZn6bYQINYX/DVXq1DVb5nIW7H8l87qJ4BBvtQKFRpxyRE31odct7OPfHdT+B8678zJHhlMrpw== +express-jwt@^7.0.0: + version "7.7.7" + resolved "https://registry.yarnpkg.com/express-jwt/-/express-jwt-7.7.7.tgz#b0400a8c759aba0774d84459e1d2eea7e9869d40" + integrity sha512-7s04HZ7sAahx7lwKU5AInhVon1kWVitRFxd7cGUKQaLDOQJsAQjB/OEBXaN0GS22RBgX75TjOJXGY7myQmVz5A== dependencies: - async "^1.5.0" - express-unless "^1.0.0" - jsonwebtoken "^8.1.0" - lodash "^4.17.21" + "@types/jsonwebtoken" "^8.5.8" + express-unless "^2.1.3" + jsonwebtoken "^8.5.1" -express-unless@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/express-unless/-/express-unless-1.0.0.tgz#ecd1c354c5ccf7709a8a17ece617934e037cccd8" - integrity sha512-zXSSClWBPfcSYjg0hcQNompkFN/MxQQ53eyrzm9BYgik2ut2I7PxAf2foVqBRMYCwWaZx/aWodi+uk76npdSAw== +express-unless@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/express-unless/-/express-unless-2.1.3.tgz#f951c6cca52a24da3de32d42cfd4db57bc0f9a2e" + integrity sha512-wj4tLMyCVYuIIKHGt0FhCtIViBcwzWejX0EjNxveAa6dG+0XBCQhMbx+PnkLkFCxLC69qoFrxds4pIyL88inaQ== express@^4.16.2: version "4.17.3" @@ -3178,7 +3179,7 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" -jsonwebtoken@^8.1.0, jsonwebtoken@^8.5.1: +jsonwebtoken@^8.5.1: version "8.5.1" resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==