forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
35
electron/node_modules/electron-updater/out/providers/Provider.d.ts
generated
vendored
Normal file
35
electron/node_modules/electron-updater/out/providers/Provider.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/// <reference types="node" />
|
||||
import { CancellationToken, UpdateFileInfo, UpdateInfo } from "builder-util-runtime";
|
||||
import { OutgoingHttpHeaders, RequestOptions } from "http";
|
||||
import { URL } from "url";
|
||||
import { ElectronHttpExecutor } from "../electronHttpExecutor";
|
||||
import { ResolvedUpdateFileInfo } from "../main";
|
||||
export declare type ProviderPlatform = "darwin" | "linux" | "win32";
|
||||
export interface ProviderRuntimeOptions {
|
||||
isUseMultipleRangeRequest: boolean;
|
||||
platform: ProviderPlatform;
|
||||
executor: ElectronHttpExecutor;
|
||||
}
|
||||
export declare abstract class Provider<T extends UpdateInfo> {
|
||||
private readonly runtimeOptions;
|
||||
private requestHeaders;
|
||||
protected readonly executor: ElectronHttpExecutor;
|
||||
protected constructor(runtimeOptions: ProviderRuntimeOptions);
|
||||
get isUseMultipleRangeRequest(): boolean;
|
||||
private getChannelFilePrefix;
|
||||
protected getDefaultChannelName(): string;
|
||||
protected getCustomChannelName(channel: string): string;
|
||||
get fileExtraDownloadHeaders(): OutgoingHttpHeaders | null;
|
||||
setRequestHeaders(value: OutgoingHttpHeaders | null): void;
|
||||
abstract getLatestVersion(): Promise<T>;
|
||||
abstract resolveFiles(updateInfo: T): Array<ResolvedUpdateFileInfo>;
|
||||
/**
|
||||
* Method to perform API request only to resolve update info, but not to download update.
|
||||
*/
|
||||
protected httpRequest(url: URL, headers?: OutgoingHttpHeaders | null, cancellationToken?: CancellationToken): Promise<string | null>;
|
||||
protected createRequestOptions(url: URL, headers?: OutgoingHttpHeaders | null): RequestOptions;
|
||||
}
|
||||
export declare function findFile(files: Array<ResolvedUpdateFileInfo>, extension: string, not?: Array<string>): ResolvedUpdateFileInfo | null | undefined;
|
||||
export declare function parseUpdateInfo(rawData: string | null, channelFile: string, channelFileUrl: URL): UpdateInfo;
|
||||
export declare function getFileList(updateInfo: UpdateInfo): Array<UpdateFileInfo>;
|
||||
export declare function resolveFiles(updateInfo: UpdateInfo, baseUrl: URL, pathTransformer?: (p: string) => string): Array<ResolvedUpdateFileInfo>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue