detective
Advanced tools
Comparing version 4.7.0 to 4.7.1
@@ -60,2 +60,8 @@ var acorn = require('acorn'); | ||
} | ||
else if (arg.type === 'TemplateLiteral' | ||
&& arg.quasis.length === 1 | ||
&& arg.expressions.length === 0) { | ||
modules.strings.push(arg.quasis[0].value.raw); | ||
} | ||
else { | ||
@@ -62,0 +68,0 @@ modules.expressions.push(src.slice(arg.start, arg.end)); |
{ | ||
"name": "detective", | ||
"description": "find all require() calls by walking the AST", | ||
"version": "4.7.0", | ||
"version": "4.7.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -6,2 +6,4 @@ var test = require('tap').test; | ||
'require("a")', | ||
"require('a')", | ||
'require(`a`)', | ||
';require("a")', | ||
@@ -8,0 +10,0 @@ ' require("a")', |
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
17818
430