glitch-javascript-sdk 2.9.1 → 2.9.2

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/dist/cjs/index.js CHANGED
@@ -24961,6 +24961,11 @@ var TitlesRoute = /** @class */ (function () {
24961
24961
  method: HTTP_METHODS.GET
24962
24962
  },
24963
24963
  updateBuildStatus: { url: '/titles/{title_id}/deployments/{build_id}/status', method: HTTP_METHODS.PUT },
24964
+ // Inside the routes object in TitlesRoute.ts
24965
+ getMatchmakerServer: {
24966
+ url: '/titles/{title_id}/matchmaker/server',
24967
+ method: HTTP_METHODS.GET
24968
+ },
24964
24969
  };
24965
24970
  return TitlesRoute;
24966
24971
  }());
@@ -25718,6 +25723,16 @@ var Titles = /** @class */ (function () {
25718
25723
  Titles.updateBuildStatus = function (title_id, build_id, status) {
25719
25724
  return Requests.processRoute(TitlesRoute.routes.updateBuildStatus, { status: status }, { title_id: title_id, build_id: build_id });
25720
25725
  };
25726
+ /**
25727
+ * Proxies a request through the backend to the matchmaker.
25728
+ * This avoids HTTPS -> HTTP mixed content blocks.
25729
+ *
25730
+ * @param title_id The UUID of the game title.
25731
+ * @returns AxiosPromise containing { signallingServer: string }
25732
+ */
25733
+ Titles.getMatchmakerServer = function (title_id) {
25734
+ return Requests.processRoute(TitlesRoute.routes.getMatchmakerServer, {}, { title_id: title_id });
25735
+ };
25721
25736
  return Titles;
25722
25737
  }());
25723
25738