@maxtropy/v-components 0.1.11-beta.5 → 0.1.11-beta.7
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/mx-vcomponents.es.js +13 -13
- package/package.json +1 -1
|
@@ -26942,28 +26942,28 @@ function PR() {
|
|
|
26942
26942
|
return;
|
|
26943
26943
|
const t = vm();
|
|
26944
26944
|
window.rawFetch = window.fetch, window.fetch = (n, o) => {
|
|
26945
|
-
var
|
|
26945
|
+
var p, d;
|
|
26946
26946
|
const r = e;
|
|
26947
26947
|
let a = n;
|
|
26948
|
-
|
|
26949
|
-
|
|
26950
|
-
|
|
26951
|
-
|
|
26952
|
-
|
|
26953
|
-
|
|
26954
|
-
|
|
26955
|
-
|
|
26956
|
-
}
|
|
26957
|
-
}
|
|
26958
|
-
return window.rawFetch(a, o);
|
|
26948
|
+
typeof n == "string" && !n.startsWith("http") && !n.startsWith(t) && (a = r + n), typeof n == "object" && !(n instanceof URL) && !n.url.startsWith("http") && !n.url.startsWith(t) && (a = { ...n, url: r + n.url });
|
|
26949
|
+
const i = window.document.cookie.split(";").filter((f) => f.indexOf("GT=GT-") > -1), u = (d = (p = i == null ? void 0 : i[0]) == null ? void 0 : p.split("=")) == null ? void 0 : d[1];
|
|
26950
|
+
let c = { ...o };
|
|
26951
|
+
return u && (c = {
|
|
26952
|
+
...o,
|
|
26953
|
+
headers: {
|
|
26954
|
+
"X-GT": u,
|
|
26955
|
+
...o == null ? void 0 : o.headers
|
|
26956
|
+
}
|
|
26957
|
+
}), window.rawFetch(a, c);
|
|
26959
26958
|
}, window.rawXMLHttpRequest = window.XMLHttpRequest, window.XMLHttpRequest = class extends window.XMLHttpRequest {
|
|
26960
26959
|
constructor() {
|
|
26961
26960
|
super(), this.open = (n, o, r, a, l) => {
|
|
26962
26961
|
var u, c;
|
|
26963
26962
|
const i = e;
|
|
26964
26963
|
if (!o.startsWith("http") && !o.startsWith(t)) {
|
|
26964
|
+
super.open(n, i + o, r ?? !0, a, l);
|
|
26965
26965
|
const d = window.document.cookie.split(";").filter((g) => g.indexOf("GT=GT-") > -1), f = (c = (u = d == null ? void 0 : d[0]) == null ? void 0 : u.split("=")) == null ? void 0 : c[1];
|
|
26966
|
-
f && super.setRequestHeader("X-GT", f)
|
|
26966
|
+
f && super.setRequestHeader("X-GT", f);
|
|
26967
26967
|
} else
|
|
26968
26968
|
super.open(n, o, r ?? !0, a, l);
|
|
26969
26969
|
};
|