buildspace / buildspace-projects

The home of our open-source projects.
https://buildspace.so/projects
Creative Commons Attribution Share Alike 4.0 International
3.01k stars 1.09k forks source link

Patch depreciated Body.buffer() method in Avatar Generator #1557

Closed ElliotPadfield closed 1 year ago

ElliotPadfield commented 1 year ago

.buffer() is a depreciated method from earlier versions of node/node-fetch causing method not found errors. .arrayBuffer() is suitable for all versions. Have swapped out the body data conversion to ArrayBuffer & modified bufferToBase64 function to correctly convert the ArrayBuffer to Base64 for display.

helloitsm3 commented 1 year ago

@all-contributors please add @ElliotPadfield for docs

allcontributors[bot] commented 1 year ago

@helloitsm3

I've put up a pull request to add @ElliotPadfield! :tada: