@colyseus/sdk 0.17.27 → 0.17.28
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 -3
- package/build/HTTP.cjs.map +1 -1
- package/build/HTTP.mjs +2 -2
- 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 +1 -1
- package/build/debug.mjs +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 -3
- package/dist/colyseus-cocos-creator.js.map +1 -1
- package/dist/colyseus.js +3 -3
- package/dist/colyseus.js.map +1 -1
- package/dist/debug.js +3 -3
- package/dist/debug.js.map +1 -1
- package/package.json +3 -3
- package/src/HTTP.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colyseus/sdk",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.28",
|
|
4
4
|
"description": "Colyseus Multiplayer SDK for JavaScript/TypeScript",
|
|
5
5
|
"author": "Endel Dreyer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@colyseus/schema": "^4.0.7",
|
|
56
56
|
"tslib": "^2.1.0",
|
|
57
57
|
"ws": "^8.13.0",
|
|
58
|
-
"@colyseus/
|
|
59
|
-
"@colyseus/
|
|
58
|
+
"@colyseus/shared-types": "^0.17.6",
|
|
59
|
+
"@colyseus/better-call": "^1.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@rollup/plugin-alias": "^5.1.1",
|
package/src/HTTP.ts
CHANGED
|
@@ -254,7 +254,7 @@ export class HTTP<R extends Router | Router["endpoints"]> {
|
|
|
254
254
|
public options: FetchRequestOptions;
|
|
255
255
|
|
|
256
256
|
private sdk: ColyseusSDK;
|
|
257
|
-
|
|
257
|
+
|
|
258
258
|
// alias "del()" to "delete()"
|
|
259
259
|
public del = this.delete;
|
|
260
260
|
|
|
@@ -537,7 +537,7 @@ export class HTTP<R extends Router | Router["endpoints"]> {
|
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
if (!raw.ok) {
|
|
540
|
-
throw new ServerError(data.code ?? raw.status, data.message ?? raw.statusText, {
|
|
540
|
+
throw new ServerError(data.code ?? raw.status, data.error ?? data.message ?? raw.statusText, {
|
|
541
541
|
headers: raw.headers,
|
|
542
542
|
status: raw.status,
|
|
543
543
|
response: raw,
|