@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.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: defer(() => search.performed),
13383
+ performed: deferWith(search, (search2) => search2.performed),
13381
13384
  resources: ShopifyPredictiveSearchResources(instance, search),
13382
- terms: defer(() => search.query),
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,