list-fetch
Advanced tools
Comparing version 29.0.6 to 29.0.7
16
index.js
@@ -141,3 +141,3 @@ module.exports = async function makeBTFetch (opts = {}) { | ||
} | ||
return sendTheData(signal, {status: 200, headers: useHeaders}) | ||
return sendTheData(signal, {status: 200, headers: useHeaders, body: ''}) | ||
} else { | ||
@@ -153,3 +153,3 @@ const torrentData = await app.authorData() | ||
useHeaders['X-Length'] = useLength | ||
return sendTheData(signal, {status: 200, headers: useHeaders}) | ||
return sendTheData(signal, {status: 200, headers: useHeaders, body: ''}) | ||
} | ||
@@ -163,3 +163,3 @@ } else { | ||
useHeaders['X-Length'] = checkMain.stat.size | ||
return sendTheData(signal, {status: 200, headers: useHeaders}) | ||
return sendTheData(signal, {status: 200, headers: useHeaders, body: ''}) | ||
} | ||
@@ -170,3 +170,3 @@ } else { | ||
const torrentData = await app.userTorrent(mid.mainId, mid.mainPath, { ...useOpts, id: JSON.parse(reqHeaders.get('x-copy') || searchParams.get('x-copy')) }) | ||
return sendTheData(signal, { status: 200, headers: { 'X-Path': torrentData } }) | ||
return sendTheData(signal, { status: 200, headers: { 'X-Path': torrentData }, body: '' }) | ||
} else { | ||
@@ -183,3 +183,3 @@ const torrentData = await app.loadTorrent(mid.mainId, mid.mainPath, useOpts) | ||
sendTheData(signal, {status: 200, headers: useHeaders}) | ||
sendTheData(signal, {status: 200, headers: useHeaders, body: ''}) | ||
} else if(torrentData.createReadStream){ | ||
@@ -194,8 +194,8 @@ const useHeaders = {} | ||
return sendTheData(signal, {status: 200, headers: useHeaders}) | ||
return sendTheData(signal, {status: 200, headers: useHeaders, body: ''}) | ||
} else { | ||
return sendTheData(signal, { status: 400, headers: { 'X-Error': 'did not find any data' } }) | ||
return sendTheData(signal, { status: 400, headers: { 'X-Error': 'did not find any data' }, body: '' }) | ||
} | ||
} else { | ||
return sendTheData(signal, {status: 400, headers: {'X-Error': 'did not find any data'}}) | ||
return sendTheData(signal, {status: 400, headers: {'X-Error': 'did not find any data'}, body: ''}) | ||
} | ||
@@ -202,0 +202,0 @@ } |
{ | ||
"name": "list-fetch", | ||
"version": "29.0.6", | ||
"version": "29.0.7", | ||
"description": "coming soon", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"make-fetch": "^3.1.1", | ||
"make-fetch": "github:ducksandgoats/make-fetch", | ||
"mime": "^3.0.0", | ||
@@ -24,0 +24,0 @@ "range-parser": "^1.2.1", |
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
26604
1
- Removedmake-fetch@3.1.2(transitive)