Skip to content

Commit bf77ffe

Browse files
Napalysasgerf
andcommitted
Applied comment
Co-authored-by: Asgerf <[email protected]>
1 parent e2927b2 commit bf77ffe

File tree

6 files changed

+5
-25
lines changed

6 files changed

+5
-25
lines changed

docs/codeql/reusables/supported-frameworks.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ and the CodeQL library pack ``codeql/javascript-all`` (`changelog <https://githu
181181
swig, templating language
182182
underscore, Utility library
183183
vue, HTML framework
184-
tanstack, Utility library
185184

186185

187186
Python built-in support
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
category: minorAnalysis
33
---
4-
* Added Library modeling for the `useQuery` hook from `@tanstack/react-query`.
4+
* Added support for the `useQuery` hook from `@tanstack/react-query`.

javascript/ql/lib/semmle/javascript/frameworks/ClientRequests.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ module ClientRequest {
878878
* An additional taint step that captures taint propagation from the receiver of fetch response methods
879879
* (such as "json", "text", "blob", and "arrayBuffer") to the call result.
880880
*/
881-
class FetchResponseStep extends TaintTracking::AdditionalTaintStep {
881+
private class FetchResponseStep extends TaintTracking::AdditionalTaintStep {
882882
override predicate step(DataFlow::Node node1, DataFlow::Node node2) {
883883
exists(DataFlow::MethodCallNode call |
884884
call.getMethodName() in ["json", "text", "blob", "arrayBuffer"] and

javascript/ql/lib/semmle/javascript/frameworks/Fetch.qll

Lines changed: 0 additions & 19 deletions
This file was deleted.

javascript/ql/lib/semmle/javascript/frameworks/Tanstack.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ private import javascript
88
* An additional flow step that propagates data from the return value of the query function,
99
* defined in a useQuery call from the '@tanstack/react-query' module, to the 'data' property.
1010
*/
11-
class TanstackStep extends DataFlow::AdditionalFlowStep {
11+
private class TanstackStep extends DataFlow::AdditionalFlowStep {
1212
override predicate step(DataFlow::Node node1, DataFlow::Node node2) {
1313
exists(API::CallNode useQuery |
1414
useQuery = useQueryCall() and
@@ -21,6 +21,6 @@ class TanstackStep extends DataFlow::AdditionalFlowStep {
2121
/**
2222
* Retrieves a call node representing a useQuery invocation from the '@tanstack/react-query' module.
2323
*/
24-
API::CallNode useQueryCall() {
24+
private API::CallNode useQueryCall() {
2525
result = API::moduleImport("@tanstack/react-query").getMember("useQuery").getACall()
2626
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import { useQuery } from "@tanstack/react-query";
2-
export { useQuery}
2+
export { useQuery }

0 commit comments

Comments
 (0)