* * @param {string} url * @returns {string}
(url)
| 268 | * @returns {string} |
| 269 | */ |
| 270 | hidePassword(url) { |
| 271 | const { protocol, username, hostname, pathname } = URLParse(url); |
| 272 | if (protocol === "file:") { |
| 273 | return url; |
| 274 | } else { |
| 275 | return `${protocol}//${username}@${hostname}${pathname}`; |
| 276 | } |
| 277 | }, |
| 278 | /** |
| 279 | * Decodes url and returns username, password, hostname, pathname, port and query |
| 280 | * @param {string} url |
nothing calls this directly
no outgoing calls
no test coverage detected