Comparing version 1.0.2 to 1.0.3
@@ -47,10 +47,26 @@ 'use strict'; | ||
err[i] = result[errors[i]].result; | ||
if (err[i].errors instanceof BatchError) { | ||
if (err[i] instanceof BatchError) { | ||
err[i] = err[i].getErrors(); | ||
} | ||
} | ||
$npm.utils.extend(err, '$isErrorList', true); | ||
return err; | ||
}; | ||
var e = this.getErrors(), | ||
first = e[0]; | ||
while (first && first.$isErrorList) { | ||
first = first[0]; | ||
} | ||
// we do not show it within the inspect, because when the error | ||
// happens for a nested result, the output becomes a mess. | ||
this.first = first; | ||
var e = this.getErrors(); | ||
if (first instanceof Error) { | ||
this.message = first.message; | ||
} else { | ||
this.message = first; | ||
} | ||
@@ -64,11 +80,2 @@ this.stat = { | ||
// we do not show it within the inspect, because when the error | ||
// happens for a nested result, the output becomes a mess. | ||
this.first = e[0]; | ||
if (this.first instanceof Error) { | ||
this.message = this.first.message; | ||
} else { | ||
this.message = this.first; | ||
} | ||
} | ||
@@ -109,3 +116,3 @@ | ||
]; | ||
this.data.forEach(function (d, index, data) { | ||
@@ -112,0 +119,0 @@ lines.push(gap2 + index + ': {'); |
{ | ||
"name": "spex", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Specialized Promise Extensions", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
58827
1385