diff --git a/examples/http.js b/examples/http.js index c1eb7a93..9fabbb68 100644 --- a/examples/http.js +++ b/examples/http.js @@ -1,6 +1,6 @@ var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || process.argv[2] || 80; -var Gun = require('../');// require('gun'); +var Gun = require('gun'); var gun = Gun({ file: 'data.json', s3: { diff --git a/examples/package.json b/examples/package.json index f3997fdd..fd4bb1ee 100644 --- a/examples/package.json +++ b/examples/package.json @@ -8,7 +8,7 @@ } , "dependencies": { "express": "~>4.9.0", - "gun": "~>0.2.0-alpha-4" + "gun": "~>0.2.2" } , "scripts": { "start": "node http.js", diff --git a/gun.js b/gun.js index 1ce4c304..a6842af6 100644 --- a/gun.js +++ b/gun.js @@ -599,7 +599,7 @@ } if(gun.back.not){ gun.back.not(call, {raw: true}) } - gun.back._.at('soul').once(function($){ // TODO: maybe once per soul? + gun.back._.at('soul').event(function($){ // TODO: maybe once per soul? var chain = $.gun || gun; var ctx = {}, obj = val, $ = Gun.obj.copy($); console.log("chain.put", val, '\n'); diff --git a/package.json b/package.json index 8ba292d5..094a891c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gun", - "version": "0.2.1", + "version": "0.2.2", "description": "Graph engine", "main": "index.js", "scripts": { diff --git a/test/common.js b/test/common.js index 0e37344b..27cac0b1 100644 --- a/test/common.js +++ b/test/common.js @@ -1854,7 +1854,7 @@ describe('Gun', function(){ }); setTimeout(function(){ me.put({a: 'b'}); - }); + },100); }); it("gun get empty set path empty later path put multi", function(done){ // Issue #99 #101, bug in survey and trace game.