@rarible/logger
Advanced tools
Comparing version 0.9.9 to 0.9.11
@@ -58,3 +58,3 @@ "use strict"; | ||
status: fetchResponse.status, | ||
url: fetchResponse.url, | ||
url: decodeURIComponent(fetchResponse.url), | ||
data: responseData, | ||
@@ -77,5 +77,6 @@ formData: (_b = (_a = options === null || options === void 0 ? void 0 : options.requestInit) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.toString(), | ||
if (isAxiosError(axiosError) && axiosError.response) { | ||
var url = ((_a = axiosError === null || axiosError === void 0 ? void 0 : axiosError.config) === null || _a === void 0 ? void 0 : _a.url) || ""; | ||
throw new NetworkError({ | ||
status: (_a = axiosError === null || axiosError === void 0 ? void 0 : axiosError.response) === null || _a === void 0 ? void 0 : _a.status, | ||
url: ((_b = axiosError === null || axiosError === void 0 ? void 0 : axiosError.config) === null || _b === void 0 ? void 0 : _b.url) || "", | ||
status: (_b = axiosError === null || axiosError === void 0 ? void 0 : axiosError.response) === null || _b === void 0 ? void 0 : _b.status, | ||
url: url && decodeURIComponent(url), | ||
data: (_c = axiosError === null || axiosError === void 0 ? void 0 : axiosError.response) === null || _c === void 0 ? void 0 : _c.data, | ||
@@ -82,0 +83,0 @@ formData: (_d = axiosError === null || axiosError === void 0 ? void 0 : axiosError.config) === null || _d === void 0 ? void 0 : _d.data, |
{ | ||
"name": "@rarible/logger", | ||
"version": "0.9.9", | ||
"version": "0.9.11", | ||
"private": false, | ||
@@ -42,3 +42,3 @@ "description": "Logging utility for ts projects", | ||
}, | ||
"gitHead": "12dfd8d718c3f80a5af6134937b423d38d507086" | ||
"gitHead": "f22b9c3b71835ecddb8ad1df5c3d39ac84f5e8d6" | ||
} |
Sorry, the diff of this file is not supported yet
45640
591