glitch-javascript-sdk 0.3.5 → 0.3.6
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 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/util/Requests.ts +17 -0
package/dist/cjs/index.js
CHANGED
|
@@ -15787,6 +15787,10 @@ var Requests = /** @class */ (function () {
|
|
|
15787
15787
|
}
|
|
15788
15788
|
var formData = new FormData();
|
|
15789
15789
|
formData.append(filename, file);
|
|
15790
|
+
if (this.community_id) {
|
|
15791
|
+
// Add the community_id to the request body
|
|
15792
|
+
data = __assign(__assign({}, data), { communities: [this.community_id] });
|
|
15793
|
+
}
|
|
15790
15794
|
for (var key in data) {
|
|
15791
15795
|
formData.append(key, data[key]);
|
|
15792
15796
|
}
|
|
@@ -15804,6 +15808,10 @@ var Requests = /** @class */ (function () {
|
|
|
15804
15808
|
}
|
|
15805
15809
|
var formData = new FormData();
|
|
15806
15810
|
formData.append(filename, blob);
|
|
15811
|
+
if (this.community_id) {
|
|
15812
|
+
// Add the community_id to the request body
|
|
15813
|
+
data = __assign(__assign({}, data), { communities: [this.community_id] });
|
|
15814
|
+
}
|
|
15807
15815
|
for (var key in data) {
|
|
15808
15816
|
formData.append(key, data[key]);
|
|
15809
15817
|
}
|