From ecf5b9768db513175000218141a1f9739cdd36a3 Mon Sep 17 00:00:00 2001 From: Haydn Ewers <27211+haydn@users.noreply.github.com> Date: Wed, 1 Sep 2021 22:32:43 +1000 Subject: [PATCH] Add EventTarget shim Fixes #11 --- index.ts | 1 + package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/index.ts b/index.ts index 808ec78..f955769 100644 --- a/index.ts +++ b/index.ts @@ -16,6 +16,7 @@ import { import { useEffect, useState } from "react"; import { v4 as uuid } from "uuid"; import { toBase64, fromBase64 } from "js-base64"; +import { EventTarget, Event } from "event-target-shim"; export type Record = { type: string; diff --git a/package.json b/package.json index 2654fe6..781e2d4 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "README.md" ], "dependencies": { + "event-target-shim": "^6.0.2", "graphql": "^15.5.1", "js-base64": "^3.6.1", "uuid": "^8.3.2" diff --git a/yarn.lock b/yarn.lock index e2bbcdf..5485c6a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1611,6 +1611,11 @@ esutils@^2.0.2: resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +event-target-shim@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-6.0.2.tgz#ea5348c3618ee8b62ff1d344f01908ee2b8a2b71" + integrity sha512-8q3LsZjRezbFZ2PN+uP+Q7pnHUMmAOziU2vA2OwoFaKIXxlxl38IylhSSgUorWu/rf4er67w0ikBqjBFk/pomA== + execa@^5.0.0: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" -- 2.51.2