From 60cc72a674d80434f744701b5883439db76041c1 Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Thu, 12 Jan 2023 14:32:21 -0600 Subject: [PATCH] Properly use cross-fetch instead of phantom node-fetch --- package.json | 1 - src/classes/IntervalClient.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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'