froth-webdriverio-framework 3.0.127 → 3.0.128

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.
@@ -33,17 +33,17 @@ async function callapi(methodtype, api_url, queryParams, payloaddetails, body_ty
33
33
 
34
34
  // console.log("options:", JSON.stringify(options, null, 2));
35
35
  // Send the request
36
- if (method === 'GET' && body) {
37
- console.warn("Using X-HTTP-Method-Override for GET with body.");
38
- response = await fetch(api_url, {
39
- method: 'POST', // Override to POST
40
- headers: {
41
- ...headers,
42
- 'X-HTTP-Method-Override': 'GET' // Trick the API into treating it as GET
43
- },
44
- body: body
45
- });
46
- } else
36
+ // if (method === 'GET' && body) {
37
+ // console.warn("Using X-HTTP-Method-Override for GET with body.");
38
+ // response = await fetch(api_url, {
39
+ // method: 'POST', // Override to POST
40
+ // headers: {
41
+ // ...headers,
42
+ // 'X-HTTP-Method-Override': 'GET' // Trick the API into treating it as GET
43
+ // },
44
+ // body: body
45
+ // });
46
+ // } else
47
47
  response = await fetch(api_url, {method,headers, body});
48
48
 
49
49
  console.log("Response Data:", response);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.127",
3
+ "version": "3.0.128",
4
4
 
5
5
  "readme": "WebdriverIO Integration",
6
6
  "description": "WebdriverIO and BrowserStack App Automate",