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

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.
@@ -294,7 +294,7 @@ const _fetchEventGroups = (basePath, token, eventId) => __awaiter(void 0, void 0
294
294
  exports._fetchEventGroups = _fetchEventGroups;
295
295
  const _checkBooking = (basePath, body, lang) => __awaiter(void 0, void 0, void 0, function* () {
296
296
  const base = (0, base_1.getBasePath)(basePath);
297
- const response = yield (0, api_1.postRequestSimple)(`${base.PUBLIC_BOOKINGS}/check?lang=${lang}`, body, { "Content-Type": "application/json" });
297
+ const response = yield (0, api_1.postRequestWE)(`${base.PUBLIC_BOOKINGS}/check?lang=${lang}`, body, null, { "Content-Type": "application/json" });
298
298
  return response;
299
299
  });
300
300
  exports._checkBooking = _checkBooking;
package/lib/utils/api.js CHANGED
@@ -356,8 +356,10 @@ const postRequestWE = (url, body, token, headers) => __awaiter(void 0, void 0, v
356
356
  if (headers &&
357
357
  headers["Content-Type"] === "application/x-www-form-urlencoded") {
358
358
  form = new URLSearchParams();
359
+ console.log("test", url);
359
360
  }
360
361
  else {
362
+ console.log("test2", url);
361
363
  form = new FormData();
362
364
  }
363
365
  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.10287",
3
+ "version": "1.0.10289",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",