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

@liveblocks/yjs

Package Overview
Dependencies
Maintainers
6
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/yjs - npm Package Compare versions

Comparing version 1.2.0-internal5 to 1.2.0-internal6

14

dist/index.js

@@ -182,2 +182,4 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/index.ts

this.syncDoc();
} else {
this.synced = false;
}

@@ -187,5 +189,11 @@ })

this.unsubscribers.push(
this.room.events.ydoc.subscribe((update) => {
Y.applyUpdate(this.doc, _jsbase64.Base64.toUint8Array(update), "backend");
this.synced = true;
this.room.events.ydoc.subscribe(({ update, isSync }) => {
Y.applyUpdate(
this.doc,
_jsbase64.Base64.toUint8Array(update),
"backend"
);
if (isSync) {
this.synced = true;
}
})

@@ -192,0 +200,0 @@ );

{
"name": "@liveblocks/yjs",
"version": "1.2.0-internal5",
"version": "1.2.0-internal6",
"description": "An integration with . Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",

@@ -35,4 +35,4 @@ "license": "Apache-2.0",

"dependencies": {
"@liveblocks/client": "1.2.0-internal5",
"@liveblocks/core": "1.2.0-internal5",
"@liveblocks/client": "1.2.0-internal6",
"@liveblocks/core": "1.2.0-internal6",
"js-base64": "^3.7.5"

@@ -39,0 +39,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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