UNPKG

1.38 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.ElectronDownloadCacheMode = exports.GotDownloader = void 0;
4const GotDownloader_1 = require("./GotDownloader");
5Object.defineProperty(exports, "GotDownloader", { enumerable: true, get: function () { return GotDownloader_1.GotDownloader; } });
6var ElectronDownloadCacheMode;
7(function (ElectronDownloadCacheMode) {
8 /**
9 * Reads from the cache if present
10 * Writes to the cache after fetch if not present
11 */
12 ElectronDownloadCacheMode[ElectronDownloadCacheMode["ReadWrite"] = 0] = "ReadWrite";
13 /**
14 * Reads from the cache if present
15 * Will **not** write back to the cache after fetching missing artifact
16 */
17 ElectronDownloadCacheMode[ElectronDownloadCacheMode["ReadOnly"] = 1] = "ReadOnly";
18 /**
19 * Skips reading from the cache
20 * Will write back into the cache, overwriting anything currently in the cache after fetch
21 */
22 ElectronDownloadCacheMode[ElectronDownloadCacheMode["WriteOnly"] = 2] = "WriteOnly";
23 /**
24 * Bypasses the cache completely, neither reads from nor writes to the cache
25 */
26 ElectronDownloadCacheMode[ElectronDownloadCacheMode["Bypass"] = 3] = "Bypass";
27})(ElectronDownloadCacheMode = exports.ElectronDownloadCacheMode || (exports.ElectronDownloadCacheMode = {}));
28//# sourceMappingURL=types.js.map
\No newline at end of file