git ssb

4+

Dominic / scuttlebot



Commit 9b799c4c4171b7682ee49c0ca6e0cce0b96c265d

enable caps

Dominic Tarr committed on 10/25/2016, 4:13:33 PM
Parent: f16bb5204be7d7679483498e18260463121562f5

Files changed

index.jschanged
index.jsView
@@ -41,9 +41,9 @@
4141 if(!opts.path)
4242 throw new Error('opts.path *must* be provided, or use opts.temp=name to create a test instance')
4343
4444 // main interface
45- var ssb = create(path.join(opts.path, 'db'), null, opts.keys)
45 + var ssb = create(path.join(opts.path, 'db'), opts, opts.keys)
4646 //treat the main feed as remote, because it's likely handled like that by others.
4747 var feed = ssb.createFeed(opts.keys, {remote: true})
4848 var _close = api.close
4949 var close = function (arg, cb) {
@@ -113,8 +113,11 @@
113113 return mdm.usage(apidocs._, cmd)
114114 }
115115
116116 module.exports = SecretStack({
117 + //this is just the default app key.
118 + //it can be overridden by passing a appKey as option
119 + //when creating a Sbot instance.
117120 appKey: require('./lib/ssb-cap')
118121 })
119122 .use(SSB)
120123

Built with git-ssb-web