@zauru-sdk/services 2.0.70 → 2.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,8 +7,7 @@ const axiosInstance = axios.create({
|
|
|
7
7
|
axiosInstance.interceptors.request.use(function (request) {
|
|
8
8
|
// Do something before request is sent
|
|
9
9
|
console.log(`---------------- EJECUTANDO REQUEST ----------------`);
|
|
10
|
-
|
|
11
|
-
console.log(chalk.green(`${request.baseURL}${request.url}`));
|
|
10
|
+
console.time(`${request.baseURL}${request.url}`);
|
|
12
11
|
request.timeout = 220000;
|
|
13
12
|
return request;
|
|
14
13
|
}, function (error) {
|
|
@@ -20,7 +19,7 @@ axiosInstance.interceptors.request.use(function (request) {
|
|
|
20
19
|
// Add a response interceptor
|
|
21
20
|
axiosInstance.interceptors.response.use(function (response) {
|
|
22
21
|
// Do something with response data
|
|
23
|
-
|
|
22
|
+
console.timeEnd(`${response.config.baseURL}${response.config.url}`);
|
|
24
23
|
return response;
|
|
25
24
|
}, function (error) {
|
|
26
25
|
console.log(chalk.red("---------------- ERROR CON REQUEST (RESPONSE INTERCEPTOR) ----------------"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.74",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@remix-run/node": "^2.8.1",
|
|
27
|
-
"@zauru-sdk/common": "^2.0.
|
|
28
|
-
"@zauru-sdk/config": "^2.0.
|
|
27
|
+
"@zauru-sdk/common": "^2.0.74",
|
|
28
|
+
"@zauru-sdk/config": "^2.0.73",
|
|
29
29
|
"@zauru-sdk/graphql": "^2.0.69",
|
|
30
30
|
"@zauru-sdk/types": "^2.0.70",
|
|
31
31
|
"axios": "^1.6.7",
|
|
32
32
|
"chalk": "5.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c034cf75933f01e59afcd0e5bd8147086dbe501f"
|
|
35
35
|
}
|