UNPKG

perimeterx-axios-interceptor

Version:

🧱 Intercept requests which are blocked by PerimeterX - pop up the challenge and retry the request

85 lines (48 loc) • 1.9 kB
# Changelog ## 1.2.1 ### Fix (typescript) - Add missing type for `compact` mode ## 1.2.0 ### New feature - Add "compact" mode to modal configuration to reduce the size of the modal - helps to fit in tight spaces like iframes ## 1.1.3 ### Improvement - Replace priority link preload with fetchpriority attribute ## 1.1.2 ### Improvement - Add a link preload for the challenge script to increase its priority ## 1.1.1 ### Fix - Fix "types" ## 1.1.0 ### New features - Expose the entire ABR response data to the onerror callback - Add the option to disable modal close on click outside ## 1.0.5 ### Improvements Fix (onerror report) for 403 responses with no data ## 1.0.4 ### Improvements Exposing package `types` entry. ## 1.0.3 ### Improvements #### Reinstate existing _pxOnCaptchaSuccess Superimpose existing _pxOnCaptchaSuccess (when applicable) and reinstate the old one when finished #### Allow UI timeout to be Infinity To disable abort function for long wait #### Ease in challenge appearance (PerimeterX Human Challenge) Instead of jumping into appearance - add an open animation for the challenge <details> <summary>Visual change</summary> | Before | After | - | - | ![](https://user-images.githubusercontent.com/516342/122932879-05102080-d366-11eb-9be0-d841e4fcf695.gif) | ![](https://user-images.githubusercontent.com/516342/122932930-11947900-d366-11eb-9f2d-3eee1c0e8fe1.gif) </details> ## 1.0.2 ### Bug Fixes #### Fix hiding Google's reCAPTCHA overlay Modify reCAPTCHA's selector to fix auto-adjust z-index after its appearance ## 1.0.1 ### Bug Fixes #### Make sure we're not hiding recaptcha's pedestrain crossing recogniser In case an element already existed on the page with z-index 2000000000 (which is Google's reCAPTCHA z-index), our modal was showing over it. This observer looks for Google's reCAPTCHA overlay and moves our modal **below** it.