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.3.0 to 1.4.0

3

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

@@ -73,2 +73,3 @@ "bugs": "https://github.com/bahmutov/stack-sites/issues",

"pre-git": "3.14.0",
"ramda": "0.23.0",
"semantic-release": "6.3.6",

@@ -75,0 +76,0 @@ "simple-commit-message": "3.0.2",

@@ -19,2 +19,6 @@ 'use strict'

function isInternal (line) {
return line.includes('(internal/')
}
function stackSites (stack) {

@@ -27,4 +31,6 @@ stack = stack || ((new Error('stack-sites').stack))

.filter(line => !isNative(line))
.filter(line => !isInternal(line))
.filter(isModule)
.map(parseStackLine)
// maybe limit stack sites to valid existing file?
debug('parsed and cleaned up stack')

@@ -31,0 +37,0 @@ debug(parsed)

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