green-data-react-sdk
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "green-data-react-sdk", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple react component that displays green data.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -22,3 +22,5 @@ import axios from "axios"; | ||
url: options.url, | ||
res: error.response.data ? error.response.data : error.response, | ||
res: error?.response?.data | ||
? error?.response?.data | ||
: error?.response, | ||
code: error.response.status, | ||
@@ -31,3 +33,5 @@ error: error.response.message, | ||
url: options.url, | ||
res: error.response.data ? error.response.data : error.response, | ||
res: error?.response?.data | ||
? error?.response?.data | ||
: error?.response, | ||
code: 500, | ||
@@ -34,0 +38,0 @@ error: "error", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2684030
12825