@amityco/ts-sdk 7.9.1-43e47054.0 → 7.9.1-7d6c59d.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"getCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/observers/getCommunity.ts"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,gBACV,MAAM,SAAS,CAAC,aAAa,CAAC,YACjC,MAAM,kBAAkB,CAAC,MAAM,SAAS,CAAC,KAClD,MAAM,YAwBR,CAAC"}
1
+ {"version":3,"file":"getCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/observers/getCommunity.ts"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,gBACV,MAAM,SAAS,CAAC,aAAa,CAAC,YACjC,MAAM,kBAAkB,CAAC,MAAM,SAAS,CAAC,KAClD,MAAM,YAyBR,CAAC"}
package/dist/index.cjs.js CHANGED
@@ -22081,6 +22081,8 @@ const getCommunity = (communityId, callback) => {
22081
22081
  convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
22082
22082
  ], {
22083
22083
  callbackDataSelector: (data) => {
22084
+ if (!data)
22085
+ return data;
22084
22086
  return LinkedObject.community(data);
22085
22087
  },
22086
22088
  });
package/dist/index.esm.js CHANGED
@@ -38173,6 +38173,8 @@ const getCommunity = (communityId, callback) => {
38173
38173
  convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
38174
38174
  ], {
38175
38175
  callbackDataSelector: (data) => {
38176
+ if (!data)
38177
+ return data;
38176
38178
  return LinkedObject.community(data);
38177
38179
  },
38178
38180
  });