Skip to content

Commit 67d5039

Browse files
authored
Fix get-stream import statement (#2266)
1 parent 469a455 commit 67d5039

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/core/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import CacheableRequest, {
1414
} from 'cacheable-request';
1515
import decompressResponse from 'decompress-response';
1616
import is from '@sindresorhus/is';
17-
import {buffer as getBuffer} from 'get-stream';
17+
import getStream from 'get-stream';
1818
import {FormDataEncoder, isFormData as isFormDataLike} from 'form-data-encoder';
1919
import type {ClientRequestWithTimings, Timings, IncomingMessageWithTimings} from '@szmarczak/http-timer';
2020
import type ResponseLike from 'responselike';
@@ -54,6 +54,8 @@ export type Progress = {
5454
total?: number;
5555
};
5656

57+
const {buffer: getBuffer} = getStream;
58+
5759
const supportsBrotli = is.string(process.versions.brotli);
5860

5961
const methodsWithoutBody: ReadonlySet<string> = new Set(['GET', 'HEAD']);

0 commit comments

Comments
 (0)