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.
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 👍
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 👍