mongodb-uri
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -72,3 +72,3 @@ /* | ||
uriObject.options = {}; | ||
options.split(',').forEach(function (o) { | ||
options.split('&').forEach(function (o) { | ||
var iEquals = o.indexOf('='); | ||
@@ -155,3 +155,3 @@ uriObject.options[decodeURIComponent(o.substring(0, iEquals))] = decodeURIComponent(o.substring(iEquals + 1)); | ||
Object.keys(uriObject.options).forEach(function (k, i) { | ||
uri += i === 0 ? '?' : ','; | ||
uri += i === 0 ? '?' : '&'; | ||
uri += encodeURIComponent(k) + '=' + encodeURIComponent(uriObject.options[k]); | ||
@@ -158,0 +158,0 @@ }); |
{ | ||
"name": "mongodb-uri", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "A parser and formatter for MongoDB URIs.", | ||
@@ -5,0 +5,0 @@ "keywords": [ "mongodb", "uri", "url", "parser", "formatter", "mongoose" ], |
Sorry, the diff of this file is not supported yet
12476