mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
add support for the flatted library
This commit is contained in:
@@ -26,7 +26,7 @@ private class PlainJsonParserCall extends JsonParserCall {
|
||||
PlainJsonParserCall() {
|
||||
exists(DataFlow::SourceNode callee | this = callee.getACall() |
|
||||
callee = DataFlow::globalVarRef("JSON").getAPropertyRead("parse") or
|
||||
callee = DataFlow::moduleMember(["json3", "json5"], "parse") or
|
||||
callee = DataFlow::moduleMember(["json3", "json5", "flatted"], "parse") or
|
||||
callee = DataFlow::moduleImport("parse-json") or
|
||||
callee = DataFlow::moduleImport("json-parse-better-errors") or
|
||||
callee = DataFlow::moduleImport("json-safe-parse") or
|
||||
|
||||
@@ -11,7 +11,7 @@ class JsonStringifyCall extends DataFlow::CallNode {
|
||||
JsonStringifyCall() {
|
||||
exists(DataFlow::SourceNode callee | this = callee.getACall() |
|
||||
callee = DataFlow::globalVarRef("JSON").getAPropertyRead("stringify") or
|
||||
callee = DataFlow::moduleMember(["json3", "json5"], "stringify") or
|
||||
callee = DataFlow::moduleMember(["json3", "json5", "flatted"], "stringify") or
|
||||
callee =
|
||||
DataFlow::moduleImport([
|
||||
"json-stringify-safe", "json-stable-stringify", "stringify-object",
|
||||
|
||||
Reference in New Issue
Block a user