@gem-sdk/components 4.0.0-staging.1154 → 4.0.0-staging.1155

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.
@@ -1,5 +1,5 @@
1
- "use strict";const generateBadgeContent=n=>`
2
- {% assign content = ${JSON.stringify(n)} %}
1
+ "use strict";const generateBadgeContent=n=>{let t;try{t=JSON.stringify(n)}catch(n){t=""}return`
2
+ {% assign content = ${t} %}
3
3
 
4
4
  {%if content.size > 0 %}
5
5
  {% if variant.compare_at_price and variant.compare_at_price > 0 %}
@@ -21,4 +21,4 @@
21
21
  {% assign minPriceKey = "{min_price}" %}
22
22
  {% assign inventoryQuantityKey = "{inventory_quantity}" %}
23
23
  {% endif %}
24
- `;exports.generateBadgeContent=generateBadgeContent;
24
+ `};exports.generateBadgeContent=generateBadgeContent;
@@ -1,5 +1,5 @@
1
- let generateBadgeContent=n=>`
2
- {% assign content = ${JSON.stringify(n)} %}
1
+ let generateBadgeContent=n=>{let i;try{i=JSON.stringify(n)}catch(n){i=""}return`
2
+ {% assign content = ${i} %}
3
3
 
4
4
  {%if content.size > 0 %}
5
5
  {% if variant.compare_at_price and variant.compare_at_price > 0 %}
@@ -21,4 +21,4 @@ let generateBadgeContent=n=>`
21
21
  {% assign minPriceKey = "{min_price}" %}
22
22
  {% assign inventoryQuantityKey = "{inventory_quantity}" %}
23
23
  {% endif %}
24
- `;export{generateBadgeContent};
24
+ `};export{generateBadgeContent};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "4.0.0-staging.1154",
3
+ "version": "4.0.0-staging.1155",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",