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 80a37c5 commit 6715736Copy full SHA for 6715736
javascript/ql/lib/semmle/javascript/NPM.qll
@@ -56,7 +56,7 @@ class PackageJson extends JsonObject {
56
* This can be given by the `main` or `module` property, or via the
57
* `exports` property with the relative path `"."`.
58
*/
59
- string getMain() { result = MainModulePath::of(this, ".").getValue() }
+ string getMain() { result = getExportedPath(".") }
60
61
/**
62
* Gets the path to the file exported with the given relative path.
0 commit comments