cidr-tools
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -30,6 +30,4 @@ import ipRegex from "ip-regex"; | ||
// set network address to first address | ||
const addr = normalizeIp(stringifyIp({number: start, version})); | ||
return `${addr}/${prefix}`; | ||
return `${normalizeIp(stringifyIp({number: start, version}))}/${prefix}`; | ||
} else { // single ip | ||
if (!version) throw new Error(`Invalid network: ${cidr}`); | ||
return normalizeIp(cidr); | ||
@@ -36,0 +34,0 @@ } |
{ | ||
"name": "cidr-tools", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"author": "silverwind <me@silverwind.io>", | ||
@@ -38,8 +38,8 @@ "description": "Tools to work with IPv4 and IPv6 CIDR network lists", | ||
"devDependencies": { | ||
"eslint": "8.23.1", | ||
"eslint-config-silverwind": "54.0.2", | ||
"eslint": "8.24.0", | ||
"eslint-config-silverwind": "55.0.1", | ||
"jest": "29.0.3", | ||
"updates": "13.1.7", | ||
"versions": "9.3.2" | ||
"updates": "13.1.8", | ||
"versions": "9.3.3" | ||
} | ||
} |
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
15094
343