ac-ratelimiter 2.0.1 → 2.0.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ <a name="2.0.2"></a>
2
+
3
+ ## [2.0.2](https://github.com/admiralcloud/ac-ratelimiter/compare/v2.0.1..v2.0.2) (2024-07-06 18:51:38)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **Limiter:** Replaced isPrivateIP with isSpecialIP | MP | [d14140a22a00e5a18eb21d286712f21f8daea8f3](https://github.com/admiralcloud/ac-ratelimiter/commit/d14140a22a00e5a18eb21d286712f21f8daea8f3)
9
+ Replaced isPrivateIP with isSpecialIP
10
+ Related issues: [undefined/undefined#master](undefined/browse/master)
1
11
  <a name="2.0.1"></a>
2
12
 
3
13
  ## [2.0.1](https://github.com/admiralcloud/ac-ratelimiter/compare/v2.0.0..v2.0.1) (2024-07-06 14:32:00)
package/index.js CHANGED
@@ -60,7 +60,7 @@ class RateLimiter {
60
60
  rateLimitCounter
61
61
  }) {
62
62
 
63
- if (this.ignorePrivateIps && acts.isPrivateIP(ip)) return
63
+ if (this.ignorePrivateIps && acts.isSpecialIP(ip)) return
64
64
 
65
65
  const logIdentifier = typeof identifier === 'string' && identifier.replace(/(\w{1,4})-(\w{1,4})/g, 'xxxx')
66
66
  const knownIP = this.knownIPs.find(({ knownIP }) => knownIP === ip)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ac-ratelimiter",
3
3
  "description": "Simple ratelimiter for express",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "author": "Mark Poepping (www.admiralcloud.com)",
6
6
  "repository": {
7
7
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "homepage": "https://www.admiralcloud.com",
11
11
  "dependencies": {
12
12
  "ac-custom-error": "^1.0.0",
13
- "ac-ip": "^4.0.0",
13
+ "ac-ip": "^4.1.0",
14
14
  "node-cache": "^5.1.2"
15
15
  },
16
16
  "devDependencies": {