Comparing version 13.0.0 to 13.0.1
@@ -86,2 +86,5 @@ const WebTorrent = require('webtorrent') | ||
if (rej) { | ||
if(rej !== true){ | ||
await rej() | ||
} | ||
// if (useCaught.cb) { | ||
@@ -558,3 +561,3 @@ // await useCaught.cb() | ||
const dataFromFolder = await this.resOrRej(this.dataFromTorrent(folderPath, authorStuff.desc), true) | ||
const dataFromFolder = await this.resOrRej(this.dataFromTorrent(folderPath, authorStuff.desc), async () => {await fs.remove(folderPath);await this.db.del(`${this._fixed.seed}${this._fixed.infohash}${authorStuff.infohash}`);}) | ||
@@ -641,3 +644,3 @@ if (authorStuff.infohash !== dataFromFolder.infoHash) { | ||
const dataFromFolder = await this.resOrRej(this.dataFromTorrent(folderPath, authorStuff.desc), true) | ||
const dataFromFolder = await this.resOrRej(this.dataFromTorrent(folderPath, authorStuff.desc), async () => {await fs.remove(folderPath);await this.db.del(`${this._fixed.seed}${this._fixed.address}${authorStuff.address}`);}) | ||
@@ -644,0 +647,0 @@ const dataFromProp = await this.resOrRej(this.publishFunc(authorStuff.address, info.secret, {...authorStuff.stuff, ih: dataFromFolder.infoHash}, authorStuff.sequence + 1), true) |
{ | ||
"name": "torrentz", | ||
"version": "13.0.0", | ||
"version": "13.0.1", | ||
"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
37559
782