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 10.0.8 to 10.0.9

6

index.js

@@ -100,8 +100,6 @@ const WebTorrent = require('webtorrent')

statPath.type = 'folder'
const fold = await fs.readdir(checkPath)
return {stat: statPath, folder: fold}
return {stat: statPath, folder: await fs.readdir(checkPath)}
} else if(statPath.isFile()){
statPath.type = 'file'
const fil = await fs.readFile(checkPath)
return {stat: statPath, file: fil}
return {stat: statPath, file: checkPath}
} else {

@@ -108,0 +106,0 @@ throw new Error('must be a directory or file')

{
"name": "torrentz",
"version": "10.0.8",
"version": "10.0.9",
"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