@faststore/api 1.12.43 → 1.12.45
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 +4 -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 +4 -4
- package/dist/api.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/platforms/vtex/resolvers/searchResult.ts +5 -2
package/dist/api.esm.js
CHANGED
|
@@ -18,7 +18,7 @@ import { trace, context, SpanKind } from '@opentelemetry/api';
|
|
|
18
18
|
import { SeverityNumber } from '@opentelemetry/api-logs';
|
|
19
19
|
|
|
20
20
|
var name = "@faststore/api";
|
|
21
|
-
var version = "1.12.
|
|
21
|
+
var version = "1.12.44";
|
|
22
22
|
var license = "MIT";
|
|
23
23
|
var main = "dist/index.js";
|
|
24
24
|
var typings = "dist/index.d.ts";
|
|
@@ -54,7 +54,7 @@ var dependencies = {
|
|
|
54
54
|
};
|
|
55
55
|
var devDependencies = {
|
|
56
56
|
"@envelop/core": "^2.6.0",
|
|
57
|
-
"@faststore/shared": "^1.12.
|
|
57
|
+
"@faststore/shared": "^1.12.43",
|
|
58
58
|
"@graphql-codegen/cli": "2.2.0",
|
|
59
59
|
"@graphql-codegen/typescript": "2.2.2",
|
|
60
60
|
concurrently: "^6.2.1",
|
|
@@ -2166,10 +2166,10 @@ const StoreSearchResult = {
|
|
|
2166
2166
|
},
|
|
2167
2167
|
products: async ({
|
|
2168
2168
|
productSearchPromise
|
|
2169
|
-
}) => {
|
|
2169
|
+
}, _) => {
|
|
2170
2170
|
const productSearchResult = await productSearchPromise;
|
|
2171
2171
|
const skus = productSearchResult.products.map(product => {
|
|
2172
|
-
const
|
|
2172
|
+
const maybeSku = product.items.find(item => item.sellers.some(item => inStock(item.commertialOffer)));
|
|
2173
2173
|
return maybeSku && enhanceSku(maybeSku, product);
|
|
2174
2174
|
}).filter(sku => !!sku);
|
|
2175
2175
|
return {
|