@colyseus/sdk 0.17.31 → 0.17.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/3rd_party/discord.cjs +1 -1
- package/build/3rd_party/discord.mjs +1 -1
- package/build/Auth.cjs +1 -1
- package/build/Auth.mjs +1 -1
- package/build/Client.cjs +1 -1
- package/build/Client.mjs +1 -1
- package/build/Connection.cjs +1 -1
- package/build/Connection.mjs +1 -1
- package/build/HTTP.cjs +1 -1
- package/build/HTTP.mjs +1 -1
- package/build/Room.cjs +1 -1
- package/build/Room.mjs +1 -1
- package/build/Storage.cjs +1 -1
- package/build/Storage.mjs +1 -1
- package/build/core/nanoevents.cjs +1 -1
- package/build/core/nanoevents.mjs +1 -1
- package/build/core/signal.cjs +1 -1
- package/build/core/signal.mjs +1 -1
- package/build/core/utils.cjs +1 -1
- package/build/core/utils.mjs +1 -1
- package/build/debug.cjs +7 -27
- package/build/debug.cjs.map +1 -1
- package/build/debug.mjs +7 -27
- package/build/debug.mjs.map +1 -1
- package/build/errors/Errors.cjs +1 -1
- package/build/errors/Errors.mjs +1 -1
- package/build/index.cjs +1 -1
- package/build/index.mjs +1 -1
- package/build/legacy.cjs +1 -1
- package/build/legacy.mjs +1 -1
- package/build/serializer/NoneSerializer.cjs +1 -1
- package/build/serializer/NoneSerializer.mjs +1 -1
- package/build/serializer/SchemaSerializer.cjs +1 -1
- package/build/serializer/SchemaSerializer.mjs +1 -1
- package/build/serializer/Serializer.cjs +1 -1
- package/build/serializer/Serializer.mjs +1 -1
- package/build/transport/H3Transport.cjs +1 -1
- package/build/transport/H3Transport.mjs +1 -1
- package/build/transport/WebSocketTransport.cjs +1 -1
- package/build/transport/WebSocketTransport.mjs +1 -1
- package/dist/colyseus-cocos-creator.js +1 -1
- package/dist/colyseus.js +1 -1
- package/dist/debug.js +7 -27
- package/dist/debug.js.map +1 -1
- package/package.json +2 -2
- package/src/debug.ts +6 -29
package/build/Auth.cjs
CHANGED
package/build/Auth.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.33
|
|
7
7
|
import { getItem, removeItem, setItem } from './Storage.mjs';
|
|
8
8
|
import { createNanoEvents } from './core/nanoevents.mjs';
|
|
9
9
|
|
package/build/Client.cjs
CHANGED
package/build/Client.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.33
|
|
7
7
|
import { Protocol, CloseCode } from '@colyseus/shared-types';
|
|
8
8
|
import { ServerError, MatchMakeError } from './errors/Errors.mjs';
|
|
9
9
|
import { Room } from './Room.mjs';
|
package/build/Connection.cjs
CHANGED
package/build/Connection.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.33
|
|
7
7
|
import { H3TransportTransport } from './transport/H3Transport.mjs';
|
|
8
8
|
import { WebSocketTransport } from './transport/WebSocketTransport.mjs';
|
|
9
9
|
import { CloseCode } from '@colyseus/shared-types';
|
package/build/HTTP.cjs
CHANGED
package/build/HTTP.mjs
CHANGED
package/build/Room.cjs
CHANGED
package/build/Room.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.33
|
|
7
7
|
import { CloseCode, Protocol } from '@colyseus/shared-types';
|
|
8
8
|
import { Decoder, encode, decode } from '@colyseus/schema';
|
|
9
9
|
import { Packr, unpack } from '@colyseus/msgpackr';
|
package/build/Storage.cjs
CHANGED
package/build/Storage.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.33
|
|
7
7
|
/// <reference path="../typings/cocos-creator.d.ts" />
|
|
8
8
|
/**
|
|
9
9
|
* We do not assign 'storage' to window.localStorage immediatelly for React
|
package/build/core/signal.cjs
CHANGED
package/build/core/signal.mjs
CHANGED
package/build/core/utils.cjs
CHANGED
package/build/core/utils.mjs
CHANGED
package/build/debug.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This software is released under the MIT License.
|
|
4
4
|
// https://opensource.org/license/MIT
|
|
5
5
|
//
|
|
6
|
-
// colyseus.js@0.17.
|
|
6
|
+
// colyseus.js@0.17.33
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var Client = require('./Client.cjs');
|
|
@@ -932,7 +932,7 @@ function openSendMessagesModal(uniquePanelId) {
|
|
|
932
932
|
typeSelect.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
|
|
933
933
|
typeSelect.style.border = '1px solid rgba(255, 255, 255, 0.2)';
|
|
934
934
|
typeSelect.style.borderRadius = '4px';
|
|
935
|
-
typeSelect.style.color = '#
|
|
935
|
+
typeSelect.style.color = '#fff';
|
|
936
936
|
typeSelect.style.fontSize = '12px';
|
|
937
937
|
typeSelect.style.cursor = 'pointer';
|
|
938
938
|
typeSelect.style.outline = 'none';
|
|
@@ -948,6 +948,7 @@ function openSendMessagesModal(uniquePanelId) {
|
|
|
948
948
|
Object.keys(messageTypes).forEach(function (msgType) {
|
|
949
949
|
var option = document.createElement('option');
|
|
950
950
|
option.value = msgType;
|
|
951
|
+
option.style.color = '#000';
|
|
951
952
|
option.textContent = msgType;
|
|
952
953
|
typeSelect.appendChild(option);
|
|
953
954
|
});
|
|
@@ -2533,33 +2534,12 @@ function applyMonkeyPatches() {
|
|
|
2533
2534
|
});
|
|
2534
2535
|
return room;
|
|
2535
2536
|
}
|
|
2536
|
-
//
|
|
2537
|
-
var
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
var originalReconnect = Client.Client.prototype.reconnect;
|
|
2541
|
-
// Patch joinOrCreate
|
|
2542
|
-
Client.Client.prototype.joinOrCreate = function () {
|
|
2543
|
-
var promise = originalJoinOrCreate.apply(this, arguments);
|
|
2537
|
+
// Patch consumeSeatReservation to intercept all room connections
|
|
2538
|
+
var originalConsumeSeatReservation = Client.Client.prototype.consumeSeatReservation;
|
|
2539
|
+
Client.Client.prototype.consumeSeatReservation = function () {
|
|
2540
|
+
var promise = originalConsumeSeatReservation.apply(this, arguments);
|
|
2544
2541
|
return promise.then((room) => patchRoom(room));
|
|
2545
2542
|
};
|
|
2546
|
-
// Patch join
|
|
2547
|
-
Client.Client.prototype.join = function () {
|
|
2548
|
-
var promise = originalJoin.apply(this, arguments);
|
|
2549
|
-
return promise.then((room) => patchRoom(room));
|
|
2550
|
-
};
|
|
2551
|
-
// Patch create
|
|
2552
|
-
Client.Client.prototype.create = function () {
|
|
2553
|
-
var promise = originalCreate.apply(this, arguments);
|
|
2554
|
-
return promise.then((room) => patchRoom(room));
|
|
2555
|
-
};
|
|
2556
|
-
// Patch reconnect
|
|
2557
|
-
if (originalReconnect) {
|
|
2558
|
-
Client.Client.prototype.reconnect = function () {
|
|
2559
|
-
var promise = originalReconnect.apply(this, arguments);
|
|
2560
|
-
return promise.then((room) => patchRoom(room));
|
|
2561
|
-
};
|
|
2562
|
-
}
|
|
2563
2543
|
}
|
|
2564
2544
|
applyMonkeyPatches();
|
|
2565
2545
|
// Initialize only after DOM is ready
|