Comparing version 0.1.5 to 0.1.6
@@ -13,3 +13,3 @@ var mongo = require('mongodb'); | ||
return function(args) { | ||
if (typeof args[0] === 'object' && typeof args[0]._id === 'string') { | ||
if (args[0] && typeof args[0] === 'object' && typeof args[0]._id === 'string') { | ||
args[0]._id = new mongo.BSONNative.ObjectID(args[0]._id); | ||
@@ -229,4 +229,2 @@ } | ||
that.collection = function(name) { | ||
var that = {}; | ||
var oncollection = common.future(); | ||
@@ -233,0 +231,0 @@ |
{ | ||
"name":"mongojs", | ||
"description":"a simple mongo module that emulates the mongo api", | ||
"version":"0.1.5", | ||
"version":"0.1.6", | ||
"author": "Ge.tt <hello@ge.tt>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -7,3 +7,3 @@ # mongojs | ||
DB is very simple to use: | ||
mongojs is very simple to use: | ||
@@ -10,0 +10,0 @@ ``` js |
8106
229