Skip to content

Commit

Permalink
fix: include some error.request fields (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-envoy authored Jul 11, 2023
1 parent 18d17f6 commit 2501074
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@envoy/envoy-integrations-sdk",
"version": "2.0.0-beta.28",
"version": "2.0.0-beta.29",
"description": "SDK for building Envoy integrations.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
5 changes: 5 additions & 0 deletions src/util/axiosConstructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export function createAxiosClient(config?: AxiosRequestConfig | undefined): Axio
}, (error) => {
const safeError = {
code: error.code,
request: {
baseURL: error.request?.baseURL,
url: error.request?.url,
method: error.request?.method,
},
response: {
code: error.response?.code,
status: error.response?.status,
Expand Down

0 comments on commit 2501074

Please sign in to comment.