diff --git a/init.js b/init.js index eef388e6..4531bec7 100644 --- a/init.js +++ b/init.js @@ -18,6 +18,7 @@ if(LIVE){ } opt.run = ['./test/server']; +opt.node = {key: "temp gun key"}; web(opt); console.log("Gun @ "+ opt.port); \ No newline at end of file diff --git a/shots.js b/shots.js index 75400b23..f24af34d 100644 --- a/shots.js +++ b/shots.js @@ -173,7 +173,7 @@ module.exports = require('theory') var where = a.text.is(m.where)? m.where : m.where.at; if(m.how.gun === 3){ shot.shell(m.what._['%']||where, function(g,e){ - shot.pump.action(g, m, function(){ + shot.pump.action(g, m, function(){ // receive custom edited copy here and send it down instead. if(opt.src && opt.src.reply){ m.what = a.fns.is(g)? g() : {}; m.how.gun = -(m.how.gun||3); diff --git a/test/tests.js b/test/tests.js index f6f7e89d..4d0337d6 100644 --- a/test/tests.js +++ b/test/tests.js @@ -6,7 +6,8 @@ module.exports=require('theory') }); return shot.spray(function(g, m, done){ console.log('>>>>>>>>>> gun'); - done(); + var gPrime = {}; + done(gPrime); // allow me to send custom modified filtered version console.log(g()); }); }