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.7 to 11.0.8

12

index.js

@@ -235,8 +235,10 @@ const WebTorrent = require('webtorrent')

if (path.extname(pathToData)) {
return mainData.files.find(file => { return pathToData === file.urlPath })
const checkFile = mainData.files.find(file => { return pathToData === file.urlPath })
return checkFile ? checkFile : null
} else {
return mainData.files.filter(file => {return file.urlPath.startsWith(pathToData)})
const checkFolder = mainData.files.filter(file => { return file.urlPath.startsWith(pathToData) })
return checkFolder.length ? checkFolder : null
}
} else {
return null
return undefined
}

@@ -284,3 +286,3 @@ }

const testTorrent = this.checkForTorrent(id.infohash, pathToData)
if(testTorrent !== null){
if(testTorrent !== undefined){
return testTorrent

@@ -320,3 +322,3 @@ }

const testTorrent = this.checkForTorrent(id.address, pathToData)
if(testTorrent !== null){
if(testTorrent !== undefined){
return testTorrent

@@ -323,0 +325,0 @@ }

{
"name": "torrentz",
"version": "11.0.7",
"version": "11.0.8",
"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