ssbc / ssb-meta-feeds

10 stars 0 forks source link

change branchStream to return consistent shaped results #81

Closed mixmix closed 1 year ago

mixmix commented 1 year ago

I changed other APIs such that the rootFeed accessors also returns the same shape details

This PR does the same thing for branchStream. Just means less annoying edge case handling when consuming. The problem I hit was going branch.map(details => details.feedpurpose) and getting some stupid error because details = null for the root feed. sigh.