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

Verifies npm package tarball authenticity and integrity #64

Merged
merged 13 commits into from
Oct 10, 2023

Conversation

grzuy
Copy link
Contributor

@grzuy grzuy commented Oct 10, 2023

closes #42

lib/npm_registry.ex Outdated Show resolved Hide resolved
lib/esbuild.ex Outdated Show resolved Hide resolved
lib/npm_registry.ex Outdated Show resolved Hide resolved
@grzuy
Copy link
Contributor Author

grzuy commented Oct 10, 2023

Pending adding a few test cases.

Waiting to see if added here or in separate package.

grzuy and others added 2 commits October 10, 2023 15:59
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: José Valim <jose.valim@gmail.com>
lib/npm_registry.ex Outdated Show resolved Hide resolved
lib/npm_registry.ex Outdated Show resolved Hide resolved
lib/npm_registry.ex Outdated Show resolved Hide resolved
grzuy and others added 2 commits October 10, 2023 16:02
Co-authored-by: José Valim <jose.valim@gmail.com>
require Logger

@base_url "https://registry.npmjs.org"
@public_key_pem File.read!("npm-registry.pem")
Copy link
Member

Choose a reason for hiding this comment

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

please move the file to lib/esbuild/npm-registry.pem and also add this:

@external_resource "lib/esbuild/npm-registry.pem"

This will recompile the code and if pem file changes. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will recompile the code and if pem file changes. :)

TIL 😮 👏

@josevalim josevalim merged commit 94d18da into phoenixframework:main Oct 10, 2023
1 of 2 checks passed
@josevalim
Copy link
Member

Beautifully done, thank you!
💚 💙 💜 💛 ❤️

@grzuy
Copy link
Contributor Author

grzuy commented Oct 10, 2023

Will take a look at the CI issue with elixir 11.
Maybe update ci versions also.

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.

Verify integrity of downloaded esbuild package
2 participants