update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
20
electron/node_modules/builder-util-runtime/out/httpExecutor.d.ts
generated
vendored
20
electron/node_modules/builder-util-runtime/out/httpExecutor.d.ts
generated
vendored
|
|
@ -1,12 +1,22 @@
|
|||
/// <reference types="node" />
|
||||
import { BinaryToTextEncoding } from "crypto";
|
||||
import { IncomingMessage, OutgoingHttpHeaders, RequestOptions } from "http";
|
||||
import { IncomingMessage, OutgoingHttpHeader, OutgoingHttpHeaders, RequestOptions } from "http";
|
||||
import { Transform } from "stream";
|
||||
import { URL } from "url";
|
||||
import { CancellationToken } from "./CancellationToken";
|
||||
import { ProgressInfo } from "./ProgressCallbackTransform";
|
||||
/**
|
||||
* Register an additional HTTP header to strip on cross-origin redirects.
|
||||
* Intended for custom publishers (e.g. GenericPublisher with a non-standard auth header).
|
||||
*/
|
||||
export declare function addSensitiveRedirectHeader(header: string): void;
|
||||
/**
|
||||
* Register an additional substring pattern used by {@link safeStringifyJson} to
|
||||
* identify sensitive field names. Input is normalized (lowercased, separators stripped).
|
||||
* Intended for custom publishers that store credentials under non-standard field names.
|
||||
*/
|
||||
export declare function addSensitiveFieldPattern(pattern: string): void;
|
||||
export interface RequestHeaders extends OutgoingHttpHeaders {
|
||||
[key: string]: string;
|
||||
[key: string]: OutgoingHttpHeader | undefined;
|
||||
}
|
||||
export interface DownloadOptions {
|
||||
readonly headers?: OutgoingHttpHeaders | null;
|
||||
|
|
@ -42,6 +52,8 @@ export declare abstract class HttpExecutor<T extends Request> {
|
|||
protected createMaxRedirectError(): Error;
|
||||
private addTimeOutHandler;
|
||||
static prepareRedirectUrlOptions(redirectUrl: string, options: RequestOptions): RequestOptions;
|
||||
private static reconstructOriginalUrl;
|
||||
private static isCrossOriginRedirect;
|
||||
static retryOnServerError(task: () => Promise<any>, maxRetries?: number): Promise<any>;
|
||||
}
|
||||
export interface DownloadCallOptions {
|
||||
|
|
@ -68,5 +80,7 @@ export declare class DigestTransform extends Transform {
|
|||
}
|
||||
export declare function safeGetHeader(response: any, headerKey: string): any;
|
||||
export declare function configureRequestOptions(options: RequestOptions, token?: string | null, method?: "GET" | "DELETE" | "PUT" | "POST"): RequestOptions;
|
||||
export declare function isSensitiveFieldName(name: string): boolean;
|
||||
export declare function hashSensitiveValue(value: string): string;
|
||||
export declare function safeStringifyJson(data: any, skippedNames?: Set<string>): string;
|
||||
export {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue