koa2-ratelimit icon indicating copy to clipboard operation
koa2-ratelimit copied to clipboard

Rate-limiting middleware for Koa2 ES6. Use to limit repeated requests to APIs and/or endpoints such as password reset.

Results 21 koa2-ratelimit issues
Sort by recently updated
recently updated
newest added

## 🚀 Feature request When using this package with one of the providers you will always get peerDependencies warnings because you won't be using all possible providers at once. With...

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [![Dependabot...

dependencies

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

1,"dateEnd===-1" may happen just after ttl expires then "await this.client.incrBy(key, weight)" will set ttl to -1; we count this low probability requests as the previous period and check "dateEnd===-1" for...

Unless the mongoose package dependency is removed, it should be updated to a newer version, since v.5.13.8 uses [email protected] which is marked as a critical vulnerability by npm.

I found there would be a non-ttl key.

I'd love to use this library but it is breaking my tests with the following error: ``` Cannot find module 'uuid/v1' from 'node_modules/sequelize/lib/utils.js' Require stack: node_modules/sequelize/lib/utils.js node_modules/sequelize/lib/sequelize.js node_modules/sequelize/index.js node_modules/koa2-ratelimit/src/SequelizeStore.js node_modules/koa2-ratelimit/src/index.js...

Use of `global.sequelize` and of `$lte` operator. I use this patch (with patch-package) ```patch diff --git a/node_modules/koa2-ratelimit/src/SequelizeStore.js b/node_modules/koa2-ratelimit/src/SequelizeStore.js index f5bceb4..ac3b23b 100644 --- a/node_modules/koa2-ratelimit/src/SequelizeStore.js +++ b/node_modules/koa2-ratelimit/src/SequelizeStore.js @@ -1,4 +1,5 @@ const...

I do not use any store, so why do I need to install mongoose -> mongodb. Maybe move to peerDependecies.