@faststore/api 2.0.118-alpha.0 → 2.0.140-alpha.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.
- package/dist/api.cjs.development.js +8 -1
- 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 +8 -1
- package/dist/api.esm.js.map +1 -1
- package/dist/platforms/vtex/clients/commerce/index.d.ts +2 -1
- package/dist/platforms/vtex/clients/commerce/types/ShippingData.d.ts +28 -0
- package/dist/platforms/vtex/clients/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/platforms/vtex/clients/commerce/index.ts +13 -4
- package/src/platforms/vtex/clients/commerce/types/ShippingData.ts +31 -0
|
@@ -13,7 +13,7 @@ var language = require('graphql/language');
|
|
|
13
13
|
var utils = require('@graphql-tools/utils');
|
|
14
14
|
|
|
15
15
|
var name = "@faststore/api";
|
|
16
|
-
var version = "2.0.
|
|
16
|
+
var version = "2.0.118-alpha.0";
|
|
17
17
|
var license = "MIT";
|
|
18
18
|
var main = "dist/index.js";
|
|
19
19
|
var typings = "dist/index.d.ts";
|
|
@@ -158,6 +158,13 @@ const VtexCommerce = ({
|
|
|
158
158
|
id,
|
|
159
159
|
body
|
|
160
160
|
}) => {
|
|
161
|
+
if (body.selectedAddresses) {
|
|
162
|
+
body.selectedAddresses.forEach(address => {
|
|
163
|
+
if (address.geoCoordinates === null) {
|
|
164
|
+
address.geoCoordinates = [];
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
161
168
|
return fetchAPI(`${base}/api/checkout/pub/orderForm/${id}/attachments/shippingData`, {
|
|
162
169
|
...BASE_INIT,
|
|
163
170
|
body: JSON.stringify(body)
|