(url, sourceUrl)
| 1034 | } |
| 1035 | |
| 1036 | function preserveTrailingSlashShape(url, sourceUrl) { |
| 1037 | const { url: sourcePath } = Url.parse(sourceUrl); |
| 1038 | if (!sourcePath.endsWith("/")) return url; |
| 1039 | |
| 1040 | const { url: targetPath, query } = Url.parse(url); |
| 1041 | if (targetPath.endsWith("/")) return url; |
| 1042 | |
| 1043 | return `${targetPath}/${query}`; |
| 1044 | } |
| 1045 | |
| 1046 | function getListStateEntries(listState) { |
| 1047 | if (!listState) return []; |
no outgoing calls
no test coverage detected