Fixed node-fetch for Safari (todo: push this fix upstream to node-fetch).

This commit is contained in:
Richard Moore 2019-06-11 23:40:28 -04:00
parent 62201c5eeb
commit 7164e51131
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

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