Commit 9b799c4c4171b7682ee49c0ca6e0cce0b96c265d
enable caps
Dominic Tarr committed on 10/25/2016, 4:13:33 PMParent: f16bb5204be7d7679483498e18260463121562f5
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -41,9 +41,9 @@ | ||
41 | 41 … | if(!opts.path) |
42 | 42 … | throw new Error('opts.path *must* be provided, or use opts.temp=name to create a test instance') |
43 | 43 … | |
44 | 44 … | // 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) | |
46 | 46 … | //treat the main feed as remote, because it's likely handled like that by others. |
47 | 47 … | var feed = ssb.createFeed(opts.keys, {remote: true}) |
48 | 48 … | var _close = api.close |
49 | 49 … | var close = function (arg, cb) { |
@@ -113,8 +113,11 @@ | ||
113 | 113 … | return mdm.usage(apidocs._, cmd) |
114 | 114 … | } |
115 | 115 … | |
116 | 116 … | 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. | |
117 | 120 … | appKey: require('./lib/ssb-cap') |
118 | 121 … | }) |
119 | 122 … | .use(SSB) |
120 | 123 … |
Built with git-ssb-web