[dist] 1.3.4
minor change where auth was being lost
diff --git a/nano.js b/nano.js
index c59dc4c..dcd5ca7 100644
--- a/nano.js
+++ b/nano.js
@@ -645,7 +645,7 @@
if(path.pathname && path_array.length > 0) {
auth = path.auth ? path.auth + '@' : '';
db = path_array[0];
- cfg.url = u.format({protocol:path.protocol,host:path.host});
+ cfg.url = u.format({protocol:path.protocol,host: auth + path.host});
return document_module(db);
}
else { return public_functions; }
diff --git a/package.json b/package.json
index 9e1fb12..b773040 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
, "description" : "minimalistic couchdb driver for node.js"
, "homepage" : "http://github.com/dscape/nano"
, "repository" : "git://github.com/dscape/nano"
-, "version" : "1.3.3"
+, "version" : "1.3.4"
, "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"
, "contributors" :
[ "Thiago Arrais <thiago.arrais@gmail.com> (http://thiagoarrais.com)"
diff --git a/tests/shared/cfg.js b/tests/shared/cfg.js
index cd81fb6..b8c42d1 100644
--- a/tests/shared/cfg.js
+++ b/tests/shared/cfg.js
@@ -49,6 +49,9 @@
tests.url3 = function (callback) { callback(null,nano('http://someurl.com:5984/a')); };
tests.url3_ok = function (_,n) { this.t.equal(n.config.url, "http://someurl.com:5984"); };
+tests.url4 = function (callback) { callback(null,nano('http://a:b@someurl.com:5984/a')); };
+tests.url4_ok = function (_,n) { this.t.equal(n.config.url, "http://a:b@someurl.com:5984"); };
+
tests.url_db = function (callback) { nano(cfg.url + "/adb").info(callback); };
tests.url_db_ok = function (e,b) {
this.t.equal(e.message,"no_db_file");