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 3592e76 commit e4f23b3Copy full SHA for e4f23b3
javascript/ql/lib/semmle/javascript/frameworks/data/ModelsAsData.qll
@@ -108,7 +108,11 @@ module ModelExport<ModelExportSig S> {
108
}
109
110
predicate exposedName(API::Node node, string type, string path) {
111
- node = API::moduleExport(type) and path = ""
+ exists(string moduleName |
112
+ node = API::moduleExport(moduleName) and
113
+ path = "" and
114
+ type = "'" + moduleName + "'"
115
+ )
116
117
118
predicate suggestedName(API::Node node, string type) {
0 commit comments