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/esm/index.js CHANGED
@@ -30009,6 +30009,10 @@ var Requests = /** @class */ (function () {
30009
30009
  }
30010
30010
  var formData = new FormData();
30011
30011
  formData.append(filename, file);
30012
+ if (this.community_id) {
30013
+ // Add the community_id to the request body
30014
+ data = __assign(__assign({}, data), { communities: [this.community_id] });
30015
+ }
30012
30016
  for (var key in data) {
30013
30017
  formData.append(key, data[key]);
30014
30018
  }
@@ -30026,6 +30030,10 @@ var Requests = /** @class */ (function () {
30026
30030
  }
30027
30031
  var formData = new FormData();
30028
30032
  formData.append(filename, blob);
30033
+ if (this.community_id) {
30034
+ // Add the community_id to the request body
30035
+ data = __assign(__assign({}, data), { communities: [this.community_id] });
30036
+ }
30029
30037
  for (var key in data) {
30030
30038
  formData.append(key, data[key]);
30031
30039
  }