Socket
Socket
Sign inDemoInstall

@liveblocks/yjs

Package Overview
Dependencies
Maintainers
6
Versions
192
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.1.0-yjs1 to 1.1.0-yjs2

10

dist/index.js

@@ -161,6 +161,2 @@ "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; } }var __defProp = Object.defineProperty;

setLocalState(state) {
const self = this.room.getSelf();
if (!self) {
return;
}
this.room.updatePresence({ __yjs: __spreadValues({}, state || {}) });

@@ -177,6 +173,10 @@ }

if (currentValue.connectionId) {
acc.set(currentValue.connectionId, currentValue.presence["__yjs"]);
acc.set(
currentValue.connectionId,
currentValue.presence["__yjs"] || {}
);
}
return acc;
}, /* @__PURE__ */ new Map());
console.log(states);
return states;

@@ -183,0 +183,0 @@ }

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

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

"dependencies": {
"@liveblocks/client": "1.1.0-yjs1",
"@liveblocks/core": "1.1.0-yjs1",
"@liveblocks/client": "1.1.0-yjs2",
"@liveblocks/core": "1.1.0-yjs2",
"js-base64": "^3.7.5"

@@ -33,0 +33,0 @@ },

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