You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libraries like axios-mock-adapter define an adapter but in same cases need to access to original adapter.
It was working correctly before as the adapter was always a function.
Now it can be an array of string
Only the method getAdapter() in adapters/adapter.js can allow access to original adapters (xhr and http)
But this method is not exported a all at top level.
Can you export it ?
To Reproduce
Try to use axios-mock-adapter plugin with onNoMatch option
Code snippet
No response
Expected behavior
No response
Axios Version
1.2.1 and upper
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered:
I would also appreciate this. I have a custom adapter that wraps the default one, but it is unusable with the latest axios releases due to it being impossible to access the default adapters.
Describe the bug
libraries like axios-mock-adapter define an adapter but in same cases need to access to original adapter.
It was working correctly before as the adapter was always a function.
Now it can be an array of string
Only the method getAdapter() in adapters/adapter.js can allow access to original adapters (xhr and http)
But this method is not exported a all at top level.
Can you export it ?
To Reproduce
Try to use axios-mock-adapter plugin with onNoMatch option
Code snippet
No response
Expected behavior
No response
Axios Version
1.2.1 and upper
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: