@cloudcommerce/app-correios 0.0.64 → 0.0.65

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.
@@ -1,5 +1,5 @@
1
- @cloudcommerce/app-correios:build: cache hit, replaying output a406ae510aca111e
2
- @cloudcommerce/app-correios:build: 
3
- @cloudcommerce/app-correios:build: > @cloudcommerce/app-correios@0.0.0 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/correios
4
- @cloudcommerce/app-correios:build: > sh ../../../scripts/build-lib.sh
5
- @cloudcommerce/app-correios:build: 
1
+ @cloudcommerce/app-correios:build: cache hit, replaying output a4030e5dda2b1e9c
2
+ @cloudcommerce/app-correios:build: 
3
+ @cloudcommerce/app-correios:build: > @cloudcommerce/app-correios@0.0.64 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/correios
4
+ @cloudcommerce/app-correios:build: > sh ../../../scripts/build-lib.sh
5
+ @cloudcommerce/app-correios:build: 
package/README.md CHANGED
@@ -1 +1 @@
1
- # `@cloudcommerce/correios`
1
+ # `@cloudcommerce/app-correios`
@@ -193,9 +193,9 @@ export default async ({ params, application }) => {
193
193
  }
194
194
  }
195
195
  if (!config.free_no_weight_shipping || physicalWeight > 0) {
196
- const finalWeight = cubicWeight < 5 || physicalWeight > cubicWeight
196
+ const unitWeight = cubicWeight < 5 || physicalWeight > cubicWeight
197
197
  ? physicalWeight : cubicWeight;
198
- nVlPeso += (quantity * finalWeight);
198
+ nVlPeso += (quantity * unitWeight);
199
199
  }
200
200
  });
201
201
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-correios",
3
3
  "type": "module",
4
- "version": "0.0.64",
4
+ "version": "0.0.65",
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/correios#readme",
18
18
  "dependencies": {
19
- "@cloudcommerce/api": "0.0.64",
19
+ "@cloudcommerce/api": "0.0.65",
20
20
  "axios": "^0.27.2",
21
21
  "xml2js": "^0.4.23"
22
22
  },
23
23
  "devDependencies": {
24
- "@cloudcommerce/types": "0.0.64"
24
+ "@cloudcommerce/types": "0.0.65"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "sh ../../../scripts/build-lib.sh"