@cocreate/crdt 1.21.1 → 1.21.3

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,18 @@
1
+ ## [1.21.3](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.21.2...v1.21.3) (2023-09-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add path and pathname ([3fd06fc](https://github.com/CoCreate-app/CoCreate-crdt/commit/3fd06fc415e47d37ce29fe534e24cf6b67a1706f))
7
+ * Update CoCreate depndencies to latest versions ([d525769](https://github.com/CoCreate-app/CoCreate-crdt/commit/d525769cdd84852752bff0b707c5ba8101df3470))
8
+
9
+ ## [1.21.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.21.1...v1.21.2) (2023-09-17)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * renamed filter to $filter and use as object.$filter ([ee6eba4](https://github.com/CoCreate-app/CoCreate-crdt/commit/ee6eba4444cfe48dae6aae1b8d1d0adf4e26e047))
15
+
1
16
  ## [1.21.1](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.21.0...v1.21.1) (2023-08-21)
2
17
 
3
18
 
@@ -1,25 +1,24 @@
1
- module.exports = {
2
- "organization_id": "",
3
- "key": "",
4
- "host": "",
5
- "sources": [
6
- {
7
- "array": "files",
8
- "object": {
9
- "_id": "6019e6794eea0817df303b10",
10
- "name": "index.html",
11
- "path": "/docs/crdt/index.html",
12
- "src": "{{./docs/index.html}}",
13
- "host": [
14
- "*",
15
- "general.cocreate.app"
16
- ],
17
- "directory": "/docs/crdt",
18
- "parentDirectory": "{{parentDirectory}}",
19
- "content-type": "{{content-type}}",
20
- "public": "true",
21
- "website_id": "644d4bff8036fb9d1d1fd69c"
22
- }
23
- }
24
- ]
25
- }
1
+ module.exports = {
2
+ "organization_id": "",
3
+ "key": "",
4
+ "host": "",
5
+ "sources": [
6
+ {
7
+ "array": "files",
8
+ "object": {
9
+ "_id": "6019e6794eea0817df303b10",
10
+ "name": "index.html",
11
+ "path": "/docs/crdt",
12
+ "pathname": "/docs/crdt/index.html",
13
+ "src": "{{./docs/index.html}}",
14
+ "host": [
15
+ "*",
16
+ "general.cocreate.app"
17
+ ],
18
+ "directory": "crdt",
19
+ "content-type": "{{content-type}}",
20
+ "public": "true"
21
+ }
22
+ }
23
+ ]
24
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.21.1",
3
+ "version": "1.21.3",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
6
  "license": "AGPL-3.0",
@@ -40,9 +40,9 @@
40
40
  "webpack-log": "^3.0.1"
41
41
  },
42
42
  "dependencies": {
43
- "@cocreate/crud-client": "^1.24.0",
44
- "@cocreate/local-storage": "^1.10.0",
45
- "@cocreate/message-client": "^1.6.0",
46
- "@cocreate/utils": "^1.24.0"
43
+ "@cocreate/crud-client": "^1.25.0",
44
+ "@cocreate/local-storage": "^1.10.1",
45
+ "@cocreate/message-client": "^1.6.1",
46
+ "@cocreate/utils": "^1.24.1"
47
47
  }
48
48
  }
package/src/index.js CHANGED
@@ -62,12 +62,14 @@ async function getDoc(data) {
62
62
  let response = await crud.send({
63
63
  method: "read.object",
64
64
  array: "crdt-transactions",
65
- filter: {
66
- query: [{
67
- key: 'docName',
68
- operator: "$eq",
69
- value: docName
70
- }]
65
+ object: {
66
+ $filter: {
67
+ query: [{
68
+ key: 'docName',
69
+ operator: "$eq",
70
+ value: docName
71
+ }]
72
+ }
71
73
  }
72
74
  });
73
75
  if (response.object && response.object[0] && response.object[0].changeLog) {