migrate to vite (#16)

This commit is contained in:
Brian Beck 2026-03-13 23:00:08 -07:00 committed by GitHub
parent 1373f12ab4
commit 5025065188
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
165 changed files with 56708 additions and 8931 deletions

View file

@ -263,7 +263,10 @@ export class GameConnection extends EventEmitter<GameConnectionEvents> {
const dv = new DataView(msg.buffer, msg.byteOffset, msg.byteLength);
const seq = dv.getUint32(1, true);
if (seq !== this.clientConnectSequence) {
connLog.debug({ expected: this.clientConnectSequence, got: seq }, "ChallengeReject sequence mismatch, ignoring");
connLog.debug(
{ expected: this.clientConnectSequence, got: seq },
"ChallengeReject sequence mismatch, ignoring",
);
return;
}
let reason = "Challenge rejected";
@ -369,10 +372,17 @@ export class GameConnection extends EventEmitter<GameConnectionEvents> {
const dv = new DataView(msg.buffer, msg.byteOffset, msg.byteLength);
const serverSeq = dv.getUint32(1, true);
const clientSeq = dv.getUint32(5, true);
if (serverSeq !== this.serverConnectSequence || clientSeq !== this.clientConnectSequence) {
if (
serverSeq !== this.serverConnectSequence ||
clientSeq !== this.clientConnectSequence
) {
connLog.debug(
{ expectedServer: this.serverConnectSequence, gotServer: serverSeq,
expectedClient: this.clientConnectSequence, gotClient: clientSeq },
{
expectedServer: this.serverConnectSequence,
gotServer: serverSeq,
expectedClient: this.clientConnectSequence,
gotClient: clientSeq,
},
"ConnectReject sequence mismatch, ignoring",
);
return;