express-rate-limit 8.5.0 → 8.5.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.
package/dist/index.cjs CHANGED
@@ -36,7 +36,7 @@ function ipKeyGenerator(ip, ipv6Subnet = 56) {
36
36
  if (address.is4()) return address.to4().correctForm();
37
37
  if (ipv6Subnet) {
38
38
  const subnet = new import_ip_address.Address6(`${ip}/${ipv6Subnet}`);
39
- return `${subnet.startAddress().correctForm()}/${ipv6Subnet}`;
39
+ return subnet.networkForm();
40
40
  }
41
41
  }
42
42
  return ip;
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ function ipKeyGenerator(ip, ipv6Subnet = 56) {
7
7
  if (address.is4()) return address.to4().correctForm();
8
8
  if (ipv6Subnet) {
9
9
  const subnet = new Address6(`${ip}/${ipv6Subnet}`);
10
- return `${subnet.startAddress().correctForm()}/${ipv6Subnet}`;
10
+ return subnet.networkForm();
11
11
  }
12
12
  }
13
13
  return ip;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-rate-limit",
3
- "version": "8.5.0",
3
+ "version": "8.5.2",
4
4
  "description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.",
5
5
  "author": {
6
6
  "name": "Nathan Friedly",
@@ -75,7 +75,7 @@
75
75
  "prepare": "run-s compile && husky"
76
76
  },
77
77
  "dependencies": {
78
- "ip-address": "10.1.0"
78
+ "ip-address": "^10.2.0"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "express": ">= 4.11"
@@ -84,24 +84,24 @@
84
84
  "@biomejs/biome": "2.4.6",
85
85
  "@express-rate-limit/prettier": "1.1.1",
86
86
  "@express-rate-limit/tsconfig": "1.0.2",
87
- "@jest/globals": "30.3.0",
87
+ "@jest/globals": "30.4.1",
88
88
  "@types/express": "5.0.6",
89
89
  "@types/jest": "30.0.0",
90
- "@types/node": "25.5.0",
90
+ "@types/node": "25.7.0",
91
91
  "@types/supertest": "7.2.0",
92
92
  "del-cli": "7.0.0",
93
93
  "dts-bundle-generator": "8.1.2",
94
- "esbuild": "0.27.4",
94
+ "esbuild": "0.28.0",
95
95
  "express": "5.2.1",
96
96
  "husky": "9.1.7",
97
- "jest": "30.3.0",
98
- "lint-staged": "16.4.0",
99
- "mintlify": "4.2.446",
97
+ "jest": "30.4.2",
98
+ "lint-staged": "17.0.4",
99
+ "mintlify": "4.2.559",
100
100
  "npm-run-all": "4.1.5",
101
- "prettier": "3.8.1",
101
+ "prettier": "3.8.3",
102
102
  "ratelimit-header-parser": "0.1.0",
103
103
  "supertest": "7.2.2",
104
- "ts-jest": "29.4.6",
104
+ "ts-jest": "29.4.9",
105
105
  "ts-node": "10.9.2",
106
106
  "typescript": "5.9.3"
107
107
  },