@sdeverywhere/check-ui-shell 0.2.16 → 0.2.18

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9767,10 +9767,18 @@ class Uv {
9767
9767
  async loadRemoteBundles() {
9768
9768
  if (this.config.remoteBundlesUrl)
9769
9769
  try {
9770
- const e = await fetch(this.config.remoteBundlesUrl);
9771
- if (!e.ok)
9772
- throw new Error(`Failed to fetch remote bundles: ${e.statusText}`);
9773
- return await e.json();
9770
+ let e;
9771
+ const r = {};
9772
+ let s = this.config.remoteBundlesUrl;
9773
+ if (s.startsWith("https://") && s.includes("@")) {
9774
+ const [a, l] = s.replace("https://", "").split("@");
9775
+ r.Authorization = "Basic " + btoa(a), s = `https://${l}`, e = "include";
9776
+ }
9777
+ s += `?cb=${Date.now()}`;
9778
+ const n = await fetch(s, { headers: r, credentials: e });
9779
+ if (!n.ok)
9780
+ throw new Error(`Failed to fetch remote bundles: ${n.statusText}`);
9781
+ return await n.json();
9774
9782
  } catch (e) {
9775
9783
  const s = `Failed to load remote bundles: ${e instanceof Error ? e.message : String(e)}`, n = this.error;
9776
9784
  n ? this.error = `${n}; ${s}` : this.error = s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdeverywhere/check-ui-shell",
3
- "version": "0.2.16",
3
+ "version": "0.2.18",
4
4
  "files": [
5
5
  "dist/**"
6
6
  ],