@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.cjs +2 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9897,6 +9897,7 @@ var ThemeFormErrors = class {
|
|
|
9897
9897
|
var SHOPIFY_TO_SWELL_SORTING = {
|
|
9898
9898
|
"best-selling": "popularity",
|
|
9899
9899
|
"title-ascending": "name_asc",
|
|
9900
|
+
"title-descending": "name_desc",
|
|
9900
9901
|
"price-ascending": "price_asc",
|
|
9901
9902
|
"price-descending": "price_desc",
|
|
9902
9903
|
"created-ascending": "date_asc",
|
|
@@ -14473,7 +14474,7 @@ ${injects.join("\n")}</script>`;
|
|
|
14473
14474
|
return param === "sort_by";
|
|
14474
14475
|
},
|
|
14475
14476
|
to(_param, value) {
|
|
14476
|
-
return { sort: SHOPIFY_TO_SWELL_SORTING[value] || "" };
|
|
14477
|
+
return { sort: SHOPIFY_TO_SWELL_SORTING[value] ?? (value || "") };
|
|
14477
14478
|
}
|
|
14478
14479
|
},
|
|
14479
14480
|
{
|