@maxtropy/v-components 0.1.11-beta.6 → 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.
@@ -26942,20 +26942,19 @@ function PR() {
26942
26942
  return;
26943
26943
  const t = vm();
26944
26944
  window.rawFetch = window.fetch, window.fetch = (n, o) => {
26945
- var l, i;
26945
+ var p, d;
26946
26946
  const r = e;
26947
26947
  let a = n;
26948
- if (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)) {
26949
- const c = window.document.cookie.split(";").filter((d) => d.indexOf("GT=GT-") > -1), p = (i = (l = c == null ? void 0 : c[0]) == null ? void 0 : l.split("=")) == null ? void 0 : i[1];
26950
- p && (o = {
26951
- ...o,
26952
- headers: {
26953
- "X-GT": p,
26954
- ...o == null ? void 0 : o.headers
26955
- }
26956
- }), a = { ...n, url: r + n.url };
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.1.11-beta.6",
3
+ "version": "0.1.11-beta.7",
4
4
  "files": [
5
5
  "dist"
6
6
  ],