We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
get-stream
1 parent 469a455 commit 67d5039Copy full SHA for 67d5039
source/core/index.ts
@@ -14,7 +14,7 @@ import CacheableRequest, {
14
} from 'cacheable-request';
15
import decompressResponse from 'decompress-response';
16
import is from '@sindresorhus/is';
17
-import {buffer as getBuffer} from 'get-stream';
+import getStream from 'get-stream';
18
import {FormDataEncoder, isFormData as isFormDataLike} from 'form-data-encoder';
19
import type {ClientRequestWithTimings, Timings, IncomingMessageWithTimings} from '@szmarczak/http-timer';
20
import type ResponseLike from 'responselike';
@@ -54,6 +54,8 @@ export type Progress = {
54
total?: number;
55
};
56
57
+const {buffer: getBuffer} = getStream;
58
+
59
const supportsBrotli = is.string(process.versions.brotli);
60
61
const methodsWithoutBody: ReadonlySet<string> = new Set(['GET', 'HEAD']);
0 commit comments