mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-10-25 11:06:45 -05:00
Remove node-fetch
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user