froth-webdriverio-framework 3.0.124 → 3.0.125

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.
@@ -71,6 +71,8 @@ async function formheaders(authentication, headers, body_type) {
71
71
  }
72
72
  if (body_type === "formdata") {
73
73
  headers['Content-Type'] = 'multipart/form-data';
74
+ }if(body_type === "raw"){
75
+ headers['Content-Type'] = 'application/json';
74
76
  }
75
77
  // Add authentication headers based on the type
76
78
  if (authentication && authentication.auth_type) {
@@ -44,19 +44,7 @@ const commonconfig = {
44
44
  console.log('==== BEFORE HOOK ====');
45
45
 
46
46
  // Capture uncaught exceptions (including syntax errors)
47
- process.on('uncaughtException', (err) => {
48
- console.error("Uncaught Exception:", err);
49
- resultdetails.comments.push(`Execution failed with exit code: ${err}`);
50
- });
51
-
52
- // Capture unhandled promise rejections
53
- process.on('unhandledRejection', (reason, promise) => {
54
- console.error("Unhandled Promise Rejection:", reason);
55
- resultdetails.comments.push(`Execution failed with exit code: ${reason}`);
56
- });
57
- resultdetails.excution_status='SKIPPED';
58
- await exeDetails.updateExecuitonDetails(BUFFER.getItem("ORGANISATION_DOMAIN_URL"), BUFFER.getItem("FROTH_LOGIN_TOKEN"), BUFFER.getItem("FROTH_EXECUTION_ID"), resultdetails)
59
-
47
+
60
48
  },
61
49
 
62
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "3.0.124",
3
+ "version": "3.0.125",
4
4
 
5
5
  "readme": "WebdriverIO Integration",
6
6
  "description": "WebdriverIO and BrowserStack App Automate",