@cocreate/crdt 1.15.4 → 1.15.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 +14 -0
- package/package.json +4 -4
- package/src/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.15.6](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.15.5...v1.15.6) (2023-01-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* if if typeof string not string return empty string ([350dc70](https://github.com/CoCreate-app/CoCreate-crdt/commit/350dc70ffacee869d4a719162429e8f8159a9fb0))
|
|
7
|
+
|
|
8
|
+
## [1.15.5](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.15.4...v1.15.5) (2023-01-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependnecies ([984e833](https://github.com/CoCreate-app/CoCreate-crdt/commit/984e8332c47424228ce6f8c2d94f6ee017c35610))
|
|
14
|
+
|
|
1
15
|
## [1.15.4](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.15.3...v1.15.4) (2023-01-06)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/crdt",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.6",
|
|
4
4
|
"description": "CoCreate crdt",
|
|
5
5
|
"author": "CoCreate LLC",
|
|
6
6
|
"license": "SEE LICENSE",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"webpack-log": "^3.0.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@cocreate/crud-client": "^1.17.
|
|
46
|
-
"@cocreate/message-client": "^1.1.
|
|
47
|
-
"@cocreate/utils": "^1.17.
|
|
45
|
+
"@cocreate/crud-client": "^1.17.14",
|
|
46
|
+
"@cocreate/message-client": "^1.1.124",
|
|
47
|
+
"@cocreate/utils": "^1.17.18"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/index.js
CHANGED
|
@@ -102,7 +102,9 @@ async function checkDb(data, flag) {
|
|
|
102
102
|
let response = await crud.readDocument({ collection, document: {_id: document_id, name}});
|
|
103
103
|
string = crud.getValueFromObject(response.document[0], name);
|
|
104
104
|
}
|
|
105
|
-
if (string &&
|
|
105
|
+
if (string && typeof string !== 'string')
|
|
106
|
+
string = ""
|
|
107
|
+
if (string && typeof string === 'string' && flag != false) {
|
|
106
108
|
data.value = string;
|
|
107
109
|
data.start = 0;
|
|
108
110
|
data.clientId = clientId;
|