Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

list-fetch

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

list-fetch - npm Package Compare versions

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",

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