@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 CHANGED
@@ -13498,10 +13498,13 @@ function ShopifyPredictiveSearch(instance, search) {
13498
13498
  if (search instanceof ShopifyResource) {
13499
13499
  return search.clone();
13500
13500
  }
13501
+ if (search instanceof StorefrontResource) {
13502
+ search = cloneStorefrontResource(search);
13503
+ }
13501
13504
  return new ShopifyResource({
13502
- performed: defer(() => search.performed),
13505
+ performed: deferWith(search, (search2) => search2.performed),
13503
13506
  resources: ShopifyPredictiveSearchResources(instance, search),
13504
- terms: defer(() => search.query),
13507
+ terms: deferWith(search, (search2) => search2.query),
13505
13508
  types: ["product"]
13506
13509
  });
13507
13510
  }
@@ -13572,6 +13575,9 @@ function ShopifySearch(instance, search) {
13572
13575
  if (search instanceof ShopifyResource) {
13573
13576
  return search.clone();
13574
13577
  }
13578
+ if (search instanceof StorefrontResource) {
13579
+ search = cloneStorefrontResource(search);
13580
+ }
13575
13581
  const resolveProducts = makeProductsCollectionResolve(
13576
13582
  instance,
13577
13583
  search,