Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

gitBingxu
Copy link

Chain doesn't include the response interceptors

@gitBingxu gitBingxu closed this Aug 13, 2021
@gitBingxu gitBingxu reopened this Aug 13, 2021
package.json Outdated
@@ -5,12 +5,13 @@
"main": "index.js",
"scripts": {
"test": "grunt test",
"start": "node ./sandbox/server.js",
"start": "nodemon ./sandbox/server.js",
Copy link
Contributor

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?

Copy link
Author

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",
Copy link
Contributor

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"
Copy link
Contributor

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?

Copy link
Author

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.

@chinesedfan
Copy link
Collaborator

Looks good. If you can add some tests, that will be great.

@gitBingxu
Copy link
Author

@chinesedfan Thanks for your advice, (^o^)/~

@chinesedfan
Copy link
Collaborator

Close in favor of #4013 with tests.

@gitBingxu gitBingxu deleted the fixBug branch November 30, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants