teamplay 0.4.0-alpha.90 → 0.4.0-alpha.91
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/orm/Compat/SignalCompat.js +2 -1
- package/orm/dataTree.js +5 -1
- package/package.json +2 -2
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
arrayShiftPublic as _arrayShiftPublic,
|
|
24
24
|
arrayRemovePublic as _arrayRemovePublic,
|
|
25
25
|
arrayMovePublic as _arrayMovePublic,
|
|
26
|
+
setPublicDocReplace as _setPublicDocReplace,
|
|
26
27
|
stringInsertPublic as _stringInsertPublic,
|
|
27
28
|
stringRemovePublic as _stringRemovePublic
|
|
28
29
|
} from '../dataTree.js'
|
|
@@ -1103,7 +1104,7 @@ async function setReplaceOnSignal ($signal, value) {
|
|
|
1103
1104
|
value = normalizeIdFields(value, idFields, segments[1])
|
|
1104
1105
|
}
|
|
1105
1106
|
if (isPublicCollection(segments[0])) {
|
|
1106
|
-
const result = await
|
|
1107
|
+
const result = await _setPublicDocReplace(segments, value)
|
|
1107
1108
|
mirrorRefMutationFromTarget(segments, value)
|
|
1108
1109
|
return result
|
|
1109
1110
|
}
|
package/orm/dataTree.js
CHANGED
|
@@ -340,7 +340,11 @@ export async function setPublicDocReplace (segments, value) {
|
|
|
340
340
|
op = [{ p: relativePath, od: normalizedPrevious, oi: normalizedValue }]
|
|
341
341
|
}
|
|
342
342
|
return new Promise((resolve, reject) => {
|
|
343
|
-
doc.submitOp(op, err =>
|
|
343
|
+
doc.submitOp(op, err => {
|
|
344
|
+
if (err) return reject(err)
|
|
345
|
+
ensureLocalDocSyncedWithShareDoc({ collection, docId, doc, idFields })
|
|
346
|
+
resolve()
|
|
347
|
+
})
|
|
344
348
|
})
|
|
345
349
|
}
|
|
346
350
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teamplay",
|
|
3
|
-
"version": "0.4.0-alpha.
|
|
3
|
+
"version": "0.4.0-alpha.91",
|
|
4
4
|
"description": "Full-stack signals ORM with multiplayer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
85
|
"license": "MIT",
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "cd61f3ab7487252c3a6ddae55f009a0dec0596b8"
|
|
87
87
|
}
|