Socket
Socket
Sign inDemoInstall

string2compact

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

string2compact - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

2

index.js

@@ -17,3 +17,3 @@ var addrToIPPort = require('addr-to-ip-port')

var ipBuf = Buffer.from(ip.toByteArray())
var port = Number(s[1])
var port = s[1]
var portBuf = Buffer.allocUnsafe(2)

@@ -20,0 +20,0 @@ portBuf.writeUInt16BE(port, 0)

{
"name": "string2compact",
"description": "Convert 'hostname:port' strings to BitTorrent's compact ip/host binary returned by Trackers",
"version": "1.2.4",
"version": "1.2.5",
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)",

@@ -6,0 +6,0 @@ "bugs": {

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