@colyseus/core
Advanced tools
Comparing version 0.15.55 to 0.15.56
@@ -342,5 +342,10 @@ var __create = Object.create; | ||
} else if (this.onAuth !== Room.prototype.onAuth) { | ||
client.auth = await this.onAuth(client, joinOptions, req); | ||
if (!client.auth) { | ||
throw new import_ServerError.ServerError(import_Protocol.ErrorCode.AUTH_FAILED, "onAuth failed"); | ||
try { | ||
client.auth = await this.onAuth(client, joinOptions, req); | ||
if (!client.auth) { | ||
throw new import_ServerError.ServerError(import_Protocol.ErrorCode.AUTH_FAILED, "onAuth failed"); | ||
} | ||
} catch (e) { | ||
await this._decrementClientCount(); | ||
throw e; | ||
} | ||
@@ -347,0 +352,0 @@ } |
{ | ||
"name": "@colyseus/core", | ||
"version": "0.15.55", | ||
"version": "0.15.56", | ||
"description": "Multiplayer Framework for Node.js.", | ||
@@ -35,3 +35,2 @@ "input": "./src/index.ts", | ||
"@colyseus/greeting-banner": "^2.0.0", | ||
"@colyseus/schema": "^2.0.4", | ||
"@gamestdio/timer": "^1.3.0", | ||
@@ -43,2 +42,5 @@ "debug": "^4.3.4", | ||
}, | ||
"peerDependencies": { | ||
"@colyseus/schema": "^2.0.4" | ||
}, | ||
"publishConfig": { | ||
@@ -45,0 +47,0 @@ "access": "public" |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
755780
8462
- Removed@colyseus/schema@^2.0.4