Added NextResponse to the ResponseCall class it models similar near idential behaviour.

This commit is contained in:
Napalys
2025-04-10 15:06:44 +02:00
parent 8acb0243ad
commit 86b64afa13
4 changed files with 31 additions and 7 deletions

View File

@@ -19,10 +19,13 @@ private class HeadersEntryPoint extends API::EntryPoint {
}
/**
* A call to the `Response` constructor.
* A call to the `Response` and `NextResponse` constructor.
*/
private class ResponseCall extends API::InvokeNode {
ResponseCall() { this = any(ResponseEntryPoint e).getANode().getAnInstantiation() }
ResponseCall() {
this = any(ResponseEntryPoint e).getANode().getAnInstantiation() or
this = API::moduleImport("next/server").getMember("NextResponse").getAnInstantiation()
}
}
/**