private-ip
Advanced tools
Comparing version 2.3.3 to 2.3.4
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11060