We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e917384 commit f48b5cdCopy full SHA for f48b5cd
1 file changed
javascript/ql/lib/semmle/javascript/ApiGraphs.qll
@@ -2164,6 +2164,10 @@ private predicate isDeclaredPackageName(string m) {
2164
2165
overlay[local]
2166
private predicate isImportedPackageName(string m) {
2167
- m = any(Import imprt).getImportedPathString() and
+ (
2168
+ m = any(Import imprt).getImportedPathString()
2169
+ or
2170
+ m = any(DataFlow::ModuleImportNode im).getPath()
2171
+ ) and
2172
m.regexpMatch("[^./].*")
2173
}
0 commit comments