Skip to content

Commit 83cbbd7

Browse files
Apply docstring changes
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent e6c7fc0 commit 83cbbd7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
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 a new experimental query, `js/cors-misconfiguration` covering `cors` and `apollo`.
4+
* Added a new experimental query, `js/cors-misconfiguration`, which detects misconfigured CORS HTTP headers in the `cors` and `apollo` libraries.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module Apollo {
2424
]).getMember("gql")
2525
}
2626

27-
/** A string that is interpreted as a GraphQL query by a `graphql` package. */
27+
/** An instantiation of an `ApolloServer`. */
2828
class ApolloServer extends API::NewNode {
2929
ApolloServer() { this = apollo().getAnInstantiation() }
3030
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import javascript
66

7-
/** Provides classes modeling [cors](https://npmjs.com/package/cors) library. */
7+
/** Provides classes modeling the [cors](https://npmjs.com/package/cors) library. */
88
module Cors {
99
/**
1010
* An expression that creates a new CORS configuration.
@@ -18,7 +18,7 @@ module Cors {
1818
/** Holds if cors is using default configuration */
1919
predicate isDefault() { this.getNumArgument() = 0 }
2020

21-
/** Gets the value of origin */
21+
/** Gets the value of the `origin` option used to configure this Cors instance. */
2222
DataFlow::Node getOrigin() { result = this.getOptionArgument(0, "origin") }
2323
}
2424
}

0 commit comments

Comments
 (0)