Vedant Kulkarni
                                            Vedant Kulkarni
                                        
                                    @FxllenCode yes, this issue is stale since I have not gotten the time to convert the store to by yet :( Although ypu could send in a PR as per...
This sounds like a good idea! We could add a number/function option just like `max` called `cost`. However, this will require us to make changes to the `Store` interface -...
@shreyagupta2405 here is an example: ```ts const limiter = rateLimit({ // ... limit: async (req, res) => { if (/*something*/) return 10 else return 5 }, }) ``` Please see...
Hi @gp2mv3, thanks for making this PR! > 1. There's a lot of "stuff" inside the try/catch besides the store.increment() call, so I think it should either be renamed to...
By point 3, we mean logging the error before calling `next()`. Also logging the error in `handleAsyncError` can be done in a separate pr.
You could get the `max` (function or number) from the options passed in the `init` function: So in [your `init` function](https://github.com/JGLTechnologies/precise-memory-rate-limit/blob/master/lib/preciseMemoryStore.ts#L40) you could add the following line: ```ts const getMax...
Sorry for the late reply, but you can block certain IPs if you really need to, using the `skip` option. You can see an example of it being used as...
Ah you're right, what I suggested in my earlier comment was wrong. Sorry about that. You can use the `skip` option as an allowlist (to not apply the rate limit...