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/cjs/index.js +8 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/util/Session.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/Competitions.ts +1 -1
- package/src/util/Session.ts +10 -0
package/dist/cjs/index.js
CHANGED
|
@@ -16830,7 +16830,7 @@ var Competitions = /** @class */ (function () {
|
|
|
16830
16830
|
* @returns promise
|
|
16831
16831
|
*/
|
|
16832
16832
|
Competitions.me = function (competition_id, params) {
|
|
16833
|
-
return Requests.processRoute(CompetitionRoutes.routes.
|
|
16833
|
+
return Requests.processRoute(CompetitionRoutes.routes.me, {}, { competition_id: competition_id }, params);
|
|
16834
16834
|
};
|
|
16835
16835
|
return Competitions;
|
|
16836
16836
|
}());
|
|
@@ -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);
|