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

feat: allow external integrity/size source #110

Merged
merged 1 commit into from
May 17, 2022
Merged

Conversation

nlf
Copy link
Contributor

@nlf nlf commented May 16, 2022

this feature allows us to pass our own event emitter that emits both the 'size' and 'integrity' events and avoid the creation of an internal integrity stream.

the immediate use case for this is in make-fetch-happen, where we already have an integrity stream in place. by passing the events in this way, we avoid calculating hashes multiple times thereby improving performance

@nlf nlf requested a review from a team as a code owner May 16, 2022 18:39
@nlf nlf force-pushed the nlf/allow-external-integrity branch from f890f7b to 46ab18a Compare May 17, 2022 18:15
@nlf nlf force-pushed the nlf/allow-external-integrity branch from 46ab18a to 421773f Compare May 17, 2022 18:29
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.

2 participants