@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.
- package/.env +26 -26
- package/dist/commentRepository/events/utils.d.ts.map +1 -1
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/index.cjs.js +8 -5
- package/dist/index.esm.js +8 -5
- package/dist/index.umd.js +3 -3
- package/dist/postRepository/events/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/commentRepository/events/utils.ts +2 -1
- package/src/core/transports/http.ts +2 -0
- package/src/postRepository/events/utils.ts +2 -1
|
@@ -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,
|
|
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
|
@@ -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
|
-
|
|
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
|
-
|
|
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', {
|