ipfs-shipyard / ipfs-geoip

geoip lookup over DAG-CBOR dataset loaded from IPFS
MIT License
70 stars 21 forks source link

fix: support Uint8Array in ipfs.object.get #82

Closed lidel closed 3 years ago

lidel commented 3 years ago

This fixes LOOKUPs with ipfs-geoip with latest JS APIs. We need this for ipfs-webui, which is now using the latest js-ipfs-http-client.

This does not fix GENERATION of new dataset, as that requires a separate refactor, and I want to switch from Buffer, ipfs.object and dag-pb to Uint8Array, ipfs.dag and dag-cbor, but that will take more time and don't want to block ipfs-webui on this.