@cocreate/crdt 1.14.5 → 1.14.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/CHANGELOG.md +14 -0
- package/package.json +4 -4
- package/src/index.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.14.7](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.14.6...v1.14.7) (2022-11-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump depenedencies ([946bb37](https://github.com/CoCreate-app/CoCreate-crdt/commit/946bb37a1e75373d6a1f0725e20ca908983ce288))
|
|
7
|
+
|
|
8
|
+
## [1.14.6](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.14.5...v1.14.6) (2022-11-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bumped [@cocreate](https://github.com/cocreate) dependencies ([5179ba3](https://github.com/CoCreate-app/CoCreate-crdt/commit/5179ba34eceb8af7298dd2b488783aa5d7ad4dcb))
|
|
14
|
+
|
|
1
15
|
## [1.14.5](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.14.4...v1.14.5) (2022-11-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/crdt",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.7",
|
|
4
4
|
"description": "CoCreate crdt",
|
|
5
5
|
"author": "CoCreate LLC",
|
|
6
6
|
"license": "SEE LICENSE",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"webpack-log": "^3.0.1"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@cocreate/crud-client": "^1.
|
|
47
|
-
"@cocreate/message-client": "^1.1.
|
|
48
|
-
"@cocreate/utils": "^1.10.
|
|
46
|
+
"@cocreate/crud-client": "^1.14.2",
|
|
47
|
+
"@cocreate/message-client": "^1.1.94",
|
|
48
|
+
"@cocreate/utils": "^1.10.22"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/src/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import message from '@cocreate/message-client';
|
|
|
4
4
|
import uuid from '@cocreate/uuid';
|
|
5
5
|
|
|
6
6
|
let crud
|
|
7
|
-
if(CRUD && CRUD.default)
|
|
7
|
+
if (CRUD && CRUD.default)
|
|
8
8
|
crud = CRUD.default
|
|
9
9
|
else
|
|
10
10
|
crud = CRUD
|
|
@@ -133,7 +133,7 @@ function insertChange(info, flag) {
|
|
|
133
133
|
let typeName = info.name;
|
|
134
134
|
let type = 'insert';
|
|
135
135
|
|
|
136
|
-
if(info.start == undefined) return;
|
|
136
|
+
if (info.start == undefined) return;
|
|
137
137
|
if (!info.value)
|
|
138
138
|
type = 'delete';
|
|
139
139
|
|
|
@@ -188,7 +188,7 @@ function insertChange(info, flag) {
|
|
|
188
188
|
name.set('text', string.customSplice(change.start, change.length, change.value));
|
|
189
189
|
string = {string: name.get('text')};
|
|
190
190
|
|
|
191
|
-
if(!info.clientId){
|
|
191
|
+
if (!info.clientId){
|
|
192
192
|
info['datetime'] = change.datetime;
|
|
193
193
|
info['clientId'] = change.clientId;
|
|
194
194
|
|