diff --git a/docs/packages/mondo-fetch/classes/FetchClient.html b/docs/packages/mondo-fetch/classes/FetchClient.html
index 8af8df1bb8..2586f01a24 100644
--- a/docs/packages/mondo-fetch/classes/FetchClient.html
+++ b/docs/packages/mondo-fetch/classes/FetchClient.html
@@ -23,9 +23,8 @@
Type Parameters
Optional
requestOptions: RequestOptionsWithoutBodyoptional parameters that can be provided
Promise<Result<T, FetchErrorTypes>>
-Private
getIf a baseUrl is provided it will combine it with the provider url, otherwise returns the provided url
+Private
getIf a baseUrl is provided it will combine it with the provider url, otherwise returns the provided url
the url or path that you are targeting for your request
-Optional
baseUrl: stringoptional parameter that can be set when the client is created
A url
Private
hasPrivate
isChecks if the error is a request timeout error
the error we want to check
diff --git a/packages/mondo-fetch/src/index.ts b/packages/mondo-fetch/src/index.ts index acc3294dea..ef06051413 100644 --- a/packages/mondo-fetch/src/index.ts +++ b/packages/mondo-fetch/src/index.ts @@ -19,8 +19,9 @@ export class FetchClient { * @param baseUrl optional parameter that can be set when the client is created * @returns A url */ - private getUrl(providedUrl: string, baseUrl?: string): string { - return new URL(providedUrl, baseUrl).href + private getUrl(providedUrl: string): string { + return new URL(providedUrl, this.baseUrl).href + } /** @@ -30,13 +31,7 @@ export class FetchClient { * @returns Promise
target for the request, this can either be a path built on the base url or a full url