Socket
Socket
Sign inDemoInstall

download

Package Overview
Dependencies
78
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.2.1 to 6.2.2

18

index.js

@@ -23,9 +23,8 @@ 'use strict';

const header = res.headers['content-disposition'];
if (!header) {
return filenameFromPath(res);
}
const parsed = contentDisposition.parse(res.headers['content-disposition']);
if (parsed.parameters && parsed.parameters.filename) {
return parsed.parameters.filename;
if (header) {
const parsed = contentDisposition.parse(header);
if (parsed.parameters && parsed.parameters.filename) {
return parsed.parameters.filename;
}
}

@@ -64,7 +63,6 @@

if (!output && opts.extract) {
return decompress(data, opts);
}
if (!output) {
if (opts.extract) {
return decompress(data, opts);
}
return data;

@@ -71,0 +69,0 @@ }

{
"name": "download",
"version": "6.2.1",
"version": "6.2.2",
"description": "Download and extract files",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc