git ssb

0+

cel / ssb-exec



Commit 0746ae0dd03e573e8cccf7ec2ed1cf97d6f7a044

rename to ssb-blob-modules

cel committed on 2/5/2019, 8:50:16 AM
Parent: a7012c41300f57391d5ac7002548d82d98a00bb4

Files changed

index.jschanged
index.jsView
@@ -10,19 +10,19 @@
1010 var hex = new Buffer(m[1], 'base64').toString('hex')
1111 return require(path.join(blobsDir, m[2], hex.substr(0, 2), hex.substr(2)))
1212 }
1313
14-exports.name = 'exec'
14 +exports.name = 'blob-modules'
1515 exports.version = '1.0.0'
1616 exports.manifest = {
1717 }
1818 exports.init = function (sbot, config) {
1919 if (!sbot.ws || !sbot.ws.use) return console.trace('missing ssb-ws')
20- var conf = config.exec || {}
21- var prefix = conf.prefix || '/exec'
22- var dir = path.join(config.path, conf.dir || 'blobs/exec/scripts')
20 + var prefix = '/blob-modules'
21 + var dir = path.join(config.path, 'blob-modules')
22 + blobsDir = path.join(config.path, 'blobs')
2323 var mtimes = {}
24- console.log('[exec] init. dir:', dir, 'prefix:', prefix)
24 + console.log('[blob-modules] init. dir:', dir, 'prefix:', prefix)
2525
2626 function getModule(resolved, tried, cb) {
2727 try {
2828 var module = require(resolved)

Built with git-ssb-web