blowfishxyz / blocklist

Javascript library to use Blowfish blocklists locally
https://blowfish.xyz/
MIT License
11 stars 0 forks source link

feat: include buffer polyfill for react native apps #17

Closed sevazhidkov closed 1 year ago

sevazhidkov commented 1 year ago

From Phantom feedback:

FYI, we noticed some issues with polyfills in blocklist Line 23 continues from a buffer, but in a lot of polyfills (like on react-native) this won't work. We created a manual patch for this in the polyfill, but be advised that many devs using react-native will face this issue image (1)

So, I decided to add a library-wide polyfill for Buffer to support React Native apps.