@cloudcommerce/app-correios 0.8.4 → 0.8.6
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.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @cloudcommerce/app-correios@0.8.
|
|
3
|
-
>
|
|
2
|
+
> @cloudcommerce/app-correios@0.8.5 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/correios
|
|
3
|
+
> bash ../../../scripts/build-lib.sh
|
|
4
4
|
|
|
@@ -303,9 +303,9 @@ export default async ({ params, application }) => {
|
|
|
303
303
|
let label = serviceName || `Correios ${Codigo}`;
|
|
304
304
|
if (Array.isArray(config.services)) {
|
|
305
305
|
for (let i = 0; i < config.services.length; i++) {
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
308
|
-
label =
|
|
306
|
+
const _service = config.services[i];
|
|
307
|
+
if (_service && _service.service_code === Codigo && _service.label) {
|
|
308
|
+
label = _service.label;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.6",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
|
|
6
6
|
"main": "lib/correios.js",
|
|
7
7
|
"repository": {
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"axios": "^1.3.4",
|
|
20
20
|
"xml2js": "^0.4.23",
|
|
21
|
-
"@cloudcommerce/api": "0.8.
|
|
21
|
+
"@cloudcommerce/api": "0.8.6"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@cloudcommerce/types": "0.8.
|
|
24
|
+
"@cloudcommerce/types": "0.8.6"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "
|
|
27
|
+
"build": "bash ../../../scripts/build-lib.sh"
|
|
28
28
|
}
|
|
29
29
|
}
|