nodejs-file-downloader
Advanced tools
Comparing version 4.11.0 to 4.11.1
@@ -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 @@ |
@@ -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", |
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
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
200441
2100