export function validateURL(url) {
    if (url === undefined || url === null) {
        throw (new Error('Invalid URL: null or undefined'));
    }
    const parsedURL = new URL(url);
    return (parsedURL);
}
//# sourceMappingURL=url.js.map