Skip to content

Commit f3c36d8

Browse files
authored
Merge pull request #76 from bgaeddert/update-to-axios-0.19.0
Bump axios from 0.7.0 to 0.19.0
2 parents 94e3950 + 712d05c commit f3c36d8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/request.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ var request = function (params, body) {
5353
return axios(config)
5454
.catch(function (err) {
5555
if (err instanceof Error) {
56+
if (err.response) {
57+
return err.response;
58+
}
59+
5660
throw new e.RequestError(err);
5761
}
5862
return err;

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "st2client",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "StackStorm ST2 API library",
55
"main": "index.js",
66
"scripts": {
@@ -36,7 +36,7 @@
3636
"/lib"
3737
],
3838
"dependencies": {
39-
"axios": "^0.7.0",
39+
"axios": "^0.19.0",
4040
"eventsource": "^0.1.4",
4141
"lodash": "^4.17.15",
4242
"object.assign": "^1.0.1"

0 commit comments

Comments
 (0)