aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@electron/get/dist/esm
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2020-12-22 17:50:12 +0530
committerPriyansh <[email protected]>2020-12-22 17:50:12 +0530
commit22dc033f4938d6a19e086a1cbd36ec5cade5eaab (patch)
tree9feb963ccd5c1581e676e41004801abc67db3357 /node_modules/@electron/get/dist/esm
parente93da8b04da86773247aadb1cbb1912e4f4526b2 (diff)
downloadstyx-22dc033f4938d6a19e086a1cbd36ec5cade5eaab.tar.xz
styx-22dc033f4938d6a19e086a1cbd36ec5cade5eaab.zip
Remove node_modules
Diffstat (limited to 'node_modules/@electron/get/dist/esm')
-rw-r--r--node_modules/@electron/get/dist/esm/Cache.d.ts7
-rw-r--r--node_modules/@electron/get/dist/esm/Cache.js50
-rw-r--r--node_modules/@electron/get/dist/esm/Cache.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/Downloader.d.ts3
-rw-r--r--node_modules/@electron/get/dist/esm/Downloader.js1
-rw-r--r--node_modules/@electron/get/dist/esm/Downloader.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/GotDownloader.d.ts19
-rw-r--r--node_modules/@electron/get/dist/esm/GotDownloader.js72
-rw-r--r--node_modules/@electron/get/dist/esm/GotDownloader.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/artifact-utils.d.ts3
-rw-r--r--node_modules/@electron/get/dist/esm/artifact-utils.js52
-rw-r--r--node_modules/@electron/get/dist/esm/artifact-utils.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/downloader-resolver.d.ts2
-rw-r--r--node_modules/@electron/get/dist/esm/downloader-resolver.js9
-rw-r--r--node_modules/@electron/get/dist/esm/downloader-resolver.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/index.d.ts18
-rw-r--r--node_modules/@electron/get/dist/esm/index.js93
-rw-r--r--node_modules/@electron/get/dist/esm/index.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/proxy.d.ts4
-rw-r--r--node_modules/@electron/get/dist/esm/proxy.js23
-rw-r--r--node_modules/@electron/get/dist/esm/proxy.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/types.d.ts114
-rw-r--r--node_modules/@electron/get/dist/esm/types.js1
-rw-r--r--node_modules/@electron/get/dist/esm/types.js.map1
-rw-r--r--node_modules/@electron/get/dist/esm/utils.d.ts19
-rw-r--r--node_modules/@electron/get/dist/esm/utils.js72
-rw-r--r--node_modules/@electron/get/dist/esm/utils.js.map1
27 files changed, 0 insertions, 571 deletions
diff --git a/node_modules/@electron/get/dist/esm/Cache.d.ts b/node_modules/@electron/get/dist/esm/Cache.d.ts
deleted file mode 100644
index a6adc32..0000000
--- a/node_modules/@electron/get/dist/esm/Cache.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export declare class Cache {
- private cacheRoot;
- constructor(cacheRoot?: string);
- getCachePath(downloadUrl: string, fileName: string): string;
- getPathForFileInCache(url: string, fileName: string): Promise<string | null>;
- putFileInCache(url: string, currentPath: string, fileName: string): Promise<string>;
-}
diff --git a/node_modules/@electron/get/dist/esm/Cache.js b/node_modules/@electron/get/dist/esm/Cache.js
deleted file mode 100644
index a412d91..0000000
--- a/node_modules/@electron/get/dist/esm/Cache.js
+++ /dev/null
@@ -1,50 +0,0 @@
-var __rest = (this && this.__rest) || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
- t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
- t[p[i]] = s[p[i]];
- }
- return t;
-};
-import debug from 'debug';
-import envPaths from 'env-paths';
-import * as fs from 'fs-extra';
-import * as path from 'path';
-import * as url from 'url';
-import * as sanitize from 'sanitize-filename';
-const d = debug('@electron/get:cache');
-const defaultCacheRoot = envPaths('electron', {
- suffix: '',
-}).cache;
-export class Cache {
- constructor(cacheRoot = defaultCacheRoot) {
- this.cacheRoot = cacheRoot;
- }
- getCachePath(downloadUrl, fileName) {
- const _a = url.parse(downloadUrl), { search, hash } = _a, rest = __rest(_a, ["search", "hash"]);
- const strippedUrl = url.format(rest);
- const sanitizedUrl = sanitize(strippedUrl);
- return path.resolve(this.cacheRoot, sanitizedUrl, fileName);
- }
- async getPathForFileInCache(url, fileName) {
- const cachePath = this.getCachePath(url, fileName);
- if (await fs.pathExists(cachePath)) {
- return cachePath;
- }
- return null;
- }
- async putFileInCache(url, currentPath, fileName) {
- const cachePath = this.getCachePath(url, fileName);
- d(`Moving ${currentPath} to ${cachePath}`);
- if (await fs.pathExists(cachePath)) {
- d('* Replacing existing file');
- await fs.remove(cachePath);
- }
- await fs.move(currentPath, cachePath);
- return cachePath;
- }
-}
-//# sourceMappingURL=Cache.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/Cache.js.map b/node_modules/@electron/get/dist/esm/Cache.js.map
deleted file mode 100644
index a0ed3f8..0000000
--- a/node_modules/@electron/get/dist/esm/Cache.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Cache.js","sourceRoot":"","sources":["../../src/Cache.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAEvC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,UAAU,EAAE;IAC5C,MAAM,EAAE,EAAE;CACX,CAAC,CAAC,KAAK,CAAC;AAET,MAAM,OAAO,KAAK;IAChB,YA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mode 100644
index 8e5e40e..0000000
--- a/node_modules/@electron/get/dist/esm/Downloader.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export interface Downloader<T> {
- download(url: string, targetFilePath: string, options: T): Promise<void>;
-}
diff --git a/node_modules/@electron/get/dist/esm/Downloader.js b/node_modules/@electron/get/dist/esm/Downloader.js
deleted file mode 100644
index 6ff5866..0000000
--- a/node_modules/@electron/get/dist/esm/Downloader.js
+++ /dev/null
@@ -1 +0,0 @@
-//# sourceMappingURL=Downloader.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/Downloader.js.map b/node_modules/@electron/get/dist/esm/Downloader.js.map
deleted file mode 100644
index c6199d5..0000000
--- a/node_modules/@electron/get/dist/esm/Downloader.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"Downloader.js","sourceRoot":"","sources":["../../src/Downloader.ts"],"names":[],"mappings":""} \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/GotDownloader.d.ts b/node_modules/@electron/get/dist/esm/GotDownloader.d.ts
deleted file mode 100644
index 88686fd..0000000
--- a/node_modules/@electron/get/dist/esm/GotDownloader.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import * as got from 'got';
-import { Downloader } from './Downloader';
-/**
- * See [`got#options`](https://github.com/sindresorhus/got#options) for possible keys/values.
- */
-export declare type GotDownloaderOptions = got.GotOptions<string | null> & {
- /**
- * if defined, triggers every time `got`'s `downloadProgress` event callback is triggered.
- */
- getProgressCallback?: (progress: got.Progress) => Promise<void>;
- /**
- * if `true`, disables the console progress bar (setting the `ELECTRON_GET_NO_PROGRESS`
- * environment variable to a non-empty value also does this).
- */
- quiet?: boolean;
-};
-export declare class GotDownloader implements Downloader<GotDownloaderOptions> {
- download(url: string, targetFilePath: string, options?: GotDownloaderOptions): Promise<void>;
-}
diff --git a/node_modules/@electron/get/dist/esm/GotDownloader.js b/node_modules/@electron/get/dist/esm/GotDownloader.js
deleted file mode 100644
index f9d9178..0000000
--- a/node_modules/@electron/get/dist/esm/GotDownloader.js
+++ /dev/null
@@ -1,72 +0,0 @@
-var __rest = (this && this.__rest) || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
- t[p] = s[p];
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
- t[p[i]] = s[p[i]];
- }
- return t;
-};
-import * as fs from 'fs-extra';
-import * as got from 'got';
-import * as path from 'path';
-import * as ProgressBar from 'progress';
-const PROGRESS_BAR_DELAY_IN_SECONDS = 30;
-export class GotDownloader {
- async download(url, targetFilePath, options) {
- if (!options) {
- options = {};
- }
- const { quiet, getProgressCallback } = options, gotOptions = __rest(options, ["quiet", "getProgressCallback"]);
- let downloadCompleted = false;
- let bar;
- let progressPercent;
- let timeout = undefined;
- await fs.mkdirp(path.dirname(targetFilePath));
- const writeStream = fs.createWriteStream(targetFilePath);
- if (!quiet || !process.env.ELECTRON_GET_NO_PROGRESS) {
- const start = new Date();
- timeout = setTimeout(() => {
- if (!downloadCompleted) {
- bar = new ProgressBar(`Downloading ${path.basename(url)}: [:bar] :percent ETA: :eta seconds `, {
- curr: progressPercent,
- total: 100,
- });
- // https://github.com/visionmedia/node-progress/issues/159
- bar.start = start;
- }
- }, PROGRESS_BAR_DELAY_IN_SECONDS * 1000);
- }
- await new Promise((resolve, reject) => {
- const downloadStream = got.stream(url, gotOptions);
- downloadStream.on('downloadProgress', async (progress) => {
- progressPercent = progress.percent;
- if (bar) {
- bar.update(progress.percent);
- }
- if (getProgressCallback) {
- await getProgressCallback(progress);
- }
- });
- downloadStream.on('error', error => {
- if (error.name === 'HTTPError' && error.statusCode === 404) {
- error.message += ` for ${error.url}`;
- }
- if (writeStream.destroy) {
- writeStream.destroy(error);
- }
- reject(error);
- });
- writeStream.on('error', error => reject(error));
- writeStream.on('close', () => resolve());
- downloadStream.pipe(writeStream);
- });
- downloadCompleted = true;
- if (timeout) {
- clearTimeout(timeout);
- }
- }
-}
-//# sourceMappingURL=GotDownloader.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/GotDownloader.js.map b/node_modules/@electron/get/dist/esm/GotDownloader.js.map
deleted file mode 100644
index c88c10f..0000000
--- a/node_modules/@electron/get/dist/esm/GotDownloader.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"GotDownloader.js","sourceRoot":"","sources":["../../src/GotDownloader.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,WAAW,MAAM,UAAU,CAAC;AAIxC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAiBzC,MAAM,OAAO,aAAa;IACxB,KAAK,CAAC,QAAQ,CAAC,GAAW,EAAE,cAAsB,EAAE,OAA8B;QAChF,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,EAAE,KAAK,EAAE,mBAAmB,KAAoB,OAAO,EAAzB,8DAAyB,CAAC;QAC9D,IAAI,iBAAiB,GAAG,KAAK,CAAC;QAC9B,IAAI,GAA4B,CAAC;QACjC,IAAI,eAAuB,CAAC;QAC5B,IAAI,OAAO,GAA+B,SAAS,CAAC;QACpD,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;QAC9C,MAAM,WAAW,GAAG,EAAE,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;QAEzD,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE;YACnD,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC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,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAChD,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;YAEzC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,iBAAiB,GAAG,IAAI,CAAC;QACzB,IAAI,OAAO,EAAE;YACX,YAAY,CAAC,OAAO,CAAC,CAAC;SACvB;IACH,CAAC;CACF"} \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/artifact-utils.d.ts b/node_modules/@electron/get/dist/esm/artifact-utils.d.ts
deleted file mode 100644
index 3426f60..0000000
--- a/node_modules/@electron/get/dist/esm/artifact-utils.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { ElectronArtifactDetails } from './types';
-export declare function getArtifactFileName(details: ElectronArtifactDetails): string;
-export declare function getArtifactRemoteURL(details: ElectronArtifactDetails): Promise<string>;
diff --git a/node_modules/@electron/get/dist/esm/artifact-utils.js b/node_modules/@electron/get/dist/esm/artifact-utils.js
deleted file mode 100644
index d50380b..0000000
--- a/node_modules/@electron/get/dist/esm/artifact-utils.js
+++ /dev/null
@@ -1,52 +0,0 @@
-import { ensureIsTruthyString } from './utils';
-const BASE_URL = 'https://github.com/electron/electron/releases/download/';
-const NIGHTLY_BASE_URL = 'https://github.com/electron/nightlies/releases/download/';
-export function getArtifactFileName(details) {
- ensureIsTruthyString(details, 'artifactName');
- if (details.isGeneric) {
- return details.artifactName;
- }
- ensureIsTruthyString(details, 'arch');
- ensureIsTruthyString(details, 'platform');
- ensureIsTruthyString(details, 'version');
- return `${[
- details.artifactName,
- details.version,
- details.platform,
- details.arch,
- ...(details.artifactSuffix ? [details.artifactSuffix] : []),
- ].join('-')}.zip`;
-}
-function mirrorVar(name, options, defaultValue) {
- // Convert camelCase to camel_case for env var reading
- const lowerName = name.replace(/([a-z])([A-Z])/g, (_, a, b) => `${a}_${b}`).toLowerCase();
- return (process.env[`NPM_CONFIG_ELECTRON_${lowerName.toUpperCase()}`] ||
- process.env[`npm_config_electron_${lowerName}`] ||
- process.env[`npm_package_config_electron_${lowerName}`] ||
- process.env[`ELECTRON_${lowerName.toUpperCase()}`] ||
- options[name] ||
- defaultValue);
-}
-export async function getArtifactRemoteURL(details) {
- const opts = details.mirrorOptions || {};
- let base = mirrorVar('mirror', opts, BASE_URL);
- if (details.version.includes('nightly')) {
- const nightlyDeprecated = mirrorVar('nightly_mirror', opts, '');
- if (nightlyDeprecated) {
- base = nightlyDeprecated;
- console.warn(`nightly_mirror is deprecated, please use nightlyMirror`);
- }
- else {
- base = mirrorVar('nightlyMirror', opts, NIGHTLY_BASE_URL);
- }
- }
- const path = mirrorVar('customDir', opts, details.version).replace('{{ version }}', details.version.replace(/^v/, ''));
- const file = mirrorVar('customFilename', opts, getArtifactFileName(details));
- // Allow customized download URL resolution.
- if (opts.resolveAssetURL) {
- const url = await opts.resolveAssetURL(details);
- return url;
- }
- return `${base}${path}/${file}`;
-}
-//# sourceMappingURL=artifact-utils.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/artifact-utils.js.map b/node_modules/@electron/get/dist/esm/artifact-utils.js.map
deleted file mode 100644
index ba9cd1b..0000000
--- a/node_modules/@electron/get/dist/esm/artifact-utils.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"artifact-utils.js","sourceRoot":"","sources":["../../src/artifact-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,QAAQ,GAAG,yDAAyD,CAAC;AAC3E,MAAM,gBAAgB,GAAG,0DAA0D,CAAC;AAEpF,MAAM,UAAU,mBAAmB,CAAC,OAAgC;IAClE,oBAAoB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IAE9C,IAAI,OAAO,CAAC,SAAS,EAAE;QACrB,OAAO,OAAO,CAAC,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C,CAAC;IAC/C,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACvC,MAAM,iBAAiB,GAAG,SAAS,CAAC,gBAAgB,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAChE,IAAI,iBAAiB,EAAE;YACrB,IAAI,GAAG,iBAAiB,CAAC;YACzB,OAAO,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;SACxE;aAAM;YACL,IAAI,GAAG,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC;SAC3D;KACF;IACD,MAAM,IAAI,GAAG,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAChE,eAAe,EACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAClC,CAAC;IACF,MAAM,IAAI,GAAG,SAAS,CAAC,gBAAgB,EAAE,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;IAE7E,4CAA4C;IAC5C,IAAI,IAAI,CAAC,eAAe,EAAE;QACxB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAChD,OAAO,GAAG,CAAC;KACZ;IAED,OAAO,GAAG,IAAI,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC;AAClC,CAAC"} \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/downloader-resolver.d.ts b/node_modules/@electron/get/dist/esm/downloader-resolver.d.ts
deleted file mode 100644
index d18a6b3..0000000
--- a/node_modules/@electron/get/dist/esm/downloader-resolver.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { Downloader } from './Downloader';
-export declare function getDownloaderForSystem(): Promise<Downloader<any>>;
diff --git a/node_modules/@electron/get/dist/esm/downloader-resolver.js b/node_modules/@electron/get/dist/esm/downloader-resolver.js
deleted file mode 100644
index 5a87c3c..0000000
--- a/node_modules/@electron/get/dist/esm/downloader-resolver.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export 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 import('./GotDownloader');
- return new GotDownloader();
-}
-//# sourceMappingURL=downloader-resolver.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/downloader-resolver.js.map b/node_modules/@electron/get/dist/esm/downloader-resolver.js.map
deleted file mode 100644
index 93a07e5..0000000
--- a/node_modules/@electron/get/dist/esm/downloader-resolver.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"downloader-resolver.js","sourceRoot":"","sources":["../../src/downloader-resolver.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,UAAU,sBAAsB;IAC1C,2DAA2D;IAC3D,+DAA+D;IAC/D,yEAAyE;IACzE,mDAAmD;IACnD,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1D,OAAO,IAAI,aAAa,EAAE,CAAC;AAC7B,CAAC"} \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/index.d.ts b/node_modules/@electron/get/dist/esm/index.d.ts
deleted file mode 100644
index c203ff5..0000000
--- a/node_modules/@electron/get/dist/esm/index.d.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { ElectronDownloadRequestOptions, ElectronPlatformArtifactDetailsWithDefaults } from './types';
-export { getHostArch } from './utils';
-export { initializeProxy } from './proxy';
-export * from './types';
-/**
- * Downloads a specific version of Electron and returns an absolute path to a
- * ZIP file.
- *
- * @param version - The version of Electron you want to download
- */
-export declare function download(version: string, options?: ElectronDownloadRequestOptions): Promise<string>;
-/**
- * Downloads an artifact from an Electron release and returns an absolute path
- * to the downloaded file.
- *
- * @param artifactDetails - The information required to download the artifact
- */
-export declare function downloadArtifact(_artifactDetails: ElectronPlatformArtifactDetailsWithDefaults): Promise<string>;
diff --git a/node_modules/@electron/get/dist/esm/index.js b/node_modules/@electron/get/dist/esm/index.js
deleted file mode 100644
index 9e16ffc..0000000
--- a/node_modules/@electron/get/dist/esm/index.js
+++ /dev/null
@@ -1,93 +0,0 @@
-import debug from 'debug';
-import * as path from 'path';
-import * as sumchecker from 'sumchecker';
-import { getArtifactFileName, getArtifactRemoteURL } from './artifact-utils';
-import { Cache } from './Cache';
-import { getDownloaderForSystem } from './downloader-resolver';
-import { initializeProxy } from './proxy';
-import { withTempDirectoryIn, normalizeVersion, getHostArch, getNodeArch, ensureIsTruthyString, isOfficialLinuxIA32Download, } from './utils';
-export { getHostArch } from './utils';
-export { initializeProxy } from './proxy';
-const d = debug('@electron/get:index');
-if (process.env.ELECTRON_GET_USE_PROXY) {
- initializeProxy();
-}
-/**
- * Downloads a specific version of Electron and returns an absolute path to a
- * ZIP file.
- *
- * @param version - The version of Electron you want to download
- */
-export function download(version, options) {
- return downloadArtifact(Object.assign(Object.assign({}, options), { version, platform: process.platform, arch: process.arch, artifactName: 'electron' }));
-}
-/**
- * Downloads an artifact from an Electron release and returns an absolute path
- * to the downloaded file.
- *
- * @param artifactDetails - The information required to download the artifact
- */
-export async function downloadArtifact(_artifactDetails) {
- const artifactDetails = Object.assign({}, _artifactDetails);
- if (!_artifactDetails.isGeneric) {
- const platformArtifactDetails = artifactDetails;
- if (!platformArtifactDetails.platform) {
- d('No platform found, defaulting to the host platform');
- platformArtifactDetails.platform = process.platform;
- }
- if (platformArtifactDetails.arch) {
- platformArtifactDetails.arch = getNodeArch(platformArtifactDetails.arch);
- }
- else {
- d('No arch found, defaulting to the host arch');
- platformArtifactDetails.arch = getHostArch();
- }
- }
- ensureIsTruthyString(artifactDetails, 'version');
- artifactDetails.version = normalizeVersion(process.env.ELECTRON_CUSTOM_VERSION || artifactDetails.version);
- const fileName = getArtifactFileName(artifactDetails);
- const url = await getArtifactRemoteURL(artifactDetails);
- const cache = new Cache(artifactDetails.cacheRoot);
- // Do not check if the file exists in the cache when force === true
- if (!artifactDetails.force) {
- d(`Checking the cache (${artifactDetails.cacheRoot}) for ${fileName} (${url})`);
- const cachedPath = await cache.getPathForFileInCache(url, fileName);
- if (cachedPath === null) {
- d('Cache miss');
- }
- else {
- d('Cache hit');
- return cachedPath;
- }
- }
- if (!artifactDetails.isGeneric &&
- isOfficialLinuxIA32Download(artifactDetails.platform, artifactDetails.arch, artifactDetails.version, artifactDetails.mirrorOptions)) {
- console.warn('Official Linux/ia32 support is deprecated.');
- console.warn('For more info: https://electronjs.org/blog/linux-32bit-support');
- }
- return await withTempDirectoryIn(artifactDetails.tempDirectory, async (tempFolder) => {
- const tempDownloadPath = path.resolve(tempFolder, getArtifactFileName(artifactDetails));
- const downloader = artifactDetails.downloader || (await getDownloaderForSystem());
- d(`Downloading ${url} to ${tempDownloadPath} with options: ${JSON.stringify(artifactDetails.downloadOptions)}`);
- await downloader.download(url, tempDownloadPath, artifactDetails.downloadOptions);
- // Don't try to verify the hash of the hash file itself
- if (!artifactDetails.artifactName.startsWith('SHASUMS256') &&
- !artifactDetails.unsafelyDisableChecksums) {
- const shasumPath = await downloadArtifact({
- isGeneric: true,
- version: artifactDetails.version,
- artifactName: 'SHASUMS256.txt',
- force: artifactDetails.force,
- downloadOptions: artifactDetails.downloadOptions,
- cacheRoot: artifactDetails.cacheRoot,
- downloader: artifactDetails.downloader,
- mirrorOptions: artifactDetails.mirrorOptions,
- });
- await sumchecker('sha256', shasumPath, path.dirname(tempDownloadPath), [
- path.basename(tempDownloadPath),
- ]);
- }
- return await cache.putFileInCache(url, tempDownloadPath, fileName);
- });
-}
-//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/index.js.map b/node_modules/@electron/get/dist/esm/index.js.map
deleted file mode 100644
index ed116b6..0000000
--- a/node_modules/@electron/get/dist/esm/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","source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AAG,EAAE,gBAAgB,EAAE,QAAQ,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/proxy.d.ts b/node_modules/@electron/get/dist/esm/proxy.d.ts
deleted file mode 100644
index df3e16a..0000000
--- a/node_modules/@electron/get/dist/esm/proxy.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * Initializes a third-party proxy module for HTTP(S) requests.
- */
-export declare function initializeProxy(): void;
diff --git a/node_modules/@electron/get/dist/esm/proxy.js b/node_modules/@electron/get/dist/esm/proxy.js
deleted file mode 100644
index e597be0..0000000
--- a/node_modules/@electron/get/dist/esm/proxy.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import * as debug from 'debug';
-const d = debug('@electron/get:proxy');
-/**
- * Initializes a third-party proxy module for HTTP(S) requests.
- */
-export function initializeProxy() {
- try {
- // Code originally from https://github.com/yeoman/yo/blob/b2eea87e/lib/cli.js#L19-L28
- const MAJOR_NODEJS_VERSION = parseInt(process.version.slice(1).split('.')[0], 10);
- if (MAJOR_NODEJS_VERSION >= 10) {
- // `global-agent` works with Node.js v10 and above.
- require('global-agent').bootstrap();
- }
- else {
- // `global-tunnel-ng` works with Node.js v10 and below.
- require('global-tunnel-ng').initialize();
- }
- }
- catch (e) {
- d('Could not load either proxy modules, built-in proxy support not available:', e);
- }
-}
-//# sourceMappingURL=proxy.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/proxy.js.map b/node_modules/@electron/get/dist/esm/proxy.js.map
deleted file mode 100644
index f7b78d7..0000000
--- a/node_modules/@electron/get/dist/esm/proxy.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../src/proxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,CAAC,GAAG,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAEvC;;GAEG;AACH,MAAM,UAAU,eAAe;IAC7B,IAAI;QACF,qFAAqF;QACrF,MAAM,oBAAoB,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAElF,IAAI,oBAAoB,IAAI,EAAE,EAAE;YAC9B,mDAAmD;YACnD,OAAO,CAAC,cAAc,CAAC,CAAC,SAAS,EAAE,CAAC;SACrC;aAAM;YACL,uDAAuD;YACvD,OAAO,CAAC,kBAAkB,CAAC,CAAC,UAAU,EAAE,CAAC;SAC1C;KACF;IAAC,OAAO,CAAC,EAAE;QACV,CAAC,CAAC,4EAA4E,EAAE,CAAC,CAAC,CAAC;KACpF;AACH,CAAC"} \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/types.d.ts b/node_modules/@electron/get/dist/esm/types.d.ts
deleted file mode 100644
index 3f53c85..0000000
--- a/node_modules/@electron/get/dist/esm/types.d.ts
+++ /dev/null
@@ -1,114 +0,0 @@
-import { Downloader } from './Downloader';
-export interface MirrorOptions {
- /**
- * DEPRECATED - see nightlyMirror.
- */
- nightly_mirror?: string;
- /**
- * The Electron nightly-specific mirror URL.
- */
- nightlyMirror?: string;
- /**
- * The base URL of the mirror to download from,
- * e.g https://github.com/electron/electron/releases/download
- */
- mirror?: string;
- /**
- * The name of the directory to download from,
- * often scoped by version number e.g 'v4.0.4'
- */
- customDir?: string;
- /**
- * The name of the asset to download,
- * e.g 'electron-v4.0.4-linux-x64.zip'
- */
- customFilename?: string;
- /**
- * A function allowing customization of the url returned
- * from getArtifactRemoteURL().
- */
- resolveAssetURL?: (opts: DownloadOptions) => Promise<string>;
-}
-export interface ElectronDownloadRequest {
- /**
- * The version of Electron associated with the artifact.
- */
- version: string;
- /**
- * The type of artifact. For example:
- * * `electron`
- * * `ffmpeg`
- */
- artifactName: string;
-}
-export interface ElectronDownloadRequestOptions {
- /**
- * Whether to download an artifact regardless of whether it's in the cache directory.
- *
- * Defaults to `false`.
- */
- force?: boolean;
- /**
- * When set to `true`, disables checking that the artifact download completed successfully
- * with the correct payload.
- *
- * Defaults to `false`.
- */
- unsafelyDisableChecksums?: boolean;
- /**
- * The directory that caches Electron artifact downloads.
- *
- * The default value is dependent upon the host platform:
- *
- * * Linux: `$XDG_CACHE_HOME` or `~/.cache/electron/`
- * * MacOS: `~/Library/Caches/electron/`
- * * Windows: `%LOCALAPPDATA%/electron/Cache` or `~/AppData/Local/electron/Cache/`
- */
- cacheRoot?: string;
- /**
- * Options passed to the downloader module.
- */
- downloadOptions?: DownloadOptions;
- /**
- * Options related to specifying an artifact mirror.
- */
- mirrorOptions?: MirrorOptions;
- /**
- * The custom [[Downloader]] class used to download artifacts. Defaults to the
- * built-in [[GotDownloader]].
- */
- downloader?: Downloader<any>;
- /**
- * A temporary directory for downloads.
- * It is used before artifacts are put into cache.
- */
- tempDirectory?: string;
-}
-export declare type ElectronPlatformArtifactDetails = {
- /**
- * The target artifact platform. These are Node-style platform names, for example:
- * * `win32`
- * * `darwin`
- * * `linux`
- */
- platform: string;
- /**
- * The target artifact architecture. These are Node-style architecture names, for example:
- * * `ia32`
- * * `x64`
- * * `armv7l`
- */
- arch: string;
- artifactSuffix?: string;
- isGeneric?: false;
-} & ElectronDownloadRequest & ElectronDownloadRequestOptions;
-export declare type ElectronGenericArtifactDetails = {
- isGeneric: true;
-} & ElectronDownloadRequest & ElectronDownloadRequestOptions;
-export declare type ElectronArtifactDetails = ElectronPlatformArtifactDetails | ElectronGenericArtifactDetails;
-export declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
-export declare type ElectronPlatformArtifactDetailsWithDefaults = (Omit<ElectronPlatformArtifactDetails, 'platform' | 'arch'> & {
- platform?: string;
- arch?: string;
-}) | ElectronGenericArtifactDetails;
-export declare type DownloadOptions = any;
diff --git a/node_modules/@electron/get/dist/esm/types.js b/node_modules/@electron/get/dist/esm/types.js
deleted file mode 100644
index 5b2306a..0000000
--- a/node_modules/@electron/get/dist/esm/types.js
+++ /dev/null
@@ -1 +0,0 @@
-//# sourceMappingURL=types.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/types.js.map b/node_modules/@electron/get/dist/esm/types.js.map
deleted file mode 100644
index 7b5fff8..0000000
--- a/node_modules/@electron/get/dist/esm/types.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""} \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/utils.d.ts b/node_modules/@electron/get/dist/esm/utils.d.ts
deleted file mode 100644
index 6bc848a..0000000
--- a/node_modules/@electron/get/dist/esm/utils.d.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-export declare function withTempDirectoryIn<T>(parentDirectory: string | undefined, fn: (directory: string) => Promise<T>): Promise<T>;
-export declare function withTempDirectory<T>(fn: (directory: string) => Promise<T>): Promise<T>;
-export declare function normalizeVersion(version: string): string;
-/**
- * Runs the `uname` command and returns the trimmed output.
- */
-export declare function uname(): string;
-/**
- * Generates an architecture name that would be used in an Electron or Node.js
- * download file name, from the `process` module information.
- */
-export declare function getHostArch(): string;
-/**
- * Generates an architecture name that would be used in an Electron or Node.js
- * download file name.
- */
-export declare function getNodeArch(arch: string): string;
-export declare function ensureIsTruthyString<T, K extends keyof T>(obj: T, key: K): void;
-export declare function isOfficialLinuxIA32Download(platform: string, arch: string, version: string, mirrorOptions?: object): boolean;
diff --git a/node_modules/@electron/get/dist/esm/utils.js b/node_modules/@electron/get/dist/esm/utils.js
deleted file mode 100644
index 2ffe007..0000000
--- a/node_modules/@electron/get/dist/esm/utils.js
+++ /dev/null
@@ -1,72 +0,0 @@
-import * as childProcess from 'child_process';
-import * as fs from 'fs-extra';
-import * as os from 'os';
-import * as path from 'path';
-async function useAndRemoveDirectory(directory, fn) {
- let result;
- try {
- result = await fn(directory);
- }
- finally {
- await fs.remove(directory);
- }
- return result;
-}
-export async function withTempDirectoryIn(parentDirectory = os.tmpdir(), fn) {
- const tempDirectoryPrefix = 'electron-download-';
- const tempDirectory = await fs.mkdtemp(path.resolve(parentDirectory, tempDirectoryPrefix));
- return useAndRemoveDirectory(tempDirectory, fn);
-}
-export async function withTempDirectory(fn) {
- return withTempDirectoryIn(undefined, fn);
-}
-export function normalizeVersion(version) {
- if (!version.startsWith('v')) {
- return `v${version}`;
- }
- return version;
-}
-/**
- * Runs the `uname` command and returns the trimmed output.
- */
-export function uname() {
- return childProcess
- .execSync('uname -m')
- .toString()
- .trim();
-}
-/**
- * Generates an architecture name that would be used in an Electron or Node.js
- * download file name, from the `process` module information.
- */
-export function getHostArch() {
- return getNodeArch(process.arch);
-}
-/**
- * Generates an architecture name that would be used in an Electron or Node.js
- * download file name.
- */
-export function getNodeArch(arch) {
- if (arch === 'arm') {
- switch (process.config.variables.arm_version) {
- case '6':
- return uname();
- case '7':
- default:
- return 'armv7l';
- }
- }
- return arch;
-}
-export function ensureIsTruthyString(obj, key) {
- if (!obj[key] || typeof obj[key] !== 'string') {
- throw new Error(`Expected property "${key}" to be provided as a string but it was not`);
- }
-}
-export function isOfficialLinuxIA32Download(platform, arch, version, mirrorOptions) {
- return (platform === 'linux' &&
- arch === 'ia32' &&
- Number(version.slice(1).split('.')[0]) >= 4 &&
- typeof mirrorOptions === 'undefined');
-}
-//# sourceMappingURL=utils.js.map \ No newline at end of file
diff --git a/node_modules/@electron/get/dist/esm/utils.js.map b/node_modules/@electron/get/dist/esm/utils.js.map
deleted file mode 100644
index 7aa3591..0000000
--- a/node_modules/@electron/get/dist/esm/utils.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;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