Socket
Socket
Sign inDemoInstall

@liveblocks/yjs

Package Overview
Dependencies
Maintainers
6
Versions
187
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.1-yjs2 to 1.1.1-yjs3

7

dist/index.d.ts

@@ -30,3 +30,3 @@ import { Room, JsonObject, LsonObject, BaseUserMeta, Json } from '@liveblocks/client';

}
declare class LiveblocksProvider<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json> {
declare class LiveblocksProvider<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json> extends Observable<unknown> {
private room;

@@ -37,8 +37,13 @@ private httpEndpoint?;

awareness: Awareness;
private _synced;
constructor(room: Room<P, S, U, E>, doc: Y.Doc);
private syncDoc;
get synced(): boolean;
set synced(state: boolean);
private updateHandler;
destroy(): void;
disconnect(): void;
connect(): void;
}
export { Awareness, LiveblocksProvider as default };

@@ -191,7 +191,11 @@ "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;

};
var LiveblocksProvider = class {
var LiveblocksProvider = class extends Observable {
constructor(room, doc) {
var _a;
super();
this.unsubscribers = [];
this._synced = false;
this.syncDoc = () => {
var _a;
this.synced = false;
this.doc.clientID = ((_a = this.room.getSelf()) == null ? void 0 : _a.connectionId) || this.doc.clientID;

@@ -214,3 +218,2 @@ this.awareness.clientID = this.doc.clientID;

});
var _a;
this.doc = doc;

@@ -234,2 +237,3 @@ this.room = room;

Y.applyUpdate(this.doc, _jsbase64.Base64.toUint8Array(update), "backend");
this.synced = true;
})

@@ -239,2 +243,13 @@ );

}
// The sync'd property is required by some provider implementations
get synced() {
return this._synced;
}
set synced(state) {
if (this._synced !== state) {
this._synced = state;
this.emit("synced", [state]);
this.emit("sync", [state]);
}
}
destroy() {

@@ -245,2 +260,7 @@ this.doc.off("update", this.updateHandler);

}
// Some provider implementations expect to be able to call connect/disconnect, implement as noop
disconnect() {
}
connect() {
}
};

@@ -247,0 +267,0 @@

6

package.json
{
"name": "@liveblocks/yjs",
"version": "1.1.1-yjs2",
"version": "1.1.1-yjs3",
"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.1.1-yjs2",
"@liveblocks/core": "1.1.1-yjs2",
"@liveblocks/client": "1.1.1-yjs3",
"@liveblocks/core": "1.1.1-yjs3",
"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

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