addr-to-ip-port
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -13,3 +13,3 @@ var ADDR_RE = /^\[?([^\]]+)\]?:(\d+)$/ // ipv4/ipv6/hostname + port | ||
var m = ADDR_RE.exec(addr) | ||
if (!m) throw new Error('invalid addr') | ||
if (!m) throw new Error('invalid addr: ' + addr) | ||
cache[addr] = [ m[1], Number(m[2]) ] | ||
@@ -16,0 +16,0 @@ size += 1 |
{ | ||
"name": "addr-to-ip-port", | ||
"description": "Convert an 'address:port' string to an array [address:string, port:number]", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)", | ||
@@ -12,3 +12,3 @@ "bugs": { | ||
"benchmark": "^1.0.0", | ||
"tape": "2.x" | ||
"tape": "^4.0.0" | ||
}, | ||
@@ -15,0 +15,0 @@ "homepage": "https://github.com/feross/addr-to-ip-port", |
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
5462