Comparing version 1.0.8 to 1.0.9
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7778
9