Comparing version 1.0.3 to 1.0.4
@@ -13,2 +13,3 @@ import TurboDownloader from "turbo-downloader"; | ||
progress(callback: (progressBytes: number, totalBytes: number) => void): Promise<void>; | ||
private static get _TurboDownloaderClass(); | ||
} |
@@ -17,3 +17,3 @@ import TurboDownloader from "turbo-downloader"; | ||
await fs.ensureFile(this._savePath); | ||
this._downloader = new TurboDownloader.default({ | ||
this._downloader = new FastDownload._TurboDownloaderClass({ | ||
url: await this._getRedirectedURL(), | ||
@@ -41,3 +41,8 @@ destFile: this._savePath, | ||
} | ||
static get _TurboDownloaderClass() { | ||
if (TurboDownloader && "default" in TurboDownloader) | ||
return TurboDownloader.default; | ||
return TurboDownloader; | ||
} | ||
} | ||
//# sourceMappingURL=fast-download.js.map |
{ | ||
"name": "ipull", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Super fast cli file downloader", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
31554
344