Comparing version 1.0.8 to 1.0.9
@@ -56,6 +56,2 @@ 'use strict'; | ||
var temp = Error.apply(this, arguments); | ||
temp.name = this.name = 'BatchError'; | ||
this.stack = temp.stack; | ||
this.data = result; | ||
@@ -96,2 +92,5 @@ | ||
} else { | ||
if (typeof first !== 'string') { | ||
first = $npm.u.inspect(first); | ||
} | ||
this.message = first; | ||
@@ -107,11 +106,8 @@ } | ||
Error.captureStackTrace(this, BatchError); | ||
} | ||
BatchError.prototype = Object.create(Error.prototype, { | ||
constructor: { | ||
value: BatchError, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
$npm.u.inherits(BatchError, Error); | ||
BatchError.prototype.name = 'BatchError'; | ||
@@ -118,0 +114,0 @@ /** |
@@ -53,6 +53,2 @@ 'use strict'; | ||
var temp = Error.apply(this, arguments); | ||
temp.name = this.name = 'PageError'; | ||
this.stack = temp.stack; | ||
this.index = e.index; | ||
@@ -66,2 +62,5 @@ this.duration = duration; | ||
this.message = this.error; | ||
if (typeof this.message !== 'string') { | ||
this.message = $npm.u.inspect(this.message); | ||
} | ||
} | ||
@@ -83,11 +82,9 @@ | ||
} | ||
Error.captureStackTrace(this, PageError); | ||
} | ||
PageError.prototype = Object.create(Error.prototype, { | ||
constructor: { | ||
value: PageError, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
$npm.u.inherits(PageError, Error); | ||
PageError.prototype.name = 'PageError'; | ||
@@ -94,0 +91,0 @@ /** |
@@ -49,6 +49,2 @@ 'use strict'; | ||
var temp = Error.apply(this, arguments); | ||
temp.name = this.name = 'SequenceError'; | ||
this.stack = temp.stack; | ||
this.index = e.index; | ||
@@ -62,2 +58,5 @@ this.duration = duration; | ||
this.message = this.error; | ||
if (typeof this.message !== 'string') { | ||
this.message = $npm.u.inspect(this.message); | ||
} | ||
} | ||
@@ -73,11 +72,8 @@ | ||
this.reason = $npm.u.format(errorReasons[code], cbName, e.index); | ||
Error.captureStackTrace(this, SequenceError); | ||
} | ||
SequenceError.prototype = Object.create(Error.prototype, { | ||
constructor: { | ||
value: SequenceError, | ||
writable: true, | ||
configurable: true | ||
} | ||
}); | ||
$npm.u.inherits(SequenceError, Error); | ||
SequenceError.prototype.name = 'SequenceError'; | ||
@@ -99,3 +95,3 @@ /** | ||
level = level > 0 ? parseInt(level) : 0; | ||
var gap0 = $npm.utils.messageGap(level), | ||
@@ -110,3 +106,3 @@ gap1 = $npm.utils.messageGap(level + 1), | ||
]; | ||
lines.push(gap1 + 'error: ' + $npm.utils.formatError(this.error, level + 1)); | ||
@@ -113,0 +109,0 @@ lines.push(gap0 + '}'); |
{ | ||
"name": "spex", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"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
62630
17
1520
48