@colyseus/sdk 0.17.32 → 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 +5 -26
- package/build/debug.cjs.map +1 -1
- package/build/debug.mjs +5 -26
- 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 +5 -26
- package/dist/debug.js.map +1 -1
- package/package.json +3 -3
- package/src/debug.ts +4 -28
package/build/errors/Errors.cjs
CHANGED
package/build/errors/Errors.mjs
CHANGED
package/build/index.cjs
CHANGED
package/build/index.mjs
CHANGED
package/build/legacy.cjs
CHANGED
package/build/legacy.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 - @colyseus/schema 4.0.11
|
|
7
7
|
// THIS VERSION USES "XMLHttpRequest" INSTEAD OF "fetch" FOR COMPATIBILITY WITH COCOS CREATOR
|
|
8
8
|
(function (global, factory) {
|
|
9
9
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
package/dist/colyseus.js
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 - @colyseus/schema 4.0.11
|
|
7
7
|
(function (global, factory) {
|
|
8
8
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
9
9
|
typeof define === 'function' && define.amd ? define('@colyseus/sdk', ['exports'], factory) :
|
package/dist/debug.js
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
|
(function (Client_ts, sharedTypes) {
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
@@ -2532,33 +2532,12 @@
|
|
|
2532
2532
|
});
|
|
2533
2533
|
return room;
|
|
2534
2534
|
}
|
|
2535
|
-
//
|
|
2536
|
-
var
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
var originalReconnect = Client_ts.Client.prototype.reconnect;
|
|
2540
|
-
// Patch joinOrCreate
|
|
2541
|
-
Client_ts.Client.prototype.joinOrCreate = function () {
|
|
2542
|
-
var promise = originalJoinOrCreate.apply(this, arguments);
|
|
2535
|
+
// Patch consumeSeatReservation to intercept all room connections
|
|
2536
|
+
var originalConsumeSeatReservation = Client_ts.Client.prototype.consumeSeatReservation;
|
|
2537
|
+
Client_ts.Client.prototype.consumeSeatReservation = function () {
|
|
2538
|
+
var promise = originalConsumeSeatReservation.apply(this, arguments);
|
|
2543
2539
|
return promise.then((room) => patchRoom(room));
|
|
2544
2540
|
};
|
|
2545
|
-
// Patch join
|
|
2546
|
-
Client_ts.Client.prototype.join = function () {
|
|
2547
|
-
var promise = originalJoin.apply(this, arguments);
|
|
2548
|
-
return promise.then((room) => patchRoom(room));
|
|
2549
|
-
};
|
|
2550
|
-
// Patch create
|
|
2551
|
-
Client_ts.Client.prototype.create = function () {
|
|
2552
|
-
var promise = originalCreate.apply(this, arguments);
|
|
2553
|
-
return promise.then((room) => patchRoom(room));
|
|
2554
|
-
};
|
|
2555
|
-
// Patch reconnect
|
|
2556
|
-
if (originalReconnect) {
|
|
2557
|
-
Client_ts.Client.prototype.reconnect = function () {
|
|
2558
|
-
var promise = originalReconnect.apply(this, arguments);
|
|
2559
|
-
return promise.then((room) => patchRoom(room));
|
|
2560
|
-
};
|
|
2561
|
-
}
|
|
2562
2541
|
}
|
|
2563
2542
|
applyMonkeyPatches();
|
|
2564
2543
|
// Initialize only after DOM is ready
|