Skip to content

Commit

Permalink
add headers destructured object to docs, fix dep vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
circa10a committed Feb 23, 2019
1 parent d224065 commit 49a57ea
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 363 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const xml = fs.readFileSync('test/zipCodeEnvelope.xml', 'utf-8');
// usage of module
(async () => {
const { response } = await soapRequest(url, headers, xml, 1000); // Optional timeout parameter(milliseconds)
const { body, statusCode } = response;
const { headers, body, statusCode } = response;
console.log(headers);
console.log(body);
console.log(statusCode);
})();
Expand All @@ -66,7 +67,8 @@ const xml = fs.readFileSync('test/zipCodeEnvelope.xml', 'utf-8');
</soapenv:Envelope>`;
async function makeRequest() {
const { response } = await soapRequest(url, headers, xml, 1000); // Optional timeout parameter(milliseconds)
const { body, statusCode } = response;
const { headers, body, statusCode } = response;
console.log(headers);
console.log(body);
console.log(statusCode);
document.body.innerHTML = body;
Expand Down
Loading

0 comments on commit 49a57ea

Please sign in to comment.