@sdflc/backend-helpers 1.0.118 → 1.0.119

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.
@@ -71,7 +71,9 @@ class IpRateLimiter {
71
71
  }
72
72
  const ttlSec = await this.client.ttl(key);
73
73
  if (count > limit) {
74
- this.logger.log(`Rate limit exceeded for action '${action}' from IP '${ip}' in space '${spaceId}': ${count}/${limit} requests, resets in ${ttlSec}s`);
74
+ // this.logger.log(
75
+ // `Rate limit exceeded for action '${action}' from IP '${ip}' in space '${spaceId}': ${count}/${limit} requests, resets in ${ttlSec}s`,
76
+ // );
75
77
  return { blocked: true, count, ttlSec };
76
78
  }
77
79
  return { blocked: false, count, ttlSec };
@@ -68,7 +68,9 @@ export class IpRateLimiter {
68
68
  }
69
69
  const ttlSec = await this.client.ttl(key);
70
70
  if (count > limit) {
71
- this.logger.log(`Rate limit exceeded for action '${action}' from IP '${ip}' in space '${spaceId}': ${count}/${limit} requests, resets in ${ttlSec}s`);
71
+ // this.logger.log(
72
+ // `Rate limit exceeded for action '${action}' from IP '${ip}' in space '${spaceId}': ${count}/${limit} requests, resets in ${ttlSec}s`,
73
+ // );
72
74
  return { blocked: true, count, ttlSec };
73
75
  }
74
76
  return { blocked: false, count, ttlSec };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "description": "Set of helper functions and classes to simplify building backend apps within @sdflc ecosystem",
5
5
  "type": "commonjs",
6
6
  "exports": {