aggregate-error
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -26,3 +26,8 @@ 'use strict'; | ||
let message = errors.map(error => cleanInternalStack(cleanStack(error.stack))).join('\n'); | ||
let message = errors | ||
.map(error => { | ||
// The `stack` property is not standardized, so we can't assume it exists | ||
return typeof error.stack === 'string' ? cleanInternalStack(cleanStack(error.stack)) : String(error); | ||
}) | ||
.join('\n'); | ||
message = '\n' + indentString(message, 4); | ||
@@ -29,0 +34,0 @@ super(message); |
{ | ||
"name": "aggregate-error", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Create an error from multiple errors", | ||
@@ -37,5 +37,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"ava": "^1.0.1", | ||
"xo": "^0.23.0" | ||
"ava": "^1.2.1", | ||
"xo": "^0.24.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4902
37