froth-webdriverio-framework 7.0.14 → 7.0.16

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.
@@ -39,8 +39,8 @@ async function callapi(
39
39
  const headers = await formHeaders(authentication, headersDetails, bodyType);
40
40
 
41
41
  let body;
42
- if (bodyType === "raw" && payloadDetails) {
43
- console.log("Payload (JSON):", JSON.stringify(payloaddetails));
42
+ if (bodyType === "raw" && payloadDetails && Object.keys(payloadDetails).length > 0) {
43
+ console.log("Payload (JSON):", JSON.stringify(payloadDetails));
44
44
  body = payloadDetails;
45
45
  console.log("Payload (raw):", body);
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "7.0.14",
3
+ "version": "7.0.16",
4
4
  "readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
5
5
  "description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
6
6
  "scripts": {