Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Better support for data-params (#157)
* Better support for input submissions - Support json, escaped json, and url-encoded formats for data-params - Submit element's name and value * Escaped json: bail early if we have a result * Refactor for clarity * We're using entries * Only submit element's name/value pair if we have a name and value * Return undefined * parseParamFormats: properly specify types for function inputs and return types * Refactor iteration for clarity * Don't used soft-deprecated unescape function, instead unescape escaped params and then utilize throughout `parseParamFormats` * Simplify `parseParamFormats` to just return URLSearchParams instance, since Object.entries on top of return values from `parseParamFormats`
- Loading branch information