@cocreate/crdt
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -0,1 +1,8 @@ | ||
## [1.0.8](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.0.7...v1.0.8) (2021-04-04) | ||
### Bug Fixes | ||
* update socket to socket-lient and crud to crud client" ([9eceb17](https://github.com/CoCreate-app/CoCreate-crdt/commit/9eceb1725ee664315960c4b36df9e7f5c710825d)) | ||
## [1.0.7](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.0.6...v1.0.7) (2021-03-31) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/crdt", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "CoCreatejs and yjs binding", | ||
@@ -5,0 +5,0 @@ "author": "CoCreate LLC", |
@@ -5,4 +5,3 @@ | ||
import { fetchUpdates, storeState, IndexeddbPersistence } from 'y-indexeddb' | ||
import crud from '@cocreate/crud'; | ||
import utils from '@cocreate/utils'; | ||
import crud from '@cocreate/crud-client'; | ||
import CoCreateCursors from '@cocreate/cursors' | ||
@@ -157,7 +156,7 @@ | ||
const update_event = new CustomEvent('cocreate-y-update', { | ||
const update_event = new CustomEvent('cocreate-crdt-update', { | ||
detail: eventDelta | ||
}) | ||
elements.forEach((el) => { | ||
if (utils.isReadValue(el) && el.getAttribute('name') === info.name) { | ||
if (crud.isReadAttr(el) && el.getAttribute('name') === info.name) { | ||
el.dispatchEvent(update_event) | ||
@@ -177,3 +176,3 @@ } | ||
elements.forEach((el) => { | ||
if (el.getAttribute('data-save_value') != 'false' && el.getAttribute('name') === info.name && info.document_id != "null") { | ||
if (crud.isSaveAttr(el) && el.getAttribute('name') === info.name && info.document_id != "null") { | ||
is_save_value = true; | ||
@@ -180,0 +179,0 @@ el.dispatchEvent(store_event) |
import CoCreateYSocket from "./core.js" | ||
import * as Y from 'yjs' | ||
import utils from '@cocreate/utils'; | ||
import crud from '@cocreate/crud'; | ||
import crud from '@cocreate/crud-client'; | ||
@@ -163,5 +162,5 @@ | ||
__getYDocId(collection, document_id, name) { | ||
if (!utils.checkValue(collection) || | ||
!utils.checkValue(document_id) || | ||
!utils.checkValue(name)) | ||
if (!crud.checkValue(collection) || | ||
!crud.checkValue(document_id) || | ||
!crud.checkValue(name)) | ||
{ | ||
@@ -168,0 +167,0 @@ return null; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2881838
2730