Closed kettanaito closed 1 year ago
This has been released in v0.24.0!
Make sure to always update to the latest version (npm i @mswjs/interceptors@latest
) to get the newest features and bug fixes.
Predictable release automation by @ossjs/release.
We can fully rely on the Fetch API
Headers
instead of using theheaders-polyfill
library.We can substitute some of the utility functions of that library by
Array.from(headers.entries())
, and I've added a custom utility that convertsXMLHttpRequest.getAlLResponseHeaders()
string to aHeaders
instance (that one wasn't included in the polyfill library anyway).