mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Added toJSONObject util; (#5247)
Fixed AxiosError.toJSON method to avoid circular references; Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -45,7 +45,7 @@ utils.inherits(AxiosError, Error, {
|
||||
columnNumber: this.columnNumber,
|
||||
stack: this.stack,
|
||||
// Axios
|
||||
config: this.config,
|
||||
config: utils.toJSONObject(this.config),
|
||||
code: this.code,
|
||||
status: this.response && this.response.status ? this.response.status : null
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user