@emartech/json-logger
Advanced tools
Comparing version 8.0.2 to 8.0.3
@@ -137,4 +137,4 @@ "use strict"; | ||
return { | ||
request_method: error.config.method, | ||
request_url: error.config.url, | ||
request_method: error.config?.method, | ||
request_url: error.config?.url, | ||
response_status: error.response ? error.response.status : undefined, | ||
@@ -147,7 +147,7 @@ response_status_text: error.response ? error.response.statusText : undefined, | ||
url: { | ||
full: error.config.url, | ||
full: error.config?.url, | ||
}, | ||
http: { | ||
request: { | ||
method: error.config.method, | ||
method: error.config?.method, | ||
}, | ||
@@ -161,2 +161,5 @@ response: { | ||
}, | ||
error: { | ||
code: error.code, | ||
}, | ||
}; | ||
@@ -163,0 +166,0 @@ } |
@@ -67,3 +67,3 @@ { | ||
}, | ||
"version": "8.0.2" | ||
"version": "8.0.3" | ||
} |
38187
530