@wrcb/cb-common 1.0.127 → 1.0.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,10 +21,11 @@ function createRateApiLimiter(options) {
21
21
  legacyHeaders: false,
22
22
  store: new rate_limit_redis_1.default({
23
23
  prefix,
24
- // ✅ Agora compatível com o tipo real do rate-limit-redis
25
24
  // @ts-ignore
26
25
  sendCommand: (command, args) => {
27
- return redisClient.call(command, ...args);
26
+ const cmdParts = command.trim().split(/\s+/);
27
+ const finalArgs = [...cmdParts, ...args];
28
+ return redisClient.call.apply(redisClient, finalArgs);
28
29
  }
29
30
  }),
30
31
  handler: function handleRateLimitExceeded(req, res, next) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.127",
3
+ "version": "1.0.129",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",