Skip to content

Commit

Permalink
Merge 1777ef9 into d856ebb
Browse files Browse the repository at this point in the history
  • Loading branch information
circa10a committed Jun 1, 2020
2 parents d856ebb + 1777ef9 commit 0abbd7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 4.0.0(2020-06-01)

Reject `error.response` instead of `error.response.data`

# 3.3.1(2020-04-26)

Update docs to point to deno.land for easy-soap-request deno module instead of github
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function soapRequest(opts = {
}).catch((error) => {
if (error.response) {
console.error(`SOAP FAIL: ${error}`);
reject(error.response.data);
reject(error.response);
} else {
console.error(`SOAP FAIL: ${error}`);
reject(error);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "easy-soap-request",
"version": "3.3.1",
"version": "4.0.0",
"description": "A small library to make SOAP requests easier",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 0abbd7f

Please sign in to comment.