@cocreate/crdt 1.14.5 → 1.14.6

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.14.6](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.14.5...v1.14.6) (2022-11-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bumped [@cocreate](https://github.com/cocreate) dependencies ([5179ba3](https://github.com/CoCreate-app/CoCreate-crdt/commit/5179ba34eceb8af7298dd2b488783aa5d7ad4dcb))
7
+
1
8
  ## [1.14.5](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.14.4...v1.14.5) (2022-11-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.14.5",
3
+ "version": "1.14.6",
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.13.6",
47
- "@cocreate/message-client": "^1.1.92",
48
- "@cocreate/utils": "^1.10.20"
46
+ "@cocreate/crud-client": "^1.14.0",
47
+ "@cocreate/message-client": "^1.1.93",
48
+ "@cocreate/utils": "^1.10.21"
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