Socket
Socket
Sign inDemoInstall

torrent-discovery

Package Overview
Dependencies
Maintainers
8
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

torrent-discovery - npm Package Compare versions

Comparing version 9.1.0 to 9.1.1

5

index.js
const debug = require('debug')('torrent-discovery')
const DHT = require('bittorrent-dht/client') // empty object in browser
const EventEmitter = require('events').EventEmitter
const extend = require('xtend')
const parallel = require('run-parallel')

@@ -63,3 +62,3 @@ const Tracker = require('bittorrent-tracker/client')

} else if (opts.tracker && typeof opts.tracker === 'object') {
this._trackerOpts = extend(opts.tracker)
this._trackerOpts = Object.assign({}, opts.tracker)
this.tracker = this._createTracker()

@@ -146,3 +145,3 @@ } else {

_createTracker () {
const opts = extend(this._trackerOpts, {
const opts = Object.assign({}, this._trackerOpts, {
infoHash: this.infoHash,

@@ -149,0 +148,0 @@ announce: this._announce,

{
"name": "torrent-discovery",
"description": "Discover BitTorrent and WebTorrent peers",
"version": "9.1.0",
"version": "9.1.1",
"author": {

@@ -20,4 +20,3 @@ "name": "WebTorrent, LLC",

"debug": "^3.1.0",
"run-parallel": "^1.1.2",
"xtend": "^4.0.1"
"run-parallel": "^1.1.2"
},

@@ -24,0 +23,0 @@ "devDependencies": {

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