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

@colyseus/core

Package Overview
Dependencies
Maintainers
0
Versions
134
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.45 to 0.15.46

9

build/Room.js

@@ -593,3 +593,10 @@ var __create = Object.create;

}
if (client.state !== import_Transport.ClientState.RECONNECTED) {
if (this._reconnections[client._reconnectionToken]) {
this._reconnections[client._reconnectionToken][1].catch(async () => {
const willDispose = await this._decrementClientCount();
if (this.reservedSeats[client.sessionId] === void 0) {
this._events.emit("leave", client, willDispose);
}
});
} else if (client.state !== import_Transport.ClientState.RECONNECTED) {
const willDispose = await this._decrementClientCount();

@@ -596,0 +603,0 @@ if (this.reservedSeats[client.sessionId] === void 0) {

5

build/utils/Utils.d.ts

@@ -13,7 +13,8 @@ /// <reference types="node" />

promise: Promise<T>;
protected chain: Promise<T>;
resolve: Function;
reject: Function;
constructor();
then(func: (value: T) => any): any;
catch(func: (value: any) => any): Promise<any>;
then(func: (value: T) => any): Promise<T>;
catch(func: (value: any) => any): Promise<T>;
}

@@ -20,0 +21,0 @@ export declare function merge(a: any, ...objs: any[]): any;

@@ -87,8 +87,11 @@ var __create = Object.create;

});
this.chain = this.promise;
}
then(func) {
return this.promise.then.apply(this.promise, arguments);
this.chain = this.chain.then.apply(this.chain, arguments);
return this.chain;
}
catch(func) {
return this.promise.catch(func);
this.chain = this.chain.catch(func);
return this.chain;
}

@@ -95,0 +98,0 @@ }

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

@@ -5,0 +5,0 @@ "input": "./src/index.ts",

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