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 5.0.10 to 5.0.11

4

index.js

@@ -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 @@

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