Fixed node-fetch for Safari (todo: push this fix upstream to node-fetch).
This commit is contained in:
parent
62201c5eeb
commit
7164e51131
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user