From fa069e61e0165dfbed13fa3a8b3b058a6679e958 Mon Sep 17 00:00:00 2001 From: Karan Janthe <86996507+KMJ-007@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:14:01 +0530 Subject: [PATCH] fix: fetch is not defined --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d79b5a1..fde180c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ import { readFileSync } from "fs"; +import fetch, { Response } from 'node-fetch'; import { Err, ErrResult, Ok, OkResult, Result } from "./result"; export default class Client { @@ -269,4 +270,4 @@ function getDbUrl(): string { } return dbUrl; -} +} \ No newline at end of file