frontend/.pnpm-store/v3/files/7b/2ff648b84ed7d9a0cbec40cebd7ae0886d9eab9eb2923da872819d4bbf0203986a5704ed1cd4019180a4953b4e2bf4337addfa3d3af8bed4061d1f2f56fa6a

13 lines
376 B
Plaintext

'use strict';
const url = require('url');
const prependHttp = require('prepend-http');
module.exports = (input, options) => {
if (typeof input !== 'string') {
throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof input}\` instead.`);
}
const finalUrl = prependHttp(input, Object.assign({https: true}, options));
return url.parse(finalUrl);
};