Socket
Socket
Sign inDemoInstall

stackman

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stackman - npm Package Compare versions

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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc