glitch-javascript-sdk 0.4.1 → 0.4.3

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/esm/index.js CHANGED
@@ -31052,7 +31052,7 @@ var Competitions = /** @class */ (function () {
31052
31052
  * @returns promise
31053
31053
  */
31054
31054
  Competitions.me = function (competition_id, params) {
31055
- return Requests.processRoute(CompetitionRoutes.routes.allLeaderboards, {}, { competition_id: competition_id }, params);
31055
+ return Requests.processRoute(CompetitionRoutes.routes.me, {}, { competition_id: competition_id }, params);
31056
31056
  };
31057
31057
  return Competitions;
31058
31058
  }());
@@ -32530,6 +32530,13 @@ var Session = /** @class */ (function () {
32530
32530
  Session.getEmail = function () {
32531
32531
  return Storage.get(Session._email_key);
32532
32532
  };
32533
+ Session.hasJoinedCommunity = function () {
32534
+ var community = Storage.get('community');
32535
+ if (!community) {
32536
+ return false;
32537
+ }
32538
+ return (community === null || community === void 0 ? void 0 : community.me) ? true : false;
32539
+ };
32533
32540
  Session.end = function () {
32534
32541
  Storage.setAuthToken(null);
32535
32542
  Storage.set(Session._id_key, null);