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

private-ip

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

private-ip - npm Package Compare versions

Comparing version 2.3.3 to 2.3.4

6

lib/index.js

@@ -60,4 +60,4 @@ "use strict";

exports.default = (ip) => {
if (ipaddr_js_1.isValid(ip)) {
const parsed = ipaddr_js_1.parse(ip);
if ((0, ipaddr_js_1.isValid)(ip)) {
const parsed = (0, ipaddr_js_1.parse)(ip);
if (parsed.kind() === 'ipv4')

@@ -68,5 +68,5 @@ return ipv4_check(parsed.toNormalizedString());

}
else if (is_ip_1.default(ip) && ip_regex_1.default.v6().test(ip))
else if ((0, is_ip_1.default)(ip) && ip_regex_1.default.v6().test(ip))
return ipv6_check(ip);
return undefined;
};
{
"name": "private-ip",
"version": "2.3.3",
"version": "2.3.4",
"description": "Check if IP address is private.",

@@ -48,5 +48,5 @@ "main": "index.js",

"@types/netmask": "^1.0.30",
"ava": "^3.15.0",
"ava": "^4.3.1",
"rimraf": "^3.0.2",
"typescript": "^4.3.5"
"typescript": "^4.7.4"
},

@@ -53,0 +53,0 @@ "dependencies": {

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