Comparing version 3.8.0 to 3.8.1
@@ -128,3 +128,4 @@ import ProgressStatusFile, { DownloadFlags, DownloadStatus } from "./progress-status-file.js"; | ||
else { | ||
await this._downloadSlice(0, Infinity); | ||
const chunksToRead = this._activePart.size > 0 ? this._progress.chunks.length : Infinity; | ||
await this._downloadSlice(0, chunksToRead); | ||
} | ||
@@ -131,0 +132,0 @@ } |
@@ -39,3 +39,6 @@ import { EventEmitter } from "eventemitter3"; | ||
this._progressStatisticsBuilder.on("progress", progress => { | ||
progress.downloadFlags = progress.downloadFlags.concat([DownloadFlags.DownloadSequence]); | ||
progress = { | ||
...progress, | ||
downloadFlags: progress.downloadFlags.concat([DownloadFlags.DownloadSequence]) | ||
}; | ||
this.emit("progress", progress); | ||
@@ -42,0 +45,0 @@ }); |
{ | ||
"name": "ipull", | ||
"version": "3.8.0", | ||
"version": "3.8.1", | ||
"description": "The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
309168
4102