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

Unsupported JS import statements & other JS syntax #825

Open
sedubois opened this issue Nov 8, 2024 · 0 comments
Open

Unsupported JS import statements & other JS syntax #825

sedubois opened this issue Nov 8, 2024 · 0 comments

Comments

@sedubois
Copy link

sedubois commented Nov 8, 2024

We have been making use of IntelliJ IDEA's Javascript import syntax, however this prevents us from using the HTTP request files with httpYac because httpYac does not support import statements (it expects require). And unfortunately, httpYac's require syntax is not supported in IntelliJ, so there appears to be currently no cross-IDE solution. Is there any chance for httpYac for VSCode to add support for JS import statements?

Also:

  • This JS syntax works in IntelliJ but doesn't work in httpYac:
    • const match = response.body.match(/foo/i) (need to change it to const match = String(response.body).match(/foo/i))
    • client.log("match", match) (need to change it to client.log("match: " + match))
  • The feature comparison says that IntelliJ doesn't have some features although these features actually exist:
    • CLI: see documentation
    • "Built-in Preview Support": see the small preview button beside the raw response, it allows to see the rendered HTML response. The documentation shows that it's also possible to preview PDF and image responses.

Thanks for building this great tool!

Tested with httpYac 6.16.14

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

No branches or pull requests

1 participant