@hubs101/js-api-skd-client 1.0.10289 → 1.0.10291

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 -4
  2. package/package.json +1 -1
package/lib/utils/api.js CHANGED
@@ -353,13 +353,12 @@ 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") {
356
+ if ((headers &&
357
+ headers["Content-Type"] === "application/x-www-form-urlencoded") ||
358
+ headers["Content-Type"] === "application/json") {
358
359
  form = new URLSearchParams();
359
- console.log("test", url);
360
360
  }
361
361
  else {
362
- console.log("test2", url);
363
362
  form = new FormData();
364
363
  }
365
364
  Object.keys((0, exports.trimUndefined)(body)).forEach((key) => Array.isArray(body[key])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10289",
3
+ "version": "1.0.10291",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",