@colyseus/sdk 0.17.26 → 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.
Files changed (61) hide show
  1. package/LICENSE +1 -2
  2. package/build/3rd_party/discord.cjs +1 -1
  3. package/build/3rd_party/discord.mjs +1 -1
  4. package/build/Auth.cjs +1 -1
  5. package/build/Auth.mjs +1 -1
  6. package/build/Client.cjs +1 -1
  7. package/build/Client.mjs +1 -1
  8. package/build/Connection.cjs +1 -1
  9. package/build/Connection.mjs +1 -1
  10. package/build/HTTP.cjs +3 -3
  11. package/build/HTTP.cjs.map +1 -1
  12. package/build/HTTP.mjs +2 -2
  13. package/build/HTTP.mjs.map +1 -1
  14. package/build/Room.cjs +2 -2
  15. package/build/Room.cjs.map +1 -1
  16. package/build/Room.mjs +2 -2
  17. package/build/Room.mjs.map +1 -1
  18. package/build/Storage.cjs +1 -1
  19. package/build/Storage.mjs +1 -1
  20. package/build/core/nanoevents.cjs +1 -1
  21. package/build/core/nanoevents.mjs +1 -1
  22. package/build/core/signal.cjs +1 -1
  23. package/build/core/signal.mjs +1 -1
  24. package/build/core/utils.cjs +1 -1
  25. package/build/core/utils.mjs +1 -1
  26. package/build/debug.cjs +1 -1
  27. package/build/debug.mjs +1 -1
  28. package/build/errors/Errors.cjs +1 -1
  29. package/build/errors/Errors.mjs +1 -1
  30. package/build/index.cjs +1 -1
  31. package/build/index.mjs +1 -1
  32. package/build/legacy.cjs +1 -1
  33. package/build/legacy.mjs +1 -1
  34. package/build/serializer/NoneSerializer.cjs +1 -1
  35. package/build/serializer/NoneSerializer.mjs +1 -1
  36. package/build/serializer/SchemaSerializer.cjs +1 -1
  37. package/build/serializer/SchemaSerializer.mjs +1 -1
  38. package/build/serializer/Serializer.cjs +1 -1
  39. package/build/serializer/Serializer.mjs +1 -1
  40. package/build/transport/H3Transport.cjs +1 -1
  41. package/build/transport/H3Transport.mjs +1 -1
  42. package/build/transport/WebSocketTransport.cjs +1 -1
  43. package/build/transport/WebSocketTransport.mjs +1 -1
  44. package/dist/colyseus-cocos-creator.js +4 -4
  45. package/dist/colyseus-cocos-creator.js.map +1 -1
  46. package/dist/colyseus.js +4 -4
  47. package/dist/colyseus.js.map +1 -1
  48. package/dist/debug.js +4 -4
  49. package/dist/debug.js.map +1 -1
  50. package/package.json +3 -3
  51. package/src/HTTP.ts +2 -2
  52. package/src/Room.ts +1 -1
  53. package/README.md +0 -27
  54. package/build/HTTP.bkp.d.ts +0 -103
  55. package/build/HTTP_bkp.d.ts +0 -18
  56. package/build/Protocol.cjs +0 -34
  57. package/build/Protocol.cjs.map +0 -1
  58. package/build/Protocol.d.ts +0 -21
  59. package/build/Protocol.mjs +0 -34
  60. package/build/Protocol.mjs.map +0 -1
  61. package/dist/colyseus.d.ts +0 -3969
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.26 - @colyseus/schema 4.0.8
6
+ // colyseus.js@0.17.28 - @colyseus/schema 4.0.8
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) :
@@ -8658,7 +8658,7 @@
8658
8658
  this.connection.connect(url.origin, Object.assign(Object.assign({}, options), { skipHandshake }));
8659
8659
  }
8660
8660
  else {
8661
- this.connection.connect(`${endpoint}${skipHandshake ? "?skipHandshake=1" : ""}`, headers);
8661
+ this.connection.connect(`${endpoint}${skipHandshake ? "&skipHandshake=1" : ""}`, headers);
8662
8662
  }
8663
8663
  }
8664
8664
  leave(consented = true) {
@@ -9009,7 +9009,7 @@
9009
9009
  }
9010
9010
  executeRequest(method, path, requestOptions) {
9011
9011
  return __awaiter(this, void 0, void 0, function* () {
9012
- var _a, _b, _c;
9012
+ var _a, _b, _c, _d;
9013
9013
  //
9014
9014
  // FIXME: if FormData is provided, merging "baseOptions.body" with
9015
9015
  // "options.body" will not work as intended
@@ -9072,7 +9072,7 @@
9072
9072
  data = yield raw.blob();
9073
9073
  }
9074
9074
  if (!raw.ok) {
9075
- throw new ServerError((_b = data.code) !== null && _b !== void 0 ? _b : raw.status, (_c = data.message) !== null && _c !== void 0 ? _c : raw.statusText, {
9075
+ throw new ServerError((_b = data.code) !== null && _b !== void 0 ? _b : raw.status, (_d = (_c = data.error) !== null && _c !== void 0 ? _c : data.message) !== null && _d !== void 0 ? _d : raw.statusText, {
9076
9076
  headers: raw.headers,
9077
9077
  status: raw.status,
9078
9078
  response: raw,