From 826ffbc7c4ed1c301f30e6f264eedeaf3c243ca8 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 12 Jun 2019 01:22:53 -0400 Subject: [PATCH] Move from node-fetch to cross-fetch; better browser fallback implementation. --- packages/web/src.ts/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web/src.ts/index.ts b/packages/web/src.ts/index.ts index e89858e652..215d743cf8 100644 --- a/packages/web/src.ts/index.ts +++ b/packages/web/src.ts/index.ts @@ -1,7 +1,6 @@ "use strict"; -import { default as _fetch, Response, RequestInfo, RequestInit } from "node-fetch"; -const fetch: (url: RequestInfo, options: RequestInit) => Promise = _fetch.bind(global); +import fetch from "cross-fetch"; import { encode as base64Encode } from "@ethersproject/base64"; import * as errors from "@ethersproject/errors";