@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
|
@@ -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 = "1.12.
|
|
25
|
+
var version = "1.12.44";
|
|
26
26
|
var license = "MIT";
|
|
27
27
|
var main = "dist/index.js";
|
|
28
28
|
var typings = "dist/index.d.ts";
|
|
@@ -58,7 +58,7 @@ var dependencies = {
|
|
|
58
58
|
};
|
|
59
59
|
var devDependencies = {
|
|
60
60
|
"@envelop/core": "^2.6.0",
|
|
61
|
-
"@faststore/shared": "^1.12.
|
|
61
|
+
"@faststore/shared": "^1.12.43",
|
|
62
62
|
"@graphql-codegen/cli": "2.2.0",
|
|
63
63
|
"@graphql-codegen/typescript": "2.2.2",
|
|
64
64
|
concurrently: "^6.2.1",
|
|
@@ -2170,10 +2170,10 @@ const StoreSearchResult = {
|
|
|
2170
2170
|
},
|
|
2171
2171
|
products: async ({
|
|
2172
2172
|
productSearchPromise
|
|
2173
|
-
}) => {
|
|
2173
|
+
}, _) => {
|
|
2174
2174
|
const productSearchResult = await productSearchPromise;
|
|
2175
2175
|
const skus = productSearchResult.products.map(product => {
|
|
2176
|
-
const
|
|
2176
|
+
const maybeSku = product.items.find(item => item.sellers.some(item => inStock(item.commertialOffer)));
|
|
2177
2177
|
return maybeSku && enhanceSku(maybeSku, product);
|
|
2178
2178
|
}).filter(sku => !!sku);
|
|
2179
2179
|
return {
|