Ids and paths carry ':' and '/', so encode per segment and rejoin.
(value: string)
| 277 | |
| 278 | /** Ids and paths carry ':' and '/', so encode per segment and rejoin. */ |
| 279 | function encodePath(value: string): string { |
| 280 | return value.split('/').map(encodeURIComponent).join('/'); |
| 281 | } |
| 282 | |
| 283 | function query(params: URLSearchParams): string { |
| 284 | const text = params.toString(); |
no test coverage detected