analytica-frontend-lib 1.2.72 → 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 +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/utils/chatUtils.d.ts +8 -5
- package/dist/utils/chatUtils.d.ts.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
27491
|
-
return baseUrl.replace(/^http/, "ws") + "/chat/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 ?? "");
|