Socket
Socket
Sign inDemoInstall

list-fetch

Package Overview
Dependencies
218
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 27.0.8 to 27.0.9

8

index.js

@@ -134,8 +134,4 @@ module.exports = async function makeBTFetch (opts = {}) {

if (reqHeaders.has('x-copy') || searchParams.has('x-copy')) {
try {
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}, body: ''})
} catch (error) {
return sendTheData(signal, {status: 400, headers: {'X-Error': error.name}, body: ''})
}
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 }, body: '' })
} else {

@@ -142,0 +138,0 @@ const torrentData = await app.loadTorrent(mid.mainId, mid.mainPath, useOpts)

{
"name": "list-fetch",
"version": "27.0.8",
"version": "27.0.9",
"description": "coming soon",

@@ -24,3 +24,3 @@ "main": "index.js",

"range-parser": "^1.2.1",
"torrentz": "^9.0.8"
"torrentz": "^9.0.9"
},

@@ -27,0 +27,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc