From a532390f81e35f611fd02ad3d543f4d52217ca3c Mon Sep 17 00:00:00 2001 From: nanalelfe Date: Sun, 14 Aug 2016 06:13:55 -0400 Subject: Fixed signin and signup --- node_modules/mongodb/lib/url_parser.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'node_modules/mongodb/lib/url_parser.js') diff --git a/node_modules/mongodb/lib/url_parser.js b/node_modules/mongodb/lib/url_parser.js index 0152612..663e5dc 100644 --- a/node_modules/mongodb/lib/url_parser.js +++ b/node_modules/mongodb/lib/url_parser.js @@ -223,6 +223,8 @@ module.exports = function(url, options) { serverOptions.poolSize = parseInt(value, 10); replSetServersOptions.poolSize = parseInt(value, 10); break; + case 'appname': + object.appname = decodeURIComponent(value); case 'autoReconnect': case 'auto_reconnect': serverOptions.auto_reconnect = (value == 'true'); @@ -353,6 +355,9 @@ module.exports = function(url, options) { if(!ReadPreference.isValid(value)) throw new Error("readPreference must be either primary/primaryPreferred/secondary/secondaryPreferred/nearest"); dbOptions.readPreference = value; break; + case 'maxStalenessMS': + dbOptions.maxStalenessMS = parseInt(value, 10); + break; case 'readPreferenceTags': // Decode the value value = decodeURIComponent(value); -- cgit v1.2.3