arky-sdk 0.7.84 → 0.7.86

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
@@ -818,6 +818,7 @@ function createHttpClient(cfg) {
818
818
  fetchOpts.headers = headers;
819
819
  return request(method, path, body, { ...options, _retried: true });
820
820
  } catch (refreshError) {
821
+ throw refreshError;
821
822
  }
822
823
  }
823
824
  try {
@@ -2316,6 +2317,7 @@ var createAnalyticsApi = (apiConfig) => {
2316
2317
 
2317
2318
  // src/utils/price.ts
2318
2319
  function formatCurrency(amount, currencyCode, locale = "en") {
2320
+ if (!currencyCode) return "";
2319
2321
  return new Intl.NumberFormat(locale, {
2320
2322
  style: "currency",
2321
2323
  currency: currencyCode.toUpperCase()
@@ -2357,6 +2359,7 @@ function getCurrencyName(currency) {
2357
2359
  }
2358
2360
  }
2359
2361
  function formatMinor(amountMinor, currency) {
2362
+ if (!currency) return "";
2360
2363
  return formatCurrency(convertToMajor(amountMinor, currency), currency);
2361
2364
  }
2362
2365
  function formatPayment(payment) {
@@ -2613,7 +2616,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2613
2616
  }
2614
2617
 
2615
2618
  // src/index.ts
2616
- var SDK_VERSION = "0.7.84";
2619
+ var SDK_VERSION = "0.7.85";
2617
2620
  var SUPPORTED_FRAMEWORKS = [
2618
2621
  "astro",
2619
2622
  "react",