Comparing version 0.1.0 to 0.1.1
11
index.js
@@ -254,3 +254,14 @@ var mongo = require('mongodb'); | ||
if (typeof Proxy !== undefined) { | ||
return Proxy.create({ | ||
get: function(proxy, name) { | ||
if (!that[name]) { | ||
that[name] = that.collection(name); | ||
} | ||
return that[name]; | ||
} | ||
}); | ||
} | ||
return that; | ||
}; |
{ | ||
"name":"mongojs", | ||
"description":"a simple mongo module that emulates the mongo api", | ||
"version":"0.1.0", | ||
"version":"0.1.1", | ||
"author": "Ge.tt <hello@ge.tt>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
8147
231