mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
fix/mask @d3x0r 's #203
This commit is contained in:
parent
d02ad116a0
commit
7fde5eb836
@ -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];
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gun",
|
||||
"version": "0.3.97",
|
||||
"version": "0.3.98",
|
||||
"description": "Graph engine",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user