fetch-intercept
fetch-intercept copied to clipboard
Interceptor library for the native fetch command inspired by angular http intercepts.
Hey @mlegenhausen 👋 Great library and amazing work. I'm trying to read the `response.request.body` in the `response` interception: ``` response: function (response) { response.text().then((value) => { console.log('Response here') console.log(value) })...
I have registered an interceptor in my app.js file in react as follows: ``` fetchIntercept.register({ response: function (response) { if (response.status >= 500 && response.status < 600) { bottomToast("server error")...
App.test.tsx  App.tsx  authInterceptor.ts  I am using msw/node as a mock server when testing.
Cloning request object and sending back in response or error of fetch so that it can be used for retry logic with request. Using existing request object for retry throws...
Bumps [qs](https://github.com/ljharb/qs) and [body-parser](https://github.com/expressjs/body-parser). These dependencies needed to be updated together. Updates `qs` from 6.5.2 to 6.5.3 Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix]...
Bumps [engine.io](https://github.com/socketio/engine.io) to 6.2.1 and updates ancestor dependency [karma](https://github.com/karma-runner/karma). These dependencies need to be updated together. Updates `engine.io` from 1.8.5 to 6.2.1 Release notes Sourced from engine.io's releases. 6.2.1 :warning:...
Bumps [loader-utils](https://github.com/webpack/loader-utils) to 1.4.1 and updates ancestor dependencies [loader-utils](https://github.com/webpack/loader-utils), [babel-loader](https://github.com/babel/babel-loader), [imports-loader](https://github.com/webpack-contrib/imports-loader), [istanbul-instrumenter-loader](https://github.com/webpack-contrib/istanbul-instrumenter-loader), [karma-webpack](https://github.com/webpack-contrib/karma-webpack) and [webpack](https://github.com/webpack/webpack). These dependencies need to be updated together. Updates `loader-utils` from 1.1.0 to 1.4.1 Release notes...
Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.0.4 and updates ancestor dependencies [minimatch](https://github.com/isaacs/minimatch), [istanbul](https://github.com/gotwarlost/istanbul) and [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `minimatch` from 0.3.0 to 3.0.4 Commits e46989a v3.0.4 ddfacbd update...
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) to 4.2.1 and updates ancestor dependency [karma](https://github.com/karma-runner/karma). These dependencies need to be updated together. Updates `socket.io-parser` from 2.3.1 to 4.2.1 Release notes Sourced from socket.io-parser's releases. 4.2.1 Bug...