We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d8d11f commit 8930ce7Copy full SHA for 8930ce7
javascript/ql/lib/semmle/javascript/NPM.qll
@@ -29,7 +29,8 @@ class PackageJson extends JsonObject {
29
parentDir.getAChildContainer+() = currentDir and
30
pkgNameDiff = currentDir.getAbsolutePath().suffix(parentDir.getAbsolutePath().length()) and
31
not exists(pkgNameDiff.indexOf("/node_modules/")) and
32
- result = parentPkgName + pkgNameDiff
+ result = parentPkgName + pkgNameDiff and
33
+ not parentPkg.isPrivate()
34
)
35
}
36
0 commit comments