froth-webdriverio-framework 3.0.159 → 4.0.1

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.
@@ -34,9 +34,7 @@ async function callapi(methodtype, api_url, queryParams, payloaddetails, body_ty
34
34
  console.log("No body sent (body_type not provided or empty payload).");
35
35
  }
36
36
 
37
- // console.log("options:", JSON.stringify(options, null, 2));
38
- // Send the request
39
- // if (method === 'GET' && body) {
37
+
40
38
  console.warn("Warning: GET request with a body is non-standard and may not work with all APIs.");
41
39
  response = await axios({
42
40
  method: method,
@@ -44,14 +42,7 @@ async function callapi(methodtype, api_url, queryParams, payloaddetails, body_ty
44
42
  headers: headers,
45
43
  data: body === null ? undefined : body // Axios allows body with GET in some cases
46
44
  });
47
- // } else {
48
- // // ✅ Use Fetch for other request types
49
- // response = await fetch(api_url, {
50
- // method,
51
- // headers,
52
- // body: method !== 'GET' ? body : null, // Fetch does NOT allow body in GET
53
- // });
54
- // }
45
+
55
46
 
56
47
  console.log("Response Data:", response.data);
57
48
 
@@ -22,7 +22,9 @@ function setupPrerequisites() {
22
22
  process.env.BROWSERSTACK_USERNAME = capabilities.userName;
23
23
  capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
24
24
  process.env.BROWSERSTACK_ACCESS_KEY = capabilities.accessKey
25
- console.log('capabilities.platformName:', capabilities.platformName);
25
+
26
+ console.log('capabilities.platformName:', capabilities.platformName ?? 'web');
27
+
26
28
  process.env.BS_SESSION_TYPE = capabilities.platformName === 'android' || capabilities.platformName === 'ios' ? 'app-automate' : 'automate';
27
29
  capabilities.buildName = process.env.FROTH_TESTOPS_BUILD_NAME;
28
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.159",
3
+ "version": "4.0.1",
4
4
 
5
5
  "readme": "WebdriverIO Integration",
6
6
  "description": "WebdriverIO and BrowserStack App Automate",
File without changes