From 746048892209a07002863258f7fb7733882bdfea Mon Sep 17 00:00:00 2001 From: pmvrmc Date: Tue, 30 Jul 2024 10:35:09 +0100 Subject: [PATCH] fix: use hostname instead of host to remove any port references on it (PL-000) (#17) Co-authored-by: Pedro Carvalho --- src/chargebee.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chargebee.utils.ts b/src/chargebee.utils.ts index 52fa539..4d7c45c 100644 --- a/src/chargebee.utils.ts +++ b/src/chargebee.utils.ts @@ -18,7 +18,7 @@ export function extractURLOptions(urlStr: string) { const url = new URL(urlStr); return { - hostSuffix: url.host, + hostSuffix: url.hostname, apiPath: url.pathname, protocol: url.protocol.replace(":", ""), port: url.port,