Comparing version 11.0.3 to 11.0.4
@@ -457,3 +457,3 @@ const WebTorrent = require('webtorrent') | ||
const authorStuff = id.provided ? await (async () => {return await this.db.get(`${this._fixed.seed}${this._fixed.address}${id.address}`);})() : {address: id.address, sequence: null, dir: uid(20), desc: {}, stuff: {}} | ||
const authorStuff = id.provided ? await (async () => { let test; try { test = await this.db.get(`${this._fixed.seed}${this._fixed.address}${id.address}`); test.sequence = test.sequence + 1; } catch (e) { console.error(e); test = { address: id.address, sequence: 0, dir: uid(20), desc: {}, stuff: {} }; } return test; })() : {address: id.address, sequence: 0, dir: uid(20), desc: {}, stuff: {}} | ||
const folderPath = path.join(this._storage, authorStuff.dir) | ||
@@ -464,3 +464,3 @@ | ||
const dataPath = path.join(folderPath, pathToData) | ||
authorStuff.sequence = opts.seq ? opts.seq : authorStuff.sequence === null ? 0 : authorStuff.sequence + 1 | ||
authorStuff.sequence = opts.seq || authorStuff.sequence | ||
authorStuff.desc = opts.desc || authorStuff.desc | ||
@@ -467,0 +467,0 @@ authorStuff.stuff = opts.stuff || authorStuff.stuff |
{ | ||
"name": "torrentz", | ||
"version": "11.0.3", | ||
"version": "11.0.4", | ||
"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
37838
762