arky-sdk 0.7.84 → 0.7.85

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
@@ -2316,6 +2316,7 @@ var createAnalyticsApi = (apiConfig) => {
2316
2316
 
2317
2317
  // src/utils/price.ts
2318
2318
  function formatCurrency(amount, currencyCode, locale = "en") {
2319
+ if (!currencyCode) return "";
2319
2320
  return new Intl.NumberFormat(locale, {
2320
2321
  style: "currency",
2321
2322
  currency: currencyCode.toUpperCase()
@@ -2357,6 +2358,7 @@ function getCurrencyName(currency) {
2357
2358
  }
2358
2359
  }
2359
2360
  function formatMinor(amountMinor, currency) {
2361
+ if (!currency) return "";
2360
2362
  return formatCurrency(convertToMajor(amountMinor, currency), currency);
2361
2363
  }
2362
2364
  function formatPayment(payment) {
@@ -2613,7 +2615,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2613
2615
  }
2614
2616
 
2615
2617
  // src/index.ts
2616
- var SDK_VERSION = "0.7.84";
2618
+ var SDK_VERSION = "0.7.85";
2617
2619
  var SUPPORTED_FRAMEWORKS = [
2618
2620
  "astro",
2619
2621
  "react",