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

bittorrent-relay

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-relay - npm Package Compare versions

Comparing version 9.0.7 to 9.0.8

2

package.json
{
"name": "bittorrent-relay",
"description": "Uses the mainline dht to relay requests to other trackers in a swarm",
"version": "9.0.7",
"version": "9.0.8",
"bin": {

@@ -6,0 +6,0 @@ "bittorrent-relay": "./bin/cmd.js"

@@ -403,2 +403,12 @@ import Debug from 'debug'

res.end(JSON.stringify(arr))
} else if(req.method === 'GET' && req.url === '/extra-ids.json' && this.tracks){
res.setHeader('Content-Type', 'application/json')
res.end(JSON.stringify(Array.from(self.dataTrackers.keys())))
} else if(req.method === 'GET' && req.url === '/extra-keys.json' && this.tracks){
const arr = []
for(const i in self.dataRelays.values()){
arr.push(i.key)
}
res.setHeader('Content-Type', 'application/json')
res.end(JSON.stringify(arr))
} else if(req.method === 'GET' && req.url === '/index.json'){

@@ -405,0 +415,0 @@ res.setHeader('Content-Type', 'application/json')

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