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

addr-to-ip-port

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addr-to-ip-port - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

index.js

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

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