|
1 | 1 | import process from 'node:process'; |
2 | 2 | import type {Buffer} from 'node:buffer'; |
3 | | -import {promisify, inspect} from 'node:util'; |
4 | | -import {checkServerIdentity} from 'node:tls'; |
| 3 | +import {promisify, inspect, type InspectOptions} from 'node:util'; |
| 4 | +import {checkServerIdentity, type SecureContextOptions, type DetailedPeerCertificate} from 'node:tls'; |
5 | 5 | // DO NOT use destructuring for `https.request` and `http.request` as it's not compatible with `nock`. |
6 | | -import http from 'node:http'; |
7 | | -import https from 'node:https'; |
| 6 | +import https, { |
| 7 | + type RequestOptions as HttpsRequestOptions, |
| 8 | + type Agent as HttpsAgent, |
| 9 | +} from 'node:https'; |
| 10 | +import http, { |
| 11 | + type Agent as HttpAgent, |
| 12 | + type ClientRequest, |
| 13 | +} from 'node:http'; |
8 | 14 | import type {Readable} from 'node:stream'; |
9 | 15 | import type {Socket} from 'node:net'; |
10 | | -import type {SecureContextOptions, DetailedPeerCertificate} from 'node:tls'; |
11 | | -import type { |
12 | | - Agent as HttpAgent, |
13 | | - ClientRequest, |
14 | | -} from 'node:http'; |
15 | | -import type { |
16 | | - RequestOptions as HttpsRequestOptions, |
17 | | - Agent as HttpsAgent, |
18 | | -} from 'node:https'; |
19 | | -import type {InspectOptions} from 'node:util'; |
20 | 16 | import is, {assert} from '@sindresorhus/is'; |
21 | 17 | import lowercaseKeys from 'lowercase-keys'; |
22 | 18 | import CacheableLookup from 'cacheable-lookup'; |
23 | 19 | import http2wrapper, {type ClientHttp2Session} from 'http2-wrapper'; |
24 | | -import {isFormData} from 'form-data-encoder'; |
25 | | -import type {FormDataLike} from 'form-data-encoder'; |
| 20 | +import {isFormData, type FormDataLike} from 'form-data-encoder'; |
26 | 21 | import type {StorageAdapter} from 'cacheable-request'; |
27 | 22 | import type ResponseLike from 'responselike'; |
28 | 23 | import type {IncomingMessageWithTimings} from '@szmarczak/http-timer'; |
|
0 commit comments