@bikematrix/web-components 1.1.49 → 1.1.50

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.
@@ -4356,7 +4356,7 @@ class Ct {
4356
4356
  // Explicitly set headers after spreading options (as mergedHeaders will override options.headers)
4357
4357
  };
4358
4358
  t.signal && (u.signal = t.signal);
4359
- const c = await fetch(r, u), f = await c.json().catch(() => {
4359
+ const c = await fetch(r == null ? void 0 : r.href, u), f = await c.json().catch(() => {
4360
4360
  throw new Error("Request failed: " + (c.statusText || "Status" + c.status));
4361
4361
  });
4362
4362
  f.status === 400 || f.statusCode === 404 ? o = {
@@ -4425,7 +4425,7 @@ const H2 = class Oa {
4425
4425
  ...e
4426
4426
  }), this.initializeConfig(), this.service = new Ct(this.config.apiUrl, this.config.apiKey, this.config.apiToken, this.config.isShopify), this.initializeActiveSubscription(), localStorage.bm_currentBike && (this.currentBike = JSON.parse(localStorage.bm_currentBike)), this.setupEventListeners(), this.registerComponents(), this.initialized = !0, Su.value = !0;
4427
4427
  const t = new Event("BM:Initialized");
4428
- document.dispatchEvent(t), this.config.logLevel === "verbose" && (console.log("BikeMatrix WebComponent Version: 1.1.49"), console.log("BikeMatrixCore initialized"));
4428
+ document.dispatchEvent(t), this.config.logLevel === "verbose" && (console.log("BikeMatrix WebComponent Version: 1.1.50"), console.log("BikeMatrixCore initialized"));
4429
4429
  }
4430
4430
  // Singleton pattern to ensure a single global instance
4431
4431
  static getInstance() {