@faststore/api 2.1.78 → 2.1.83
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/dist/api.cjs.development.js +7 -4
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +7 -4
- package/dist/api.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/platforms/vtex/resolvers/validateCart.ts +3 -1
|
@@ -22,7 +22,7 @@ var api = require('@opentelemetry/api');
|
|
|
22
22
|
var apiLogs = require('@opentelemetry/api-logs');
|
|
23
23
|
|
|
24
24
|
var name = "@faststore/api";
|
|
25
|
-
var version = "2.1.
|
|
25
|
+
var version = "2.1.82";
|
|
26
26
|
var license = "MIT";
|
|
27
27
|
var main = "dist/index.js";
|
|
28
28
|
var typings = "dist/index.d.ts";
|
|
@@ -58,8 +58,8 @@ var dependencies = {
|
|
|
58
58
|
};
|
|
59
59
|
var devDependencies = {
|
|
60
60
|
"@envelop/core": "^2.6.0",
|
|
61
|
-
"@faststore/eslint-config": "^2.1.
|
|
62
|
-
"@faststore/shared": "^2.1.
|
|
61
|
+
"@faststore/eslint-config": "^2.1.82",
|
|
62
|
+
"@faststore/shared": "^2.1.82",
|
|
63
63
|
"@graphql-codegen/cli": "2.2.0",
|
|
64
64
|
"@graphql-codegen/typescript": "2.2.2",
|
|
65
65
|
"@types/express": "^4.17.16",
|
|
@@ -1305,7 +1305,10 @@ const joinItems = form => {
|
|
|
1305
1305
|
items: Object.values(itemsById).map(items => {
|
|
1306
1306
|
const [item] = items;
|
|
1307
1307
|
const quantity = items.reduce((acc, i) => acc + i.quantity, 0);
|
|
1308
|
-
const totalPrice = items.reduce((acc, i) =>
|
|
1308
|
+
const totalPrice = items.reduce((acc, i) => {
|
|
1309
|
+
var _i$priceDefinition$to, _i$priceDefinition, _i$quantity, _i$sellingPrice;
|
|
1310
|
+
return acc + ((_i$priceDefinition$to = i == null ? void 0 : (_i$priceDefinition = i.priceDefinition) == null ? void 0 : _i$priceDefinition.total) != null ? _i$priceDefinition$to : ((_i$quantity = i == null ? void 0 : i.quantity) != null ? _i$quantity : 0) * ((_i$sellingPrice = i == null ? void 0 : i.sellingPrice) != null ? _i$sellingPrice : 0));
|
|
1311
|
+
}, 0);
|
|
1309
1312
|
return {
|
|
1310
1313
|
...item,
|
|
1311
1314
|
quantity,
|