From 77550f30875edeb5c8ee7ecde7d8732e5dfa35d4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 22 Oct 2024 20:09:42 +0300 Subject: [PATCH] server: Fix regression due to express types --- package-lock.json | 22 +++++++++++++++++----- package.json | 2 +- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6b2adcb0df..aed9eedac5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -118,7 +118,7 @@ "@types/ejs": "3.1.5", "@types/electron-squirrel-startup": "1.0.2", "@types/escape-html": "1.0.4", - "@types/express": "5.0.0", + "@types/express": "4.17.21", "@types/express-session": "1.18.0", "@types/html": "1.0.4", "@types/ini": "4.1.1", @@ -3348,13 +3348,13 @@ "dev": true }, "node_modules/@types/express": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.0.tgz", - "integrity": "sha512-DvZriSMehGHL1ZNLzi6MidnsDhUZM/x2pRdDIKdwbUNqqwHxMlRdkxtn6/EPKyqKpHqTl/4nRZsRNLpZxZRpPQ==", + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", + "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", "dev": true, "dependencies": { "@types/body-parser": "*", - "@types/express-serve-static-core": "^5.0.0", + "@types/express-serve-static-core": "^4.17.33", "@types/qs": "*", "@types/serve-static": "*" } @@ -3380,6 +3380,18 @@ "@types/express": "*" } }, + "node_modules/@types/express/node_modules/@types/express-serve-static-core": { + "version": "4.19.6", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", + "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, "node_modules/@types/fs-extra": { "version": "9.0.13", "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz", diff --git a/package.json b/package.json index 03c2054d23..c0f1e7bdfd 100644 --- a/package.json +++ b/package.json @@ -155,7 +155,7 @@ "@types/ejs": "3.1.5", "@types/electron-squirrel-startup": "1.0.2", "@types/escape-html": "1.0.4", - "@types/express": "5.0.0", + "@types/express": "4.17.21", "@types/express-session": "1.18.0", "@types/html": "1.0.4", "@types/ini": "4.1.1",