@infrab4a/connect 4.1.2 → 4.1.3-beta.1
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/index.cjs.js +3 -5
- package/index.esm.js +3 -5
- package/package.json +1 -1
- package/teste2.d.ts +0 -1
package/index.cjs.js
CHANGED
|
@@ -2524,12 +2524,10 @@ class ProductsIndex {
|
|
|
2524
2524
|
'rate',
|
|
2525
2525
|
];
|
|
2526
2526
|
const filter = [{ term: { published: true } }];
|
|
2527
|
-
if (
|
|
2528
|
-
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2529
|
-
}
|
|
2530
|
-
else {
|
|
2527
|
+
if (shop && shop !== exports.Shops.ALL)
|
|
2531
2528
|
filter.push({ term: { tags: shop == exports.Shops.GLAMSHOP ? 'feminino' : 'masculino' } });
|
|
2532
|
-
|
|
2529
|
+
if (size > 9)
|
|
2530
|
+
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2533
2531
|
const search = await this.adapter.query(this.index, {
|
|
2534
2532
|
size,
|
|
2535
2533
|
_source: fields,
|
package/index.esm.js
CHANGED
|
@@ -2500,12 +2500,10 @@ class ProductsIndex {
|
|
|
2500
2500
|
'rate',
|
|
2501
2501
|
];
|
|
2502
2502
|
const filter = [{ term: { published: true } }];
|
|
2503
|
-
if (
|
|
2504
|
-
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2505
|
-
}
|
|
2506
|
-
else {
|
|
2503
|
+
if (shop && shop !== Shops.ALL)
|
|
2507
2504
|
filter.push({ term: { tags: shop == Shops.GLAMSHOP ? 'feminino' : 'masculino' } });
|
|
2508
|
-
|
|
2505
|
+
if (size > 9)
|
|
2506
|
+
fields.push(...['pricePaid', 'isGift', 'stock', 'weight', 'tags']);
|
|
2509
2507
|
const search = await this.adapter.query(this.index, {
|
|
2510
2508
|
size,
|
|
2511
2509
|
_source: fields,
|
package/package.json
CHANGED
package/teste2.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|