@swell/apps-sdk 1.0.176 → 1.0.177
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/index.cjs +8 -2
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +8 -2
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +3 -3
- package/dist/src/compatibility/shopify-objects/predictive_search.d.ts +1 -1
- package/dist/src/compatibility/shopify-objects/search.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13376,10 +13376,13 @@ ${formattedMessage}`;
|
|
|
13376
13376
|
if (search instanceof ShopifyResource) {
|
|
13377
13377
|
return search.clone();
|
|
13378
13378
|
}
|
|
13379
|
+
if (search instanceof StorefrontResource) {
|
|
13380
|
+
search = cloneStorefrontResource(search);
|
|
13381
|
+
}
|
|
13379
13382
|
return new ShopifyResource({
|
|
13380
|
-
performed:
|
|
13383
|
+
performed: deferWith(search, (search2) => search2.performed),
|
|
13381
13384
|
resources: ShopifyPredictiveSearchResources(instance, search),
|
|
13382
|
-
terms:
|
|
13385
|
+
terms: deferWith(search, (search2) => search2.query),
|
|
13383
13386
|
types: ["product"]
|
|
13384
13387
|
});
|
|
13385
13388
|
}
|
|
@@ -13450,6 +13453,9 @@ ${formattedMessage}`;
|
|
|
13450
13453
|
if (search instanceof ShopifyResource) {
|
|
13451
13454
|
return search.clone();
|
|
13452
13455
|
}
|
|
13456
|
+
if (search instanceof StorefrontResource) {
|
|
13457
|
+
search = cloneStorefrontResource(search);
|
|
13458
|
+
}
|
|
13453
13459
|
const resolveProducts = makeProductsCollectionResolve(
|
|
13454
13460
|
instance,
|
|
13455
13461
|
search,
|