Remove unused polyfills

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-09-30 17:13:53 +02:00
parent df49db3ded
commit d86eb2ee28
3 changed files with 0 additions and 21 deletions
-7
View File
@@ -1,7 +0,0 @@
// A simple mock for some HTMLCanvasElement functions to run in a node env.
HTMLCanvasElement.prototype.getContext = () => ({
fillRect: () => null,
});
HTMLCanvasElement.prototype.toDataURL = () => null;
-5
View File
@@ -1,5 +0,0 @@
// This shim is used as a stand-in for the node "events" library, used by
// the "keccack" package depended on by @gnosis.pm/safe-core-sdk.
import events from "events";
export default events;
-9
View File
@@ -1,9 +0,0 @@
/* eslint-disable no-undef */
import fetch from "node-fetch";
if (!globalThis.fetch) {
globalThis.fetch = fetch;
globalThis.Headers = fetch.Headers;
globalThis.Request = fetch.Request;
globalThis.Response = fetch.Response;
}