npm package diff
Package: @forge/bundler
Versions: 6.0.0-next.13 - 6.0.0-next.14
File: package/out/stubs/http-sandbox-impl.d.ts
Index: package/out/stubs/http-sandbox-impl.d.ts
===================================================================
--- package/out/stubs/http-sandbox-impl.d.ts
+++ package/out/stubs/http-sandbox-impl.d.ts
@@ -1,34 +0,0 @@
-/// <reference types="node" />
-/// <reference types="node" />
-/// <reference types="node" />
-import { IncomingMessage } from 'http';
-import { RequestOptions } from 'https';
-import { Writable } from 'readable-stream';
-import { URL } from 'url';
-import { FetchOptions } from '@forge/api';
-declare type HttpCallback = (res: IncomingMessage) => void;
-declare type HttpArg = RequestOptions | string | URL | HttpCallback;
-export declare const isHttpRequestOptions: (options: HttpArg) => options is RequestOptions;
-interface ChainableOptions {
- timeout?: number;
- headers: {
- [key: string]: string;
- };
-}
-export declare class Request extends Writable {
- private reqBody;
- private chainableOptions;
- constructor(options: RequestOptions | string | URL, callback?: HttpCallback);
- setHeader(name: string, value: string): Request;
- setTimeout(value: number, callback?: () => void): Request;
- private fetch;
- _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
- static urlFromFetchArgs(options: RequestOptions | string | URL): string;
- static convertToForgeFetchArgs(options: RequestOptions | string | URL, chainableOptions: ChainableOptions): {
- url: string;
- init: FetchOptions;
- };
- abort(): void;
-}
-export {};
-//# sourceMappingURL=http-sandbox-impl.d.ts.map
\ No newline at end of file