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