rets-client
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -97,3 +97,3 @@ // Generated by CoffeeScript 1.10.0 | ||
return function(retsContext) { | ||
var hasPermissions, key, missingPermissions, val; | ||
var a1, hasPermissions, key, missingPermissions, retsUaAuth, val; | ||
_this.systemData = retsContext.systemData; | ||
@@ -137,2 +137,7 @@ _this.loginHeaderInfo = retsContext.headerInfo; | ||
} | ||
if (_this.settings.userAgentPassword && _this.settings.sessionId) { | ||
a1 = crypto.createHash('md5').update([_this.settings.userAgent, _this.settings.userAgentPassword].join(":")).digest('hex'); | ||
retsUaAuth = crypto.createHash('md5').update([a1, "", _this.settings.sessionId || "", _this.settings.version || _this.headers['RETS-Version']].join(":")).digest('hex'); | ||
_this.headers['RETS-UA-Authorization'] = "Digest " + retsUaAuth; | ||
} | ||
return _this; | ||
@@ -161,8 +166,2 @@ }; | ||
return Promise["try"](function() { | ||
var a1, retsUaAuth; | ||
if (client.settings.userAgentPassword && client.settings.sessionId) { | ||
a1 = crypto.createHash('md5').update([client.settings.userAgent, client.settings.userAgentPassword].join(":")).digest('hex'); | ||
retsUaAuth = crypto.createHash('md5').update([a1, "", client.settings.sessionId || "", client.settings.version || client.headers['RETS-Version']].join(":")).digest('hex'); | ||
client.headers['RETS-UA-Authorization'] = "Digest " + retsUaAuth; | ||
} | ||
return handler(client); | ||
@@ -169,0 +168,0 @@ })["finally"](function() { |
@@ -161,2 +161,4 @@ // Generated by CoffeeScript 1.10.0 | ||
if (err) { | ||
done = true; | ||
partDone = true; | ||
handleError(new errors.RetsProcessingError(retsContext, "Unexpected end of data: " + (errors.getErrorMessage(err)))); | ||
@@ -163,0 +165,0 @@ } |
{ | ||
"name": "rets-client", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "A RETS client (Real Estate Transaction Standard).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
101308
2043