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: support blobs, file objects, iterators and async iterators #6

Closed
wants to merge 1 commit into from

Conversation

achingbrain
Copy link
Member

This allows us to accept async iterators as arguments to ipfs.add and friends.

It also allows adding plain old js things like strings and arrays, so hooray for that.

This allows us to accept async interators as arguments to ipfs.add and friends.

It also allows adding plain old js things like strings and arrays, so hooray for that.
@achingbrain
Copy link
Member Author

I don't really know if this function is even necessary any more. The input normalisation function in #5 will throw errors if it encounters invalid input, and is also smart enough to do it to the contents of (async) iterators too, so doing this sort of up-front exception doesn't give us much except the possibility of failing fast on a limited subset of inputs.

@hugomrdias
Copy link
Member

Should we remove this once #5 is merged ?

@achingbrain
Copy link
Member Author

I don't think this is necessary any more.

@achingbrain achingbrain closed this Dec 5, 2019
@achingbrain achingbrain deleted the support-async-iterators branch December 5, 2019 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants