@liveblocks/core 2.4.0-test1 → 2.4.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.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "2.4.0
|
|
9
|
+
var PKG_VERSION = "2.4.0";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -2094,11 +2094,11 @@ function createNotificationsApi({
|
|
|
2094
2094
|
});
|
|
2095
2095
|
return {
|
|
2096
2096
|
threads: {
|
|
2097
|
-
|
|
2097
|
+
updated: json.threads.map(convertToThreadData),
|
|
2098
2098
|
deleted: json.deletedThreads.map(convertToThreadDeleteInfo)
|
|
2099
2099
|
},
|
|
2100
2100
|
inboxNotifications: {
|
|
2101
|
-
|
|
2101
|
+
updated: json.inboxNotifications.map(convertToInboxNotificationData),
|
|
2102
2102
|
deleted: json.deletedInboxNotifications.map(
|
|
2103
2103
|
convertToInboxNotificationDeleteInfo
|
|
2104
2104
|
)
|
|
@@ -5189,11 +5189,11 @@ function createCommentsApi(roomId, getAuthValue, fetchClientApi) {
|
|
|
5189
5189
|
const json = await response.json();
|
|
5190
5190
|
return {
|
|
5191
5191
|
threads: {
|
|
5192
|
-
|
|
5192
|
+
updated: json.data.map(convertToThreadData),
|
|
5193
5193
|
deleted: json.deletedThreads.map(convertToThreadDeleteInfo)
|
|
5194
5194
|
},
|
|
5195
5195
|
inboxNotifications: {
|
|
5196
|
-
|
|
5196
|
+
updated: json.inboxNotifications.map(convertToInboxNotificationData),
|
|
5197
5197
|
deleted: json.deletedInboxNotifications.map(
|
|
5198
5198
|
convertToInboxNotificationDeleteInfo
|
|
5199
5199
|
)
|
|
@@ -5203,11 +5203,11 @@ function createCommentsApi(roomId, getAuthValue, fetchClientApi) {
|
|
|
5203
5203
|
} else if (response.status === 404) {
|
|
5204
5204
|
return {
|
|
5205
5205
|
threads: {
|
|
5206
|
-
|
|
5206
|
+
updated: [],
|
|
5207
5207
|
deleted: []
|
|
5208
5208
|
},
|
|
5209
5209
|
inboxNotifications: {
|
|
5210
|
-
|
|
5210
|
+
updated: [],
|
|
5211
5211
|
deleted: []
|
|
5212
5212
|
},
|
|
5213
5213
|
requestedAt: /* @__PURE__ */ new Date()
|