@parra/parra-js-sdk 0.3.392 → 0.3.393

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.
Files changed (2) hide show
  1. package/dist/ParraAPI.js +6 -3
  2. package/package.json +1 -1
package/dist/ParraAPI.js CHANGED
@@ -483,9 +483,12 @@ var ParraAPI = /** @class */ (function () {
483
483
  };
484
484
  this.createContentCard = function (tenant_id, body, options) {
485
485
  if (options === void 0) { options = {}; }
486
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), __assign({ method: "post", body: JSON.stringify(body), headers: {
487
- "content-type": "application/json",
488
- } }, options));
486
+ var formData = new FormData();
487
+ Object.entries(body).forEach(function (_a) {
488
+ var key = _a[0], value = _a[1];
489
+ formData.append(key, value);
490
+ });
491
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), __assign({ method: "post", body: formData, headers: {} }, options));
489
492
  };
490
493
  this.paginateContentCards = function (tenant_id, query, options) {
491
494
  if (options === void 0) { options = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.392",
3
+ "version": "0.3.393",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",