Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stack-sites

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stack-sites - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

5

package.json
{
"name": "stack-sites",
"description": "Returns current stack as call sites",
"version": "1.2.2",
"version": "1.3.0",
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",

@@ -75,8 +75,9 @@ "bugs": "https://github.com/bahmutov/stack-sites/issues",

"simple-commit-message": "3.0.2",
"standard": "8.6.0"
"standard": "9.0.1"
},
"dependencies": {
"check-more-types": "2.23.0",
"debug": "2.6.3",
"lazy-ass": "1.5.0"
}
}
# stack-sites
[![Greenkeeper badge](https://badges.greenkeeper.io/bahmutov/stack-sites.svg)](https://greenkeeper.io/)
> Returns current stack as call sites

@@ -42,2 +44,6 @@

## Debug
To see the original and parsed stack, run with `DEBUG=stack-sites` environment variable.
### Small print

@@ -44,0 +50,0 @@

7

src/index.js
'use strict'
const debug = require('debug')('stack-sites')
const parseStackLine = require('./parse-stack-line')

@@ -20,3 +21,4 @@

stack = stack || ((new Error('stack-sites').stack))
return stack.split('\n')
debug(stack)
const parsed = stack.split('\n')
.slice(1) // remove exception itself

@@ -27,4 +29,7 @@ .filter(hasLineInfo)

.map(parseStackLine)
debug('parsed and cleaned up stack')
debug(parsed)
return parsed
}
module.exports = stackSites
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