-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
Pending adding a few test cases. Waiting to see if added here or in separate package. |
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: José Valim <jose.valim@gmail.com>
lib/npm_registry.ex
Outdated
require Logger | ||
|
||
@base_url "https://registry.npmjs.org" | ||
@public_key_pem File.read!("npm-registry.pem") |
There was a problem hiding this comment.
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. :)
There was a problem hiding this comment.
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 😮 👏
Beautifully done, thank you! |
Will take a look at the CI issue with elixir 11. |
closes #42