New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bittorrent-dht

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-dht - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

1

client.js

@@ -786,2 +786,3 @@ module.exports = DHT

var self = this
if (self._binding) return self.once('listening', self._send.bind(self, addr, message, cb))
if (!self.listening) return self.listen(self._send.bind(self, addr, message, cb))

@@ -788,0 +789,0 @@ if (!cb) cb = function () {}

2

package.json
{
"name": "bittorrent-dht",
"description": "Simple, robust, BitTorrent DHT implementation",
"version": "3.2.1",
"version": "3.2.2",
"author": {

@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh",

@@ -100,1 +100,17 @@ var common = require('./common')

})
test('send message while binding (listen)', function (t) {
t.plan(1)
var a = new DHT({ bootstrap: false })
a.listen(function () {
var port = a.address().port
var b = new DHT({ bootstrap: false })
b.listen()
b._sendPing('127.0.0.1:' + port, function (err) {
t.error(err)
a.destroy()
b.destroy()
})
})
})
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