merged npm
This commit is contained in:
commit
705827192d
|
@ -30,7 +30,7 @@
|
|||
"test": "grunt test"
|
||||
},
|
||||
"dependencies": {
|
||||
"couchapp": "0.10.1",
|
||||
"couchapp": "0.10.*",
|
||||
"grunt": "~0.3.12",
|
||||
"nano": "3.3.0"
|
||||
},
|
||||
|
|
|
@ -23,6 +23,17 @@ var genDB = function(db) {
|
|||
};
|
||||
};
|
||||
|
||||
var genDB = function(db) {
|
||||
var parts, dbname, auth;
|
||||
parts = urls.parse(db);
|
||||
dbname = parts.pathname.replace(/^\//, '');
|
||||
auth = parts.auth ? (parts.auth + '@') : '';
|
||||
return {
|
||||
name: dbname,
|
||||
url: parts.protocol + '//' + auth + parts.host
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
// ==========================================================================
|
||||
|
|
Loading…
Reference in New Issue