From f67b9a2f456025d787b3d07ad969b2622ad148ea Mon Sep 17 00:00:00 2001 From: Allen Hartwig Date: Wed, 30 Mar 2016 12:37:36 -0700 Subject: [PATCH 1/2] Binding module scope for ES6/Babel compatibility --- gun.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gun.js b/gun.js index 45c1882e..008d8b4c 100644 --- a/gun.js +++ b/gun.js @@ -1132,7 +1132,7 @@ }; console.debug = function(i, s){ return (Gun.log.debug && i === Gun.log.debug && Gun.log.debug++) && root.console.log.apply(root.console, arguments), s }; Gun.log.count = function(s){ return Gun.log.count[s] = Gun.log.count[s] || 0, Gun.log.count[s]++ } -}()); +}.bind(this || module)()); ;(function(Tab){ @@ -1147,7 +1147,7 @@ s.del = function(key){ return store.removeItem(key) } var store = this.localStorage || {setItem: function(){}, removeItem: function(){}, getItem: function(){}}; exports.store = s; - }(Tab)); + }.bind(this || module)(Tab)); Gun.on('opt').event(function(gun, opt){ opt = opt || {}; @@ -1432,4 +1432,4 @@ } return r; }()); -}({})); \ No newline at end of file +}.bind(this || module)({})); \ No newline at end of file From ae6409e7d9d69cb916ecfb540e9a8d30c55679b7 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Wed, 30 Mar 2016 23:43:11 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4f739c88..b52c9c6a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ GUN is a realtime, distributed, offline-first, graph database engine. Lightweight and powerful, at just **~9KB** gzipped. + +[![1 minute demo of fault tolerance](http://img.youtube.com/vi/-i-11T5ZI9o/0.jpg)](https://youtu.be/-i-11T5ZI9o) + ## Why? - **Realtime** - It may be trivial to get realtime updates with socket.io or something, but what you do not get is *state synchronization*. GUN does this for you out of the box, assuring that two users' simultaneous updates won't concurrently break each other.