@pie-players/pie-section-player 0.2.1 → 0.2.2

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.
@@ -5585,6 +5585,7 @@ const parsePackageName$2 = (e) => {
5585
5585
  };
5586
5586
  }, getPackageWithoutVersion$2 = (e) => e.split("+").map((t) => parsePackageName$2(t).name).join("+");
5587
5587
  let logger$7;
5588
+ const DEFAULT_BUNDLE_HOST$1 = "https://proxy.pie-api.com/bundles/";
5588
5589
  typeof window < "u" && !window.pieHelpers && (window.pieHelpers = {
5589
5590
  loadingScripts: {},
5590
5591
  loadingPromises: {}
@@ -5603,8 +5604,11 @@ let IifePieLoader$1 = class {
5603
5604
  getBundleUrl(t, n, o) {
5604
5605
  if (o?.url)
5605
5606
  return logger$7.debug("Using explicit bundle URL from config:", o.url), o.url;
5606
- const i = Object.values(t).join("+"), a = `${this.config.bundleHost}${encodeURI(i)}/${n}`;
5607
- return logger$7.debug("Using bundle host URL:", a), a;
5607
+ const i = Object.values(t).join("+");
5608
+ let a = this.config.bundleHost || DEFAULT_BUNDLE_HOST$1;
5609
+ a = a.trim(), a = a.replace(/\/+$/, "") + "/";
5610
+ const l = `${a}${encodeURI(i)}/${n}`;
5611
+ return logger$7.debug("Using bundle host URL:", l), l;
5608
5612
  }
5609
5613
  /**
5610
5614
  * Load an IIFE bundle from the specified URL
@@ -79875,8 +79879,11 @@ class IifePieLoader {
79875
79879
  getBundleUrl(t, n, o) {
79876
79880
  if (o?.url)
79877
79881
  return logger$5$1.debug("Using explicit bundle URL from config:", o.url), o.url;
79878
- const i = Object.values(t).join("+"), a = `${this.config.bundleHost}${encodeURI(i)}/${n}`;
79879
- return logger$5$1.debug("Using bundle host URL:", a), a;
79882
+ const i = Object.values(t).join("+");
79883
+ let a = this.config.bundleHost || DEFAULT_BUNDLE_HOST;
79884
+ a = a.trim(), a = a.replace(/\/+$/, "") + "/";
79885
+ const l = `${a}${encodeURI(i)}/${n}`;
79886
+ return logger$5$1.debug("Using bundle host URL:", l), l;
79880
79887
  }
79881
79888
  /**
79882
79889
  * Load an IIFE bundle from the specified URL