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 2.2.5 to 2.2.6

10

index.js

@@ -100,3 +100,3 @@ "use strict";

start: aStart,
end: bStart.subtract(bigint("1")),
end: bStart.subtract(one),
});

@@ -111,3 +111,3 @@ }

parts.push({
start: bEnd.add(bigint("1")),
start: bEnd.add(one),
end: aEnd,

@@ -122,6 +122,6 @@ });

start: aStart,
end: bStart.subtract(bigint("1")),
end: bStart.subtract(one),
});
parts.push({
start: bEnd.add(bigint("1")),
start: bEnd.add(one),
end: aEnd,

@@ -190,3 +190,3 @@ });

if (b.constructor.name !== "BigInteger") b = bigint(b);
a = a.add(bigint("1"));
a = a.add(one);
return a.subtract(b);

@@ -193,0 +193,0 @@ }

{
"name": "cidr-tools",
"version": "2.2.5",
"version": "2.2.6",
"author": "silverwind <me@silverwind.io>",

@@ -31,3 +31,3 @@ "description": "Tools to work with IPv4 and IPv6 CIDR network lists",

"ip-address": "^5.8.9",
"ip-cidr": "^2.0.1",
"ip-cidr": "^2.0.2",
"ipv6-normalize": "^1.0.1",

@@ -39,7 +39,7 @@ "is-cidr": "^3.0.0",

"devDependencies": {
"eslint": "^5.9.0",
"eslint-config-silverwind": "^2.0.11",
"updates": "^5.4.3",
"eslint": "^5.11.0",
"eslint-config-silverwind": "^2.0.12",
"updates": "^6.0.2",
"ver": "^3.0.1"
}
}

@@ -47,3 +47,3 @@ # cidr-tools

### cidrTools.overlap(networkA, networkB)
### cidrTools.overlap(networksA, networksB)

@@ -53,3 +53,3 @@ - `networksA` *String* or *Array*: One or more CIDR or IP address.

Returns a boolean that indicates if the networks A overlap (intersect) with networks B.
Returns a boolean that indicates if `networksA` overlap (intersect) with `networksB`.

@@ -60,4 +60,4 @@ ### cidrTools.normalize(network)

Returns a normalized representation of a IP or CIDR. Will not include a prefix on IPs.
Returns a normalized representation of a IP or CIDR. Will not include a prefix on single IPs.
© [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