From 3b42340ac35c950046ee656b9e638ea73f875ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Og=C3=B3rek?= <kamil.ogorek@gmail.com> Date: Tue, 15 Jun 2021 13:10:12 +0200 Subject: [PATCH] ref: Remove default http(s) import from http-module (#3681) --- packages/node/src/transports/base/http-module.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node/src/transports/base/http-module.ts b/packages/node/src/transports/base/http-module.ts index e6921a4cb82e..0189d4971e4b 100644 --- a/packages/node/src/transports/base/http-module.ts +++ b/packages/node/src/transports/base/http-module.ts @@ -1,8 +1,8 @@ -import http, { IncomingHttpHeaders } from 'http'; -import https from 'https'; +import { IncomingHttpHeaders, RequestOptions as HTTPRequestOptions } from 'http'; +import { RequestOptions as HTTPSRequestOptions } from 'https'; import { URL } from 'url'; -export type HTTPModuleRequestOptions = http.RequestOptions | https.RequestOptions | string | URL; +export type HTTPModuleRequestOptions = HTTPRequestOptions | HTTPSRequestOptions | string | URL; /** * Cut version of http.IncomingMessage.