cidr-tools
Advanced tools
Comparing version 5.0.10 to 5.0.11
@@ -51,7 +51,7 @@ import IPCIDR from "ip-cidr"; | ||
if (isCidr(str)) { | ||
return new IPCIDR(normalize(str)); | ||
return new IPCIDR(str); | ||
} else { | ||
const version = isIP(str); | ||
if (version) { | ||
return new IPCIDR(normalize(`${str}/${bits[`v${version}`]}`)); | ||
return new IPCIDR(`${str}/${bits[`v${version}`]}`); | ||
} else { | ||
@@ -58,0 +58,0 @@ throw new Error(`Network is not a CIDR or IP: ${str}`); |
{ | ||
"name": "cidr-tools", | ||
"version": "5.0.10", | ||
"version": "5.0.11", | ||
"author": "silverwind <me@silverwind.io>", | ||
@@ -5,0 +5,0 @@ "description": "Tools to work with IPv4 and IPv6 CIDR network lists", |
@@ -28,2 +28,4 @@ # cidr-tools | ||
This module requires [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#browser_compatibility) support in your environment. | ||
### merge(networks) | ||
@@ -30,0 +32,0 @@ |
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
15193
70