diff --git a/package.json b/package.json index f8bb4f4..a0f7e92 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "@interval/envoy": "^1.0.1", "@types/dedent": "^0.7.0", "@types/node": "^17.0.8", - "@types/node-fetch": "^2.0.0", "@types/uuid": "^8.3.4", "@types/ws": "^8.2.0", "nodemon": "^2.0.20", diff --git a/src/classes/IntervalClient.ts b/src/classes/IntervalClient.ts index 18bbeeb..b47958c 100644 --- a/src/classes/IntervalClient.ts +++ b/src/classes/IntervalClient.ts @@ -1,7 +1,7 @@ import { z, ZodError } from 'zod' import { v4 } from 'uuid' import { WebSocket } from 'ws' -import fetch from 'node-fetch' +import fetch from 'cross-fetch' import * as superjson from 'superjson' import { JSONValue } from 'superjson/dist/types' import ISocket, { TimeoutError } from './ISocket'