Apply docstring changes

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Maiky
2023-12-05 09:05:29 +01:00
committed by GitHub
parent e6c7fc0ead
commit 83cbbd7043
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
---
category: minorAnalysis
---
* Added a new experimental query, `js/cors-misconfiguration` covering `cors` and `apollo`.
* Added a new experimental query, `js/cors-misconfiguration`, which detects misconfigured CORS HTTP headers in the `cors` and `apollo` libraries.

View File

@@ -24,7 +24,7 @@ module Apollo {
]).getMember("gql")
}
/** A string that is interpreted as a GraphQL query by a `graphql` package. */
/** An instantiation of an `ApolloServer`. */
class ApolloServer extends API::NewNode {
ApolloServer() { this = apollo().getAnInstantiation() }
}

View File

@@ -4,7 +4,7 @@
import javascript
/** Provides classes modeling [cors](https://npmjs.com/package/cors) library. */
/** Provides classes modeling the [cors](https://npmjs.com/package/cors) library. */
module Cors {
/**
* An expression that creates a new CORS configuration.
@@ -18,7 +18,7 @@ module Cors {
/** Holds if cors is using default configuration */
predicate isDefault() { this.getNumArgument() = 0 }
/** Gets the value of origin */
/** Gets the value of the `origin` option used to configure this Cors instance. */
DataFlow::Node getOrigin() { result = this.getOptionArgument(0, "origin") }
}
}