-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from D-Pow/feature/enhance-XHR-support
# Enhance XMLHttpRequest docs and implementation This PR fixes issues [#14](#14), [#15](#15), and [#16](#16). Primary changes: * Add handlers for both `onload` and `onloadend` events in addition to `readystatechange` in order to support `axios@>=0.22.2`. * Support both `on[event]` and `addEventListener(event)` methods for `XMLHttpRequest`. * Add shim for usage in back-end/NodeJS scripts using `axios` with `XMLHttpRequest` polyfills. * Add extensive documentation in the ReadMe for how to use MockRequests in the back-end/NodeJS scripts. Secondary changes: * Update both MockRequests and its demo to use `node@>=14` for better dependency resolution. - Requires replacing `node-sass` with `sass` and fixing the incorrect re-defining of `vendor` in both `entry` and `optimization` within webpack.config.js. * Make homepage redirect to JSDoc website. * Ensure Jest DOM is defined by changing setup files from `setupFiles` to `setupFilesAfterEnv`. * Fix ReadMe links to work on npmjs.com (they already worked perfectly on GitHub, but npmjs.com is too primitive to understand renamed hyperlinks via `<a name="X"/>`). * Simplify wrapper overriding logic. * Add tests for all sorts of `addEventListener()` usages.
- Loading branch information
Showing
12 changed files
with
39,506 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.