@amityco/ts-sdk-react-native 6.32.2-da6d23d.0 → 6.32.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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/postRepository/events/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,yBAAyB,UAC7B,MAAM,MAAM,cAAc,YACvB,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,uBAmE7C,CAAC;AAEF,eAAO,MAAM,8BAA8B,UAClC,MAAM,KAAK,MAAM,eAAe,EAAE,wBAAwB,GAAG,2BAA2B,CAAC,YACtF,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,uBAgC7C,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/postRepository/events/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,yBAAyB,UAC7B,MAAM,MAAM,cAAc,YACvB,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,uBAoE7C,CAAC;AAEF,eAAO,MAAM,8BAA8B,UAClC,MAAM,KAAK,MAAM,eAAe,EAAE,wBAAwB,GAAG,2BAA2B,CAAC,YACtF,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,uBAgC7C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk-react-native",
3
- "version": "6.32.2-da6d23d.0",
3
+ "version": "6.32.2",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -19,7 +19,8 @@ export const createCommentEventSubscriber = (
19
19
  const processed = ['comment.flagged', 'comment.unflagged'].includes(event)
20
20
  ? prepareCommentFromFlaggedEvent(payload)
21
21
  : payload;
22
- ingestInCache(processed);
22
+ // NOTE: The event data should be merge with existing cache rather than replace it
23
+ ingestInCache(processed, undefined, false);
23
24
 
24
25
  const { comments } = processed;
25
26
 
@@ -100,6 +100,8 @@ export const createHttpTransport = (endpoint: string) => {
100
100
  */
101
101
  });
102
102
 
103
+ instance.defaults.withCredentials = false;
104
+
103
105
  instance.interceptors.request.use(config => {
104
106
  // do not check expiration for token creation url
105
107
  if (config.url === '/api/v5/sessions') {
@@ -19,7 +19,8 @@ export const createPostEventSubscriber = (
19
19
 
20
20
  const { communities } = data;
21
21
 
22
- ingestInCache(data);
22
+ // NOTE: The event data should be merge with existing cache rather than replace it
23
+ ingestInCache(data, undefined, false);
23
24
 
24
25
  if (communities?.[0] && !['post.updated'].includes(event)) {
25
26
  fireEvent('community.updated', {