fix/mask @d3x0r 's #203

This commit is contained in:
Mark Nadal 2016-07-11 16:08:54 -07:00
parent d02ad116a0
commit 7fde5eb836
2 changed files with 3 additions and 1 deletions

View File

@ -40,12 +40,14 @@ Gun.on('opt').event(function(gun, opts) {
gun.opt({wire: {
get: function get(lex, cb, o){
var node, soul = lex[Gun._.soul];
setImmediate(function(){
node = all.nodes[soul];
if(!node){ return cb(null) }
cb(null, node);
node = Gun.is.node.soul.ify({}, soul);
cb(null, node); // end.
cb(null, {}); // done.
});
},
put: function(graph, cb, o){
for (key in gun.__.graph) all.nodes[key]=gun.__.graph[key]||graph[key];

View File

@ -1,6 +1,6 @@
{
"name": "gun",
"version": "0.3.97",
"version": "0.3.98",
"description": "Graph engine",
"main": "index.js",
"scripts": {