detective-cjs
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -23,3 +23,6 @@ 'use strict'; | ||
if (types.isPlainRequire(node)) { | ||
dependencies.push(extractDependencyFromRequire(node)); | ||
const result = extractDependencyFromRequire(node); | ||
if (result) { | ||
dependencies.push(result); | ||
} | ||
} else if (types.isMainScopedRequire(node)) { | ||
@@ -26,0 +29,0 @@ dependencies.push(extractDependencyFromMainRequire(node)); |
{ | ||
"name": "detective-cjs", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Get the dependencies of a CommonJS module by traversing its AST", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2982
37