@cocreate/crdt 1.9.8 → 1.9.11
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/CHANGELOG.md +21 -0
- package/CoCreate.config.js +2 -2
- package/package.json +1 -1
- package/src/index.js +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.9.11](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.9.10...v1.9.11) (2022-05-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update config organization_Id to organization_id ([a683683](https://github.com/CoCreate-app/CoCreate-crdt/commit/a6836834cfdece7c37a243a2e8e325dabf55681c))
|
|
7
|
+
|
|
8
|
+
## [1.9.10](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.9.9...v1.9.10) (2022-03-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* removed emit from message.send and message.listen ([203f46d](https://github.com/CoCreate-app/CoCreate-crdt/commit/203f46ddd00a5f06cc77648a722619f41c3f1000))
|
|
14
|
+
|
|
15
|
+
## [1.9.9](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.9.8...v1.9.9) (2022-02-24)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* CoCreate.config replace CoCreate.app with * ([05d590d](https://github.com/CoCreate-app/CoCreate-crdt/commit/05d590d36405322634849dbae6a80c1857ce143c))
|
|
21
|
+
|
|
1
22
|
## [1.9.8](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.9.7...v1.9.8) (2022-02-16)
|
|
2
23
|
|
|
3
24
|
|
package/CoCreate.config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"config": {
|
|
3
3
|
"apiKey": "2061acef-0451-4545-f754-60cf8160",
|
|
4
|
-
"
|
|
4
|
+
"organization_id": "5ff747727005da1c272740ab",
|
|
5
5
|
"host": "general.cocreate.app"
|
|
6
6
|
},
|
|
7
7
|
"sources": [
|
|
@@ -14,7 +14,7 @@ module.exports = {
|
|
|
14
14
|
"name": "index.html",
|
|
15
15
|
"path": "/docs/crdt/index.html",
|
|
16
16
|
"domains": [
|
|
17
|
-
"
|
|
17
|
+
"*",
|
|
18
18
|
"general.cocreate.app"
|
|
19
19
|
],
|
|
20
20
|
"directory": "/docs/crdt",
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -182,10 +182,8 @@ function broadcastChange(info){
|
|
|
182
182
|
message.send({
|
|
183
183
|
room: "",
|
|
184
184
|
broadcast_sender: 'false',
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
data: info
|
|
188
|
-
}
|
|
185
|
+
message: "crdt",
|
|
186
|
+
data: info
|
|
189
187
|
});
|
|
190
188
|
}
|
|
191
189
|
|
|
@@ -217,7 +215,8 @@ function persistChange(info) {
|
|
|
217
215
|
});
|
|
218
216
|
}
|
|
219
217
|
|
|
220
|
-
message.listen('crdt', function(
|
|
218
|
+
message.listen('crdt', function(response) {
|
|
219
|
+
let data = response.data
|
|
221
220
|
if (docs.get(`${data.collection}${data.document_id}`)){
|
|
222
221
|
if (docs.get(`${data.collection}${data.document_id}`).get(data.name))
|
|
223
222
|
if (data.clientId !== clientId){
|