Skip to content

Commit 89245c1

Browse files
author
Douglas Fabris
authored
feat: new Event() polyfill (#394)
1 parent 2425c04 commit 89245c1

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

packages/fuselage-polyfills/index.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
require('focus-within-polyfill');
2-
require('focus-visible');
3-
window.ResizeObserver = window.ResizeObserver || require('@juggle/resize-observer').ResizeObserver;
4-
navigator.clipboard = navigator.clipboard || require('clipboard-polyfill');
5-
require('element-closest-polyfill');
1+
require("focus-within-polyfill");
2+
require("focus-visible");
3+
window.ResizeObserver =
4+
window.ResizeObserver || require("@juggle/resize-observer").ResizeObserver;
5+
navigator.clipboard = navigator.clipboard || require("clipboard-polyfill");
6+
require("element-closest-polyfill");
7+
require("new-event-polyfill");

packages/fuselage-polyfills/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"clipboard-polyfill": "^3.0.1",
2121
"element-closest-polyfill": "^1.0.2",
2222
"focus-visible": "^5.2.0",
23-
"focus-within-polyfill": "^5.1.0"
23+
"focus-within-polyfill": "^5.1.0",
24+
"new-event-polyfill": "^1.0.1"
2425
}
2526
}

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -12965,6 +12965,11 @@ nested-error-stacks@^2.0.0, nested-error-stacks@^2.1.0:
1296512965
resolved "https://registry.yarnpkg.com/nested-error-stacks/-/nested-error-stacks-2.1.0.tgz#0fbdcf3e13fe4994781280524f8b96b0cdff9c61"
1296612966
integrity sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug==
1296712967

12968+
new-event-polyfill@^1.0.1:
12969+
version "1.0.1"
12970+
resolved "https://registry.yarnpkg.com/new-event-polyfill/-/new-event-polyfill-1.0.1.tgz#9ec8d8b8e90ba70ac27204dd2bcc8370345798e5"
12971+
integrity sha512-cgNgv9yb3C8xIz9mn9dp98bHVcBv1uxyCq/7R2ZiRC+joyLpgBWvLNJMDzoECnGUC7EAxLEnXh1SxHE0nAQ6gA==
12972+
1296812973
nice-try@^1.0.4:
1296912974
version "1.0.5"
1297012975
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"

0 commit comments

Comments
 (0)