( url: string, query: HttpUrlQueryItem[], )
| 48 | } |
| 49 | |
| 50 | export function applyQueryToUrl( |
| 51 | url: string, |
| 52 | query: HttpUrlQueryItem[], |
| 53 | ): string { |
| 54 | const parts = splitUrl(url) |
| 55 | return combineUrl({ ...parts, query: buildQueryString(query) }) |
| 56 | } |
| 57 | |
| 58 | export function getDisplayUrl(url: string, query: HttpUrlQueryItem[]): string { |
| 59 | return query.length > 0 ? applyQueryToUrl(url, query) : url |
no test coverage detected