Move from node-fetch to cross-fetch; better browser fallback implementation.

This commit is contained in:
Richard Moore 2019-06-12 01:22:53 -04:00
parent de93409d21
commit 826ffbc7c4
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
"use strict";
import { default as _fetch, Response, RequestInfo, RequestInit } from "node-fetch";
const fetch: (url: RequestInfo, options: RequestInit) => Promise<Response> = _fetch.bind(global);
import fetch from "cross-fetch";
import { encode as base64Encode } from "@ethersproject/base64";
import * as errors from "@ethersproject/errors";