From f435228f007eb10ed45ef788f66f8bbcbe0d6a98 Mon Sep 17 00:00:00 2001 From: abad Date: Fri, 27 Sep 2024 12:22:15 +0530 Subject: [PATCH] minor fixes --- README.md | 6 +++--- index.js | 1 - lib/rateLimiter.js | 2 -- package.json | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 795d067..2d91942 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ app.use((req, res, next) => { If you'd like to contribute or modify the package, you can clone the repository and run it locally: ```bash -git clone https://github.com/yourusername/rate-limiter.git +git clone https://git.digimantra.com/abad_dml/rate-limiter cd rate-limiter npm install ``` @@ -111,7 +111,7 @@ If you encounter any problems or have any questions, feel free to open an issue ## Links -- **GitHub**: [https://github.com/yourusername/rate-limiter](https://github.com/yourusername/rate-limiter) -- **NPM**: [https://www.npmjs.com/package/rate-limiter](https://www.npmjs.com/package/rate-limiter) +- **GitHub**: [https://git.digimantra.com/abad_dml/rate-limiter](https://git.digimantra.com/abad_dml/rate-limiter) +- **NPM**: [https://www.npmjs.com/package/rate-limiter-digimantra](https://www.npmjs.com/package/rate-limiter-digimantra) --- diff --git a/index.js b/index.js index c57c527..f00d533 100755 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ -// index.js const RateLimiter = require('./lib/rateLimiter'); // Middleware wrapper for Express.js or any other Node.js framework diff --git a/lib/rateLimiter.js b/lib/rateLimiter.js index 1689a1d..bf8aa2f 100755 --- a/lib/rateLimiter.js +++ b/lib/rateLimiter.js @@ -1,5 +1,3 @@ -// lib/rateLimiter.js - class RateLimiter { constructor({ windowMs, maxRequests }) { // windowMs is the time window in milliseconds (e.g., 15 minutes = 15 * 60 * 1000) diff --git a/package.json b/package.json index 9cdca95..81708e5 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "rate-limiter", - "version": "1.0.0", + "name": "rate-limiter-digimantra", + "version": "1.1.0", "description": "Custom rate limiting middleware for Node.js", "main": "index.js", "keywords": [