Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cocreate/crdt

Package Overview
Dependencies
Maintainers
1
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocreate/crdt - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

7

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc