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

if a transformresponse function is used, it has some unintended side effect #775

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

amrendr-cb
Copy link
Contributor

If we use a transformResponse function that transform the response entirely in different format than what is received from server, axios again apply the transform function on the the already transformed response and it produce an undesired result.

This is related to discussion #771

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (eb45a1b) 99.58% compared to head (b3b6510) 99.66%.

Files Patch % Lines
src/interceptors/request.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #775      +/-   ##
==========================================
+ Coverage   99.58%   99.66%   +0.08%     
==========================================
  Files          19       19              
  Lines        2390     2395       +5     
  Branches      213      213              
==========================================
+ Hits         2380     2387       +7     
+ Misses          9        7       -2     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arthurfiorette
Copy link
Owner

lgtm

Thanks!

@arthurfiorette arthurfiorette merged commit 0214ec6 into arthurfiorette:main Jan 19, 2024
5 of 6 checks passed
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.

2 participants