glitch-javascript-sdk 0.4.2 → 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/cjs/index.js CHANGED
@@ -18308,6 +18308,13 @@ var Session = /** @class */ (function () {
18308
18308
  Session.getEmail = function () {
18309
18309
  return Storage.get(Session._email_key);
18310
18310
  };
18311
+ Session.hasJoinedCommunity = function () {
18312
+ var community = Storage.get('community');
18313
+ if (!community) {
18314
+ return false;
18315
+ }
18316
+ return (community === null || community === void 0 ? void 0 : community.me) ? true : false;
18317
+ };
18311
18318
  Session.end = function () {
18312
18319
  Storage.setAuthToken(null);
18313
18320
  Storage.set(Session._id_key, null);