From 3b2ea99efe3265f29cf6929aeb228cd5d8030cc9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 20:50:15 +0200 Subject: [PATCH] build(deps): bump express-rate-limit from 6.11.1 to 7.0.0 in /src (#5930) * build(deps): bump express-rate-limit from 6.11.1 to 7.0.0 in /src Bumps [express-rate-limit](https://github.com/express-rate-limit/express-rate-limit) from 6.11.1 to 7.0.0. - [Release notes](https://github.com/express-rate-limit/express-rate-limit/releases) - [Changelog](https://github.com/express-rate-limit/express-rate-limit/blob/main/changelog.md) - [Commits](https://github.com/express-rate-limit/express-rate-limit/compare/v6.11.1...v7.0.0) --- updated-dependencies: - dependency-name: express-rate-limit dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Increase exportratelimit to high number for tests. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: SamTV12345 <40429738+samtv12345@users.noreply.github.com> --- src/package-lock.json | 6 +++--- src/package.json | 2 +- src/tests/backend/common.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/package-lock.json b/src/package-lock.json index 8ae623776..68f37ce48 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -2536,9 +2536,9 @@ } }, "express-rate-limit": { - "version": "6.11.1", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-6.11.1.tgz", - "integrity": "sha512-8+UpWtQY25lJaa4+3WxDBGDcAu4atcTruSs3QSL5VPEplYy6kmk84wutG9rUkkK5LmMQQ7TFHWLZYITwVNbbEg==" + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.0.0.tgz", + "integrity": "sha512-zKMQ9meikj7j3ILeVvHIaBejAYljgDBtGuCfbzNS2d0VCW4s68ONdtEhBJnOGW/Ty1wGeNXgC4m/C1bBUIX0LA==" }, "express-session": { "version": "npm:@etherpad/express-session@1.18.2", diff --git a/src/package.json b/src/package.json index dcce9aa64..dd9f5f9e1 100644 --- a/src/package.json +++ b/src/package.json @@ -39,7 +39,7 @@ "etherpad-require-kernel": "^1.0.15", "etherpad-yajsml": "0.0.12", "express": "4.18.2", - "express-rate-limit": "^6.11.1", + "express-rate-limit": "^7.0.0", "express-session": "npm:@etherpad/express-session@^1.18.2", "fast-deep-equal": "^3.1.3", "find-root": "1.1.0", diff --git a/src/tests/backend/common.js b/src/tests/backend/common.js index 1433597f7..a94ee74e9 100644 --- a/src/tests/backend/common.js +++ b/src/tests/backend/common.js @@ -51,7 +51,7 @@ exports.init = async function () { // Start the Etherpad server on a random unused port. settings.port = 0; settings.ip = 'localhost'; - settings.importExportRateLimiting = {max: 0}; + settings.importExportRateLimiting = {max: 999999}; settings.commitRateLimiting = {duration: 0.001, points: 1e6}; exports.httpServer = await server.start(); exports.baseUrl = `http://localhost:${exports.httpServer.address().port}`;