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.d.cts CHANGED
@@ -172,7 +172,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
172
172
  declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
173
173
  declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
174
174
 
175
- declare const SDK_VERSION = "0.7.84";
175
+ declare const SDK_VERSION = "0.7.85";
176
176
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
177
177
  interface ApiConfig {
178
178
  httpClient: any;
package/dist/index.d.ts CHANGED
@@ -172,7 +172,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
172
172
  declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
173
173
  declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
174
174
 
175
- declare const SDK_VERSION = "0.7.84";
175
+ declare const SDK_VERSION = "0.7.85";
176
176
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
177
177
  interface ApiConfig {
178
178
  httpClient: any;
package/dist/index.js CHANGED
@@ -816,6 +816,7 @@ function createHttpClient(cfg) {
816
816
  fetchOpts.headers = headers;
817
817
  return request(method, path, body, { ...options, _retried: true });
818
818
  } catch (refreshError) {
819
+ throw refreshError;
819
820
  }
820
821
  }
821
822
  try {
@@ -2314,6 +2315,7 @@ var createAnalyticsApi = (apiConfig) => {
2314
2315
 
2315
2316
  // src/utils/price.ts
2316
2317
  function formatCurrency(amount, currencyCode, locale = "en") {
2318
+ if (!currencyCode) return "";
2317
2319
  return new Intl.NumberFormat(locale, {
2318
2320
  style: "currency",
2319
2321
  currency: currencyCode.toUpperCase()
@@ -2355,6 +2357,7 @@ function getCurrencyName(currency) {
2355
2357
  }
2356
2358
  }
2357
2359
  function formatMinor(amountMinor, currency) {
2360
+ if (!currency) return "";
2358
2361
  return formatCurrency(convertToMajor(amountMinor, currency), currency);
2359
2362
  }
2360
2363
  function formatPayment(payment) {
@@ -2611,7 +2614,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
2611
2614
  }
2612
2615
 
2613
2616
  // src/index.ts
2614
- var SDK_VERSION = "0.7.84";
2617
+ var SDK_VERSION = "0.7.85";
2615
2618
  var SUPPORTED_FRAMEWORKS = [
2616
2619
  "astro",
2617
2620
  "react",