Comparing version 1.0.6 to 1.0.7
@@ -46,3 +46,10 @@ const WebTorrent = require('webtorrent') | ||
this.webtorrent = new WebTorrent({ dht: { verify: ed.verify } }) | ||
this.webtorrent = ((finalOpts) => { | ||
if(finalOpts.webtorrent){ | ||
finalOpts.webtorrent.dht._verify = ed.verify | ||
return finalOpts.webtorrent | ||
} else { | ||
return new WebTorrent({ dht: { verify: ed.verify } }) | ||
} | ||
})(finalOpts) | ||
@@ -49,0 +56,0 @@ this.webtorrent.on('error', error => { |
{ | ||
"name": "torrentz", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25330
595