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

Use JsSourceParser as default parser for AstAnalyser class #227

Merged
merged 3 commits into from
Feb 2, 2024

Conversation

madina0801
Copy link
Contributor

@madina0801 madina0801 commented Jan 31, 2024

Issue #223
It was suspiciously easy, let me know if there are any issues :)

@PierreDemailly
Copy link
Member

Thanks for contributing, could you update the type here?

constructor(parser: SourceParser);

@PierreDemailly PierreDemailly linked an issue Jan 31, 2024 that may be closed by this pull request
@fraxken
Copy link
Member

fraxken commented Jan 31, 2024

You can probably write a new test in https://github.com/NodeSecure/js-x-ray/blob/master/test/AstAnalyser.spec.js

If we declare the class without any parser and then use it (it should not throw any error).

test/AstAnalyser.spec.js Outdated Show resolved Hide resolved
@fraxken fraxken merged commit 4aeb8b4 into NodeSecure:master Feb 2, 2024
7 checks passed
@fraxken
Copy link
Member

fraxken commented Feb 2, 2024

@allcontributors please add @madina0801 for code

Copy link
Contributor

@fraxken

I've put up a pull request to add @madina0801! 🎉

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.

Use JsSourceParser as default parser for AstAnalyser class
3 participants