@vtex/api
Advanced tools
Comparing version 0.20.3 to 0.20.4
@@ -54,2 +54,10 @@ 'use strict'; | ||
http.interceptors.response.use(handleResponse, err => { | ||
if (err.response && err.response.config) { | ||
var _err$response$config = err.response.config; | ||
const url = _err$response$config.url, | ||
method = _err$response$config.method, | ||
data = _err$response$config.data; | ||
console.log(`Error calling ${ method.toUpperCase() } ${ url } ${ data ? `with data ${ JSON.stringify(data) }` : '' }`); | ||
} | ||
try { | ||
@@ -56,0 +64,0 @@ delete err.response.request; |
{ | ||
"name": "@vtex/api", | ||
"version": "0.20.3", | ||
"version": "0.20.4", | ||
"description": "VTEX I/O API client", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
178706
537