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.1.1 to 5.1.2

4

index.js

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