Comparing version 0.0.2 to 0.0.3
var format = require('util').format; | ||
var MongoAuthProcess = function(host, port) { | ||
var MongoAuthProcess = function(host, port, service_name) { | ||
// Check what system we are on | ||
if(process.platform == 'win32') { | ||
this._processor = new Win32MongoProcessor(host, port); | ||
this._processor = new Win32MongoProcessor(host, port, service_name); | ||
} else { | ||
this._processor = new UnixMongoProcessor(host, port); | ||
this._processor = new UnixMongoProcessor(host, port, service_name); | ||
} | ||
@@ -25,3 +25,3 @@ } | ||
*******************************************************************/ | ||
var Win32MongoProcessor = function(host, port) { | ||
var Win32MongoProcessor = function(host, port, service_name) { | ||
this.host = host; | ||
@@ -33,4 +33,6 @@ this.port = port | ||
this._transition = Win32MongoProcessor.first_transition(this); | ||
// Set up service name | ||
service_name = service_name || "mongodb"; | ||
// Set up target | ||
this.target = format("mongodb/%s", host); | ||
this.target = format("%s/%s", service_name, host); | ||
// Number of retries | ||
@@ -183,3 +185,3 @@ this.retries = 10; | ||
*******************************************************************/ | ||
var UnixMongoProcessor = function(host, port) { | ||
var UnixMongoProcessor = function(host, port, service_name) { | ||
this.host = host; | ||
@@ -190,6 +192,7 @@ this.port = port | ||
this.kerberos = new this.Kerberos(); | ||
service_name = service_name || "mongodb"; | ||
// Set up first transition | ||
this._transition = UnixMongoProcessor.first_transition(this); | ||
// Set up target | ||
this.target = format("mongodb@%s", host); | ||
this.target = format("%s@%s", service_name, host); | ||
// Number of retries | ||
@@ -196,0 +199,0 @@ this.retries = 10; |
{ | ||
"name": "kerberos", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Kerberos library for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
183010
43
508
1