analytica-frontend-lib 1.2.73 → 1.2.74

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/dist/index.js CHANGED
@@ -27487,8 +27487,7 @@ var isChatUserInfoValid = (userInfo) => {
27487
27487
  return Boolean(userInfo.userId && userInfo.token);
27488
27488
  };
27489
27489
  var getChatWsUrl = (apiUrl) => {
27490
- const baseUrl = apiUrl;
27491
- return baseUrl.replace(/^http/, "ws");
27490
+ return apiUrl.replace(/^https?/, "wss").replace(/bff-hml\./, "bff-hml-chat.").replace(/bff\./, "bff-chat.");
27492
27491
  };
27493
27492
  var getChatUserInfo = (user, tokens, sessionInfo, defaultUserName = "Usuario") => {
27494
27493
  const userId = String(user?.userInstitutionId ?? sessionInfo?.userId ?? "");