Socket
Socket
Sign inDemoInstall

@roomservice/browser

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roomservice/browser - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

1

dist/doc-client.d.ts

@@ -10,2 +10,3 @@ import { Obj, Room, Session } from "./types";

private _actorId?;
private _defaultDoc?;
_socketURL: string;

@@ -12,0 +13,0 @@ private _onUpdateSocketCallback?;

11

dist/doc-client.js

@@ -42,2 +42,3 @@ "use strict";

this._authorizationUrl = parameters.authUrl;
this._defaultDoc = parameters.defaultDoc;
this._peer = new manymerge_1.Peer(this._sendMsgToSocket);

@@ -81,3 +82,3 @@ this._socketURL = constants_1.ROOM_SERICE_SOCKET_URL;

if (!this._doc) {
await this.readActorIdThenCreateDoc();
await this.readActorIdThenCreateDoc(this._defaultDoc);
}

@@ -97,3 +98,3 @@ return this.syncOfflineCache();

if (!this._doc) {
await this.readActorIdThenCreateDoc();
await this.readActorIdThenCreateDoc(this._defaultDoc);
}

@@ -205,3 +206,3 @@ // we're offline, so we should just continue with our fun little world

if (!this._doc) {
await this.readActorIdThenCreateDoc();
await this.readActorIdThenCreateDoc(this._defaultDoc);
}

@@ -276,3 +277,3 @@ // convert the payload clock to a map

if (!this._doc) {
this._doc = await this.readActorIdThenCreateDoc();
this._doc = await this.readActorIdThenCreateDoc(this._defaultDoc);
}

@@ -286,3 +287,3 @@ if (typeof callback !== "function") {

// this happens if someone deletes the doc, so we should just reinit it.
newDoc = this.createDoc(this._actorId);
newDoc = this.createDoc(this._actorId, this._defaultDoc);
}

@@ -289,0 +290,0 @@ this._doc = newDoc;

{
"name": "@roomservice/browser",
"version": "0.4.1",
"version": "0.4.2",
"main": "dist/index",

@@ -5,0 +5,0 @@ "types": "dist/index",

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