Files: 41ec31f643175bf360ff1416e6448bffcccb4212 / profile.js
307 bytesRaw
1 | module.exports = profile |
2 | |
3 | module.exports = function (sbot, id, cb) { |
4 | pull( |
5 | sbot.(id, (err, profile) => { |
6 | if (err) return cb(err) |
7 | console.log('profile', profile) |
8 | }), |
9 | pull.reduce(latest, {}) |
10 | ) |
11 | } |
12 | |
13 | function latest (sofar, next) { |
14 | console.log('sofar', sofar, next) |
15 | return sofar |
16 | } |
17 |
Built with git-ssb-web