@amityco/ts-sdk 7.2.1-eeeca9c0.0 → 7.3.1-76699b0.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.
package/dist/index.cjs.js
CHANGED
|
@@ -102,8 +102,8 @@ const PostContentType = Object.freeze({
|
|
|
102
102
|
|
|
103
103
|
function getVersion() {
|
|
104
104
|
try {
|
|
105
|
-
// the string ''v7.
|
|
106
|
-
return 'v7.
|
|
105
|
+
// the string ''v7.3.0-cjs'' should be replaced by actual value by @rollup/plugin-replace
|
|
106
|
+
return 'v7.3.0-cjs';
|
|
107
107
|
}
|
|
108
108
|
catch (error) {
|
|
109
109
|
return '__dev__';
|
|
@@ -26238,7 +26238,7 @@ const markItemsSeen = async (trayItems) => {
|
|
|
26238
26238
|
lastSeenAt: item.lastSeenAt,
|
|
26239
26239
|
})),
|
|
26240
26240
|
});
|
|
26241
|
-
const updatedData = trayItems
|
|
26241
|
+
const updatedData = payload.trayItems
|
|
26242
26242
|
.map(patchItem => {
|
|
26243
26243
|
var _a;
|
|
26244
26244
|
const cacheData = (_a = pullFromCache([
|
|
@@ -26248,7 +26248,7 @@ const markItemsSeen = async (trayItems) => {
|
|
|
26248
26248
|
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
26249
26249
|
if (!cacheData)
|
|
26250
26250
|
return;
|
|
26251
|
-
const data = Object.assign(Object.assign({}, cacheData),
|
|
26251
|
+
const data = Object.assign(Object.assign({}, cacheData), { lastSeenAt: patchItem.lastSeenAt });
|
|
26252
26252
|
if (client.cache) {
|
|
26253
26253
|
const cachedAt = Date.now();
|
|
26254
26254
|
pushToCache(['notificationTrayItem', 'get'], data, { cachedAt });
|
package/dist/index.esm.js
CHANGED
|
@@ -87,8 +87,8 @@ const PostContentType = Object.freeze({
|
|
|
87
87
|
|
|
88
88
|
function getVersion() {
|
|
89
89
|
try {
|
|
90
|
-
// the string ''v7.
|
|
91
|
-
return 'v7.
|
|
90
|
+
// the string ''v7.3.0-esm'' should be replaced by actual value by @rollup/plugin-replace
|
|
91
|
+
return 'v7.3.0-esm';
|
|
92
92
|
}
|
|
93
93
|
catch (error) {
|
|
94
94
|
return '__dev__';
|
|
@@ -42330,7 +42330,7 @@ const markItemsSeen = async (trayItems) => {
|
|
|
42330
42330
|
lastSeenAt: item.lastSeenAt,
|
|
42331
42331
|
})),
|
|
42332
42332
|
});
|
|
42333
|
-
const updatedData = trayItems
|
|
42333
|
+
const updatedData = payload.trayItems
|
|
42334
42334
|
.map(patchItem => {
|
|
42335
42335
|
var _a;
|
|
42336
42336
|
const cacheData = (_a = pullFromCache([
|
|
@@ -42340,7 +42340,7 @@ const markItemsSeen = async (trayItems) => {
|
|
|
42340
42340
|
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
42341
42341
|
if (!cacheData)
|
|
42342
42342
|
return;
|
|
42343
|
-
const data = Object.assign(Object.assign({}, cacheData),
|
|
42343
|
+
const data = Object.assign(Object.assign({}, cacheData), { lastSeenAt: patchItem.lastSeenAt });
|
|
42344
42344
|
if (client.cache) {
|
|
42345
42345
|
const cachedAt = Date.now();
|
|
42346
42346
|
pushToCache(['notificationTrayItem', 'get'], data, { cachedAt });
|