diff options
Diffstat (limited to 'packages/webapi/src/polyfill.ts')
-rw-r--r-- | packages/webapi/src/polyfill.ts | 89 |
1 files changed, 44 insertions, 45 deletions
diff --git a/packages/webapi/src/polyfill.ts b/packages/webapi/src/polyfill.ts index cf162b649..0eb4794d4 100644 --- a/packages/webapi/src/polyfill.ts +++ b/packages/webapi/src/polyfill.ts @@ -1,28 +1,36 @@ import { AbortController, AbortSignal, + alert, + atob, Blob, + btoa, ByteLengthQueuingStrategy, + cancelAnimationFrame, + cancelIdleCallback, CanvasRenderingContext2D, CharacterData, + clearTimeout, Comment, CountQueuingStrategy, CSSStyleSheet, CustomElementRegistry, CustomEvent, - DOMException, Document, DocumentFragment, + DOMException, Element, Event, EventTarget, + fetch, File, FormData, - HTMLDocument, - HTMLElement, + Headers, HTMLBodyElement, HTMLCanvasElement, HTMLDivElement, + HTMLDocument, + HTMLElement, HTMLHeadElement, HTMLHtmlElement, HTMLImageElement, @@ -30,10 +38,18 @@ import { HTMLStyleElement, HTMLTemplateElement, HTMLUnknownElement, - Headers, - IntersectionObserver, Image, ImageData, + initCustomElementRegistry, + initDocument, + initMediaQueryList, + initObject, + initPromise, + initRelativeIndexingMethod, + initStorage, + initString, + initWindow, + IntersectionObserver, MediaQueryList, MutationObserver, Node, @@ -47,69 +63,62 @@ import { ReadableStreamDefaultController, ReadableStreamDefaultReader, Request, + requestAnimationFrame, + requestIdleCallback, ResizeObserver, Response, + setTimeout, ShadowRoot, Storage, + structuredClone, StyleSheet, Text, TransformStream, TreeWalker, URLPattern, + Window, WritableStream, WritableStreamDefaultController, WritableStreamDefaultWriter, - Window, - alert, - atob, - btoa, - cancelAnimationFrame, - cancelIdleCallback, - clearTimeout, - fetch, - requestAnimationFrame, - requestIdleCallback, - setTimeout, - structuredClone, - initCustomElementRegistry, - initDocument, - initMediaQueryList, - initObject, - initPromise, - initRelativeIndexingMethod, - initStorage, - initString, - initWindow, } from './ponyfill' import { exclusions } from './exclusions' import { inheritence } from './inheritence' +export { pathToPosix } from './lib/utils' export { AbortController, AbortSignal, + alert, + atob, Blob, + btoa, ByteLengthQueuingStrategy, + cancelAnimationFrame, + cancelIdleCallback, CanvasRenderingContext2D, CharacterData, + clearTimeout, Comment, CountQueuingStrategy, CSSStyleSheet, CustomElementRegistry, CustomEvent, - DOMException, Document, DocumentFragment, + DOMException, Element, Event, EventTarget, + fetch, File, FormData, - HTMLDocument, - HTMLElement, + Headers, HTMLBodyElement, HTMLCanvasElement, HTMLDivElement, + HTMLDocument, + HTMLElement, HTMLHeadElement, HTMLHtmlElement, HTMLImageElement, @@ -117,10 +126,9 @@ export { HTMLStyleElement, HTMLTemplateElement, HTMLUnknownElement, - Headers, - IntersectionObserver, Image, ImageData, + IntersectionObserver, MediaQueryList, MutationObserver, Node, @@ -134,33 +142,24 @@ export { ReadableStreamDefaultController, ReadableStreamDefaultReader, Request, + requestAnimationFrame, + requestIdleCallback, ResizeObserver, Response, + setTimeout, ShadowRoot, + structuredClone, StyleSheet, Text, TransformStream, TreeWalker, URLPattern, + Window, WritableStream, WritableStreamDefaultController, WritableStreamDefaultWriter, - Window, - alert, - atob, - btoa, - cancelAnimationFrame, - cancelIdleCallback, - clearTimeout, - fetch, - requestAnimationFrame, - requestIdleCallback, - setTimeout, - structuredClone, } from './ponyfill.js' -export { pathToPosix } from './lib/utils' - export const polyfill = (target: any, options?: PolyfillOptions) => { const webAPIs = { AbortController, |