jaydenseric / extract-files

A function to recursively extract files and their object paths within a value, replacing them with null in a deep clone without mutating the original value. FileList instances are treated as File instance arrays. Files are typically File and Blob instances.
https://npm.im/extract-files
MIT License
54 stars 23 forks source link

Adding support for Blob type #5

Closed samcoenen closed 6 years ago

samcoenen commented 6 years ago

Support for Blob type has been added.

PRs have also been sent for apollo-upload-client, apollo-upload-server and apollo-upload-examples.

The only thing missing here are the tests because Blob isn't natively supported by Node... I couldn't find a proper way to mock them so I just omitted the tests.

If anyone can help me with the tests, I'm open to suggestions 👍

jaydenseric commented 6 years ago

Thanks for the great work! I was having beers on the beach for the Australia Day holiday, but am back on the computer to merge all these PRs now 🚀