@tinyhttp/proxy-addr
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -73,3 +73,3 @@ import { forwarded } from "@tinyhttp/forwarded"; | ||
range = null; | ||
if (range <= 0 || range > max) | ||
if (typeof range === "number" && (range <= 0 || range > max)) | ||
throw new TypeError("invalid range on address: " + note); | ||
@@ -76,0 +76,0 @@ return [ip, range]; |
{ | ||
"name": "@tinyhttp/proxy-addr", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"type": "module", | ||
@@ -31,4 +31,4 @@ "description": "proxy-addr rewrite with TypeScript and ESM support", | ||
"dependencies": { | ||
"@tinyhttp/forwarded": "2.0.6", | ||
"ipaddr.js": "^2.0.1" | ||
"ipaddr.js": "^2.0.1", | ||
"@tinyhttp/forwarded": "2.0.6" | ||
}, | ||
@@ -35,0 +35,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7334