ac-ratelimiter 2.0.1 → 2.0.3

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 +20 -0
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ <a name="2.0.3"></a>
2
+
3
+ ## [2.0.3](https://github.com/admiralcloud/ac-ratelimiter/compare/v2.0.2..v2.0.3) (2024-07-06 19:12:47)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **Limiter:** Package updates | MP | [a04fe1e659ea2a44b9dd70716e6c05c1da1b4a20](https://github.com/admiralcloud/ac-ratelimiter/commit/a04fe1e659ea2a44b9dd70716e6c05c1da1b4a20)
9
+ Package updates
10
+ Related issues: [undefined/undefined#master](undefined/browse/master)
11
+ <a name="2.0.2"></a>
12
+
13
+ ## [2.0.2](https://github.com/admiralcloud/ac-ratelimiter/compare/v2.0.1..v2.0.2) (2024-07-06 18:51:38)
14
+
15
+
16
+ ### Bug Fix
17
+
18
+ * **Limiter:** Replaced isPrivateIP with isSpecialIP | MP | [d14140a22a00e5a18eb21d286712f21f8daea8f3](https://github.com/admiralcloud/ac-ratelimiter/commit/d14140a22a00e5a18eb21d286712f21f8daea8f3)
19
+ Replaced isPrivateIP with isSpecialIP
20
+ Related issues: [undefined/undefined#master](undefined/browse/master)
1
21
  <a name="2.0.1"></a>
2
22
 
3
23
  ## [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.3",
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.1",
14
14
  "node-cache": "^5.1.2"
15
15
  },
16
16
  "devDependencies": {