@colyseus/sdk 0.17.36 → 0.17.38
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 +3 -4
- package/build/HTTP.cjs.map +1 -1
- package/build/HTTP.mjs +3 -4
- package/build/HTTP.mjs.map +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 +18 -1
- package/build/debug.cjs.map +1 -1
- package/build/debug.mjs +18 -1
- 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 +3 -4
- package/dist/colyseus-cocos-creator.js.map +1 -1
- package/dist/colyseus.js +3 -4
- package/dist/colyseus.js.map +1 -1
- package/dist/debug.js +18 -1
- package/dist/debug.js.map +1 -1
- package/package.json +3 -3
- package/src/HTTP.ts +2 -3
- package/src/debug.ts +15 -0
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.38 - @colyseus/schema 4.0.13
|
|
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) :
|
|
@@ -9079,11 +9079,10 @@
|
|
|
9079
9079
|
}
|
|
9080
9080
|
const contentType = raw.headers.get("content-type");
|
|
9081
9081
|
let data;
|
|
9082
|
-
|
|
9083
|
-
if (contentType === null || contentType === void 0 ? void 0 : contentType.indexOf("json")) {
|
|
9082
|
+
if (contentType === null || contentType === void 0 ? void 0 : contentType.includes("json")) {
|
|
9084
9083
|
data = yield raw.json();
|
|
9085
9084
|
}
|
|
9086
|
-
else if (contentType === null || contentType === void 0 ? void 0 : contentType.
|
|
9085
|
+
else if (contentType === null || contentType === void 0 ? void 0 : contentType.includes("text")) {
|
|
9087
9086
|
data = yield raw.text();
|
|
9088
9087
|
}
|
|
9089
9088
|
else {
|