list-fetch
Advanced tools
Comparing version 16.0.7 to 16.0.8
@@ -101,3 +101,3 @@ const makeFetch = require('make-fetch') | ||
if (mid.mainPath === '/') { | ||
return {statusCode: 200, headers: {'Content-Type': mainRes, 'Content-Length': String(torrentData.length)}, data: mainReq ? [`<html><head><title>${torrentData.name}</title></head><body><div>${torrentData.files.map(file => { return `<p><a href="${file.urlPath}">${file.name}</a></p>` })}</div></body></html>`] : [JSON.stringify(torrentData.files.map(file => { return `${file.urlPath}` }))]} | ||
return {statusCode: 200, headers: {'Content-Type': mainRes, 'Content-Length': String(torrentData.length)}, data: mainReq ? [`<html><head><title>${torrentData.name}</title></head><body><div><div>info: ${torrentData.infohash}</div><div>${torrentData.files.map(file => { return `<p><a href="${file.urlPath}">${file.name}</a></p>` })}</div></div></body></html>`] : [JSON.stringify({info: torrentData.infohash, files: torrentData.files.map(file => { return `${file.urlPath}` })})]} | ||
} else { | ||
@@ -104,0 +104,0 @@ foundFile = torrentData.files.find(file => { return mid.mainPath === file.urlPath }) |
{ | ||
"name": "list-fetch", | ||
"version": "16.0.7", | ||
"version": "16.0.8", | ||
"description": "coming soon", | ||
@@ -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
14861