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 +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.mjs
CHANGED
|
@@ -27353,8 +27353,7 @@ var isChatUserInfoValid = (userInfo) => {
|
|
|
27353
27353
|
return Boolean(userInfo.userId && userInfo.token);
|
|
27354
27354
|
};
|
|
27355
27355
|
var getChatWsUrl = (apiUrl) => {
|
|
27356
|
-
|
|
27357
|
-
return baseUrl.replace(/^http/, "ws");
|
|
27356
|
+
return apiUrl.replace(/^https?/, "wss").replace(/bff-hml\./, "bff-hml-chat.").replace(/bff\./, "bff-chat.");
|
|
27358
27357
|
};
|
|
27359
27358
|
var getChatUserInfo = (user, tokens, sessionInfo, defaultUserName = "Usuario") => {
|
|
27360
27359
|
const userId = String(user?.userInstitutionId ?? sessionInfo?.userId ?? "");
|