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.5 to 1.0.6

2

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

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

@@ -86,31 +86,3 @@ 'use strict'

}
// } else {
// let functionCalled
// // it's a top level function
// if (isCall) {
// if (node.expression.name !== undefined) {
// // direct call e.g. lodash()
// functionCalled = localize(currentFile, node.expression.name)
// // calls.push([localize(currentFile, 'Program'), localize(currentFile, node.expression.name)])
// } else {
// // subcall e.g. lodash.filter()
// functionCalled = localize(currentFile, `${node.expression.start.value}.${node.expression.property}`)
// }
// } else if (isDotAccess) {
// const functionCalled = localize(currentFile, `${node.start.value}.${node.property}`)
// }
// console.log("!!!", functionCalled)
// const moduleAsFile = localModules
// .filter(t => t[0] == module)
// .map(t => t[1])
// .pop()
// const thisFile = localize(currentFile, 'Program')
// if (moduleAsFile) {
// calls.push([thisFile, localize(moduleAsFile, prop)])
// } else {
// calls.push([thisFile, localize(currentFile, `${module}.${prop}`)])
// }
// }
} else if (isDefun) {
//defined but not called
definedFunctions.push(localize(currentFile, R.path(['name', 'name'], node)))

@@ -117,0 +89,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