@cocreate/crdt 1.24.1 → 1.24.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,20 @@
1
+ ## [1.24.3](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.24.2...v1.24.3) (2023-11-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * meta name typo ([0e01617](https://github.com/CoCreate-app/CoCreate-crdt/commit/0e01617c895120133defbe13dc43f592944a5aed))
7
+ * update crud methods ([6f7e8a0](https://github.com/CoCreate-app/CoCreate-crdt/commit/6f7e8a0fe5f35a2a41eedd249fa661724b3401ab))
8
+ * update host ([0b56142](https://github.com/CoCreate-app/CoCreate-crdt/commit/0b561421a5e09b1ed8404b4cdd3b5931ecd4e28a))
9
+
10
+ ## [1.24.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.24.1...v1.24.2) (2023-11-03)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * update dependencies to the lates versions ([3a160fe](https://github.com/CoCreate-app/CoCreate-crdt/commit/3a160fe299c52b8ab5d52920ceb68a6eb04115e7))
16
+ * update method to use object.update etc ([66b1157](https://github.com/CoCreate-app/CoCreate-crdt/commit/66b1157298c5b2ac09404064db95a562af4a9bb6))
17
+
1
18
  ## [1.24.1](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.24.0...v1.24.1) (2023-10-25)
2
19
 
3
20
 
@@ -12,8 +12,7 @@ module.exports = {
12
12
  "pathname": "/docs/crdt/index.html",
13
13
  "src": "{{./docs/index.html}}",
14
14
  "host": [
15
- "*",
16
- "general.cocreate.app"
15
+ "*"
17
16
  ],
18
17
  "directory": "crdt",
19
18
  "content-type": "{{content-type}}",
package/docs/index.html CHANGED
@@ -11,10 +11,10 @@
11
11
  sizes="32x32"
12
12
  href="https://cocreate.app/images/favicon.ico" />
13
13
  <meta
14
- key="description"
14
+ name="description"
15
15
  content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
16
16
  <meta
17
- key="keywords"
17
+ name="keywords"
18
18
  content="helper classes, utility classes, css framework, css library, inline style classes" />
19
19
  <meta name="robots" content="index,follow" />
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.24.1",
3
+ "version": "1.24.3",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
6
  "license": "AGPL-3.0",
@@ -40,8 +40,8 @@
40
40
  "webpack-log": "^3.0.1"
41
41
  },
42
42
  "dependencies": {
43
- "@cocreate/crud-client": "^1.28.10",
44
- "@cocreate/local-storage": "^1.10.7",
45
- "@cocreate/utils": "^1.26.1"
43
+ "@cocreate/crud-client": "^1.28.12",
44
+ "@cocreate/local-storage": "^1.10.8",
45
+ "@cocreate/utils": "^1.26.2"
46
46
  }
47
47
  }
package/src/index.js CHANGED
@@ -59,7 +59,7 @@ async function getObject(data) {
59
59
  if (data.read != 'false') {
60
60
  if (!data.newObject) {
61
61
  let response = await crud.send({
62
- method: "read.object",
62
+ method: "object.read",
63
63
  array: "crdt",
64
64
  object: {
65
65
  $filter: {
@@ -126,7 +126,7 @@ async function checkDb(data, flag) {
126
126
  if (data.newObject)
127
127
  string = data.newObject
128
128
  else {
129
- let response = await crud.send({ method: 'read.object', array, object: { _id: object, key } });
129
+ let response = await crud.send({ method: 'object.read', array, object: { _id: object, key } });
130
130
  string = crud.getValueFromObject(response.object[0], key);
131
131
  }
132
132
 
@@ -242,7 +242,7 @@ function localChange(data, string) {
242
242
  function persistChange(data, change) {
243
243
  let name = getName(data);
244
244
  let Data = {
245
- method: 'update.object',
245
+ method: 'object.update',
246
246
  array: 'crdt',
247
247
  object: {
248
248
  name,
@@ -284,8 +284,8 @@ crud.socket.listen('crdt', function (response) {
284
284
  }
285
285
  });
286
286
 
287
- crud.listen('update.object', (data) => sync(data))
288
- crud.listen('delete.object', (data) => sync(data))
287
+ crud.listen('object.update', (data) => sync(data))
288
+ crud.listen('object.delete', (data) => sync(data))
289
289
 
290
290
  function sync(data) {
291
291
  if (data.clientId === clientId)
@@ -391,7 +391,7 @@ async function updateText(data, flag) {
391
391
  if (data.crud != 'false' && data.save != 'false') {
392
392
  let wholestring = await getText(data);
393
393
  crud.send({
394
- method: 'update.object',
394
+ method: 'object.update',
395
395
  array: data.array,
396
396
  object: {
397
397
  _id: data.object,