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

nodejs-file-downloader

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-file-downloader - npm Package Compare versions

Comparing version 4.11.0 to 4.11.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 4.11.1 16/04/2023
### Fixed
- Fixed tempPath scope in removeFailedFile call
## 4.11.0 02/04/2023

@@ -2,0 +8,0 @@

6

Download.js

@@ -279,3 +279,3 @@ const fs = require('fs');

async _save({ dataStream, finalFileName, originalFileName }) {
let tempP
try {

@@ -290,3 +290,3 @@

const { finalPath, tempPath } = this._getTempAndFinalPath(finalFileName)
tempP = tempPath
await this._saveAccordingToConfig({ dataStream, tempPath })

@@ -300,3 +300,3 @@

if (!this.config.shouldBufferResponse)
await this._removeFailedFile(tempPath)
await this._removeFailedFile(tempP)

@@ -303,0 +303,0 @@ throw error;

{
"name": "nodejs-file-downloader",
"version": "4.11.0",
"version": "4.11.1",
"description": "A file downloader for NodeJs",

@@ -5,0 +5,0 @@ "main": "Downloader.js",

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