-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { DownloadOptions } from './types'; | ||
import { Downloader } from './Downloader'; | ||
|
||
// TODO: Resolve the downloader or default to GotDownloader | ||
// Current thoughts are a dot-file traversal for something like | ||
// ".electron.downloader" which would be a text file with the name of the | ||
// npm module to import() and use as the downloader | ||
import { GotDownloader } from './GotDownloader'; | ||
|
||
export async function getDownloaderForSystem(): Promise<Downloader<DownloadOptions>> { | ||
// TODO: Resolve the downloader or default to GotDownloader | ||
// Current thoughts are a dot-file traversal for something like | ||
// ".electron.downloader" which would be a text file with the name of the | ||
// npm module to import() and use as the downloader | ||
const { GotDownloader } = await import('./GotDownloader'); | ||
return new GotDownloader(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters