@hubs101/js-api-skd-client 1.0.10292 → 1.0.10293

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/lib/utils/api.js +3 -5
  2. package/package.json +1 -1
package/lib/utils/api.js CHANGED
@@ -353,20 +353,18 @@ const postRequestWE = (url, body, token, headers) => __awaiter(void 0, void 0, v
353
353
  var _e;
354
354
  let form;
355
355
  if (body) {
356
- if ((headers &&
357
- headers["Content-Type"] === "application/x-www-form-urlencoded") ||
358
- headers["Content-Type"] === "application/json") {
356
+ if (headers &&
357
+ headers["Content-Type"] === "application/x-www-form-urlencoded") {
359
358
  form = new URLSearchParams();
360
359
  }
361
360
  else {
362
361
  form = new FormData();
363
362
  }
364
- console.log("trimmed boy", Object.keys((0, exports.trimUndefined)(body)));
365
- console.log({ form });
366
363
  Object.keys((0, exports.trimUndefined)(body)).forEach((key) => Array.isArray(body[key])
367
364
  ? form.append(key, JSON.stringify(body[key]))
368
365
  : form.append(key, body[key]));
369
366
  }
367
+ console.log({ form });
370
368
  const response = yield fetch(url, {
371
369
  method: "POST",
372
370
  headers: token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10292",
3
+ "version": "1.0.10293",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",