Comparing version 0.1.7 to 0.1.8
@@ -7,8 +7,8 @@ var cradle = require('cradle'), | ||
if (typeof(options) === 'string') { | ||
logger.info("Connecting to %s",options); | ||
logger.info("Connecting to %s",options); | ||
db = new (cradle.Connection)().database(options); | ||
return db; | ||
} | ||
} | ||
var _options = {}, | ||
@@ -20,9 +20,7 @@ db_name = options.db, | ||
_options.secure = options.secure || false; | ||
_options.auth = options.auth; | ||
_options.auth = options.auth; | ||
_options.cache = options.cache || false; | ||
db = new (cradle.Connection)(url,port, _options).database(db_name); | ||
return db; | ||
@@ -29,0 +27,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"keywords": ["Couchdb", "db", "ORM", "ODM", "couch"], | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"homepage": "http://garrensmith.com/LazyBoy", | ||
@@ -9,0 +9,0 @@ "repository": { |
61141
1360