diff --git a/app.js b/app.js index 94b97aa..fb00ee4 100644 --- a/app.js +++ b/app.js @@ -44,12 +44,12 @@ app.use( }) ); -const RateLimit = require("express-rate-limit"); -const limiter = RateLimit({ - windowMs: 1 * 60 * 1000, - max: 100, -}); -app.use(limiter); +// const RateLimit = require("express-rate-limit"); +// const limiter = RateLimit({ +// windowMs: 1 * 60 * 1000, +// max: 100, +// }); +// app.use(limiter); const mongoose = require("mongoose"); const dotenv = require("dotenv"); diff --git a/package-lock.json b/package-lock.json index 7ba7072..e2155e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,6 @@ "dotenv": "^16.3.1", "express": "~4.18.2", "express-async-handler": "^1.2.0", - "express-rate-limit": "^7.1.5", "express-validator": "^7.0.1", "helmet": "^7.1.0", "http-errors": "~2.0.0", @@ -603,20 +602,6 @@ "resolved": "https://registry.npmjs.org/express-async-handler/-/express-async-handler-1.2.0.tgz", "integrity": "sha512-rCSVtPXRmQSW8rmik/AIb2P0op6l7r1fMW538yyvTMltCO4xQEWMmobfrIxN2V1/mVrgxB8Az3reYF6yUZw37w==" }, - "node_modules/express-rate-limit": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.1.5.tgz", - "integrity": "sha512-/iVogxu7ueadrepw1bS0X0kaRC/U0afwiYRSLg68Ts+p4Dc85Q5QKsOnPS/QUjPMHvOJQtBDrZgvkOzf8ejUYw==", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/express-rate-limit" - }, - "peerDependencies": { - "express": "4 || 5 || ^5.0.0-beta.1" - } - }, "node_modules/express-validator": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/express-validator/-/express-validator-7.0.1.tgz", diff --git a/package.json b/package.json index 5e7771d..73fd640 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "dotenv": "^16.3.1", "express": "~4.18.2", "express-async-handler": "^1.2.0", - "express-rate-limit": "^7.1.5", "express-validator": "^7.0.1", "helmet": "^7.1.0", "http-errors": "~2.0.0", @@ -29,5 +28,5 @@ }, "overrides": { "semver": "7.5.3" - } + } }