Files: 9972d073007ebc1c4cf8c6074bc2c3e3e5e032b5 / 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