Socket
Socket
Sign inDemoInstall

torrentz

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

torrentz - npm Package Compare versions

Comparing version 11.0.3 to 11.0.4

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc