Remove node-fetch

This commit is contained in:
Samuel Elliott
2023-07-13 00:00:04 +01:00
parent 0457746e5e
commit d147c2a5e8
4 changed files with 1 additions and 135 deletions

View File

@@ -1,5 +1,4 @@
import * as util from 'node:util';
import { Response as NodeFetchResponse } from 'node-fetch';
import { Response as UndiciResponse } from 'undici';
export const ResponseSymbol = Symbol('Response');
@@ -21,7 +20,7 @@ export class ErrorResponse<T = unknown> extends Error {
constructor(
message: string,
readonly response: Response | NodeFetchResponse | UndiciResponse,
readonly response: Response | UndiciResponse,
body?: string | ArrayBuffer | T
) {
super(message);