next.js
271972e3 - Add JSX prop value extraction to boundary analysis

Commit
118 days ago
Add JSX prop value extraction to boundary analysis Enhanced type analysis to show actual prop values passed across boundaries. **TypeScript Compiler API Integration:** - Extract JSX attributes from opening element - Get initializer expressions for each prop - Use node.getText() to get source code - Handle both JsxExpression and StringLiteral values - Support spread attributes **Output Format Enhancement:** - Show prop name with actual value: password = {user.credentials.password} - Display API_KEY with source: apiKey = {apiKey} - Multi-line format for better readability **Example Output:** ``` ⚠️ SENSITIVE DATA DETECTED: - PASSWORD (password = {user.credentials.password}) - API_KEY (apiKey = {apiKey}) ``` This allows developers to see exactly what expressions are being passed to client components, making it easier to identify potential sensitive data leaks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Author
Parents
Loading