@liveblocks/core 0.19.6 → 0.19.7
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.js +5 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -113,7 +113,7 @@ if (process.env.NODE_ENV !== "production" && typeof window !== "undefined") {
|
|
|
113
113
|
var onMessageFromPanel = eventSource.observable;
|
|
114
114
|
|
|
115
115
|
// src/devtools/index.ts
|
|
116
|
-
var VERSION = true ? "0.19.
|
|
116
|
+
var VERSION = true ? "0.19.7" : "dev";
|
|
117
117
|
var _devtoolsSetupHasRun = false;
|
|
118
118
|
function setupDevTools(getAllRooms) {
|
|
119
119
|
if (process.env.NODE_ENV === "production" || typeof window === "undefined") {
|
|
@@ -3173,11 +3173,8 @@ function makeStateMachine(state, config, mockedEffects) {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
const applyOpResult = applyOp(op, source);
|
|
3175
3175
|
if (applyOpResult.modified) {
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3178
|
-
"Expected parent node to have an ID"
|
|
3179
|
-
) : void 0;
|
|
3180
|
-
if (!parentId || !createdNodeIds.has(parentId)) {
|
|
3176
|
+
const nodeId = applyOpResult.modified.node._id;
|
|
3177
|
+
if (!(nodeId && createdNodeIds.has(nodeId))) {
|
|
3181
3178
|
output.storageUpdates.set(
|
|
3182
3179
|
nn(applyOpResult.modified.node._id),
|
|
3183
3180
|
mergeStorageUpdates(
|
|
@@ -3190,7 +3187,7 @@ function makeStateMachine(state, config, mockedEffects) {
|
|
|
3190
3187
|
output.reverse.unshift(...applyOpResult.reverse);
|
|
3191
3188
|
}
|
|
3192
3189
|
if (op.type === 2 /* CREATE_LIST */ || op.type === 7 /* CREATE_MAP */ || op.type === 4 /* CREATE_OBJECT */) {
|
|
3193
|
-
createdNodeIds.add(nn(
|
|
3190
|
+
createdNodeIds.add(nn(op.id));
|
|
3194
3191
|
}
|
|
3195
3192
|
}
|
|
3196
3193
|
}
|
|
@@ -4114,7 +4111,7 @@ function prepareCreateWebSocket(liveblocksServer, WebSocketPolyfill) {
|
|
|
4114
4111
|
const ws = WebSocketPolyfill || WebSocket;
|
|
4115
4112
|
return (token) => {
|
|
4116
4113
|
return new ws(
|
|
4117
|
-
`${liveblocksServer}/?token=${token}&version=${true ? "0.19.
|
|
4114
|
+
`${liveblocksServer}/?token=${token}&version=${true ? "0.19.7" : "dev"}`
|
|
4118
4115
|
);
|
|
4119
4116
|
};
|
|
4120
4117
|
}
|