@cloudcommerce/app-correios 0.0.96 → 0.0.98
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,5 +1,5 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
1
|
+
[32m@cloudcommerce/app-correios:build[0m: cache hit, replaying output [2m704aefb4d9406796[0m
|
|
2
|
+
[32m@cloudcommerce/app-correios:build: [0m
|
|
3
|
+
[32m@cloudcommerce/app-correios:build: [0m> @cloudcommerce/app-correios@0.0.97 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/correios
|
|
4
|
+
[32m@cloudcommerce/app-correios:build: [0m> sh ../../../scripts/build-lib.sh
|
|
5
|
+
[32m@cloudcommerce/app-correios:build: [0m
|
package/lib-mjs/correios-ws.mjs
CHANGED
|
@@ -27,7 +27,8 @@ const sendCalculateRequest = (params, timeout, isDebug = false) => {
|
|
|
27
27
|
})
|
|
28
28
|
.then(async (response) => {
|
|
29
29
|
// parse XML to object
|
|
30
|
-
|
|
30
|
+
// https://www.npmjs.com/package/xml2js#options/
|
|
31
|
+
const result = await xml2js.parseStringPromise(response.data, { explicitArray: false });
|
|
31
32
|
let services;
|
|
32
33
|
if (Array.isArray(result.Servicos)) {
|
|
33
34
|
services = result.Servicos;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.98",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
|
|
6
6
|
"main": "lib/correios.js",
|
|
7
7
|
"repository": {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/apps/correios#readme",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@cloudcommerce/api": "0.0.
|
|
19
|
+
"@cloudcommerce/api": "0.0.98",
|
|
20
20
|
"axios": "^0.27.2",
|
|
21
21
|
"xml2js": "^0.4.23"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@cloudcommerce/types": "0.0.
|
|
24
|
+
"@cloudcommerce/types": "0.0.98"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "sh ../../../scripts/build-lib.sh"
|