@liveblocks/core 1.10.1 → 1.10.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/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -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 = "1.10.
|
|
9
|
+
var PKG_VERSION = "1.10.2";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -3980,15 +3980,14 @@ var LiveObject = class _LiveObject extends AbstractCrdt {
|
|
|
3980
3980
|
constructor(obj = {}) {
|
|
3981
3981
|
super();
|
|
3982
3982
|
this._propToLastUpdate = /* @__PURE__ */ new Map();
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
} else if (isLiveNode(value)) {
|
|
3983
|
+
const o = compactObject(obj);
|
|
3984
|
+
for (const key of Object.keys(o)) {
|
|
3985
|
+
const value = o[key];
|
|
3986
|
+
if (isLiveNode(value)) {
|
|
3988
3987
|
value._setParentLink(this, key);
|
|
3989
3988
|
}
|
|
3990
3989
|
}
|
|
3991
|
-
this._map = new Map(Object.entries(
|
|
3990
|
+
this._map = new Map(Object.entries(o));
|
|
3992
3991
|
}
|
|
3993
3992
|
/** @internal */
|
|
3994
3993
|
static _buildRootAndParentToChildren(items) {
|