New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: response interceptors doesn't work #3952
Conversation
package.json
Outdated
@@ -5,12 +5,13 @@ | |||
"main": "index.js", | |||
"scripts": { | |||
"test": "grunt test", | |||
"start": "node ./sandbox/server.js", | |||
"start": "nodemon ./sandbox/server.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why there are non-related script changes here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, I pushed some useless code, I will handle it.
package.json
Outdated
"preversion": "npm test", | ||
"version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json", | ||
"postversion": "git push && git push --tags", | ||
"examples": "node ./examples/server.js", | ||
"examples": "nodemon ./examples/server.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
package.json
Outdated
@@ -73,7 +74,8 @@ | |||
"unpkg": "dist/axios.min.js", | |||
"typings": "./index.d.ts", | |||
"dependencies": { | |||
"follow-redirects": "^1.14.0" | |||
"follow-redirects": "^1.14.0", | |||
"nodemon": "^2.0.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this package to support the fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, we don't need it, I have deleted it.
Looks good. If you can add some tests, that will be great. |
@chinesedfan Thanks for your advice, (^o^)/~ |
Close in favor of #4013 with tests. |
Chain doesn't include the response interceptors