@cloudcommerce/app-melhor-envio 2.48.19 → 2.49.0
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.
|
@@ -177,13 +177,6 @@ export default async ({ params, application }) => {
|
|
|
177
177
|
try {
|
|
178
178
|
const { data } = await meAxios.post('/shipment/calculate', schema);
|
|
179
179
|
|
|
180
|
-
if (!data.length) {
|
|
181
|
-
logger.warn('Empty ME calculate result', {
|
|
182
|
-
data,
|
|
183
|
-
schema,
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
|
|
187
180
|
let errorMsg;
|
|
188
181
|
data.forEach((service) => {
|
|
189
182
|
let isAvailable = true;
|
|
@@ -373,6 +366,10 @@ export default async ({ params, application }) => {
|
|
|
373
366
|
message: errorMsg,
|
|
374
367
|
};
|
|
375
368
|
}
|
|
369
|
+
logger.warn('Empty ME calculate result', {
|
|
370
|
+
data,
|
|
371
|
+
schema,
|
|
372
|
+
});
|
|
376
373
|
}
|
|
377
374
|
return response;
|
|
378
375
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-melhor-envio",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.49.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app to integrate Melhor Envio",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"axios": "^1.11.0",
|
|
30
30
|
"firebase-admin": "^13.4.0",
|
|
31
31
|
"firebase-functions": "^6.4.0",
|
|
32
|
-
"@cloudcommerce/api": "2.
|
|
33
|
-
"@cloudcommerce/firebase": "2.
|
|
32
|
+
"@cloudcommerce/api": "2.49.0",
|
|
33
|
+
"@cloudcommerce/firebase": "2.49.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@firebase/app-types": "^0.9.3",
|
|
37
|
-
"@cloudcommerce/types": "2.
|
|
37
|
+
"@cloudcommerce/types": "2.49.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "bash ../../../scripts/build-lib.sh"
|