Comparing version 1.2.0 to 1.2.1
@@ -63,6 +63,11 @@ import TurboDownloader from "turbo-downloader"; | ||
return defaultFilename; | ||
const { parameters } = contentDisposition.parse(contentDispositionHeader); | ||
return parameters.filename ?? defaultFilename; | ||
try { | ||
const { parameters } = contentDisposition.parse(contentDispositionHeader); | ||
return parameters.filename ?? defaultFilename; | ||
} | ||
catch { | ||
return defaultFilename; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=fast-download.js.map |
{ | ||
"name": "ipull", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Super fast cli file downloader", | ||
@@ -91,5 +91,5 @@ "main": "dist/index.js", | ||
"progress-stream": "^2.0.0", | ||
"turbo-downloader": "^1.3.1", | ||
"turbo-downloader": "1.3.1", | ||
"wretch": "^2.6.0" | ||
} | ||
} |
@@ -62,15 +62,11 @@ <div align="center"> | ||
class PullProgress { | ||
constructor(progress: IStreamProgress, onProgress: PullProgressCallback) { | ||
} | ||
constructor(progress: IStreamProgress, onProgress: PullProgressCallback); | ||
startPull(): Promise<void> { | ||
} | ||
startPull(): Promise<void>; | ||
} | ||
class CLIPullProgress { | ||
constructor(progress: IStreamProgress, name: string) { | ||
} | ||
constructor(progress: IStreamProgress, name: string); | ||
startPull(): Promise<void> { | ||
} | ||
startPull(): Promise<void>; | ||
} | ||
@@ -77,0 +73,0 @@ |
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
38673
448
120
+ Addedturbo-downloader@1.3.1(transitive)
- Removedturbo-downloader@1.4.0(transitive)
Updatedturbo-downloader@1.3.1