cidr-tools
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -258,3 +258,4 @@ import {parseIp, stringifyIp, normalizeIp, ipVersion} from "ip-bigint"; | ||
export function merge(nets) { | ||
nets = uniq((Array.isArray(nets) ? nets : [nets]).map(parse)); | ||
// sort to workaround https://github.com/silverwind/cidr-tools/issues/17 | ||
nets = uniq((Array.isArray(nets) ? nets : [nets]).sort(compare).map(parse)); | ||
const maps = mapNets(nets); | ||
@@ -261,0 +262,0 @@ |
{ | ||
"name": "cidr-tools", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"author": "silverwind <me@silverwind.io>", | ||
@@ -24,7 +24,7 @@ "description": "Tools to work with IPv4 and IPv6 CIDR", | ||
"devDependencies": { | ||
"eslint": "8.51.0", | ||
"eslint-config-silverwind": "76.0.4", | ||
"eslint": "8.52.0", | ||
"eslint-config-silverwind": "79.0.4", | ||
"tsd": "0.29.0", | ||
"updates": "15.0.2", | ||
"versions": "11.1.0", | ||
"updates": "15.0.3", | ||
"versions": "12.0.0", | ||
"vitest": "0.34.6", | ||
@@ -31,0 +31,0 @@ "vitest-config-silverwind": "3.0.0" |
@@ -84,3 +84,10 @@ # cidr-tools | ||
## Related | ||
- [ip-bigint](https://github.com/silverwind/ip-bigint) - Convert IPv4 and IPv6 addresses to native BigInt and vice-versa | ||
- [ip-regex](https://github.com/sindresorhus/ip-regex) - Regular expression for matching IP addresses | ||
- [is-cidr](https://github.com/silverwind/is-cidr) - Check if a string is an IP address in CIDR notation | ||
- [is-ip](https://github.com/sindresorhus/is-ip) - Check if a string is an IP address | ||
- [cidr-regex](https://github.com/silverwind/cidr-regex) - Check if a string is an IP address in CIDR notation | ||
© [silverwind](https://github.com/silverwind), distributed under BSD licence. |
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
16187
372
93