@cocreate/crdt 1.27.5 → 1.27.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.27.6](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.27.5...v1.27.6) (2024-08-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * if upsert undefined set true ([a50f5eb](https://github.com/CoCreate-app/CoCreate-crdt/commit/a50f5eb8e5ac1ff6d1d086f5c2aed6e3d769324d))
7
+
1
8
  ## [1.27.5](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.27.4...v1.27.5) (2024-06-12)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.27.5",
3
+ "version": "1.27.6",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
6
  "license": "AGPL-3.0",
package/src/index.js CHANGED
@@ -383,6 +383,8 @@ async function updateText(data, flag) {
383
383
  insertChange(data, flag);
384
384
 
385
385
  if (data.crud != 'false' && data.save != 'false') {
386
+ if (data.upsert === undefined)
387
+ data.upsert = true
386
388
  let wholestring = await getText(data);
387
389
  crud.send({
388
390
  method: 'object.update',