libp2p / js-peer-id

peer-id implementation in JavaScript. Deprecated; use https://github.com/libp2p/js-libp2p-peer-id instead.
https://github.com/libp2p/js-libp2p-peer-id
MIT License
80 stars 44 forks source link

fix: remove toString side effect that breaks deep equals #142

Closed achingbrain closed 3 years ago

achingbrain commented 3 years ago

Makes the cached string cid property non-enumerable so deep equals still works even after a peer id has been stringifed.

Fixes #141