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 563a56a commit e5e3bb3Copy full SHA for e5e3bb3
javascript/ql/lib/semmle/javascript/frameworks/Hapi.qll
@@ -20,11 +20,11 @@ module Hapi {
20
// `register (server, options)`
21
// `module.exports.plugin = {register, pkg};`
22
this =
23
- any(NodeModule m)
+ any(Module m)
24
.getAnExportedValue("plugin")
25
- .(DataFlow::ObjectLiteralNode)
+ .getALocalSource()
26
.getAPropertySource("register")
27
- .(DataFlow::FunctionNode)
+ .getAFunctionValue()
28
.getParameter(0)
29
or
30
// `const after = function (server) {...};`
0 commit comments