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.
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/config/Config.d.ts +3 -4
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -85
- package/package.json +1 -1
- package/src/config/Config.ts +3 -3
- package/src/util/Requests.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -15646,6 +15646,7 @@ var Requests = /** @class */ (function () {
|
|
|
15646
15646
|
* @param token
|
|
15647
15647
|
*/
|
|
15648
15648
|
Requests.setCommunityID = function (community_id) {
|
|
15649
|
+
console.log("setting communty_id", community_id);
|
|
15649
15650
|
this.community_id = community_id;
|
|
15650
15651
|
};
|
|
15651
15652
|
Requests.request = function (method, url, data, fileData) {
|
|
@@ -15686,6 +15687,7 @@ var Requests = /** @class */ (function () {
|
|
|
15686
15687
|
.join('&');
|
|
15687
15688
|
url = "".concat(url, "?").concat(queryString);
|
|
15688
15689
|
}
|
|
15690
|
+
console.log("Community ID in Request", this.community_id);
|
|
15689
15691
|
if (this.community_id) {
|
|
15690
15692
|
// Check if the URL already contains query parameters
|
|
15691
15693
|
var separator = url.includes('?') ? '&' : '?';
|
|
@@ -15864,7 +15866,7 @@ var Config = /** @class */ (function () {
|
|
|
15864
15866
|
/**
|
|
15865
15867
|
* Set the community to be associated with this config through
|
|
15866
15868
|
*
|
|
15867
|
-
* @param
|
|
15869
|
+
* @param community The object of the community
|
|
15868
15870
|
*/
|
|
15869
15871
|
Config.setCommunity = function (community) {
|
|
15870
15872
|
Config._community = community;
|