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

callgraph

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callgraph - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

package.json
{
"name": "callgraph",
"version": "1.0.8",
"version": "1.0.9",
"description": "Parse JS into call graphs",

@@ -5,0 +5,0 @@ "scripts": {

@@ -50,3 +50,3 @@ 'use strict'

// TODO: Should loop though all definitions
if (node.definitions[0].value.expression && node.definitions[0].value.expression.name === 'require') {
if (node.definitions[0].value && node.definitions[0].value.expression && node.definitions[0].value.expression.name === 'require') {
const localName = R.pipe(R.head, R.path(['name', 'name']))(node.definitions)

@@ -53,0 +53,0 @@ const location = node.definitions[0].value.args[0].value

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