Browse Source

exposed native mongodb object through a .client property

saintedlama/travis-non-legacy
Mathias Buus 13 years ago
parent
commit
69ddb6f00e
  1. 1
      index.js
  2. 2
      package.json

1
index.js

@ -165,6 +165,7 @@ exports.connect = function(url, collections) {
function(next) {
var client = new mongo.Db(url.db, new mongo.Server(url.host, url.port, {auto_reconnect:true}));
that.client = client;
that.bson = {
Long: client.bson_serializer.Long,
ObjectID: client.bson_serializer.ObjectID,

2
package.json

@ -2,7 +2,7 @@
"name":"mongojs",
"description":"a simple mongo module that implements the mongo api",
"keywords": ["mongo", "db", "mongodb"],
"version":"0.3.1",
"version":"0.3.2",
"homepage" : "https://github.com/gett/mongojs",
"author": "Ge.tt <hello@ge.tt>",
"contributors": [

Loading…
Cancel
Save