mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
JS: Add modeling for util promisify*
This commit is contained in:
@@ -730,7 +730,9 @@ module Promisify {
|
||||
DataFlow::moduleMember(["bluebird", "@google-cloud/promisify", "es6-promisify"],
|
||||
"promisifyAll"),
|
||||
DataFlow::moduleMember("thenify-all", "withCallback"),
|
||||
DataFlow::moduleImport(["util-promisifyall", "pify", "thenify-all", "@gar/promisify"])
|
||||
DataFlow::moduleImport([
|
||||
"util-promisifyall", "pify", "thenify-all", "@gar/promisify", "util.promisify-all"
|
||||
])
|
||||
].getACall()
|
||||
}
|
||||
}
|
||||
@@ -743,7 +745,7 @@ module Promisify {
|
||||
PromisifyCall() {
|
||||
this = DataFlow::moduleImport(["util", "bluebird"]).getAMemberCall("promisify")
|
||||
or
|
||||
this = DataFlow::moduleImport(["pify", "util.promisify"]).getACall()
|
||||
this = DataFlow::moduleImport(["pify", "util.promisify", "util-promisify"]).getACall()
|
||||
or
|
||||
this = DataFlow::moduleImport(["thenify", "@gar/promisify", "es6-promisify"]).getACall()
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user