@pie-players/pie-assessment-player 0.1.2 → 0.1.3

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.
@@ -5701,8 +5701,11 @@ class IifePieLoader {
5701
5701
  getBundleUrl(e, n, o) {
5702
5702
  if (o?.url)
5703
5703
  return logger$5.debug("Using explicit bundle URL from config:", o.url), o.url;
5704
- const i = Object.values(e).join("+"), a = `${this.config.bundleHost}${encodeURI(i)}/${n}`;
5705
- return logger$5.debug("Using bundle host URL:", a), a;
5704
+ const i = Object.values(e).join("+");
5705
+ let a = this.config.bundleHost || DEFAULT_BUNDLE_HOST;
5706
+ a = a.trim(), a = a.replace(/\/+$/, "") + "/";
5707
+ const l = `${a}${encodeURI(i)}/${n}`;
5708
+ return logger$5.debug("Using bundle host URL:", l), l;
5706
5709
  }
5707
5710
  /**
5708
5711
  * Load an IIFE bundle from the specified URL