fix(javascript): retain endpoint candidates through graph projection

This commit is contained in:
morluto
2026-10-14 09:47:30 +08:00
parent 6e344302cb
commit 88afcc738b
9 changed files with 226 additions and 27 deletions
@@ -420,11 +420,12 @@ export const inspectRouteProperty = (
context: FindingContext,
): void => {
const key = semanticStaticPropertyName(node.key, node.computed);
if ((key === "path" || key === "route") && t.isStringLiteral(node.value))
const value = stringValue(node.value);
if ((key === "path" || key === "route") && value !== undefined)
addEndpoint(context, {
node,
kind: "route",
value: node.value.value,
value,
mechanism: `property:${key}`,
});
};