(url, queryParams)
| 1646 | } |
| 1647 | __name(pathHasQueryOrFragment, "pathHasQueryOrFragment"); |
| 1648 | function serializePathWithQuery(url, queryParams) { |
| 1649 | if (pathHasQueryOrFragment(url)) { |
| 1650 | throw new Error('Query params cannot be passed when url already contains "?" or "#".'); |
| 1651 | } |
| 1652 | const stringified = stringify(queryParams); |
| 1653 | if (stringified) { |
| 1654 | url += "?" + stringified; |
| 1655 | } |
| 1656 | return url; |
| 1657 | } |
| 1658 | __name(serializePathWithQuery, "serializePathWithQuery"); |
| 1659 | function isValidPort(port) { |
| 1660 | const value = parseInt(port, 10); |
no test coverage detected
searching dependent graphs…