Commit 83e13c780bb0d57b34ae589acedd7c977b24cb88
rename to ssb-exec
cel committed on 2/6/2019, 7:14:36 PMParent: f9a1e7ce68e016203a2b7c929edb0440948db551
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -10,19 +10,19 @@ | |||
10 | 10 … | var hex = new Buffer(m[1], 'base64').toString('hex') | |
11 | 11 … | return require(path.join(blobsDir, m[2], hex.substr(0, 2), hex.substr(2))) | |
12 | 12 … | } | |
13 | 13 … | ||
14 | -exports.name = 'blob-modules' | ||
14 … | +exports.name = 'exec' | ||
15 | 15 … | exports.version = '1.0.0' | |
16 | 16 … | exports.manifest = { | |
17 | 17 … | } | |
18 | 18 … | exports.init = function (sbot, config) { | |
19 | 19 … | if (!sbot.ws || !sbot.ws.use) return console.trace('missing ssb-ws') | |
20 | - var prefix = '/blob-modules' | ||
21 | - var dir = path.join(config.path, 'blob-modules') | ||
20 … | + var prefix = '/exec' | ||
21 … | + var dir = path.join(config.path, 'exec') | ||
22 | 22 … | blobsDir = path.join(config.path, 'blobs') | |
23 | 23 … | var mtimes = {} | |
24 | - console.log('[blob-modules] init. dir:', dir, 'prefix:', prefix) | ||
24 … | + console.log('[exec] init. dir:', dir, 'prefix:', prefix) | ||
25 | 25 … | ||
26 | 26 … | function getModule(resolved, tried, cb) { | |
27 | 27 … | try { | |
28 | 28 … | var module = require(resolved) |
Built with git-ssb-web