Skip to content

Commit

Permalink
Fix get-stream import statement (#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored May 27, 2023
1 parent 469a455 commit 67d5039
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import CacheableRequest, {
} from 'cacheable-request';
import decompressResponse from 'decompress-response';
import is from '@sindresorhus/is';
import {buffer as getBuffer} from 'get-stream';
import getStream from 'get-stream';
import {FormDataEncoder, isFormData as isFormDataLike} from 'form-data-encoder';
import type {ClientRequestWithTimings, Timings, IncomingMessageWithTimings} from '@szmarczak/http-timer';
import type ResponseLike from 'responselike';
Expand Down Expand Up @@ -54,6 +54,8 @@ export type Progress = {
total?: number;
};

const {buffer: getBuffer} = getStream;

const supportsBrotli = is.string(process.versions.brotli);

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

0 comments on commit 67d5039

Please sign in to comment.