Skip to content

getAdapter method should became public to let adapters like axios-mock-adapter access http / xhr known adapters #5474

@paztis

Description

@paztis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions