@connectedxm/client 7.9.1 → 7.9.2

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7955,7 +7955,7 @@ var useIsAccountFollowing = (accountId) => {
7955
7955
  if (!isUUID(accountId)) {
7956
7956
  throw new Error("Invalid accountId. Did you pass in the username?");
7957
7957
  }
7958
- return relationships?.data.accounts[accountId] || false;
7958
+ return relationships?.data?.accounts?.[accountId] || false;
7959
7959
  };
7960
7960
 
7961
7961
  // src/hooks/useGroupStatus.ts
@@ -7965,7 +7965,7 @@ var useGroupStatus = (groupId) => {
7965
7965
  if (!isUUID(groupId)) {
7966
7966
  throw new Error("Invalid groupId. Did you pass in the slug?");
7967
7967
  }
7968
- return relationships?.data.groups[groupId] || false;
7968
+ return relationships?.data?.groups?.[groupId] || false;
7969
7969
  };
7970
7970
 
7971
7971
  // src/hooks/useIsEventRegistered.ts
@@ -7975,7 +7975,7 @@ var useIsEventRegistered = (eventId) => {
7975
7975
  if (!isUUID(eventId)) {
7976
7976
  throw new Error("Invalid eventId. Did you pass in the slug?");
7977
7977
  }
7978
- return relationships?.data.events[eventId] || false;
7978
+ return relationships?.data?.events?.[eventId] || false;
7979
7979
  };
7980
7980
 
7981
7981
  // src/hooks/useIsChannelSubscribed.ts
@@ -7985,7 +7985,7 @@ var useIsChannelSubscribed = (channelId) => {
7985
7985
  if (!isUUID(channelId)) {
7986
7986
  throw new Error("Invalid channelId. Did you pass in the slug?");
7987
7987
  }
7988
- return relationships?.data.channels[channelId] || false;
7988
+ return relationships?.data?.channels?.[channelId] || false;
7989
7989
  };
7990
7990
 
7991
7991
  // src/interfaces.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "7.9.1",
3
+ "version": "7.9.2",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",