Comparing version 2.0.6 to 2.0.8
12
index.js
@@ -125,3 +125,13 @@ const WebTorrent = require('webtorrent') | ||
return data | ||
const putData = await new Promise((resolve, reject) => { | ||
this.webtorrent.dht.put({ k: addressBuff, v: {ih: data.infohash, ...data.stuff}, seq: data.sequence, sig: signatureBuff }, (putErr, hash, number) => { | ||
if (putErr) { | ||
reject(putErr) | ||
} else { | ||
resolve({ hash: hash.toString('hex'), number }) | ||
} | ||
}) | ||
}) | ||
return {...data, ...putData} | ||
} | ||
@@ -128,0 +138,0 @@ |
{ | ||
"name": "torrentz", | ||
"version": "2.0.6", | ||
"version": "2.0.8", | ||
"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
26040
613
4