@wrcb/cb-common 1.0.131 → 1.0.133

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.
@@ -23,8 +23,8 @@ function createRateApiLimiter(options) {
23
23
  prefix,
24
24
  // @ts-ignore
25
25
  sendCommand: (command, args) => {
26
- const [cmd, ...subCmd] = command.trim().split(/\s+/);
27
- return redisClient.call(cmd, ...subCmd, ...args);
26
+ // Ajustado para evitar o erro de spread
27
+ return redisClient.call(command, ...(args || []));
28
28
  }
29
29
  }),
30
30
  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.131",
3
+ "version": "1.0.133",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",