happy-dom 13.6.2 → 13.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of happy-dom might be problematic. Click here for more details.
- package/cjs/PropertySymbol.cjs +2 -1
- package/cjs/PropertySymbol.cjs.map +1 -1
- package/cjs/PropertySymbol.d.ts +1 -0
- package/cjs/PropertySymbol.d.ts.map +1 -1
- package/cjs/browser/BrowserFrame.cjs +12 -2
- package/cjs/browser/BrowserFrame.cjs.map +1 -1
- package/cjs/browser/BrowserFrame.d.ts.map +1 -1
- package/cjs/browser/detached-browser/DetachedBrowserFrame.cjs +12 -2
- package/cjs/browser/detached-browser/DetachedBrowserFrame.cjs.map +1 -1
- package/cjs/browser/detached-browser/DetachedBrowserFrame.d.ts.map +1 -1
- package/cjs/browser/utilities/BrowserFrameFactory.cjs +5 -0
- package/cjs/browser/utilities/BrowserFrameFactory.cjs.map +1 -1
- package/cjs/browser/utilities/BrowserFrameFactory.d.ts.map +1 -1
- package/cjs/browser/utilities/BrowserFrameNavigator.cjs +20 -13
- package/cjs/browser/utilities/BrowserFrameNavigator.cjs.map +1 -1
- package/cjs/browser/utilities/BrowserFrameNavigator.d.ts +21 -10
- package/cjs/browser/utilities/BrowserFrameNavigator.d.ts.map +1 -1
- package/cjs/browser/utilities/BrowserFrameURL.cjs +2 -2
- package/cjs/browser/utilities/BrowserFrameURL.cjs.map +1 -1
- package/cjs/browser/utilities/BrowserFrameURL.d.ts.map +1 -1
- package/cjs/config/IHTMLElementTagNameMap.cjs +3 -0
- package/cjs/config/IHTMLElementTagNameMap.cjs.map +1 -0
- package/cjs/config/IHTMLElementTagNameMap.d.ts +146 -0
- package/cjs/config/IHTMLElementTagNameMap.d.ts.map +1 -0
- package/cjs/config/ISVGElementTagNameMap.cjs +3 -0
- package/cjs/config/ISVGElementTagNameMap.cjs.map +1 -0
- package/cjs/config/ISVGElementTagNameMap.d.ts +67 -0
- package/cjs/config/ISVGElementTagNameMap.d.ts.map +1 -0
- package/cjs/event/events/HashChangeEvent.cjs +26 -0
- package/cjs/event/events/HashChangeEvent.cjs.map +1 -0
- package/cjs/event/events/HashChangeEvent.d.ts +19 -0
- package/cjs/event/events/HashChangeEvent.d.ts.map +1 -0
- package/cjs/event/events/IHashChangeEventInit.cjs +3 -0
- package/cjs/event/events/IHashChangeEventInit.cjs.map +1 -0
- package/cjs/event/events/IHashChangeEventInit.d.ts +6 -0
- package/cjs/event/events/IHashChangeEventInit.d.ts.map +1 -0
- package/cjs/fetch/Fetch.cjs +10 -34
- package/cjs/fetch/Fetch.cjs.map +1 -1
- package/cjs/fetch/Fetch.d.ts +0 -10
- package/cjs/fetch/Fetch.d.ts.map +1 -1
- package/cjs/fetch/Request.cjs +2 -2
- package/cjs/fetch/Request.cjs.map +1 -1
- package/cjs/fetch/Response.cjs +2 -6
- package/cjs/fetch/Response.cjs.map +1 -1
- package/cjs/fetch/Response.d.ts.map +1 -1
- package/cjs/fetch/SyncFetch.cjs +3 -3
- package/cjs/fetch/SyncFetch.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchBodyUtility.cjs +62 -19
- package/cjs/fetch/utilities/FetchBodyUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchBodyUtility.d.ts +24 -12
- package/cjs/fetch/utilities/FetchBodyUtility.d.ts.map +1 -1
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.cjs +5 -3
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchRequestHeaderUtility.d.ts.map +1 -1
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.cjs +1 -1
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.cjs.map +1 -1
- package/cjs/fetch/utilities/FetchRequestReferrerUtility.d.ts.map +1 -1
- package/cjs/form-data/FormData.cjs +1 -1
- package/cjs/form-data/FormData.cjs.map +1 -1
- package/cjs/form-data/FormData.d.ts +1 -1
- package/cjs/form-data/FormData.d.ts.map +1 -1
- package/cjs/index.cjs +7 -3
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.ts +7 -3
- package/cjs/index.d.ts.map +1 -1
- package/cjs/location/Location.cjs +270 -0
- package/cjs/location/Location.cjs.map +1 -0
- package/cjs/location/Location.d.ts +144 -0
- package/cjs/location/Location.d.ts.map +1 -0
- package/cjs/named-node-map/NamedNodeMap.cjs +2 -1
- package/cjs/named-node-map/NamedNodeMap.cjs.map +1 -1
- package/cjs/named-node-map/NamedNodeMap.d.ts.map +1 -1
- package/cjs/nodes/document/Document.cjs +4 -4
- package/cjs/nodes/document/Document.cjs.map +1 -1
- package/cjs/nodes/document/Document.d.ts +114 -6
- package/cjs/nodes/document/Document.d.ts.map +1 -1
- package/cjs/nodes/document/IDocument.d.ts +28 -12
- package/cjs/nodes/document/IDocument.d.ts.map +1 -1
- package/cjs/nodes/document-fragment/DocumentFragment.cjs +2 -2
- package/cjs/nodes/document-fragment/DocumentFragment.cjs.map +1 -1
- package/cjs/nodes/document-fragment/DocumentFragment.d.ts +31 -1
- package/cjs/nodes/document-fragment/DocumentFragment.d.ts.map +1 -1
- package/cjs/nodes/document-fragment/IDocumentFragment.d.ts +6 -0
- package/cjs/nodes/document-fragment/IDocumentFragment.d.ts.map +1 -1
- package/cjs/nodes/element/Element.cjs +1 -1
- package/cjs/nodes/element/Element.cjs.map +1 -1
- package/cjs/nodes/element/Element.d.ts +61 -1
- package/cjs/nodes/element/Element.d.ts.map +1 -1
- package/cjs/nodes/element/HTMLCollection.cjs +2 -1
- package/cjs/nodes/element/HTMLCollection.cjs.map +1 -1
- package/cjs/nodes/element/HTMLCollection.d.ts.map +1 -1
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.cjs +2 -0
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.cjs.map +1 -1
- package/cjs/nodes/html-anchor-element/HTMLAnchorElement.d.ts.map +1 -1
- package/cjs/nodes/html-button-element/HTMLButtonElement.cjs +93 -4
- package/cjs/nodes/html-button-element/HTMLButtonElement.cjs.map +1 -1
- package/cjs/nodes/html-button-element/HTMLButtonElement.d.ts +49 -1
- package/cjs/nodes/html-button-element/HTMLButtonElement.d.ts.map +1 -1
- package/cjs/nodes/html-button-element/IHTMLButtonElement.d.ts +5 -1
- package/cjs/nodes/html-button-element/IHTMLButtonElement.d.ts.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.cjs +2 -1
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.cjs.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormControlsCollection.d.ts.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormElement.cjs +104 -9
- package/cjs/nodes/html-form-element/HTMLFormElement.cjs.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts +8 -2
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.cjs +14 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.cjs.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts +10 -0
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementPageLoader.cjs +4 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementPageLoader.cjs.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElementPageLoader.d.ts.map +1 -1
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.d.ts +1 -0
- package/cjs/nodes/html-iframe-element/IHTMLIFrameElement.d.ts.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElement.cjs +100 -52
- package/cjs/nodes/html-input-element/HTMLInputElement.cjs.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts +49 -23
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -1
- package/cjs/nodes/html-input-element/IHTMLInputElement.d.ts +2 -0
- package/cjs/nodes/html-input-element/IHTMLInputElement.d.ts.map +1 -1
- package/cjs/nodes/html-label-element/HTMLLabelElement.cjs +1 -0
- package/cjs/nodes/html-label-element/HTMLLabelElement.cjs.map +1 -1
- package/cjs/nodes/html-label-element/HTMLLabelElement.d.ts.map +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.cjs +1 -1
- package/cjs/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.cjs.map +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementScriptLoader.cjs +1 -1
- package/cjs/nodes/html-script-element/HTMLScriptElementScriptLoader.cjs.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElement.cjs.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -1
- package/cjs/nodes/node/Node.cjs.map +1 -1
- package/cjs/nodes/node/Node.d.ts.map +1 -1
- package/cjs/nodes/parent-node/IParentNode.d.ts +17 -0
- package/cjs/nodes/parent-node/IParentNode.d.ts.map +1 -1
- package/cjs/nodes/parent-node/ParentNodeUtility.cjs.map +1 -1
- package/cjs/nodes/parent-node/ParentNodeUtility.d.ts.map +1 -1
- package/cjs/query-selector/QuerySelector.cjs.map +1 -1
- package/cjs/query-selector/QuerySelector.d.ts +34 -0
- package/cjs/query-selector/QuerySelector.d.ts.map +1 -1
- package/cjs/version.cjs +1 -1
- package/cjs/window/BrowserWindow.cjs +9 -3
- package/cjs/window/BrowserWindow.cjs.map +1 -1
- package/cjs/window/BrowserWindow.d.ts +5 -4
- package/cjs/window/BrowserWindow.d.ts.map +1 -1
- package/cjs/window/CrossOriginBrowserWindow.d.ts +1 -1
- package/cjs/window/CrossOriginBrowserWindow.d.ts.map +1 -1
- package/cjs/window/IBrowserWindow.d.ts +3 -2
- package/cjs/window/IBrowserWindow.d.ts.map +1 -1
- package/cjs/window/ICrossOriginBrowserWindow.d.ts +1 -1
- package/cjs/window/ICrossOriginBrowserWindow.d.ts.map +1 -1
- package/cjs/window/WindowPageOpenUtility.cjs +4 -2
- package/cjs/window/WindowPageOpenUtility.cjs.map +1 -1
- package/cjs/window/WindowPageOpenUtility.d.ts.map +1 -1
- package/lib/PropertySymbol.d.ts +1 -0
- package/lib/PropertySymbol.d.ts.map +1 -1
- package/lib/PropertySymbol.js +1 -0
- package/lib/PropertySymbol.js.map +1 -1
- package/lib/browser/BrowserFrame.d.ts.map +1 -1
- package/lib/browser/BrowserFrame.js +12 -2
- package/lib/browser/BrowserFrame.js.map +1 -1
- package/lib/browser/detached-browser/DetachedBrowserFrame.d.ts.map +1 -1
- package/lib/browser/detached-browser/DetachedBrowserFrame.js +12 -2
- package/lib/browser/detached-browser/DetachedBrowserFrame.js.map +1 -1
- package/lib/browser/utilities/BrowserFrameFactory.d.ts.map +1 -1
- package/lib/browser/utilities/BrowserFrameFactory.js +5 -0
- package/lib/browser/utilities/BrowserFrameFactory.js.map +1 -1
- package/lib/browser/utilities/BrowserFrameNavigator.d.ts +21 -10
- package/lib/browser/utilities/BrowserFrameNavigator.d.ts.map +1 -1
- package/lib/browser/utilities/BrowserFrameNavigator.js +20 -13
- package/lib/browser/utilities/BrowserFrameNavigator.js.map +1 -1
- package/lib/browser/utilities/BrowserFrameURL.d.ts.map +1 -1
- package/lib/browser/utilities/BrowserFrameURL.js +2 -2
- package/lib/browser/utilities/BrowserFrameURL.js.map +1 -1
- package/lib/config/IHTMLElementTagNameMap.d.ts +146 -0
- package/lib/config/IHTMLElementTagNameMap.d.ts.map +1 -0
- package/lib/config/IHTMLElementTagNameMap.js +2 -0
- package/lib/config/IHTMLElementTagNameMap.js.map +1 -0
- package/lib/config/ISVGElementTagNameMap.d.ts +67 -0
- package/lib/config/ISVGElementTagNameMap.d.ts.map +1 -0
- package/lib/config/ISVGElementTagNameMap.js +2 -0
- package/lib/config/ISVGElementTagNameMap.js.map +1 -0
- package/lib/event/events/HashChangeEvent.d.ts +19 -0
- package/lib/event/events/HashChangeEvent.d.ts.map +1 -0
- package/lib/event/events/HashChangeEvent.js +20 -0
- package/lib/event/events/HashChangeEvent.js.map +1 -0
- package/lib/event/events/IHashChangeEventInit.d.ts +6 -0
- package/lib/event/events/IHashChangeEventInit.d.ts.map +1 -0
- package/lib/event/events/IHashChangeEventInit.js +2 -0
- package/lib/event/events/IHashChangeEventInit.js.map +1 -0
- package/lib/fetch/Fetch.d.ts +0 -10
- package/lib/fetch/Fetch.d.ts.map +1 -1
- package/lib/fetch/Fetch.js +10 -34
- package/lib/fetch/Fetch.js.map +1 -1
- package/lib/fetch/Request.js +2 -2
- package/lib/fetch/Request.js.map +1 -1
- package/lib/fetch/Response.d.ts.map +1 -1
- package/lib/fetch/Response.js +2 -6
- package/lib/fetch/Response.js.map +1 -1
- package/lib/fetch/SyncFetch.js +3 -3
- package/lib/fetch/SyncFetch.js.map +1 -1
- package/lib/fetch/utilities/FetchBodyUtility.d.ts +24 -12
- package/lib/fetch/utilities/FetchBodyUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchBodyUtility.js +62 -19
- package/lib/fetch/utilities/FetchBodyUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestHeaderUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestHeaderUtility.js +4 -2
- package/lib/fetch/utilities/FetchRequestHeaderUtility.js.map +1 -1
- package/lib/fetch/utilities/FetchRequestReferrerUtility.d.ts.map +1 -1
- package/lib/fetch/utilities/FetchRequestReferrerUtility.js +1 -1
- package/lib/fetch/utilities/FetchRequestReferrerUtility.js.map +1 -1
- package/lib/form-data/FormData.d.ts +1 -1
- package/lib/form-data/FormData.d.ts.map +1 -1
- package/lib/form-data/FormData.js +1 -1
- package/lib/form-data/FormData.js.map +1 -1
- package/lib/index.d.ts +7 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/location/Location.d.ts +144 -0
- package/lib/location/Location.d.ts.map +1 -0
- package/lib/location/Location.js +241 -0
- package/lib/location/Location.js.map +1 -0
- package/lib/named-node-map/NamedNodeMap.d.ts.map +1 -1
- package/lib/named-node-map/NamedNodeMap.js +2 -1
- package/lib/named-node-map/NamedNodeMap.js.map +1 -1
- package/lib/nodes/document/Document.d.ts +114 -6
- package/lib/nodes/document/Document.d.ts.map +1 -1
- package/lib/nodes/document/Document.js +4 -4
- package/lib/nodes/document/Document.js.map +1 -1
- package/lib/nodes/document/IDocument.d.ts +28 -12
- package/lib/nodes/document/IDocument.d.ts.map +1 -1
- package/lib/nodes/document-fragment/DocumentFragment.d.ts +31 -1
- package/lib/nodes/document-fragment/DocumentFragment.d.ts.map +1 -1
- package/lib/nodes/document-fragment/DocumentFragment.js +2 -2
- package/lib/nodes/document-fragment/DocumentFragment.js.map +1 -1
- package/lib/nodes/document-fragment/IDocumentFragment.d.ts +6 -0
- package/lib/nodes/document-fragment/IDocumentFragment.d.ts.map +1 -1
- package/lib/nodes/element/Element.d.ts +61 -1
- package/lib/nodes/element/Element.d.ts.map +1 -1
- package/lib/nodes/element/Element.js +1 -1
- package/lib/nodes/element/Element.js.map +1 -1
- package/lib/nodes/element/HTMLCollection.d.ts.map +1 -1
- package/lib/nodes/element/HTMLCollection.js +2 -1
- package/lib/nodes/element/HTMLCollection.js.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.d.ts.map +1 -1
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.js +2 -0
- package/lib/nodes/html-anchor-element/HTMLAnchorElement.js.map +1 -1
- package/lib/nodes/html-button-element/HTMLButtonElement.d.ts +49 -1
- package/lib/nodes/html-button-element/HTMLButtonElement.d.ts.map +1 -1
- package/lib/nodes/html-button-element/HTMLButtonElement.js +93 -4
- package/lib/nodes/html-button-element/HTMLButtonElement.js.map +1 -1
- package/lib/nodes/html-button-element/IHTMLButtonElement.d.ts +5 -1
- package/lib/nodes/html-button-element/IHTMLButtonElement.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.js +2 -1
- package/lib/nodes/html-form-element/HTMLFormControlsCollection.js.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts +8 -2
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.js +106 -10
- package/lib/nodes/html-form-element/HTMLFormElement.js.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts +10 -0
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.js +14 -0
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.js.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElementPageLoader.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElementPageLoader.js +4 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElementPageLoader.js.map +1 -1
- package/lib/nodes/html-iframe-element/IHTMLIFrameElement.d.ts +1 -0
- package/lib/nodes/html-iframe-element/IHTMLIFrameElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts +49 -23
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.js +100 -52
- package/lib/nodes/html-input-element/HTMLInputElement.js.map +1 -1
- package/lib/nodes/html-input-element/IHTMLInputElement.d.ts +2 -0
- package/lib/nodes/html-input-element/IHTMLInputElement.d.ts.map +1 -1
- package/lib/nodes/html-label-element/HTMLLabelElement.d.ts.map +1 -1
- package/lib/nodes/html-label-element/HTMLLabelElement.js +1 -0
- package/lib/nodes/html-label-element/HTMLLabelElement.js.map +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.js +1 -1
- package/lib/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.js.map +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementScriptLoader.js +1 -1
- package/lib/nodes/html-script-element/HTMLScriptElementScriptLoader.js.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.js.map +1 -1
- package/lib/nodes/node/Node.d.ts.map +1 -1
- package/lib/nodes/node/Node.js.map +1 -1
- package/lib/nodes/parent-node/IParentNode.d.ts +17 -0
- package/lib/nodes/parent-node/IParentNode.d.ts.map +1 -1
- package/lib/nodes/parent-node/ParentNodeUtility.d.ts.map +1 -1
- package/lib/nodes/parent-node/ParentNodeUtility.js.map +1 -1
- package/lib/query-selector/QuerySelector.d.ts +34 -0
- package/lib/query-selector/QuerySelector.d.ts.map +1 -1
- package/lib/query-selector/QuerySelector.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/window/BrowserWindow.d.ts +5 -4
- package/lib/window/BrowserWindow.d.ts.map +1 -1
- package/lib/window/BrowserWindow.js +10 -4
- package/lib/window/BrowserWindow.js.map +1 -1
- package/lib/window/CrossOriginBrowserWindow.d.ts +1 -1
- package/lib/window/CrossOriginBrowserWindow.d.ts.map +1 -1
- package/lib/window/IBrowserWindow.d.ts +3 -2
- package/lib/window/IBrowserWindow.d.ts.map +1 -1
- package/lib/window/ICrossOriginBrowserWindow.d.ts +1 -1
- package/lib/window/ICrossOriginBrowserWindow.d.ts.map +1 -1
- package/lib/window/WindowPageOpenUtility.d.ts.map +1 -1
- package/lib/window/WindowPageOpenUtility.js +4 -2
- package/lib/window/WindowPageOpenUtility.js.map +1 -1
- package/package.json +1 -1
- package/src/PropertySymbol.ts +1 -0
- package/src/browser/BrowserFrame.ts +12 -2
- package/src/browser/detached-browser/DetachedBrowserFrame.ts +12 -7
- package/src/browser/utilities/BrowserFrameFactory.ts +7 -0
- package/src/browser/utilities/BrowserFrameNavigator.ts +28 -18
- package/src/browser/utilities/BrowserFrameURL.ts +2 -2
- package/src/config/IHTMLElementTagNameMap.ts +151 -0
- package/src/config/ISVGElementTagNameMap.ts +67 -0
- package/src/event/events/HashChangeEvent.ts +25 -0
- package/src/event/events/IHashChangeEventInit.ts +6 -0
- package/src/fetch/Fetch.ts +28 -37
- package/src/fetch/Request.ts +2 -2
- package/src/fetch/Response.ts +3 -6
- package/src/fetch/SyncFetch.ts +3 -3
- package/src/fetch/utilities/FetchBodyUtility.ts +67 -20
- package/src/fetch/utilities/FetchRequestHeaderUtility.ts +4 -5
- package/src/fetch/utilities/FetchRequestReferrerUtility.ts +2 -1
- package/src/form-data/FormData.ts +2 -2
- package/src/index.ts +9 -1
- package/src/location/Location.ts +257 -0
- package/src/named-node-map/NamedNodeMap.ts +1 -0
- package/src/nodes/document/Document.ts +224 -17
- package/src/nodes/document/IDocument.ts +33 -11
- package/src/nodes/document-fragment/DocumentFragment.ts +59 -1
- package/src/nodes/document-fragment/IDocumentFragment.ts +14 -0
- package/src/nodes/element/Element.ts +120 -1
- package/src/nodes/element/HTMLCollection.ts +1 -0
- package/src/nodes/html-anchor-element/HTMLAnchorElement.ts +2 -0
- package/src/nodes/html-button-element/HTMLButtonElement.ts +107 -5
- package/src/nodes/html-button-element/IHTMLButtonElement.ts +5 -1
- package/src/nodes/html-form-element/HTMLFormControlsCollection.ts +1 -0
- package/src/nodes/html-form-element/HTMLFormElement.ts +111 -5
- package/src/nodes/html-iframe-element/HTMLIFrameElement.ts +16 -0
- package/src/nodes/html-iframe-element/HTMLIFrameElementPageLoader.ts +5 -1
- package/src/nodes/html-iframe-element/IHTMLIFrameElement.ts +1 -0
- package/src/nodes/html-input-element/HTMLInputElement.ts +111 -57
- package/src/nodes/html-input-element/IHTMLInputElement.ts +2 -0
- package/src/nodes/html-label-element/HTMLLabelElement.ts +1 -0
- package/src/nodes/html-link-element/HTMLLinkElementStyleSheetLoader.ts +1 -1
- package/src/nodes/html-script-element/HTMLScriptElementScriptLoader.ts +1 -1
- package/src/nodes/html-select-element/HTMLSelectElement.ts +1 -2
- package/src/nodes/node/Node.ts +1 -2
- package/src/nodes/parent-node/IParentNode.ts +36 -0
- package/src/nodes/parent-node/ParentNodeUtility.ts +1 -0
- package/src/query-selector/QuerySelector.ts +76 -2
- package/src/window/BrowserWindow.ts +11 -4
- package/src/window/CrossOriginBrowserWindow.ts +1 -1
- package/src/window/IBrowserWindow.ts +3 -2
- package/src/window/ICrossOriginBrowserWindow.ts +1 -1
- package/src/window/WindowPageOpenUtility.ts +4 -2
- package/cjs/url/Location.cjs +0 -111
- package/cjs/url/Location.cjs.map +0 -1
- package/cjs/url/Location.d.ts +0 -48
- package/cjs/url/Location.d.ts.map +0 -1
- package/lib/url/Location.d.ts +0 -48
- package/lib/url/Location.d.ts.map +0 -1
- package/lib/url/Location.js +0 -82
- package/lib/url/Location.js.map +0 -1
- package/src/url/Location.ts +0 -79
@@ -11,16 +11,21 @@ import BrowserErrorCaptureEnum from '../enums/BrowserErrorCaptureEnum.js';
|
|
11
11
|
*/
|
12
12
|
export default class BrowserFrameNavigator {
|
13
13
|
/**
|
14
|
-
*
|
14
|
+
* Navigates to a page.
|
15
15
|
*
|
16
16
|
* @throws Error if the request can't be resolved (because of SSL error or similar). It will not throw if the response is not ok.
|
17
|
-
* @param
|
18
|
-
* @param
|
19
|
-
* @param
|
20
|
-
* @param
|
17
|
+
* @param options Options.
|
18
|
+
* @param options.windowClass Window class.
|
19
|
+
* @param options.frame Frame.
|
20
|
+
* @param options.url URL.
|
21
|
+
* @param [options.formData] Form data.
|
22
|
+
* @param [options.method] Method.
|
23
|
+
* @param [options.goToOptions] Go to options.
|
21
24
|
* @returns Response.
|
22
25
|
*/
|
23
|
-
static async
|
26
|
+
static async navigate(options) {
|
27
|
+
const { windowClass, frame, url, formData, method, goToOptions } = options;
|
28
|
+
const referrer = goToOptions?.referrer || frame.window.location.origin;
|
24
29
|
const targetURL = BrowserFrameURL.getRelativeURL(frame, url);
|
25
30
|
if (!frame.window) {
|
26
31
|
throw new Error('The frame has been destroyed, the "window" property is not set.');
|
@@ -64,8 +69,8 @@ export default class BrowserFrameNavigator {
|
|
64
69
|
frame[PropertySymbol.asyncTaskManager] = new AsyncTaskManager();
|
65
70
|
frame.window = new windowClass(frame, { url: targetURL.href, width, height });
|
66
71
|
frame.window.devicePixelRatio = devicePixelRatio;
|
67
|
-
if (
|
68
|
-
frame.window.document[PropertySymbol.referrer] =
|
72
|
+
if (referrer) {
|
73
|
+
frame.window.document[PropertySymbol.referrer] = referrer;
|
69
74
|
}
|
70
75
|
if (targetURL.protocol === 'about:') {
|
71
76
|
return null;
|
@@ -75,7 +80,7 @@ export default class BrowserFrameNavigator {
|
|
75
80
|
const abortController = new AbortController();
|
76
81
|
let response;
|
77
82
|
let responseText;
|
78
|
-
const timeout = frame.window.setTimeout(() => abortController.abort('Request timed out.'),
|
83
|
+
const timeout = frame.window.setTimeout(() => abortController.abort('Request timed out.'), goToOptions?.timeout ?? 30000);
|
79
84
|
const finalize = () => {
|
80
85
|
frame.window.clearTimeout(timeout);
|
81
86
|
readyStateManager.endTask();
|
@@ -87,15 +92,17 @@ export default class BrowserFrameNavigator {
|
|
87
92
|
};
|
88
93
|
try {
|
89
94
|
response = await frame.window.fetch(targetURL.href, {
|
90
|
-
referrer
|
91
|
-
referrerPolicy:
|
95
|
+
referrer,
|
96
|
+
referrerPolicy: goToOptions?.referrerPolicy || 'origin',
|
92
97
|
signal: abortController.signal,
|
93
|
-
|
98
|
+
method: method || (formData ? 'POST' : 'GET'),
|
99
|
+
headers: goToOptions?.hard ? { 'Cache-Control': 'no-cache' } : undefined,
|
100
|
+
body: formData
|
94
101
|
});
|
95
102
|
// Handles the "X-Frame-Options" header for child frames.
|
96
103
|
if (frame.parentFrame) {
|
97
104
|
const originURL = frame.parentFrame.window.location;
|
98
|
-
const xFrameOptions = response.headers
|
105
|
+
const xFrameOptions = response.headers?.get('X-Frame-Options')?.toLowerCase();
|
99
106
|
const isSameOrigin = originURL.origin === targetURL.origin || targetURL.origin === 'null';
|
100
107
|
if (xFrameOptions === 'deny' || (xFrameOptions === 'sameorigin' && !isSameOrigin)) {
|
101
108
|
throw new Error(`Refused to display '${url}' in a frame because it set 'X-Frame-Options' to '${xFrameOptions}'.`);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BrowserFrameNavigator.js","sourceRoot":"","sources":["../../../src/browser/utilities/BrowserFrameNavigator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAK1D,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAC3D,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAC/D,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAC5E,OAAO,uBAAuB,MAAM,qCAAqC,CAAC;
|
1
|
+
{"version":3,"file":"BrowserFrameNavigator.js","sourceRoot":"","sources":["../../../src/browser/utilities/BrowserFrameNavigator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAK1D,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAC3D,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAC/D,OAAO,gBAAgB,MAAM,8CAA8C,CAAC;AAC5E,OAAO,uBAAuB,MAAM,qCAAqC,CAAC;AAG1E;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAqB;IACzC;;;;;;;;;;;;OAYG;IACI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,OAU5B;QACA,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;QAC3E,MAAM,QAAQ,GAAG,WAAW,EAAE,QAAQ,IAAI,KAAK,CAAC,MAAM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,CAAC;QAED,gEAAgE;QAChE,0EAA0E;QAC1E,8GAA8G;QAC9G,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC;QAEzE,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAC7B,KAAK,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE;YACvC,QAAQ,EAAE,CAAC;YACX,OAAO,CAAC,IAAI,CAAC,CAAC;QACf,CAAC,CAAC,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IACjB,CAAC;CACD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BrowserFrameURL.d.ts","sourceRoot":"","sources":["../../../src/browser/utilities/BrowserFrameURL.ts"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"BrowserFrameURL.d.ts","sourceRoot":"","sources":["../../../src/browser/utilities/BrowserFrameURL.ts"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IACnC;;;;;;OAMG;WACW,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,GAAG,GAAG;CAuBpE"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { URL } from 'url';
|
2
1
|
import DOMException from '../../exception/DOMException.js';
|
3
2
|
import DOMExceptionNameEnum from '../../exception/DOMExceptionNameEnum.js';
|
3
|
+
import { URL } from 'url';
|
4
4
|
/**
|
5
5
|
* Browser frame URL utility.
|
6
6
|
*/
|
@@ -18,7 +18,7 @@ export default class BrowserFrameURL {
|
|
18
18
|
return new URL(url);
|
19
19
|
}
|
20
20
|
try {
|
21
|
-
return new URL(url, frame.window.location);
|
21
|
+
return new URL(url, frame.window.location.href);
|
22
22
|
}
|
23
23
|
catch (e) {
|
24
24
|
if (frame.window.location.hostname) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BrowserFrameURL.js","sourceRoot":"","sources":["../../../src/browser/utilities/BrowserFrameURL.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"BrowserFrameURL.js","sourceRoot":"","sources":["../../../src/browser/utilities/BrowserFrameURL.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,oBAAoB,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IACnC;;;;;;OAMG;IACI,MAAM,CAAC,cAAc,CAAC,KAAoB,EAAE,GAAW;QAC7D,GAAG,GAAG,GAAG,IAAI,aAAa,CAAC;QAE3B,IAAI,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/D,OAAO,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC;QAED,IAAI,CAAC;YACJ,OAAO,IAAI,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACpC,MAAM,IAAI,YAAY,CACrB,wCAAwC,GAAG,IAAI,EAC/C,oBAAoB,CAAC,gBAAgB,CACrC,CAAC;YACH,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,YAAY,CACrB,wCAAwC,GAAG,sBAAsB,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,EAC/F,oBAAoB,CAAC,gBAAgB,CACrC,CAAC;YACH,CAAC;QACF,CAAC;IACF,CAAC;CACD"}
|
@@ -0,0 +1,146 @@
|
|
1
|
+
import IHTMLAnchorElement from '../nodes/html-anchor-element/IHTMLAnchorElement.js';
|
2
|
+
import IHTMLElement from '../nodes/html-element/IHTMLElement.js';
|
3
|
+
import IHTMLAudioElement from '../nodes/html-audio-element/IHTMLAudioElement.js';
|
4
|
+
import IHTMLBaseElement from '../nodes/html-base-element/IHTMLBaseElement.js';
|
5
|
+
import IHTMLTemplateElement from '../nodes/html-template-element/IHTMLTemplateElement.js';
|
6
|
+
import IHTMLFormElement from '../nodes/html-form-element/IHTMLFormElement.js';
|
7
|
+
import IHTMLInputElement from '../nodes/html-input-element/IHTMLInputElement.js';
|
8
|
+
import IHTMLTextAreaElement from '../nodes/html-text-area-element/IHTMLTextAreaElement.js';
|
9
|
+
import IHTMLScriptElement from '../nodes/html-script-element/IHTMLScriptElement.js';
|
10
|
+
import IHTMLImageElement from '../nodes/html-image-element/IHTMLImageElement.js';
|
11
|
+
import IHTMLLinkElement from '../nodes/html-link-element/IHTMLLinkElement.js';
|
12
|
+
import IHTMLStyleElement from '../nodes/html-style-element/IHTMLStyleElement.js';
|
13
|
+
import IHTMLLabelElement from '../nodes/html-label-element/IHTMLLabelElement.js';
|
14
|
+
import IHTMLSlotElement from '../nodes/html-slot-element/IHTMLSlotElement.js';
|
15
|
+
import IHTMLMetaElement from '../nodes/html-meta-element/IHTMLMetaElement.js';
|
16
|
+
import IHTMLButtonElement from '../nodes/html-button-element/IHTMLButtonElement.js';
|
17
|
+
import IHTMLDialogElement from '../nodes/html-dialog-element/IHTMLDialogElement.js';
|
18
|
+
import IHTMLIFrameElement from '../nodes/html-iframe-element/IHTMLIFrameElement.js';
|
19
|
+
import IHTMLOptGroupElement from '../nodes/html-opt-group-element/IHTMLOptGroupElement.js';
|
20
|
+
import IHTMLOptionElement from '../nodes/html-option-element/IHTMLOptionElement.js';
|
21
|
+
import IHTMLSelectElement from '../nodes/html-select-element/IHTMLSelectElement.js';
|
22
|
+
import IHTMLVideoElement from '../nodes/html-video-element/IHTMLVideoElement.js';
|
23
|
+
declare global {
|
24
|
+
interface HTMLElementTagNameMap {
|
25
|
+
}
|
26
|
+
}
|
27
|
+
export default interface IHTMLElementTagNameMap extends HTMLElementTagNameMap {
|
28
|
+
a: IHTMLAnchorElement;
|
29
|
+
abbr: IHTMLElement;
|
30
|
+
address: IHTMLElement;
|
31
|
+
area: IHTMLElement;
|
32
|
+
article: IHTMLElement;
|
33
|
+
aside: IHTMLElement;
|
34
|
+
audio: IHTMLAudioElement;
|
35
|
+
b: IHTMLElement;
|
36
|
+
base: IHTMLBaseElement;
|
37
|
+
bdi: IHTMLElement;
|
38
|
+
bdo: IHTMLElement;
|
39
|
+
blockquaote: IHTMLElement;
|
40
|
+
body: IHTMLElement;
|
41
|
+
template: IHTMLTemplateElement;
|
42
|
+
form: IHTMLFormElement;
|
43
|
+
input: IHTMLInputElement;
|
44
|
+
textarea: IHTMLTextAreaElement;
|
45
|
+
script: IHTMLScriptElement;
|
46
|
+
img: IHTMLImageElement;
|
47
|
+
link: IHTMLLinkElement;
|
48
|
+
style: IHTMLStyleElement;
|
49
|
+
label: IHTMLLabelElement;
|
50
|
+
slot: IHTMLSlotElement;
|
51
|
+
meta: IHTMLMetaElement;
|
52
|
+
blockquote: IHTMLElement;
|
53
|
+
br: IHTMLElement;
|
54
|
+
button: IHTMLButtonElement;
|
55
|
+
canvas: IHTMLElement;
|
56
|
+
caption: IHTMLElement;
|
57
|
+
cite: IHTMLElement;
|
58
|
+
code: IHTMLElement;
|
59
|
+
col: IHTMLElement;
|
60
|
+
colgroup: IHTMLElement;
|
61
|
+
data: IHTMLElement;
|
62
|
+
datalist: IHTMLElement;
|
63
|
+
dd: IHTMLElement;
|
64
|
+
del: IHTMLElement;
|
65
|
+
details: IHTMLElement;
|
66
|
+
dfn: IHTMLElement;
|
67
|
+
dialog: IHTMLDialogElement;
|
68
|
+
div: IHTMLElement;
|
69
|
+
dl: IHTMLElement;
|
70
|
+
dt: IHTMLElement;
|
71
|
+
em: IHTMLElement;
|
72
|
+
embed: IHTMLElement;
|
73
|
+
fieldset: IHTMLElement;
|
74
|
+
figcaption: IHTMLElement;
|
75
|
+
figure: IHTMLElement;
|
76
|
+
footer: IHTMLElement;
|
77
|
+
h1: IHTMLElement;
|
78
|
+
h2: IHTMLElement;
|
79
|
+
h3: IHTMLElement;
|
80
|
+
h4: IHTMLElement;
|
81
|
+
h5: IHTMLElement;
|
82
|
+
h6: IHTMLElement;
|
83
|
+
head: IHTMLElement;
|
84
|
+
header: IHTMLElement;
|
85
|
+
hgroup: IHTMLElement;
|
86
|
+
hr: IHTMLElement;
|
87
|
+
html: IHTMLElement;
|
88
|
+
i: IHTMLElement;
|
89
|
+
iframe: IHTMLIFrameElement;
|
90
|
+
ins: IHTMLElement;
|
91
|
+
kbd: IHTMLElement;
|
92
|
+
legend: IHTMLElement;
|
93
|
+
li: IHTMLElement;
|
94
|
+
main: IHTMLElement;
|
95
|
+
map: IHTMLElement;
|
96
|
+
mark: IHTMLElement;
|
97
|
+
math: IHTMLElement;
|
98
|
+
menu: IHTMLElement;
|
99
|
+
menuitem: IHTMLElement;
|
100
|
+
meter: IHTMLElement;
|
101
|
+
nav: IHTMLElement;
|
102
|
+
noscript: IHTMLElement;
|
103
|
+
object: IHTMLElement;
|
104
|
+
ol: IHTMLElement;
|
105
|
+
optgroup: IHTMLOptGroupElement;
|
106
|
+
option: IHTMLOptionElement;
|
107
|
+
output: IHTMLElement;
|
108
|
+
p: IHTMLElement;
|
109
|
+
param: IHTMLElement;
|
110
|
+
picture: IHTMLElement;
|
111
|
+
pre: IHTMLElement;
|
112
|
+
progress: IHTMLElement;
|
113
|
+
q: IHTMLElement;
|
114
|
+
rb: IHTMLElement;
|
115
|
+
rp: IHTMLElement;
|
116
|
+
rt: IHTMLElement;
|
117
|
+
rtc: IHTMLElement;
|
118
|
+
ruby: IHTMLElement;
|
119
|
+
s: IHTMLElement;
|
120
|
+
samp: IHTMLElement;
|
121
|
+
section: IHTMLElement;
|
122
|
+
select: IHTMLSelectElement;
|
123
|
+
small: IHTMLElement;
|
124
|
+
source: IHTMLElement;
|
125
|
+
span: IHTMLElement;
|
126
|
+
strong: IHTMLElement;
|
127
|
+
sub: IHTMLElement;
|
128
|
+
summary: IHTMLElement;
|
129
|
+
sup: IHTMLElement;
|
130
|
+
table: IHTMLElement;
|
131
|
+
tbody: IHTMLElement;
|
132
|
+
td: IHTMLElement;
|
133
|
+
tfoot: IHTMLElement;
|
134
|
+
th: IHTMLElement;
|
135
|
+
thead: IHTMLElement;
|
136
|
+
time: IHTMLElement;
|
137
|
+
title: IHTMLElement;
|
138
|
+
tr: IHTMLElement;
|
139
|
+
track: IHTMLElement;
|
140
|
+
u: IHTMLElement;
|
141
|
+
ul: IHTMLElement;
|
142
|
+
var: IHTMLElement;
|
143
|
+
video: IHTMLVideoElement;
|
144
|
+
wbr: IHTMLElement;
|
145
|
+
}
|
146
|
+
//# sourceMappingURL=IHTMLElementTagNameMap.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IHTMLElementTagNameMap.d.ts","sourceRoot":"","sources":["../../src/config/IHTMLElementTagNameMap.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,oDAAoD,CAAC;AACpF,OAAO,YAAY,MAAM,uCAAuC,CAAC;AACjE,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AACjF,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,oBAAoB,MAAM,wDAAwD,CAAC;AAC1F,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AACjF,OAAO,oBAAoB,MAAM,yDAAyD,CAAC;AAC3F,OAAO,kBAAkB,MAAM,oDAAoD,CAAC;AACpF,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AACjF,OAAO,gBAAgB,MAAM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C;IACtB,GAAG,EAAE,YAAY,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;IACpB,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,YAAY,CAAC;IACpB,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;IACpB,CAAC,EAAE,YAAY,CAAC;IAChB,EAAE,EAAE,YAAY,CAAC;IACjB,GAAG,EAAE,YAAY,CAAC;IAClB,KAAK,EAAE,iBAAiB,CAAC;IACzB,GAAG,EAAE,YAAY,CAAC;CAClB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IHTMLElementTagNameMap.js","sourceRoot":"","sources":["../../src/config/IHTMLElementTagNameMap.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import ISVGSVGElement from '../nodes/svg-element/ISVGSVGElement.js';
|
2
|
+
import ISVGElement from '../nodes/svg-element/ISVGElement.js';
|
3
|
+
export default interface ISVGElementTagNameMap {
|
4
|
+
svg: ISVGSVGElement;
|
5
|
+
animate: ISVGElement;
|
6
|
+
animateMotion: ISVGElement;
|
7
|
+
animateTransform: ISVGElement;
|
8
|
+
circle: ISVGElement;
|
9
|
+
clipPath: ISVGElement;
|
10
|
+
defs: ISVGElement;
|
11
|
+
desc: ISVGElement;
|
12
|
+
ellipse: ISVGElement;
|
13
|
+
feBlend: ISVGElement;
|
14
|
+
feColorMatrix: ISVGElement;
|
15
|
+
feComponentTransfer: ISVGElement;
|
16
|
+
feComposite: ISVGElement;
|
17
|
+
feConvolveMatrix: ISVGElement;
|
18
|
+
feDiffuseLighting: ISVGElement;
|
19
|
+
feDisplacementMap: ISVGElement;
|
20
|
+
feDistantLight: ISVGElement;
|
21
|
+
feDropShadow: ISVGElement;
|
22
|
+
feFlood: ISVGElement;
|
23
|
+
feFuncA: ISVGElement;
|
24
|
+
feFuncB: ISVGElement;
|
25
|
+
feFuncG: ISVGElement;
|
26
|
+
feFuncR: ISVGElement;
|
27
|
+
feGaussianBlur: ISVGElement;
|
28
|
+
feImage: ISVGElement;
|
29
|
+
feMerge: ISVGElement;
|
30
|
+
feMergeNode: ISVGElement;
|
31
|
+
feMorphology: ISVGElement;
|
32
|
+
feOffset: ISVGElement;
|
33
|
+
fePointLight: ISVGElement;
|
34
|
+
feSpecularLighting: ISVGElement;
|
35
|
+
feSpotLight: ISVGElement;
|
36
|
+
feTile: ISVGElement;
|
37
|
+
feTurbulence: ISVGElement;
|
38
|
+
filter: ISVGElement;
|
39
|
+
foreignObject: ISVGElement;
|
40
|
+
g: ISVGElement;
|
41
|
+
image: ISVGElement;
|
42
|
+
line: ISVGElement;
|
43
|
+
linearGradient: ISVGElement;
|
44
|
+
marker: ISVGElement;
|
45
|
+
mask: ISVGElement;
|
46
|
+
metadata: ISVGElement;
|
47
|
+
mpath: ISVGElement;
|
48
|
+
path: ISVGElement;
|
49
|
+
pattern: ISVGElement;
|
50
|
+
polygon: ISVGElement;
|
51
|
+
polyline: ISVGElement;
|
52
|
+
radialGradient: ISVGElement;
|
53
|
+
rect: ISVGElement;
|
54
|
+
script: ISVGElement;
|
55
|
+
set: ISVGElement;
|
56
|
+
stop: ISVGElement;
|
57
|
+
style: ISVGElement;
|
58
|
+
switch: ISVGElement;
|
59
|
+
symbol: ISVGElement;
|
60
|
+
text: ISVGElement;
|
61
|
+
textPath: ISVGElement;
|
62
|
+
title: ISVGElement;
|
63
|
+
tspan: ISVGElement;
|
64
|
+
use: ISVGElement;
|
65
|
+
view: ISVGElement;
|
66
|
+
}
|
67
|
+
//# sourceMappingURL=ISVGElementTagNameMap.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ISVGElementTagNameMap.d.ts","sourceRoot":"","sources":["../../src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,CAAC;IACpB,aAAa,EAAE,WAAW,CAAC;IAC3B,CAAC,EAAE,WAAW,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,cAAc,EAAE,WAAW,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;IACtB,cAAc,EAAE,WAAW,CAAC;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,EAAE,WAAW,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IACnB,GAAG,EAAE,WAAW,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;CAClB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ISVGElementTagNameMap.js","sourceRoot":"","sources":["../../src/config/ISVGElementTagNameMap.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import Event from '../Event.js';
|
2
|
+
import IHashChangeEventInit from './IHashChangeEventInit.js';
|
3
|
+
/**
|
4
|
+
* Hash change event.
|
5
|
+
*
|
6
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent
|
7
|
+
*/
|
8
|
+
export default class HashChangeEvent extends Event {
|
9
|
+
readonly newURL: string;
|
10
|
+
readonly oldURL: string;
|
11
|
+
/**
|
12
|
+
* Constructor.
|
13
|
+
*
|
14
|
+
* @param type Event type.
|
15
|
+
* @param [eventInit] Event init.
|
16
|
+
*/
|
17
|
+
constructor(type: string, eventInit?: IHashChangeEventInit | null);
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=HashChangeEvent.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HashChangeEvent.d.ts","sourceRoot":"","sources":["../../../src/event/events/HashChangeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAE7D;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,KAAK;IACjD,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,oBAAoB,GAAG,IAAW;CAMvE"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import Event from '../Event.js';
|
2
|
+
/**
|
3
|
+
* Hash change event.
|
4
|
+
*
|
5
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent
|
6
|
+
*/
|
7
|
+
export default class HashChangeEvent extends Event {
|
8
|
+
/**
|
9
|
+
* Constructor.
|
10
|
+
*
|
11
|
+
* @param type Event type.
|
12
|
+
* @param [eventInit] Event init.
|
13
|
+
*/
|
14
|
+
constructor(type, eventInit = null) {
|
15
|
+
super(type, eventInit);
|
16
|
+
this.newURL = eventInit?.newURL ?? '';
|
17
|
+
this.oldURL = eventInit?.oldURL ?? '';
|
18
|
+
}
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=HashChangeEvent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HashChangeEvent.js","sourceRoot":"","sources":["../../../src/event/events/HashChangeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,aAAa,CAAC;AAGhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,KAAK;IAIjD;;;;;OAKG;IACH,YAAY,IAAY,EAAE,YAAyC,IAAI;QACtE,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAEvB,IAAI,CAAC,MAAM,GAAG,SAAS,EAAE,MAAM,IAAI,EAAE,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,SAAS,EAAE,MAAM,IAAI,EAAE,CAAC;IACvC,CAAC;CACD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IHashChangeEventInit.d.ts","sourceRoot":"","sources":["../../../src/event/events/IHashChangeEventInit.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAE1C,MAAM,CAAC,OAAO,WAAW,oBAAqB,SAAQ,UAAU;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IHashChangeEventInit.js","sourceRoot":"","sources":["../../../src/event/events/IHashChangeEventInit.ts"],"names":[],"mappings":""}
|
package/lib/fetch/Fetch.d.ts
CHANGED
@@ -120,15 +120,5 @@ export default class Fetch {
|
|
120
120
|
* @param reason Reason.
|
121
121
|
*/
|
122
122
|
private abort;
|
123
|
-
/**
|
124
|
-
* Wraps a Node.js stream into a browser-compatible ReadableStream.
|
125
|
-
*
|
126
|
-
* Enables the use of Node.js streams where browser ReadableStreams are required.
|
127
|
-
* Handles 'data', 'end', and 'error' events from the Node.js stream.
|
128
|
-
*
|
129
|
-
* @param nodeStream The Node.js stream to be converted.
|
130
|
-
* @returns ReadableStream
|
131
|
-
*/
|
132
|
-
private nodeToWebStream;
|
133
123
|
}
|
134
124
|
//# sourceMappingURL=Fetch.d.ts.map
|
package/lib/fetch/Fetch.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Fetch.d.ts","sourceRoot":"","sources":["../../src/fetch/Fetch.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,YAAY,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"Fetch.d.ts","sourceRoot":"","sources":["../../src/fetch/Fetch.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAiBnD,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,cAAc,MAAM,6BAA6B,CAAC;AAYzD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,KAAK;;IACzB,OAAO,CAAC,MAAM,CAAwC;IACtD,OAAO,CAAC,OAAO,CAAgE;IAC/E,OAAO,CAAC,SAAS,CAEf;IACF,OAAO,CAAC,iBAAiB,CAAS;IAClC,OAAO,CAAC,yBAAyB,CAAS;IAC1C,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,WAAW,CAAmC;IACtD,OAAO,CAAC,YAAY,CAAgC;IACpD,OAAO,CAAC,QAAQ,CAAyB;IACzC,OAAO,CAAC,eAAe,CAAwB;IAC/C,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,YAAY,CAAU;IAC9B,OAAO,CAAC,wBAAwB,CAAU;IAI1C;;;;;;;;;;;;OAYG;gBACS,OAAO,EAAE;QACpB,YAAY,EAAE,aAAa,CAAC;QAC5B,MAAM,EAAE,cAAc,CAAC;QACvB,GAAG,EAAE,YAAY,CAAC;QAClB,IAAI,CAAC,EAAE,YAAY,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,wBAAwB,CAAC,EAAE,OAAO,CAAC;KACnC;IAeD;;;;OAIG;IACU,IAAI,IAAI,OAAO,CAAC,SAAS,CAAC;IAoDvC;;;;OAIG;YACW,iBAAiB;IAiF/B;;;;OAIG;YACW,6BAA6B;IAuF3C;;;;OAIG;IACH,OAAO,CAAC,WAAW;IA0EnB;;;;OAIG;IACH,OAAO,CAAC,QAAQ;IAoChB;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAKrB;;;;OAIG;IACH,OAAO,CAAC,OAAO;IAWf;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAmB/B;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAuJlB;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IA4H9B;;OAEG;IACH,OAAO,CAAC,eAAe;IAKvB;;;;OAIG;IACH,OAAO,CAAC,KAAK;CAyBb"}
|
package/lib/fetch/Fetch.js
CHANGED
@@ -22,7 +22,6 @@ import URL from '../url/URL.js';
|
|
22
22
|
import Stream from 'stream';
|
23
23
|
import DataURIParser from './data-uri/DataURIParser.js';
|
24
24
|
import FetchCORSUtility from './utilities/FetchCORSUtility.js';
|
25
|
-
import { ReadableStream } from 'stream/web';
|
26
25
|
import Response from './Response.js';
|
27
26
|
import CachedResponseStateEnum from './cache/response/CachedResponseStateEnum.js';
|
28
27
|
import FetchRequestHeaderUtility from './utilities/FetchRequestHeaderUtility.js';
|
@@ -31,6 +30,7 @@ import FetchResponseRedirectUtility from './utilities/FetchResponseRedirectUtili
|
|
31
30
|
import FetchResponseHeaderUtility from './utilities/FetchResponseHeaderUtility.js';
|
32
31
|
import FetchHTTPSCertificate from './certificate/FetchHTTPSCertificate.js';
|
33
32
|
import { Buffer } from 'buffer';
|
33
|
+
import FetchBodyUtility from './utilities/FetchBodyUtility.js';
|
34
34
|
const LAST_CHUNK = Buffer.from('0\r\n\r\n');
|
35
35
|
/**
|
36
36
|
* Handles fetch requests.
|
@@ -89,7 +89,7 @@ class Fetch {
|
|
89
89
|
* @returns Response.
|
90
90
|
*/
|
91
91
|
async send() {
|
92
|
-
FetchRequestReferrerUtility.prepareRequest(__classPrivateFieldGet(this, _Fetch_window, "f").location, this.request);
|
92
|
+
FetchRequestReferrerUtility.prepareRequest(new URL(__classPrivateFieldGet(this, _Fetch_window, "f").location.href), this.request);
|
93
93
|
FetchRequestValidationUtility.validateSchema(this.request);
|
94
94
|
if (this.request.signal.aborted) {
|
95
95
|
throw new DOMException('The operation was aborted.', DOMExceptionNameEnum.abortError);
|
@@ -203,7 +203,7 @@ class Fetch {
|
|
203
203
|
*/
|
204
204
|
async compliesWithCrossOriginPolicy() {
|
205
205
|
if (this.disableCrossOriginPolicy ||
|
206
|
-
!FetchCORSUtility.isCORS(__classPrivateFieldGet(this, _Fetch_window, "f").location, this.request[PropertySymbol.url])) {
|
206
|
+
!FetchCORSUtility.isCORS(__classPrivateFieldGet(this, _Fetch_window, "f").location.href, this.request[PropertySymbol.url])) {
|
207
207
|
return true;
|
208
208
|
}
|
209
209
|
const cachedPreflightResponse = __classPrivateFieldGet(this, _Fetch_browserFrame, "f").page.context.preflightResponseCache.get(this.request);
|
@@ -434,7 +434,7 @@ class Fetch {
|
|
434
434
|
contentEncodingHeader === null ||
|
435
435
|
nodeResponse.statusCode === 204 ||
|
436
436
|
nodeResponse.statusCode === 304) {
|
437
|
-
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(
|
437
|
+
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(FetchBodyUtility.nodeToWebStream(body), responseOptions);
|
438
438
|
this.response.redirected = this.redirectCount > 0;
|
439
439
|
this.response.url = this.request.url;
|
440
440
|
this.resolve(this.response);
|
@@ -454,7 +454,7 @@ class Fetch {
|
|
454
454
|
// Ignore error as it is forwarded to the response body.
|
455
455
|
}
|
456
456
|
});
|
457
|
-
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(
|
457
|
+
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(FetchBodyUtility.nodeToWebStream(body), responseOptions);
|
458
458
|
this.response.redirected = this.redirectCount > 0;
|
459
459
|
this.response.url = this.request.url;
|
460
460
|
this.resolve(this.response);
|
@@ -485,7 +485,7 @@ class Fetch {
|
|
485
485
|
}
|
486
486
|
});
|
487
487
|
}
|
488
|
-
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(
|
488
|
+
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(FetchBodyUtility.nodeToWebStream(body), responseOptions);
|
489
489
|
this.response.redirected = this.redirectCount > 0;
|
490
490
|
this.response.url = this.request.url;
|
491
491
|
this.resolve(this.response);
|
@@ -493,7 +493,7 @@ class Fetch {
|
|
493
493
|
raw.on('end', () => {
|
494
494
|
// Some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
|
495
495
|
if (!this.response) {
|
496
|
-
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(
|
496
|
+
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(FetchBodyUtility.nodeToWebStream(body), responseOptions);
|
497
497
|
this.response.redirected = this.redirectCount > 0;
|
498
498
|
this.response.url = this.request.url;
|
499
499
|
this.resolve(this.response);
|
@@ -508,14 +508,14 @@ class Fetch {
|
|
508
508
|
// Ignore error as it is forwarded to the response body.
|
509
509
|
}
|
510
510
|
});
|
511
|
-
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(
|
511
|
+
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(FetchBodyUtility.nodeToWebStream(body), responseOptions);
|
512
512
|
this.response.redirected = this.redirectCount > 0;
|
513
513
|
this.response.url = this.request.url;
|
514
514
|
this.resolve(this.response);
|
515
515
|
return;
|
516
516
|
}
|
517
517
|
// Otherwise, use response as is
|
518
|
-
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(
|
518
|
+
this.response = new (__classPrivateFieldGet(this, _Fetch_window, "f").Response)(FetchBodyUtility.nodeToWebStream(body), responseOptions);
|
519
519
|
this.response.redirected = this.redirectCount > 0;
|
520
520
|
this.response.url = this.request.url;
|
521
521
|
this.resolve(this.response);
|
@@ -575,7 +575,7 @@ class Fetch {
|
|
575
575
|
};
|
576
576
|
if (this.request.credentials === 'omit' ||
|
577
577
|
(this.request.credentials === 'same-origin' &&
|
578
|
-
FetchCORSUtility.isCORS(__classPrivateFieldGet(this, _Fetch_window, "f").location, locationURL))) {
|
578
|
+
FetchCORSUtility.isCORS(__classPrivateFieldGet(this, _Fetch_window, "f").location.href, locationURL))) {
|
579
579
|
headers.delete('authorization');
|
580
580
|
headers.delete('www-authenticate');
|
581
581
|
headers.delete('cookie');
|
@@ -647,30 +647,6 @@ class Fetch {
|
|
647
647
|
this.reject(error);
|
648
648
|
}
|
649
649
|
}
|
650
|
-
/**
|
651
|
-
* Wraps a Node.js stream into a browser-compatible ReadableStream.
|
652
|
-
*
|
653
|
-
* Enables the use of Node.js streams where browser ReadableStreams are required.
|
654
|
-
* Handles 'data', 'end', and 'error' events from the Node.js stream.
|
655
|
-
*
|
656
|
-
* @param nodeStream The Node.js stream to be converted.
|
657
|
-
* @returns ReadableStream
|
658
|
-
*/
|
659
|
-
nodeToWebStream(nodeStream) {
|
660
|
-
return new ReadableStream({
|
661
|
-
start(controller) {
|
662
|
-
nodeStream.on('data', (chunk) => {
|
663
|
-
controller.enqueue(chunk);
|
664
|
-
});
|
665
|
-
nodeStream.on('end', () => {
|
666
|
-
controller.close();
|
667
|
-
});
|
668
|
-
nodeStream.on('error', (err) => {
|
669
|
-
controller.error(err);
|
670
|
-
});
|
671
|
-
}
|
672
|
-
});
|
673
|
-
}
|
674
650
|
}
|
675
651
|
_Fetch_browserFrame = new WeakMap(), _Fetch_window = new WeakMap();
|
676
652
|
export default Fetch;
|