Socket
Socket
Sign inDemoInstall

torrentz

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

torrentz - npm Package Compare versions

Comparing version 1.0.3 to 1.0.5

16

index.js

@@ -0,1 +1,2 @@

const WebTorrent = require('webtorrent')
const fs = require('fs-extra')

@@ -45,16 +46,3 @@ const path = require('path')

if(!finalOpts.webtorrent){
throw new Error('need an instance of webtorrent')
}
this.webtorrent = finalOpts.webtorrent
// this.webtorrent = (() => {
// if(finalOpts.webtorrent){
// return finalOpts.webtorrent
// } else {
// const WebTorrent = require('webtorrent')
// return new WebTorrent({ dht: { verify: ed.verify } })
// }
// })(finalOpts)
this.webtorrent = new WebTorrent({ dht: { verify: ed.verify } })

@@ -61,0 +49,0 @@ this.webtorrent.on('error', error => {

5

package.json
{
"name": "torrentz",
"version": "1.0.3",
"version": "1.0.5",
"description": "",

@@ -17,4 +17,5 @@ "main": "index.js",

"fs-extra": "^10.1.0",
"simple-sha1": "^3.1.0"
"simple-sha1": "^3.1.0",
"webtorrent": "^1.8.16"
}
}
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