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

torrent-discovery

Package Overview
Dependencies
Maintainers
1
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 2.3.1 to 2.3.2

10

index.js

@@ -24,3 +24,4 @@ module.exports = Discovery

port: 0, // torrent port
tracker: true
tracker: true,
wrtc: null
}, opts)

@@ -33,6 +34,2 @@

if (!process.browser && !self.port) throw new Error('port required')
if (process.browser && (!self.announce || self.announce.length === 0)) {
// If no trackers specified in browser, use default so WebTorrent Just Works(TM).
self.announce = [ 'wss://tracker.webtorrent.io' ]
}

@@ -96,3 +93,4 @@ if (self.dht) self._createDHT(self.dhtPort)

var trackerOpts = {
rtcConfig: self.rtcConfig
rtcConfig: self.rtcConfig,
wrtc: self.wrtc
}

@@ -99,0 +97,0 @@

4

package.json
{
"name": "torrent-discovery",
"description": "Discover BitTorrent and WebTorrent peers",
"version": "2.3.1",
"version": "2.3.2",
"author": {

@@ -27,3 +27,3 @@ "name": "Feross Aboukhadijeh",

"standard": "^3.1.2",
"tape": "^3.5.0"
"tape": "^4.0.0"
},

@@ -30,0 +30,0 @@ "homepage": "http://webtorrent.io",

@@ -54,3 +54,4 @@ # torrent-discovery [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]

tracker: true, // use trackers?
rtcConfig: {} // RTCPeerConnection config object (only used in browser)
rtcConfig: {}, // RTCPeerConnection config object (only used in browser)
wrtc: {} // custom webrtc implementation, mainly useful in node to specify in the [wrtc](https://npmjs.com/package/wrtc) package
}

@@ -57,0 +58,0 @@ ```

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