Comparing version 10.0.8 to 10.0.9
@@ -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", |
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
39928
811