From ae187b6d75c8079da0be1dc288613bad8466fe61 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 24 Oct 2023 17:43:37 +0200 Subject: Initial commit --- .../@electron/get/dist/cjs/downloader-resolver.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 desktop/node_modules/@electron/get/dist/cjs/downloader-resolver.js (limited to 'desktop/node_modules/@electron/get/dist/cjs/downloader-resolver.js') diff --git a/desktop/node_modules/@electron/get/dist/cjs/downloader-resolver.js b/desktop/node_modules/@electron/get/dist/cjs/downloader-resolver.js new file mode 100644 index 0000000..52a51d3 --- /dev/null +++ b/desktop/node_modules/@electron/get/dist/cjs/downloader-resolver.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +async function getDownloaderForSystem() { + // 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 Promise.resolve().then(() => require('./GotDownloader')); + return new GotDownloader(); +} +exports.getDownloaderForSystem = getDownloaderForSystem; +//# sourceMappingURL=downloader-resolver.js.map \ No newline at end of file -- cgit