builder-util-runtime
Advanced tools
Comparing version 3.1.0 to 3.2.0
/// <reference types="node" /> | ||
import { EventEmitter } from "events"; | ||
import { OutgoingHttpHeaders, RequestOptions } from "http"; | ||
import { IncomingMessage, OutgoingHttpHeaders, RequestOptions } from "http"; | ||
import { Transform } from "stream"; | ||
@@ -10,8 +9,2 @@ import { CancellationToken } from "./CancellationToken"; | ||
} | ||
export interface Response extends EventEmitter { | ||
statusCode?: number; | ||
statusMessage?: string; | ||
headers: any; | ||
setEncoding(encoding: string): void; | ||
} | ||
export interface DownloadOptions { | ||
@@ -26,17 +19,5 @@ readonly headers?: OutgoingHttpHeaders | null; | ||
export declare class HttpError extends Error { | ||
readonly response: { | ||
statusMessage?: string | undefined; | ||
statusCode?: number | undefined; | ||
headers?: { | ||
[key: string]: Array<string>; | ||
} | undefined; | ||
}; | ||
readonly response: IncomingMessage; | ||
description: any | null; | ||
constructor(response: { | ||
statusMessage?: string | undefined; | ||
statusCode?: number | undefined; | ||
headers?: { | ||
[key: string]: Array<string>; | ||
} | undefined; | ||
}, description?: any | null); | ||
constructor(response: IncomingMessage, description?: any | null); | ||
} | ||
@@ -51,3 +32,3 @@ export declare function parseJson(result: Promise<string | null>): Promise<any>; | ||
addErrorAndTimeoutHandlers(request: any, reject: (error: Error) => void): void; | ||
protected handleResponse(response: Response, options: RequestOptions, cancellationToken: CancellationToken, resolve: (data?: any) => void, reject: (error: Error) => void, redirectCount: number, requestProcessor: (request: REQUEST, reject: (error: Error) => void) => void): void; | ||
protected handleResponse(response: IncomingMessage, options: RequestOptions, cancellationToken: CancellationToken, resolve: (data?: any) => void, reject: (error: Error) => void, redirectCount: number, requestProcessor: (request: REQUEST, reject: (error: Error) => void) => void): void; | ||
abstract doRequest(options: any, callback: (response: any) => void): any; | ||
@@ -67,3 +48,3 @@ protected doDownload(requestOptions: any, destination: string, redirectCount: number, options: DownloadOptions, callback: (error: Error | null) => void, onCancel: (callback: () => void) => void): void; | ||
constructor(expected: string, algorithm?: string, encoding?: "hex" | "base64" | "latin1"); | ||
_transform(chunk: any, encoding: string, callback: any): void; | ||
_transform(chunk: Buffer, encoding: string, callback: any): void; | ||
_flush(callback: any): void; | ||
@@ -70,0 +51,0 @@ validate(): null; |
{ | ||
"name": "builder-util-runtime", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"main": "out/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144709
1641