fetch-wrap icon indicating copy to clipboard operation
fetch-wrap copied to clipboard

extend WHATWG fetch wrapping it with middlewares

Results 11 fetch-wrap issues
Sort by recently updated
recently updated
newest added

I'd like to implement an OpenID-Connect refresh logic inside a middleware that adds an Access Token to a request and reacts on 401 responses by fetching a new access token...

I wonder if the usage of lodash/merge is obsolete for the operations most middlewares do here? They usually don't do deep merges so couldn't ```ts return fetch(url, extendedFetch.merge({}, options, {...

I wonder how one could make this a little bit more type-safe by having the middleware actually know the types of the arguments and the supposed return value (`Promose`). I...

Can you tell me how can I connect this wrapper with Redux. I want to have in separate file this wrapper and I need to dispatch some actions inside function...

Using the header object in a fetch call ``` headers: new Headers( { "Content-Type": "application/json", } ), ``` instead of just ``` headers: { "Content-Type": "application/json", } ``` will cause...

enhancement
help wanted

I was curious about the order in which middleware is being applied by fetch-wrap. This is an awesome library that we use heavily for our projects. We ran into a...

Hi, I'm having a problem serving my webpack bundle to older browsers. I'm using your library but because of one little "const" in middleware.js it breaks. https://github.com/benjamine/fetch-wrap/blob/91faed95f7f544064e18474bf197d9204c04734e/src/middleware.js#L150 Would it be...

Bumps [minimist](https://github.com/minimistjs/minimist), [mkdirp](https://github.com/isaacs/node-mkdirp) and [handlebars](https://github.com/wycats/handlebars.js). These dependencies needed to be updated together. Updates `minimist` from 1.2.0 to 1.2.8 Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long...

dependencies

Bumps [flat](https://github.com/hughsk/flat) to 5.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `flat` from 4.1.0 to 5.0.2 Commits e5ffd66 Release 5.0.2 fdb79d5 Update dependencies, refresh...

dependencies

Bumps [qs](https://github.com/ljharb/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] utils.merge`: avoid a crash with a null target and a truthy...

dependencies