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

@colyseus/core

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colyseus/core - npm Package Compare versions

Comparing version 0.15.16 to 0.15.17

12

build/presence/LocalPresence.js

@@ -46,5 +46,11 @@ var __create = Object.create;

const parsed = JSON.parse(cache);
this.data = parsed.data;
this.hash = parsed.hash;
this.keys = parsed.keys;
if (parsed.data) {
this.data = parsed.data;
}
if (parsed.hash) {
this.hash = parsed.hash;
}
if (parsed.keys) {
this.keys = parsed.keys;
}
}

@@ -51,0 +57,0 @@ }

@@ -37,2 +37,3 @@ var __create = Object.create;

var import_debug = __toESM(require("debug"));
var import_Logger = require("../Logger");
var import_Debug = require("../Debug");

@@ -53,7 +54,7 @@ var import_MatchMaker = require("../MatchMaker");

const recreatedRoom = (0, import_MatchMaker.getRoomById)(recreatedRoomListing.roomId);
console.debug(`\u{1F504} room '${roomId}' has been restored.`);
import_Logger.logger.debug(`\u{1F504} room '${roomId}' has been restored.`);
if (roomHistory.hasOwnProperty("state")) {
recreatedRoom.state.decode(roomHistory.state);
recreatedRoom.setState(recreatedRoom.state.clone());
console.debug(`\u{1F4CB} room '${roomId}' state =>`, recreatedRoom.state.toJSON());
import_Logger.logger.debug(`\u{1F4CB} room '${roomId}' state =>`, recreatedRoom.state.toJSON());
}

@@ -70,3 +71,3 @@ recreatedRoom.onRestoreRoom?.(roomHistory["cache"]);

if (roomHistoryList.length > 0) {
console.debug("\u2705", roomHistoryList.length, "room(s) have been restored.");
import_Logger.logger.debug("\u2705", roomHistoryList.length, "room(s) have been restored.");
}

@@ -90,3 +91,3 @@ }

await import_MatchMaker.presence.hset(getRoomRestoreListKey(), room.roomId, JSON.stringify(roomHistory));
console.debug(`\u{1F4BE} caching room '${room.roomId}' (clients: ${room.clients.length}, state size: ${(roomHistory["state"] || []).length} bytes)`);
import_Logger.logger.debug(`\u{1F4BE} caching room '${room.roomId}' (clients: ${room.clients.length}, state size: ${(roomHistory["state"] || []).length} bytes)`);
} catch (e) {

@@ -93,0 +94,0 @@ (0, import_Debug.debugAndPrintError)(`\u274C couldn't cache room '${room.roomId}', due to:

{
"name": "@colyseus/core",
"version": "0.15.16",
"version": "0.15.17",
"description": "Multiplayer Framework for Node.js.",

@@ -50,3 +50,3 @@ "input": "./src/index.ts",

},
"gitHead": "f1a761cdced3a9bb5a381b0021bfb0fca02d0cb9"
"gitHead": "f3aa0b17c725249ae82157f804338c1aaf546982"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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