glitch-javascript-sdk 0.2.6 → 0.2.7

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.
@@ -1,4 +1,3 @@
1
- import Community from "../models/community";
2
1
  /**
3
2
  * Config
4
3
  *
@@ -33,9 +32,9 @@ declare class Config {
33
32
  /**
34
33
  * Set the community to be associated with this config through
35
34
  *
36
- * @param authToken The JWT
35
+ * @param community The object of the community
37
36
  */
38
- static setCommunity(community: Community): void;
37
+ static setCommunity(community: Record<string, any>): void;
39
38
  /**
40
39
  * Gets base url
41
40
  */
@@ -47,6 +46,6 @@ declare class Config {
47
46
  /**
48
47
  * Gets the community currently associated
49
48
  */
50
- static get getCommunity(): Community;
49
+ static get getCommunity(): object;
51
50
  }
52
51
  export default Config;
package/dist/esm/index.js CHANGED
@@ -29868,6 +29868,7 @@ var Requests = /** @class */ (function () {
29868
29868
  * @param token
29869
29869
  */
29870
29870
  Requests.setCommunityID = function (community_id) {
29871
+ console.log("setting communty_id", community_id);
29871
29872
  this.community_id = community_id;
29872
29873
  };
29873
29874
  Requests.request = function (method, url, data, fileData) {
@@ -29908,6 +29909,7 @@ var Requests = /** @class */ (function () {
29908
29909
  .join('&');
29909
29910
  url = "".concat(url, "?").concat(queryString);
29910
29911
  }
29912
+ console.log("Community ID in Request", this.community_id);
29911
29913
  if (this.community_id) {
29912
29914
  // Check if the URL already contains query parameters
29913
29915
  var separator = url.includes('?') ? '&' : '?';
@@ -30086,7 +30088,7 @@ var Config = /** @class */ (function () {
30086
30088
  /**
30087
30089
  * Set the community to be associated with this config through
30088
30090
  *
30089
- * @param authToken The JWT
30091
+ * @param community The object of the community
30090
30092
  */
30091
30093
  Config.setCommunity = function (community) {
30092
30094
  Config._community = community;