Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cidr-tools

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cidr-tools - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

3

index.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc