Comparing version 1.1.0 to 1.1.1
@@ -101,3 +101,3 @@ "use strict"; | ||
}); | ||
options.data = `--${boundary}\r\n`; | ||
options.data = [Buffer.from(`--${boundary}\r\n`)]; | ||
let multipartCount = 0; | ||
@@ -107,9 +107,9 @@ multipart.forEach((part) => { | ||
if (key !== 'body') { | ||
options.data += `${key}: ${part[key]}\r\n`; | ||
options.data.push(Buffer.from(`${key}: ${part[key]}\r\n`)); | ||
} | ||
}); | ||
options.data += '\r\n'; | ||
options.data += `${part.body}\r\n--${boundary}${multipartCount === multipart.length - 1 ? '--' : ''}\r\n`; | ||
options.data.push(Buffer.from('\r\n'), Buffer.from(part.body), Buffer.from(`\r\n--${boundary}${multipartCount === multipart.length - 1 ? '--' : ''}\r\n`)); | ||
multipartCount++; | ||
}); | ||
options.data = Buffer.concat(options.data); | ||
} | ||
@@ -116,0 +116,0 @@ else { |
@@ -170,3 +170,3 @@ "use strict"; | ||
if (typeof this.log === 'function') { | ||
this.log('error', error, req); | ||
this.log('error', err, req); | ||
} | ||
@@ -173,0 +173,0 @@ } |
@@ -192,2 +192,3 @@ "use strict"; | ||
const ns = xmlns && xmlns[type.prefix] || | ||
this.xmlns[type.prefix] || | ||
((definitions.xmlns[type.prefix] !== undefined || definitions.xmlns[this.targetNSAlias] !== undefined) && this.schemaXmlns[type.prefix]) || | ||
@@ -194,0 +195,0 @@ definitions.xmlns[type.prefix]; |
{ | ||
"name": "soap", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A minimal node SOAP client", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
449875
6010