(str)
| 225 | let { protocol, hostname, username, password, path, port, query } = urlObj; |
| 226 | |
| 227 | const enc = (str) => encodeURIComponent(str); |
| 228 | |
| 229 | if (!protocol || !hostname) |
| 230 | throw new Error("Cannot formate url. Missing 'protocol' and 'hostname'."); |