Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@roomservice/browser

Package Overview
Dependencies
52
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0-5 to 0.4.0-6

2

dist/doc-client.d.ts

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

private _sendMsgToSocket;
setDoc<D>(callback: (state: D) => void): any;
setDoc<D>(callback: (state: D) => void): Promise<D>;
}

@@ -265,3 +265,3 @@ "use strict";

}
setDoc(callback) {
async setDoc(callback) {
if (typeof window === "undefined") {

@@ -272,4 +272,3 @@ console.warn("Attempting to call setDoc on the server, this is a no-op.");

if (!this._doc) {
console.error("Attempting to call publishDoc .init() has finished.");
return {};
this._doc = await this.readActorIdThenCreateDoc();
}

@@ -276,0 +275,0 @@ if (typeof callback !== "function") {

@@ -23,3 +23,3 @@ import { PresenceMeta } from "./presence-client";

disconnect(): void;
setDoc<D extends Obj>(change: (prevDoc: D) => void): Readonly<D>;
setDoc<D extends Obj>(change: (prevDoc: D) => void): Promise<Readonly<D>>;
onSetDoc<D extends Obj>(callback: (newDoc: D) => void): void;

@@ -26,0 +26,0 @@ setPresence<P extends Obj>(key: string, value: P): void;

@@ -77,3 +77,3 @@ "use strict";

// Documents
setDoc(change) {
async setDoc(change) {
return this._docClient.setDoc(change);

@@ -80,0 +80,0 @@ }

{
"name": "@roomservice/browser",
"version": "0.4.0-5",
"version": "0.4.0-6",
"main": "dist/index",

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc