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/esm/index.js CHANGED
@@ -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);