@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.cjs
CHANGED
|
@@ -10046,6 +10046,7 @@ var ThemeFormErrors = class {
|
|
|
10046
10046
|
var SHOPIFY_TO_SWELL_SORTING = {
|
|
10047
10047
|
"best-selling": "popularity",
|
|
10048
10048
|
"title-ascending": "name_asc",
|
|
10049
|
+
"title-descending": "name_desc",
|
|
10049
10050
|
"price-ascending": "price_asc",
|
|
10050
10051
|
"price-descending": "price_desc",
|
|
10051
10052
|
"created-ascending": "date_asc",
|
|
@@ -14622,7 +14623,7 @@ ${injects.join("\n")}</script>`;
|
|
|
14622
14623
|
return param === "sort_by";
|
|
14623
14624
|
},
|
|
14624
14625
|
to(_param, value) {
|
|
14625
|
-
return { sort: SHOPIFY_TO_SWELL_SORTING[value] || "" };
|
|
14626
|
+
return { sort: SHOPIFY_TO_SWELL_SORTING[value] ?? (value || "") };
|
|
14626
14627
|
}
|
|
14627
14628
|
},
|
|
14628
14629
|
{
|