Comparing version 0.2.0 to 0.2.1
19
index.js
@@ -7,13 +7,2 @@ | ||
var chain; | ||
try { | ||
chain = require('stack-chain'); | ||
} catch (error) {} | ||
if (chain) { | ||
chain.format.replace(function(error, frames) { | ||
return formatStack(error, { callSite: frames }); | ||
}); | ||
} | ||
function underscoreName(identifier) { | ||
@@ -317,7 +306,3 @@ return identifier.replace(/[A-Z][a-z]+/g, function(part) { | ||
message = error.message; | ||
if (options && Array.isArray(options.callSite)) { | ||
stack = options.callSite.map(frameJSON); | ||
} else { | ||
stack = error.toJSON().error_stack; | ||
} | ||
stack = error.toJSON().error_stack; | ||
if (Array.isArray(stack)) { | ||
@@ -359,3 +344,3 @@ stack = formatJSONStack(stack, options); | ||
var cause = data ? data.cause : undefined; | ||
var cause = data.cause; | ||
if (typeof(cause) === 'object') { | ||
@@ -362,0 +347,0 @@ delete data.cause; |
{ | ||
"name": "ferro", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Ferocious Error Handling", | ||
@@ -10,4 +10,5 @@ "repository": { | ||
"dependencies": { | ||
"tinycolor": "0.0.1" | ||
"tinycolor": "0.0.1", | ||
"package-lookup": "0.1.x" | ||
} | ||
} |
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
12345
2
331
+ Addedpackage-lookup@0.1.x
+ Addedpackage-lookup@0.1.2(transitive)