Files
klz-cables.com/.pnpm-store/v10/files/e2/cd84f76f831275bf66a345e457fb7ffff8f68f55de53f237e9151fcf89b36f2588d797116c3d3443f1c90e55e80de43c1004acc17f3afcd979eeff53989751
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

19 lines
806 B
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/** Build a full URL from request options. */
function getRequestUrl(requestOptions) {
const protocol = requestOptions.protocol || '';
const hostname = requestOptions.hostname || requestOptions.host || '';
// Don't log standard :80 (http) and :443 (https) ports to reduce the noise
// Also don't add port if the hostname already includes a port
const port =
!requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\d+)$/.test(hostname)
? ''
: `:${requestOptions.port}`;
const path = requestOptions.path ? requestOptions.path : '/';
return `${protocol}//${hostname}${port}${path}`;
}
exports.getRequestUrl = getRequestUrl;
//# sourceMappingURL=getRequestUrl.js.map