emileber / axios-middleware Goto Github PK
View Code? Open in Web Editor NEWSimple axios middleware service
Home Page: https://emileber.github.io/axios-middleware/
License: MIT License
Simple axios middleware service
Home Page: https://emileber.github.io/axios-middleware/
License: MIT License
Hey,
nice work you've done here. I would like start using this module. I could find a lot of good examples within the documentation how to configure the middleware. But right now i'm not sure how to actually use the middleware with axios to perform http calls.
And I could not find any examples on this topic in the documentation. Maybe you could add some actual examples.
Thanks,
Stephan
Hello!
Any plans of updating the library to work with axios v1.x? I've checked this line fails when that class is passed an instance of axios v1: TypeError: this$1.originalAdapter.call is not a function
. I think the breaking change comes from this commit but I couldn't spend any time working on a fix.
Thanks in advance :)
In order to catch the request promise, interceptors is not enough. I would need to create an adapter which calls a new onSync
function (or something) on each registered middlewares.
Like returning false from onRequest
within a middleware should stop the middleware queue from being called and it should then cancel the request.
🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet.
We recommend using:
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.
class
are still present in the dist.
Since the Gemnasium acquisition by Gitlab, the badge is failing to load.
onRequest(req) {
return !shouldCancel && req;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.