(key)
| 405 | |
| 406 | // The key as `parse()` would decode it, so two spellings of the same key, like `a+b` and `a%20b`, can be compared. |
| 407 | function decodeQueryKey(key) { |
| 408 | return decodeComponent(key.replaceAll('+', ' ')); |
| 409 | } |
| 410 | |
| 411 | // An option that is explicitly `undefined` uses its default, like an omitted option. That is what a caller passes through with an optional setting, like `{decode: config.decode}`. Spreading it over the defaults would instead override the default with `undefined`, so `{encode: undefined}` would write the values unencoded. |
| 412 | function definedOptions(options) { |
no test coverage detected