Comparing version 0.41.0 to 0.42.0
@@ -0,1 +1,8 @@ | ||
0.42.0 / 2021-08-23 | ||
=================== | ||
* [FIX] check method style if exists instead of binding style (#1153) | ||
* [FIX] update dependency vuln in xmldom via xml-cryoto/xmldom update (#1157) | ||
* [FIX] update 7 vulnerabilities in the dependency chain (#1156) | ||
* [FIX] SOAP faults are no longer being passed back in the error callback/promise rejection (#1155) | ||
0.41.0 / 2021-08-20 | ||
@@ -2,0 +9,0 @@ =================== |
@@ -79,3 +79,5 @@ "use strict"; | ||
method: method, | ||
headers: headers | ||
headers: headers, | ||
validateStatus: null, | ||
transformResponse: function (data) { return data; } | ||
}; | ||
@@ -82,0 +84,0 @@ if (exoptions.forceMTOM || attachments.length > 0) { |
@@ -304,15 +304,24 @@ "use strict"; | ||
try { | ||
if (binding.style === 'rpc') { | ||
methodName = (Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0]); | ||
_this_1.emit('request', obj, methodName); | ||
if (headers) { | ||
_this_1.emit('headers', headers, methodName); | ||
} | ||
var soapAction = _this_1._getSoapAction(req); | ||
var messageElemName = (Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0]); | ||
var pair = binding.topElements[messageElemName]; | ||
if (soapAction) { | ||
methodName = _this_1._getMethodNameBySoapAction(binding, soapAction); | ||
} | ||
else { | ||
methodName = pair ? pair.methodName : messageElemName; | ||
} | ||
/** Style can be defined in method. If method has no style then look in binding */ | ||
var style = binding.methods[methodName].style || binding.style; | ||
_this_1.emit('request', obj, methodName); | ||
if (headers) { | ||
_this_1.emit('headers', headers, methodName); | ||
} | ||
if (style === 'rpc') { | ||
_this_1._executeMethod({ | ||
serviceName: serviceName, | ||
portName: portName, | ||
soapAction: _this_1._getSoapAction(req), | ||
methodName: methodName, | ||
outputName: methodName + 'Response', | ||
args: body[methodName], | ||
outputName: messageElemName + 'Response', | ||
args: body[messageElemName], | ||
headers: headers, | ||
@@ -323,14 +332,6 @@ style: 'rpc' | ||
else { | ||
var messageElemName = (Object.keys(body)[0] === 'attributes' ? Object.keys(body)[1] : Object.keys(body)[0]); | ||
var pair = binding.topElements[messageElemName]; | ||
_this_1.emit('request', obj, pair.methodName); | ||
if (headers) { | ||
_this_1.emit('headers', headers, pair.methodName); | ||
} | ||
methodName = pair.methodName; | ||
_this_1._executeMethod({ | ||
serviceName: serviceName, | ||
portName: portName, | ||
soapAction: _this_1._getSoapAction(req), | ||
methodName: pair.methodName, | ||
methodName: methodName, | ||
outputName: pair.outputName, | ||
@@ -433,5 +434,3 @@ args: body[messageElemName], | ||
var binding = this.wsdl.definitions.services[serviceName].ports[portName].binding; | ||
var methodName = options.soapAction | ||
? this._getMethodNameBySoapAction(binding, options.soapAction) | ||
: options.methodName; | ||
var methodName = options.methodName; | ||
var outputName = options.outputName; | ||
@@ -438,0 +437,0 @@ var args = options.args; |
@@ -100,8 +100,8 @@ "use strict"; | ||
} | ||
if (binding.style !== 'document') { | ||
continue; | ||
} | ||
var methods = binding.methods; | ||
var topEls = binding.topElements = {}; | ||
for (var methodName in methods) { | ||
if ((methods[methodName].style || binding.style) !== 'document') { | ||
continue; | ||
} | ||
if (methods[methodName].input) { | ||
@@ -108,0 +108,0 @@ var inputName = methods[methodName].input.$name; |
{ | ||
"name": "soap", | ||
"version": "0.41.0", | ||
"version": "0.42.0", | ||
"description": "A minimal node SOAP client", | ||
@@ -21,3 +21,3 @@ "engines": { | ||
"uuid": "^8.3.2", | ||
"xml-crypto": "^2.1.0" | ||
"xml-crypto": "^2.1.3" | ||
}, | ||
@@ -24,0 +24,0 @@ "repository": { |
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
466283
5873
Updatedxml-crypto@^2.1.3