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

Validate streams in object mode #75

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Validate streams in object mode #75

merged 1 commit into from
Aug 9, 2023

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Aug 9, 2023

This PR validates against passing to getStream() or getStreamAsBuffer() a stream that is in object mode.

others: throwObjectStream,
},
getContents: getContentsAsString,
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This new shape for chunkTypes will allow adding more types for web streams.

@sindresorhus sindresorhus merged commit 0db94f1 into sindresorhus:main Aug 9, 2023
3 checks passed
@ehmicky ehmicky deleted the validate-object-mode branch August 9, 2023 15:15
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