Commit fb416ad1c63eb661888fd5c6fd9e9d6f1fbb98f0
Implement extend
cel committed on 11/4/2016, 4:33:56 PMParent: c0b3297f912bfbd496a8de48b191884b2e73f9a1
Files changed
lib/repos/index.js | changed |
lib/repos/index.js | ||
---|---|---|
@@ -14,10 +14,15 @@ | ||
14 | 14 … | var ssbRef = require('ssb-ref') |
15 | 15 … | var zlib = require('zlib') |
16 | 16 … | var toPull = require('stream-to-pull-stream') |
17 | 17 … | var h = require('pull-hyperscript') |
18 | -var extend = require('xtend') | |
19 | 18 … | |
19 … | +function extend(obj, props) { | |
20 … | + for (var k in props) | |
21 … | + obj[k] = props[k] | |
22 … | + return obj | |
23 … | +} | |
24 … | + | |
20 | 25 … | module.exports = function (web) { |
21 | 26 … | return new RepoRoutes(web) |
22 | 27 … | } |
23 | 28 … |
Built with git-ssb-web