Comparing version 3.4.2 to 3.4.3
@@ -21,4 +21,2 @@ import ProgressStatusFile, { DownloadStatus, ProgressStatus } from "./progress-status-file.js"; | ||
programType?: AvailablePrograms; | ||
/** @internal */ | ||
skipExisting?: boolean; | ||
}; | ||
@@ -25,0 +23,0 @@ export type DownloadEngineFileOptionsWithDefaults = DownloadEngineFileOptions & { |
@@ -72,3 +72,3 @@ import ProgressStatusFile, { DownloadFlags, DownloadStatus } from "./progress-status-file.js"; | ||
const partInfo = this.file.parts[part]; | ||
if (!partInfo.acceptRange) { | ||
if (partInfo.size === 0) { | ||
return [ChunkStatus.NOT_STARTED]; | ||
@@ -75,0 +75,0 @@ } |
@@ -42,6 +42,2 @@ import { DownloadFile, SaveProgressInfo } from "../types.js"; | ||
get downloadStatues(): import("../../transfer-visualize/format-transfer-status.js").FormattedStatus[]; | ||
/** | ||
* @internal | ||
*/ | ||
get _fileEngineOptions(): import("../download-file/download-engine-file.js").DownloadEngineFileOptionsWithDefaults; | ||
protected _initEvents(): void; | ||
@@ -48,0 +44,0 @@ download(): Promise<void>; |
@@ -87,4 +87,4 @@ import UrlInputError from "./error/url-input-error.js"; | ||
static async _createDownloadFile(parts, fetchStream) { | ||
const localFileName = new URL(parts[0], "https://example").pathname.split("/") | ||
.pop() || ""; | ||
const localFileName = decodeURIComponent(new URL(parts[0], "https://example").pathname.split("/") | ||
.pop() || ""); | ||
const downloadFile = { | ||
@@ -91,0 +91,0 @@ totalSize: 0, |
@@ -54,3 +54,3 @@ import BaseDownloadEngineFetchStream, { MIN_LENGTH_FOR_MORE_INFO_REQUEST } from "./base-download-engine-fetch-stream.js"; | ||
const fileName = parseContentDisposition(response.headers.get("content-disposition")); | ||
let length = parseInt(response.headers.get("content-length")); | ||
let length = parseInt(response.headers.get("content-length")) || 0; | ||
if (response.headers.get("content-encoding") || browserCheck() && MIN_LENGTH_FOR_MORE_INFO_REQUEST < length) { | ||
@@ -57,0 +57,0 @@ length = acceptRange ? await this.fetchDownloadInfoWithoutRetryContentRange(url) : 0; |
@@ -5,3 +5,2 @@ import DownloadEngineNodejs from "../../download-engine/engine/download-engine-nodejs.js"; | ||
import { CliFormattedStatus } from "./progress-bars/base-transfer-cli-progress-bar.js"; | ||
import { CLI_LEVEL } from "./transfer-cli.js"; | ||
type AllowedDownloadEngines = DownloadEngineNodejs | DownloadEngineMultiDownload; | ||
@@ -15,4 +14,2 @@ export type CliProgressDownloadEngineOptions = { | ||
fetchStrategy?: "localFile" | "fetch"; | ||
/** @internal */ | ||
cliLevel?: CLI_LEVEL; | ||
}; | ||
@@ -19,0 +16,0 @@ export default class CliAnimationWrapper { |
{ | ||
"name": "ipull", | ||
"version": "3.4.2", | ||
"version": "3.4.3", | ||
"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
Sorry, the diff of this file is not supported yet
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
260357
3456