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-9 to 0.4.0-10

1

dist/client.d.ts

@@ -6,2 +6,3 @@ import RoomClient from "./room-client";

private readonly _headers?;
private readonly _roomPool;
constructor(parameters: {

@@ -8,0 +9,0 @@ authUrl: string;

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

constructor(parameters) {
this._roomPool = {};
this._authorizationUrl = parameters.authUrl;

@@ -12,3 +13,6 @@ this._headers = parameters.headers;

room(roomReference, defaultDoc) {
return new room_client_1.default({
if (this._roomPool[roomReference]) {
return this._roomPool[roomReference];
}
const room = new room_client_1.default({
authUrl: this._authorizationUrl,

@@ -19,2 +23,4 @@ roomReference,

});
this._roomPool[roomReference] = room;
return room;
}

@@ -21,0 +27,0 @@ }

2

package.json
{
"name": "@roomservice/browser",
"version": "0.4.0-9",
"version": "0.4.0-10",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc