aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-04-21 21:19:09 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-04-21 21:20:59 -1000
commit47a922112154cbc356eccd14c6e4f23ed668c322 (patch)
treeb76f150ee94afa75e242fabf82b2cc6018a8e6de /lib/app.js
parentd4ebc65ac4f4a72c0ae1bd9cd5aa1fc7c7f5b22e (diff)
downloadpatchfoo-47a922112154cbc356eccd14c6e4f23ed668c322.tar.gz
patchfoo-47a922112154cbc356eccd14c6e4f23ed668c322.zip
Include ssb-npm
- Serve ssb-npm-registry requests under /npm-registry - Show install command for npm-packages messages
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/app.js b/lib/app.js
index cbbc74e..fbdbb8f 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -17,6 +17,7 @@ var proc = require('child_process')
var toPull = require('stream-to-pull-stream')
var BoxStream = require('pull-box-stream')
var crypto = require('crypto')
+var SsbNpmRegistry = require('ssb-npm-registry')
var zeros = new Buffer(24); zeros.fill(0)
@@ -65,6 +66,7 @@ function App(sbot, config) {
this.git = new Git(this.sbot, this.config)
this.contacts = new Contacts(this.sbot)
this.follows = new Follows(this.sbot, this.contacts)
+ this.serveSsbNpmRegistry = SsbNpmRegistry.respond(this.sbot, this.config)
this.monitorBlobWants()
}