Comparing version 3.0.1 to 3.0.2
11
index.js
@@ -51,4 +51,5 @@ 'use strict' | ||
if (!validStack(_callsites)) { | ||
var _err = new Error('Could not process callsites') | ||
process.nextTick(function () { | ||
cb(new Error('Could not process callsites')) | ||
cb(_err) | ||
}) | ||
@@ -163,2 +164,4 @@ } else if (!opts || opts.sourcemap !== false) { | ||
function sourceContext (linesOfContext, cb) { | ||
var _err | ||
if (typeof linesOfContext === 'function') { | ||
@@ -170,4 +173,5 @@ cb = linesOfContext | ||
if (linesOfContext <= 0) { | ||
_err = new Error('Cannot collect less than one line of source context') | ||
process.nextTick(function () { | ||
cb(new Error('Cannot collect less than one line of source context')) | ||
cb(_err) | ||
}) | ||
@@ -178,4 +182,5 @@ return | ||
if (this.isNode()) { | ||
_err = new Error('Can\'t get source context of a Node core callsite') | ||
process.nextTick(function () { | ||
cb(new Error('Can\'t get source context of a Node core callsite')) | ||
cb(_err) | ||
}) | ||
@@ -182,0 +187,0 @@ return |
{ | ||
"name": "stackman", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Enhance an error stacktrace with code excerpts and other goodies", | ||
@@ -49,3 +49,3 @@ "main": "index.js", | ||
55.6773705, | ||
12.5614183 | ||
12.5526636 | ||
], | ||
@@ -52,0 +52,0 @@ "standard": { |
@@ -92,3 +92,3 @@ # Stackman | ||
- `sourcemap` - A boolean specifying if Stackman should look for an | ||
- `sourcemap` - A boolean specifying if Stackman should look for and | ||
process source maps (default: `true`) | ||
@@ -95,0 +95,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
45675
936