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 71952fe commit 80d401fCopy full SHA for 80d401f
javascript/ql/lib/change-notes/2023-04-30-npm-submodule.md
@@ -0,0 +1,5 @@
1
+---
2
+category: minorAnalysis
3
4
+
5
+- Added a support of sub modules in `node_modules`.
javascript/ql/lib/semmle/javascript/NPM.qll
@@ -14,7 +14,7 @@ class PackageJson extends JsonObject {
14
15
/**
16
* Gets the name of this package.
17
- * If the package is located under the package `foo` and its relative path is `bar`, it can be `foo/bar`
+ * If the package is located under the package `pkg1` and its relative path is `foo/bar`, it can be `pkg1/foo/bar`
18
*/
19
string getPackageName() {
20
result = this.getPropStringValue("name")
0 commit comments