webpack-mkcert
Version:
Provide certificates for webpack https dev service
40 lines (39 loc) • 1.16 kB
TypeScript
export declare type SourceInfo = {
version: string;
downloadUrl: string;
};
export declare abstract class BaseSource {
abstract getSourceInfo(): Promise<SourceInfo | undefined>;
protected getPlatformIdentifier(): "windows-amd64.exe" | "linux-arm64" | "linux-arm" | "linux-amd64" | "darwin-amd64";
}
/**
* Download mkcert from github.com
*/
export declare class GithubSource extends BaseSource {
static create(): GithubSource;
private constructor();
getSourceInfo(): Promise<SourceInfo | undefined>;
}
/**
* Download mkcert from coding.net
*
* @see {https://help.coding.net/openapi}
*/
export declare class CodingSource extends BaseSource {
static CODING_API: string;
static CODING_AUTHORIZATION: string;
static CODING_PROJECT_ID: number;
static REPOSITORY: string;
static create(): CodingSource;
private constructor();
private request;
/**
* Get filename of Coding.net artifacts
*
* @see https://liuweigl.coding.net/p/github/artifacts/885241/generic/packages
*
* @returns name
*/
private getPackageName;
getSourceInfo(): Promise<SourceInfo | undefined>;
}