@burdenoff/fe-libs 2026.706.1 → 2026.707.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shellRoutes.d.ts","sourceRoot":"","sources":["../../../src/shared/config/shellRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,kCAAkC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mCAAmC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAK5E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"shellRoutes.d.ts","sourceRoot":"","sources":["../../../src/shared/config/shellRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,kCAAkC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mCAAmC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAK5E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAAgB,EAmLtD,CAAC;AAYF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,gBAAgB,EAA6B,GACpD,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC,CAe7C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,gBAAgB,EAA6B,GACpD,OAAO,CAGT;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,gBAAgB,EAA6B,GACpD,OAAO,CAET;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,gBAAgB,EAA6B,GACpD,OAAO,CAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gatewayFetchRewrite.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/gatewayFetchRewrite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,KAAK,EAAE,YAAY,CAAC;CACrB;AAgFD,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD;
|
|
1
|
+
{"version":3,"file":"gatewayFetchRewrite.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/gatewayFetchRewrite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,KAAK,EAAE,YAAY,CAAC;CACrB;AAgFD,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD;AA6KD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,CAAC,EAAE,kBAAkB,EAAE,EACpC,aAAa,CAAC,EAAE,YAAY,GAC3B,YAAY,CAad;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,EACpC,SAAS,CAAC,EAAE,MAAM,EAClB,aAAa,CAAC,EAAE,MAAM,GACrB,OAAO,CAET;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD;AAED;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,YAAY,EACnB,QAAQ,CAAC,EAAE,0BAA0B,GACpC,IAAI,CAuHN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,SAAyB,GAAG,IAAI,CAQtE"}
|
|
@@ -64,18 +64,19 @@ function g(e) {
|
|
|
64
64
|
return !1;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
var _ = "cf_primed";
|
|
68
|
+
function v() {
|
|
68
69
|
try {
|
|
69
70
|
return globalThis.sessionStorage ?? null;
|
|
70
71
|
} catch {
|
|
71
72
|
return null;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function y(e, t) {
|
|
75
76
|
let n = e.getItem(c), r = n ? Number(n) : 0;
|
|
76
77
|
return Number.isFinite(r) && t - r < l;
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
+
function b() {
|
|
79
80
|
try {
|
|
80
81
|
let e = new URL(window.location.href || window.location.origin);
|
|
81
82
|
return e.hash = "", e.toString();
|
|
@@ -83,42 +84,51 @@ function y() {
|
|
|
83
84
|
return window.location.origin;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function x() {
|
|
87
88
|
return window.location.hash ? !0 : u.has(window.location.pathname);
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
let t = _();
|
|
92
|
-
if (!t) return;
|
|
93
|
-
let n = Date.now();
|
|
94
|
-
if (v(t, n)) return;
|
|
90
|
+
function S(e, t) {
|
|
91
|
+
let n;
|
|
95
92
|
try {
|
|
96
|
-
|
|
93
|
+
n = new URL(window.location.href);
|
|
97
94
|
} catch {
|
|
98
|
-
return;
|
|
95
|
+
return !1;
|
|
99
96
|
}
|
|
100
|
-
|
|
97
|
+
if (!n.searchParams.has(_)) return !1;
|
|
98
|
+
n.searchParams.delete(_);
|
|
99
|
+
try {
|
|
100
|
+
e.setItem(c, String(t));
|
|
101
|
+
} catch {}
|
|
102
|
+
return window.history.replaceState(window.history.state, "", n.toString()), !0;
|
|
103
|
+
}
|
|
104
|
+
function C(e) {
|
|
105
|
+
if (typeof window > "u" || !g(e) || !h(window.location.hostname.toLowerCase())) return;
|
|
106
|
+
let t = v();
|
|
107
|
+
if (!t) return;
|
|
108
|
+
let n = Date.now();
|
|
109
|
+
if (S(t, n) || x() || y(t, n)) return;
|
|
110
|
+
let r = b(), i = new URL(s);
|
|
101
111
|
i.searchParams.set("returnTo", r), window.location.replace(i.toString());
|
|
102
112
|
}
|
|
103
|
-
function
|
|
113
|
+
function w(e) {
|
|
104
114
|
return typeof e.query == "string" ? /\bquery\b/.test(e.query) && !/\bmutation\b|\bsubscription\b/.test(e.query) : !1;
|
|
105
115
|
}
|
|
106
|
-
function
|
|
116
|
+
function T(e) {
|
|
107
117
|
return typeof e.operationName == "string" && e.operationName ? e.operationName : typeof e.query == "string" ? e.query.match(/(?:query|mutation|subscription)\s+([A-Za-z0-9_]+)/)?.[1] ?? null : null;
|
|
108
118
|
}
|
|
109
|
-
function
|
|
119
|
+
function E(e) {
|
|
110
120
|
return Object.fromEntries(f.map((t) => [t, e.get(t) ?? ""]));
|
|
111
121
|
}
|
|
112
|
-
function
|
|
113
|
-
let n =
|
|
114
|
-
return !n || !
|
|
122
|
+
function D(e, t) {
|
|
123
|
+
let n = T(t);
|
|
124
|
+
return !n || !w(t) ? null : JSON.stringify({
|
|
115
125
|
url: e.url,
|
|
116
|
-
headers:
|
|
126
|
+
headers: E(e.headers),
|
|
117
127
|
operationName: n,
|
|
118
128
|
variables: t.variables ?? null
|
|
119
129
|
});
|
|
120
130
|
}
|
|
121
|
-
function
|
|
131
|
+
function O(e) {
|
|
122
132
|
try {
|
|
123
133
|
let t = JSON.parse(e);
|
|
124
134
|
return Array.isArray(t) ? t : t && typeof t == "object" ? [t] : null;
|
|
@@ -126,43 +136,43 @@ function E(e) {
|
|
|
126
136
|
return null;
|
|
127
137
|
}
|
|
128
138
|
}
|
|
129
|
-
function
|
|
139
|
+
function k(e, t) {
|
|
130
140
|
return new Response(JSON.stringify(t ? e : e[0]), {
|
|
131
141
|
status: 200,
|
|
132
142
|
headers: { "content-type": "application/json" }
|
|
133
143
|
});
|
|
134
144
|
}
|
|
135
|
-
function
|
|
145
|
+
function A() {
|
|
136
146
|
return typeof performance < "u" && performance.now() < o;
|
|
137
147
|
}
|
|
138
|
-
function
|
|
148
|
+
function j(e) {
|
|
139
149
|
let t = new Headers(e.headers), n = !1;
|
|
140
150
|
for (let e of d) t.has(e) && (t.delete(e), n = !0);
|
|
141
151
|
return n ? new Request(e, { headers: t }) : e;
|
|
142
152
|
}
|
|
143
|
-
function
|
|
153
|
+
function M(e, t) {
|
|
144
154
|
let n = window.location.hostname.toLowerCase(), a = [...r, ...e ?? []];
|
|
145
155
|
for (let e of a) if (n === e.hostname) return e.bases;
|
|
146
156
|
return t ?? i;
|
|
147
157
|
}
|
|
148
|
-
function
|
|
158
|
+
function N(e, t) {
|
|
149
159
|
let { globalBase: n, workspaceBase: r } = e;
|
|
150
160
|
if (!n || !r) return;
|
|
151
|
-
|
|
161
|
+
C(e);
|
|
152
162
|
let i = globalThis.fetch.bind(globalThis), o = window.location.origin, s = new Set([o, "https://gw-global.local.burdenoff.com"]), c = new Set([o, "https://gw-wspace.local.burdenoff.com"]), l = (e) => /(?:^|\/)global\/graphql$/.test(e) ? "/global/graphql" : /(?:^|\/)workspaces\/graphql$/.test(e) ? "/workspaces/graphql" : "", u = (e) => {
|
|
153
163
|
let t = new URL(e, window.location.origin), i = l(t.pathname);
|
|
154
164
|
return i === "/global/graphql" && s.has(t.origin) ? `${n}${i}${t.search}${t.hash}` : i === "/workspaces/graphql" && c.has(t.origin) ? `${r}${i}${t.search}${t.hash}` : e;
|
|
155
165
|
}, d = async (e) => {
|
|
156
166
|
if (!(e.method.toUpperCase() === "POST" && /(?:^|\/)graphql$/.test(new URL(e.url).pathname))) return i(e);
|
|
157
|
-
let t = await e.clone().text(), n =
|
|
167
|
+
let t = await e.clone().text(), n = j(e.clone()), r = O(t);
|
|
158
168
|
if (!r?.length) return i(e);
|
|
159
|
-
let o = t.trimStart().startsWith("["), s = r.map((e) =>
|
|
160
|
-
if (
|
|
169
|
+
let o = t.trimStart().startsWith("["), s = r.map((e) => D(n, e));
|
|
170
|
+
if (A() && s.every(Boolean)) {
|
|
161
171
|
let e = p(), t = s.map((t) => e.get(t)), n = Date.now();
|
|
162
|
-
if (t.every((e) => e && e.expiresAt > n)) return
|
|
172
|
+
if (t.every((e) => e && e.expiresAt > n)) return k(t.map((e) => e.value), o);
|
|
163
173
|
}
|
|
164
174
|
let c = await i(e);
|
|
165
|
-
if (!c.ok || !s.some(Boolean) || !
|
|
175
|
+
if (!c.ok || !s.some(Boolean) || !A()) return c;
|
|
166
176
|
try {
|
|
167
177
|
let e = await c.clone().json(), t = Array.isArray(e) ? e : [e], n = p();
|
|
168
178
|
t.forEach((e, t) => {
|
|
@@ -185,7 +195,7 @@ function j(e, t) {
|
|
|
185
195
|
});
|
|
186
196
|
f.preconnect && (m.preconnect = f.preconnect), globalThis.fetch = m;
|
|
187
197
|
}
|
|
188
|
-
function
|
|
198
|
+
function P(e = "VITE_VERBOSE_CONSOLE") {
|
|
189
199
|
({
|
|
190
200
|
BASE_URL: "/",
|
|
191
201
|
DEV: !1,
|
|
@@ -195,4 +205,4 @@ function M(e = "VITE_VERBOSE_CONSOLE") {
|
|
|
195
205
|
})?.[e] !== "true" && (console.log = () => {}, console.info = () => {}, console.debug = () => {});
|
|
196
206
|
}
|
|
197
207
|
//#endregion
|
|
198
|
-
export { m as clearGatewayGraphQLResponseCache,
|
|
208
|
+
export { m as clearGatewayGraphQLResponseCache, N as installGatewayFetchRewrite, M as resolveGatewayBases, P as suppressConsole };
|