( requestUrl: string | undefined )
| 627 | } |
| 628 | |
| 629 | function splitRequestUrlPathAndQuery( |
| 630 | requestUrl: string | undefined |
| 631 | ): { pathname: string; querySuffix: string } | null { |
| 632 | if (!requestUrl) { |
| 633 | return null; |
| 634 | } |
| 635 | |
| 636 | const queryStart = requestUrl.indexOf("?"); |
| 637 | if (queryStart === -1) { |
| 638 | return { pathname: requestUrl, querySuffix: "" }; |
| 639 | } |
| 640 | |
| 641 | return { |
| 642 | pathname: requestUrl.slice(0, queryStart), |
| 643 | querySuffix: requestUrl.slice(queryStart), |
| 644 | }; |
| 645 | } |
| 646 | |
| 647 | function getNormalizedUpgradeRoute( |
| 648 | requestUrl: string | undefined |
no outgoing calls
no test coverage detected