From 49302a64ad1cd784986fd0b3b9f62e3478993755 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Thu, 22 Oct 2020 20:09:27 +0530 Subject: [PATCH] :heavy_plus_sign: Add nestjs-rate-limiter --- package-lock.json | 13 +++++++++++++ package.json | 1 + 2 files changed, 14 insertions(+) diff --git a/package-lock.json b/package-lock.json index 5914f2782..34ee59af3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9562,6 +9562,14 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, + "nestjs-rate-limiter": { + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/nestjs-rate-limiter/-/nestjs-rate-limiter-2.5.6.tgz", + "integrity": "sha512-daBDy6HS1PKrFVxbwQRYkcQ/m0Jh4Th9V2qmYE7t44H3t00dK9z55pmdzSvqQ/4ITHxmlTe0KbcapeUbz4Wahg==", + "requires": { + "rate-limiter-flexible": "2.1.10" + } + }, "next-tick": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", @@ -10501,6 +10509,11 @@ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" }, + "rate-limiter-flexible": { + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-2.1.10.tgz", + "integrity": "sha512-Pa+8TPD4xYaiCUB5K4a/+j2FHDUe4HP1g49JmKEmkOkhqPaeVqxJsZuuVaza/svSCOT+V73vtsyBiSFK/e1yXw==" + }, "raw-body": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", diff --git a/package.json b/package.json index 19fdb2e0e..491ab1477 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@nestjs/platform-express": "^7.0.0", "class-transformer": "^0.3.1", "class-validator": "^0.12.2", + "nestjs-rate-limiter": "^2.5.6", "object-literal-parse": "^2.1.0", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2",