Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JS injection detection #43

Merged
merged 17 commits into from
Dec 13, 2024
Merged

Add JS injection detection #43

merged 17 commits into from
Dec 13, 2024

Conversation

timokoessler
Copy link
Contributor

Uses oxc_parser

@timokoessler timokoessler self-assigned this Nov 11, 2024
@timokoessler timokoessler marked this pull request as ready for review November 29, 2024 11:07
@timokoessler timokoessler changed the title Add JS injection detection (WIP) Add JS injection detection Nov 29, 2024
README.md Outdated Show resolved Hide resolved
Co-authored-by: BitterPanda <[email protected]>
AstKind::ExpressionStatement(_)
| AstKind::NumericLiteral(_)
| AstKind::ParenthesizedExpression(_)
| AstKind::SequenceExpression(_) => {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe could you add comments with the example of the token you're allowing, right now not always super obvious, like SequenceExpression

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@hansott hansott merged commit 3ec888a into main Dec 13, 2024
3 checks passed
@hansott hansott deleted the add-js-injection branch December 13, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants