mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
add model for whatwg-fetch
This commit is contained in:
@@ -302,6 +302,8 @@ module ClientRequest {
|
||||
exists(DataFlow::SourceNode fetch |
|
||||
fetch = DataFlow::moduleImport(["node-fetch", "cross-fetch", "isomorphic-fetch"])
|
||||
or
|
||||
fetch = DataFlow::moduleMember("whatwg-fetch", "fetch")
|
||||
or
|
||||
fetch = DataFlow::globalVarRef("fetch") // https://fetch.spec.whatwg.org/#fetch-api
|
||||
|
|
||||
this = fetch.getACall() and
|
||||
|
||||
Reference in New Issue
Block a user