@wdio/allure-reporter 8.32.2 → 8.32.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"compoundError.d.ts","sourceRoot":"","sources":["../src/compoundError.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK;IACrC,WAAW,EAAE,KAAK,EAAE,CAAA;gBAEf,GAAG,WAAW,EAAE,KAAK,EAAE;CAUtC"}
1
+ {"version":3,"file":"compoundError.d.ts","sourceRoot":"","sources":["../src/compoundError.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK;IACrC,WAAW,EAAE,KAAK,EAAE,CAAA;gBAEf,GAAG,WAAW,EAAE,KAAK,EAAE;CActC"}
@@ -9,9 +9,10 @@ export default class CompoundError extends Error {
9
9
  innerErrors;
10
10
  constructor(...innerErrors) {
11
11
  const message = ['CompoundError: One or more errors occurred. ---\n'].
12
- concat(innerErrors.map(x => x.stack
13
- ? `${indentAll(x.stack)}\n--- End of stack trace ---\n`
14
- : ` ${x.message}\n--- End of error message ---\n`)).join('\n');
12
+ concat(innerErrors.map(x => x.message && x.stack?.includes(x.message)
13
+ ? (x.stack ? `${indentAll(x.stack)}\n--- End of stack trace ---\n` : '')
14
+ : ((x.message ? ` ${x.message}\n--- End of error message ---\n` : '') +
15
+ (x.stack ? `${indentAll(x.stack)}\n--- End of stack trace ---\n` : '')))).join('\n');
15
16
  super(message);
16
17
  this.innerErrors = innerErrors;
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/allure-reporter",
3
- "version": "8.32.2",
3
+ "version": "8.32.4",
4
4
  "description": "A WebdriverIO reporter plugin to create Allure Test Reports",
5
5
  "author": "Boris Osipov <osipov.boris@gmail.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-allure-reporter",
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@types/node": "^20.1.0",
43
- "@wdio/reporter": "8.32.2",
44
- "@wdio/types": "8.32.2",
43
+ "@wdio/reporter": "8.32.4",
44
+ "@wdio/types": "8.32.4",
45
45
  "allure-js-commons": "^2.5.0",
46
46
  "csv-stringify": "^6.0.4",
47
47
  "strip-ansi": "^7.1.0"
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "dd4ccd4bcbca4b5f97af81fc6ccee11cb8859654"
52
+ "gitHead": "f8d2d051d1331f4c24521a3c3b0e830ff3e45282"
53
53
  }