Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@liveblocks/react

Package Overview
Dependencies
Maintainers
2
Versions
419
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/react - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

10

lib/index.js

@@ -820,2 +820,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

_socket = null;
updateUsers({});
if (event.wasClean === false) {

@@ -857,3 +858,2 @@ state = RoomState.Default;

if (_socket) {
_socket.close();
_socket.removeEventListener("open", onOpen);

@@ -863,6 +863,7 @@ _socket.removeEventListener("message", onMessage);

_socket.removeEventListener("error", onError);
_socket.close();
_socket = null;
}
state = RoomState.Default;
_users = {};
updateUsers({});
clearTimeout(retryTimeoutId);

@@ -881,2 +882,5 @@ _listeners.open = [];

}
function getOthers() {
return _users;
}
function updatePresence(overrides) {

@@ -979,2 +983,3 @@ updateMyPresence(Object.assign(Object.assign({}, _me), overrides));

updatePresence,
getOthers,
};

@@ -1135,2 +1140,3 @@ }

var _room = client.getRoom(room);
setOthers(_room.getOthers());
_room.connect();

@@ -1137,0 +1143,0 @@ _room.addEventListener("others-presence", onOthersChange);

7

package.json
{
"name": "@liveblocks/react",
"version": "0.3.0",
"version": "0.3.1",
"description": "",

@@ -16,6 +16,6 @@ "main": "./lib/index.js",

"dependencies": {
"@liveblocks/client": "0.3.0"
"@liveblocks/client": "0.3.1"
},
"peerDependencies": {
"react": "^16.14.0 || ^17.0"
"react": "^16.14.0 || ^17"
},

@@ -29,2 +29,3 @@ "devDependencies": {

"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@types/jest": "^26.0.20",

@@ -31,0 +32,0 @@ "@types/react": "^16.14.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