Closed thib3113 closed 1 year ago
Please don't upgrade dependencies because it can cause breaking changes (E.g. jest 29 doesn't support Node 10, but the current moleculer-web version should support it.)
npm failed to resolve dependencies, thats why I updated them . But, it seems that updating eslint-plugin-promise is enough ( eslint-plugin-promise@5.2.0 ask for eslint@^7.0.0 )
This PR will allow to create an async rate limiter .
This allow to use an async rate limiter (for example with redis, to use a centralized store).
Also, I update some typings / exporting some more types .
Also, in the same time, I update the dev dependencies, repair a test (force LF ending, else the req.body test fail on windows) .
To test this code, I create this rateLimiter that will use my broker cacher (or memory store)