Skip to content

Export encode function from buildURL helper to allow code re-use #6896

@Kingo64

Description

@Kingo64

Is your feature request related to a problem? Please describe.

I would like to override the Axios paramsSerializer with local amendments whilst re-using as much of the original Axios code as possible so that upstream changes are not lost. The problem I am facing is that the encode() function is not currently exported so that if you wanted to make use of that functionality when declaring the encode/serialize methods of a paramsSerializer you need to either write your own encode() function or copy paste Axios' method into your own project.

Describe the solution you'd like

This could be resolved by simply providing an export for the encode() function

Describe alternatives you've considered

Currently the alternative is to vendor in the code by copy pasting the existing encode() function into a project which comes at the risk of not receiving upstream changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue::featureThis issue is related to a new feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions