@swell/apps-sdk 1.0.171 → 1.0.172

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
@@ -9924,6 +9924,7 @@ ${formattedMessage}`;
9924
9924
  var SHOPIFY_TO_SWELL_SORTING = {
9925
9925
  "best-selling": "popularity",
9926
9926
  "title-ascending": "name_asc",
9927
+ "title-descending": "name_desc",
9927
9928
  "price-ascending": "price_asc",
9928
9929
  "price-descending": "price_desc",
9929
9930
  "created-ascending": "date_asc",
@@ -14500,7 +14501,7 @@ ${injects.join("\n")}<\/script>`;
14500
14501
  return param === "sort_by";
14501
14502
  },
14502
14503
  to(_param, value) {
14503
- return { sort: SHOPIFY_TO_SWELL_SORTING[value] || "" };
14504
+ return { sort: SHOPIFY_TO_SWELL_SORTING[value] ?? (value || "") };
14504
14505
  }
14505
14506
  },
14506
14507
  {