class
Analyzer::Javascript::Nestjs
Direct Known Subclasses
Defined in:
analyzer/analyzers/javascript/nestjs.crConstant Summary
-
GLOBAL_LITERAL_EXTENSIONS =
[".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs"] -
Extensions worth scanning for cross-file enum/object constants — the enum may live in a
.tsfile even when the route-scan pass only walks.js, so cast a wide net here. -
REQUEST_OBJECT_FIELDS =
{ {"query", "query"}, {"body", "body"}, {"headers", "header"}, {"params", "path"} } -
Request-object fields read in handler bodies, paired with the param type they map to. Iterated in this order when extracting params.