@fluxo-dev/api-client-base 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +2 -1
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -1695,7 +1695,8 @@ class HttpClient {
|
|
|
1695
1695
|
return HttpClient._instance;
|
|
1696
1696
|
}
|
|
1697
1697
|
static Init(authenticationType, baseUrl, apiKeyOrAccessToken) {
|
|
1698
|
-
if (HttpClient._instance)
|
|
1698
|
+
if (HttpClient._instance) return;
|
|
1699
|
+
//throw new Error('HttpClient is already initialized. Please call HttpClient.Instance() to get current instance.');
|
|
1699
1700
|
HttpClient._instance = new HttpClient(authenticationType, baseUrl);
|
|
1700
1701
|
}
|
|
1701
1702
|
}
|
package/package.json
CHANGED