Comparing version 10.0.5 to 10.0.6
@@ -368,3 +368,2 @@ const WebTorrent = require('webtorrent') | ||
} | ||
// const mainPath = path.join(checkTorrent.path, checkTorrent.name) | ||
checkTorrent.folder = folderPath | ||
@@ -409,3 +408,2 @@ checkTorrent.address = null | ||
} | ||
// const mainPath = path.join(checkTorrent.path, checkTorrent.name) | ||
checkTorrent.dir = null | ||
@@ -433,3 +431,2 @@ checkTorrent.own = true | ||
await this.handleTheData({num: 0}, this.db.put(`${this._fixed.load}${this._fixed.address}${checkTorrent.address}`, {size: checkTorrent.length, length: checkTorrent.files.length, address: checkTorrent.address, infohash: checkTorrent.infohash, name: checkTorrent.name}), {err: true, cb: async () => {await this.stopTorrent(checkTorrent.address, { destroyStore: false })}}) | ||
// const mainPath = path.join(checkTorrent.path, checkTorrent.name) | ||
checkTorrent.own = false | ||
@@ -814,3 +811,3 @@ checkTorrent.dir = null | ||
for (const info of data) { | ||
const tempPath = path.join(folderPath, info.name) | ||
const tempPath = path.join(folderPath, info.webkitRelativePath || info.name) | ||
await this.handleTheData({ id: tempPath, num: sec, res: false, kind: 'formdata' }, pipelinePromise(Readable.from(info.stream()), fs.createWriteStream(tempPath)), {err: true, cb: null}) | ||
@@ -817,0 +814,0 @@ } |
{ | ||
"name": "torrentz", | ||
"version": "10.0.5", | ||
"version": "10.0.6", | ||
"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
39049
785