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 recipe to audit servers with Deno #63

Merged
merged 3 commits into from
Mar 21, 2023
Merged

Add recipe to audit servers with Deno #63

merged 3 commits into from
Mar 21, 2023

Conversation

spawnia
Copy link
Member

@spawnia spawnia commented Mar 21, 2023

I tried to setup audit tests as described in the Jest example, but found the setup of Jest itself quite cumbersome. Thus, I tried to see if Deno was simpler.

Unfortunately, the example does not work as of now. You can try writing the example code to a file test.ts and run it with deno test test.ts. I am currently getting the following error:

error: Uncaught SyntaxError: The requested module '/v111/graphql@16.6.0/deno/graphql.js' does not provide an export named 'GraphQLError'
    at <anonymous> (https://esm.sh/v111/graphql-http@1.16.0/deno/graphql-http.js:2:90)

I found that using npm specifiers fixes the above mentioned error with the missing export.

README.md Show resolved Hide resolved
@enisdenjo
Copy link
Member

Weird, v16.6.0 on esm.sh indeed does not have the necessary export: https://esm.sh/v111/graphql@16.6.0/deno/graphql.js.

However, v16.5.0 has it: https://esm.sh/v111/graphql@16.5.0/deno/graphql.js.

What changed? 🤔

@spawnia spawnia marked this pull request as ready for review March 21, 2023 17:30
Copy link
Member

@enisdenjo enisdenjo left a comment

Choose a reason for hiding this comment

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

I'd say this has something to do with graphql-js itself, as noticed here.

With this in mind, I think we're good to merge this - thank you!

@enisdenjo enisdenjo merged commit e750bc0 into graphql:main Mar 21, 2023
@spawnia spawnia deleted the audit-deno branch March 22, 2023 08:28
@enisdenjo
Copy link
Member

🎉 This PR is included in version 1.17.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@enisdenjo enisdenjo added the released Has been released and published label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Has been released and published
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants