@ryuzaki13/react-foundation-lib 1.1.15 → 1.1.17
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/chunks/{formatters-CqOO2pwH.js → formatters-DCx4jhka.js} +3 -3
- package/dist/chunks/{formatters-CqOO2pwH.js.map → formatters-DCx4jhka.js.map} +1 -1
- package/dist/chunks/{odata-service-CDYp5CIE.js → odata-service-DNYr2dDx.js} +158 -145
- package/dist/chunks/{odata-service-CDYp5CIE.js.map → odata-service-DNYr2dDx.js.map} +1 -1
- package/dist/chunks/{validate-Cxg_lLUY.js → validate-B_ITGoAs.js} +2 -2
- package/dist/chunks/{validate-Cxg_lLUY.js.map → validate-B_ITGoAs.js.map} +1 -1
- package/dist/error-report/errorInfo.d.ts.map +1 -1
- package/dist/error-report/index.js +133 -129
- package/dist/error-report/index.js.map +1 -1
- package/dist/excel/index.js +2 -2
- package/dist/formatters/index.js +4 -4
- package/dist/odata-service/index.js +2 -2
- package/dist/odata-service/sqlFilters.d.ts +20 -1
- package/dist/odata-service/sqlFilters.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as e } from "../chunks/array-BBSjoTRy.js";
|
|
2
|
-
import { qt as t } from "../chunks/formatters-
|
|
2
|
+
import { qt as t } from "../chunks/formatters-DCx4jhka.js";
|
|
3
3
|
import { uuidv4 as n } from "../crypto/index.js";
|
|
4
4
|
import { v as r } from "../chunks/dateUtils-D9dpdTl7.js";
|
|
5
5
|
import { createIndexedDbQueryStorage as i } from "../query-client/index.js";
|
|
@@ -44,7 +44,7 @@ function d(e) {
|
|
|
44
44
|
}
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region src/error-report/breadcrumbs.ts
|
|
47
|
-
var f = 20, ee = 80,
|
|
47
|
+
var f = 20, ee = 80, te = 120, ne = [
|
|
48
48
|
"button",
|
|
49
49
|
"a",
|
|
50
50
|
"input",
|
|
@@ -55,71 +55,71 @@ var f = 20, ee = 80, p = 120, m = [
|
|
|
55
55
|
"[title]",
|
|
56
56
|
"[data-ui]",
|
|
57
57
|
"[data-action]"
|
|
58
|
-
].join(","),
|
|
59
|
-
function
|
|
58
|
+
].join(","), p = [];
|
|
59
|
+
function m() {
|
|
60
60
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
62
|
+
function h(e) {
|
|
63
|
+
p = [...p, {
|
|
64
64
|
...e,
|
|
65
|
-
utc: e.utc ??
|
|
65
|
+
utc: e.utc ?? m()
|
|
66
66
|
}].slice(-80);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function g() {
|
|
69
|
+
return p;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
function _() {
|
|
72
|
+
p = [];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return t(e,
|
|
74
|
+
function v(e) {
|
|
75
|
+
return t(e, te);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function y(e) {
|
|
78
78
|
return {
|
|
79
|
-
id:
|
|
80
|
-
role:
|
|
81
|
-
type:
|
|
82
|
-
title:
|
|
83
|
-
ariaLabel:
|
|
84
|
-
dataUi:
|
|
85
|
-
dataAction:
|
|
79
|
+
id: v(e.id),
|
|
80
|
+
role: v(e.getAttribute("role")),
|
|
81
|
+
type: v(e.getAttribute("type")),
|
|
82
|
+
title: v(e.getAttribute("title")),
|
|
83
|
+
ariaLabel: v(e.getAttribute("aria-label")),
|
|
84
|
+
dataUi: v(e.getAttribute("data-ui")),
|
|
85
|
+
dataAction: v(e.getAttribute("data-action"))
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function re(e) {
|
|
89
89
|
if (!(e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement) && e.matches("button,a,[role],[aria-label],[title]")) return t(e.textContent, ee);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function ie(e) {
|
|
92
92
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\#.[\]>~+:]/g, "\\$&");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
let t =
|
|
96
|
-
return t.id && n.push(`#${
|
|
94
|
+
function b(e) {
|
|
95
|
+
let t = y(e), n = [e.tagName.toLowerCase()];
|
|
96
|
+
return t.id && n.push(`#${ie(t.id)}`), t.role && n.push(`[role="${t.role}"]`), t.type && n.push(`[type="${t.type}"]`), t.dataUi && n.push(`[data-ui="${t.dataUi}"]`), t.dataAction && n.push(`[data-action="${t.dataAction}"]`), n.join("");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
let t =
|
|
98
|
+
function x(e) {
|
|
99
|
+
let t = y(e);
|
|
100
100
|
return {
|
|
101
101
|
tag: e.tagName.toLowerCase(),
|
|
102
|
-
selector:
|
|
103
|
-
text:
|
|
102
|
+
selector: b(e),
|
|
103
|
+
text: re(e),
|
|
104
104
|
...t
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function S(e) {
|
|
108
108
|
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0 && (!Array.isArray(e) || e.length > 0)));
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function C(e) {
|
|
111
111
|
let t = [], n = e;
|
|
112
112
|
for (; n && n !== document.documentElement && t.length < f && (t.push(n), n !== document.body);) n = n.parentElement;
|
|
113
113
|
return t;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return e.closest(
|
|
117
|
-
}
|
|
118
|
-
function ie(e) {
|
|
119
|
-
if (e instanceof Element) return w(T(e)).map((e) => x(e)).join(" > ");
|
|
115
|
+
function w(e) {
|
|
116
|
+
return e.closest(ne) ?? e;
|
|
120
117
|
}
|
|
121
118
|
function ae(e) {
|
|
122
|
-
|
|
119
|
+
if (e instanceof Element) return C(w(e)).map((e) => b(e)).join(" > ");
|
|
120
|
+
}
|
|
121
|
+
function T(e) {
|
|
122
|
+
let t = e.target instanceof Element ? e.target : void 0, n = t ? w(t) : void 0, r = n ? C(n).map((e) => S(x(e))) : [];
|
|
123
123
|
return d({
|
|
124
124
|
button: e.button,
|
|
125
125
|
ctrlKey: e.ctrlKey,
|
|
@@ -127,20 +127,20 @@ function ae(e) {
|
|
|
127
127
|
altKey: e.altKey,
|
|
128
128
|
clientX: e.clientX,
|
|
129
129
|
clientY: e.clientY,
|
|
130
|
-
target: n ?
|
|
130
|
+
target: n ? S(x(n)) : void 0,
|
|
131
131
|
chain: r
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
function oe() {
|
|
135
135
|
if (typeof window > "u") return () => void 0;
|
|
136
136
|
let e = (e) => {
|
|
137
|
-
|
|
137
|
+
h({
|
|
138
138
|
type: "click",
|
|
139
|
-
target:
|
|
140
|
-
detail:
|
|
139
|
+
target: ae(e.target),
|
|
140
|
+
detail: T(e)
|
|
141
141
|
});
|
|
142
142
|
}, t = () => {
|
|
143
|
-
|
|
143
|
+
h({
|
|
144
144
|
type: "visibility",
|
|
145
145
|
detail: d({ visibilityState: document.visibilityState })
|
|
146
146
|
});
|
|
@@ -151,7 +151,11 @@ function oe() {
|
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/error-report/errorInfo.ts
|
|
154
|
-
|
|
154
|
+
var E = "Неизвестная ошибка";
|
|
155
|
+
function D(t) {
|
|
156
|
+
return e(t) ? t : E;
|
|
157
|
+
}
|
|
158
|
+
function O(e) {
|
|
155
159
|
let t = e.status ?? e.statusCode ?? e.httpStatus;
|
|
156
160
|
return typeof t == "number" && Number.isFinite(t) ? t : void 0;
|
|
157
161
|
}
|
|
@@ -164,37 +168,37 @@ function se(t) {
|
|
|
164
168
|
name: "AppError",
|
|
165
169
|
message: i,
|
|
166
170
|
code: e(r.code),
|
|
167
|
-
httpStatus:
|
|
171
|
+
httpStatus: O(r)
|
|
168
172
|
} : null;
|
|
169
173
|
}
|
|
170
|
-
function
|
|
174
|
+
function k(e) {
|
|
171
175
|
let t = se(e);
|
|
172
176
|
if (t) return t;
|
|
173
177
|
if (e instanceof Error) return {
|
|
174
178
|
name: e.name || "Error",
|
|
175
|
-
message: e.message,
|
|
179
|
+
message: D(e.message),
|
|
176
180
|
stackTrace: e.stack
|
|
177
181
|
};
|
|
178
182
|
if (e && typeof e == "object") {
|
|
179
183
|
let t = e;
|
|
180
184
|
return {
|
|
181
185
|
name: typeof t.name == "string" ? t.name : "Error",
|
|
182
|
-
message: typeof t.message == "string" ? t.message : String(e),
|
|
186
|
+
message: D(typeof t.message == "string" ? t.message : String(e)),
|
|
183
187
|
stackTrace: typeof t.stack == "string" ? t.stack : void 0,
|
|
184
|
-
httpStatus:
|
|
188
|
+
httpStatus: O(t)
|
|
185
189
|
};
|
|
186
190
|
}
|
|
187
191
|
return {
|
|
188
192
|
name: "Error",
|
|
189
|
-
message: typeof e == "string" ? e : String(e ??
|
|
193
|
+
message: D(typeof e == "string" ? e : String(e ?? E))
|
|
190
194
|
};
|
|
191
195
|
}
|
|
192
196
|
//#endregion
|
|
193
197
|
//#region src/error-report/diagnostics.ts
|
|
194
|
-
function
|
|
198
|
+
function A(e) {
|
|
195
199
|
return d(e);
|
|
196
200
|
}
|
|
197
|
-
function
|
|
201
|
+
function j(e) {
|
|
198
202
|
return {
|
|
199
203
|
queryHash: e.queryHash,
|
|
200
204
|
queryKey: l(e.queryKey),
|
|
@@ -205,25 +209,25 @@ function k(e) {
|
|
|
205
209
|
failureCount: e.state.fetchFailureCount,
|
|
206
210
|
isInvalidated: e.state.isInvalidated,
|
|
207
211
|
observersCount: e.getObserversCount(),
|
|
208
|
-
meta:
|
|
212
|
+
meta: A(e.meta),
|
|
209
213
|
dataShape: u(e.state.data),
|
|
210
|
-
error: e.state.error ?
|
|
214
|
+
error: e.state.error ? k(e.state.error) : void 0
|
|
211
215
|
};
|
|
212
216
|
}
|
|
213
|
-
function
|
|
217
|
+
function M(e) {
|
|
214
218
|
return {
|
|
215
219
|
mutationKey: e.options.mutationKey ? l(e.options.mutationKey) : void 0,
|
|
216
220
|
status: e.state.status,
|
|
217
221
|
failureCount: e.state.failureCount,
|
|
218
222
|
submittedAt: e.state.submittedAt,
|
|
219
|
-
meta:
|
|
220
|
-
error: e.state.error ?
|
|
223
|
+
meta: A(e.meta),
|
|
224
|
+
error: e.state.error ? k(e.state.error) : void 0
|
|
221
225
|
};
|
|
222
226
|
}
|
|
223
|
-
function
|
|
227
|
+
function N(e) {
|
|
224
228
|
return {
|
|
225
|
-
queries: e.getQueryCache().getAll().slice(-40).map(
|
|
226
|
-
mutations: e.getMutationCache().getAll().slice(-40).map(
|
|
229
|
+
queries: e.getQueryCache().getAll().slice(-40).map(j),
|
|
230
|
+
mutations: e.getMutationCache().getAll().slice(-40).map(M)
|
|
227
231
|
};
|
|
228
232
|
}
|
|
229
233
|
function ce(e, t) {
|
|
@@ -238,10 +242,10 @@ function ce(e, t) {
|
|
|
238
242
|
dataUpdatedAt: n.dataUpdatedAt,
|
|
239
243
|
errorUpdatedAt: n.errorUpdatedAt,
|
|
240
244
|
failureCount: n.fetchFailureCount,
|
|
241
|
-
error: n.error ?
|
|
245
|
+
error: n.error ? k(n.error) : void 0
|
|
242
246
|
};
|
|
243
247
|
}
|
|
244
|
-
async function
|
|
248
|
+
async function P() {
|
|
245
249
|
let e = i();
|
|
246
250
|
if (!e?.entries) return [];
|
|
247
251
|
try {
|
|
@@ -252,17 +256,17 @@ async function M() {
|
|
|
252
256
|
}
|
|
253
257
|
//#endregion
|
|
254
258
|
//#region src/error-report/environment.ts
|
|
255
|
-
function
|
|
259
|
+
function F(e = {}) {
|
|
256
260
|
let t = e.isDev ?? __DEV__;
|
|
257
261
|
return typeof window < "u" && !t;
|
|
258
262
|
}
|
|
259
|
-
function
|
|
263
|
+
function I() {
|
|
260
264
|
return {
|
|
261
265
|
mode: __DEV__ ? "development" : "production",
|
|
262
266
|
buildId: typeof __APP_BUILD_ID__ == "string" ? __APP_BUILD_ID__ : void 0
|
|
263
267
|
};
|
|
264
268
|
}
|
|
265
|
-
function
|
|
269
|
+
function L() {
|
|
266
270
|
if (!(typeof window > "u")) return {
|
|
267
271
|
userAgent: window.navigator.userAgent,
|
|
268
272
|
language: window.navigator.language,
|
|
@@ -271,71 +275,71 @@ function F() {
|
|
|
271
275
|
}
|
|
272
276
|
//#endregion
|
|
273
277
|
//#region src/error-report/drafts.ts
|
|
274
|
-
var
|
|
275
|
-
function
|
|
278
|
+
var R = `${__APP_ID__}.errorReport.drafts.v1`, z = `${__APP_ID__}.errorReport.sessionId.v1`, B = H();
|
|
279
|
+
function V() {
|
|
276
280
|
return r(/* @__PURE__ */ new Date());
|
|
277
281
|
}
|
|
278
|
-
function
|
|
282
|
+
function H() {
|
|
279
283
|
if (typeof sessionStorage > "u") return [];
|
|
280
284
|
try {
|
|
281
|
-
let e = sessionStorage.getItem(
|
|
285
|
+
let e = sessionStorage.getItem(R), t = e ? JSON.parse(e) : [];
|
|
282
286
|
return Array.isArray(t) ? t : [];
|
|
283
287
|
} catch {
|
|
284
288
|
return [];
|
|
285
289
|
}
|
|
286
290
|
}
|
|
287
|
-
function
|
|
288
|
-
if (
|
|
289
|
-
sessionStorage.setItem(
|
|
291
|
+
function U(e) {
|
|
292
|
+
if (B = e.slice(-10), !(typeof sessionStorage > "u")) try {
|
|
293
|
+
sessionStorage.setItem(R, JSON.stringify(B));
|
|
290
294
|
} catch {}
|
|
291
295
|
}
|
|
292
|
-
function
|
|
296
|
+
function W() {
|
|
293
297
|
if (!(typeof window > "u")) return {
|
|
294
298
|
pathname: window.location.pathname,
|
|
295
299
|
origin: window.location.origin
|
|
296
300
|
};
|
|
297
301
|
}
|
|
298
|
-
function
|
|
302
|
+
function le() {
|
|
299
303
|
if (!(typeof window > "u")) return {
|
|
300
304
|
width: window.innerWidth,
|
|
301
305
|
height: window.innerHeight,
|
|
302
306
|
devicePixelRatio: window.devicePixelRatio
|
|
303
307
|
};
|
|
304
308
|
}
|
|
305
|
-
function
|
|
306
|
-
return
|
|
309
|
+
function G(e) {
|
|
310
|
+
return B.find((t) => t.reportId === e);
|
|
307
311
|
}
|
|
308
|
-
function
|
|
309
|
-
let n =
|
|
312
|
+
function ue(e, t) {
|
|
313
|
+
let n = G(e);
|
|
310
314
|
if (!n) return;
|
|
311
315
|
let r = {
|
|
312
316
|
...n,
|
|
313
317
|
...t
|
|
314
318
|
};
|
|
315
|
-
return
|
|
319
|
+
return U(B.map((t) => t.reportId === e ? r : t)), r;
|
|
316
320
|
}
|
|
317
|
-
function
|
|
318
|
-
return
|
|
321
|
+
function de() {
|
|
322
|
+
return B;
|
|
319
323
|
}
|
|
320
|
-
function
|
|
321
|
-
if (!
|
|
322
|
-
let t = n(), r = a(
|
|
324
|
+
function K(e) {
|
|
325
|
+
if (!F()) return;
|
|
326
|
+
let t = n(), r = a(z), i = V(), o = {
|
|
323
327
|
reportId: t,
|
|
324
328
|
sessionId: r,
|
|
325
329
|
createdUtc: i,
|
|
326
330
|
category: e.category,
|
|
327
331
|
source: e.source,
|
|
328
332
|
error: e.error,
|
|
329
|
-
environment:
|
|
330
|
-
client:
|
|
331
|
-
location:
|
|
332
|
-
viewport:
|
|
333
|
+
environment: I(),
|
|
334
|
+
client: L(),
|
|
335
|
+
location: W(),
|
|
336
|
+
viewport: le(),
|
|
333
337
|
react: e.react,
|
|
334
338
|
query: e.query,
|
|
335
339
|
mutation: e.mutation,
|
|
336
340
|
queryClient: e.queryClient,
|
|
337
341
|
persistedQueries: e.persistedQueries,
|
|
338
|
-
breadcrumbs:
|
|
342
|
+
breadcrumbs: g(),
|
|
339
343
|
context: e.context
|
|
340
344
|
}, s = {
|
|
341
345
|
reportId: t,
|
|
@@ -345,12 +349,12 @@ function G(e) {
|
|
|
345
349
|
status: "pending",
|
|
346
350
|
payload: o
|
|
347
351
|
};
|
|
348
|
-
return
|
|
352
|
+
return U([...B, s]), s;
|
|
349
353
|
}
|
|
350
354
|
//#endregion
|
|
351
355
|
//#region src/error-report/transport.ts
|
|
352
|
-
var
|
|
353
|
-
function
|
|
356
|
+
var q = 6e4, fe = 100, pe = 250, J, Y = /* @__PURE__ */ new WeakSet(), X = /* @__PURE__ */ new WeakSet(), Z = /* @__PURE__ */ new Map();
|
|
357
|
+
function me(e) {
|
|
354
358
|
return [
|
|
355
359
|
e.source,
|
|
356
360
|
e.method,
|
|
@@ -359,35 +363,35 @@ function pe(e) {
|
|
|
359
363
|
e.responseUrl
|
|
360
364
|
].filter(Boolean).join("|");
|
|
361
365
|
}
|
|
362
|
-
function me(e) {
|
|
363
|
-
let t = Date.now(), n = pe(e);
|
|
364
|
-
for (let [e, n] of X) (t - n > K || X.size > de) && X.delete(e);
|
|
365
|
-
let r = X.get(n);
|
|
366
|
-
return r && t - r < K ? !0 : (X.set(n, t), !1);
|
|
367
|
-
}
|
|
368
366
|
function he(e) {
|
|
369
|
-
|
|
367
|
+
let t = Date.now(), n = me(e);
|
|
368
|
+
for (let [e, n] of Z) (t - n > q || Z.size > fe) && Z.delete(e);
|
|
369
|
+
let r = Z.get(n);
|
|
370
|
+
return r && t - r < q ? !0 : (Z.set(n, t), !1);
|
|
370
371
|
}
|
|
371
372
|
function ge(e) {
|
|
372
|
-
|
|
373
|
+
J = e, Z.clear();
|
|
374
|
+
}
|
|
375
|
+
function _e(e) {
|
|
376
|
+
return e instanceof Error && Y.has(e);
|
|
373
377
|
}
|
|
374
|
-
function
|
|
375
|
-
e instanceof Error &&
|
|
378
|
+
function Q(e) {
|
|
379
|
+
e instanceof Error && X.add(e);
|
|
376
380
|
}
|
|
377
|
-
function
|
|
378
|
-
|
|
379
|
-
if (!
|
|
380
|
-
let n =
|
|
381
|
+
function ve(e, t) {
|
|
382
|
+
Y.add(e), setTimeout(() => {
|
|
383
|
+
if (!X.has(e) && J && !he(t)) try {
|
|
384
|
+
let n = J(e, t);
|
|
381
385
|
Promise.resolve(n).catch(() => void 0);
|
|
382
386
|
} catch {}
|
|
383
|
-
},
|
|
387
|
+
}, pe);
|
|
384
388
|
}
|
|
385
389
|
//#endregion
|
|
386
390
|
//#region src/error-report/capture.ts
|
|
387
|
-
async function
|
|
388
|
-
|
|
391
|
+
async function ye(e, t, n, r) {
|
|
392
|
+
Q(e);
|
|
389
393
|
let i = r?.source ?? "query";
|
|
390
|
-
|
|
394
|
+
h({
|
|
391
395
|
type: "query-error",
|
|
392
396
|
detail: d({
|
|
393
397
|
queryHash: t.queryHash,
|
|
@@ -395,40 +399,40 @@ async function _e(e, t, n, r) {
|
|
|
395
399
|
...r?.detail
|
|
396
400
|
})
|
|
397
401
|
});
|
|
398
|
-
let [a, o] = await Promise.all([
|
|
399
|
-
return
|
|
402
|
+
let [a, o] = await Promise.all([P(), Promise.resolve(N(n))]);
|
|
403
|
+
return K({
|
|
400
404
|
category: "query",
|
|
401
405
|
source: i,
|
|
402
|
-
error: r?.errorInfo ??
|
|
403
|
-
query:
|
|
406
|
+
error: r?.errorInfo ?? k(e),
|
|
407
|
+
query: j(t),
|
|
404
408
|
queryClient: o,
|
|
405
409
|
persistedQueries: a,
|
|
406
410
|
context: d(r?.detail)
|
|
407
411
|
});
|
|
408
412
|
}
|
|
409
|
-
async function
|
|
410
|
-
|
|
413
|
+
async function be(e, t, n, r = {}) {
|
|
414
|
+
Q(e);
|
|
411
415
|
let i = r.source ?? "mutation";
|
|
412
|
-
|
|
416
|
+
h({
|
|
413
417
|
type: "mutation-error",
|
|
414
418
|
detail: d({
|
|
415
419
|
mutationKey: t.options.mutationKey,
|
|
416
420
|
...r.detail
|
|
417
421
|
})
|
|
418
422
|
});
|
|
419
|
-
let [a, o] = await Promise.all([
|
|
420
|
-
return
|
|
423
|
+
let [a, o] = await Promise.all([P(), Promise.resolve(N(n))]);
|
|
424
|
+
return K({
|
|
421
425
|
category: "mutation",
|
|
422
426
|
source: i,
|
|
423
|
-
error: r.errorInfo ??
|
|
424
|
-
mutation:
|
|
427
|
+
error: r.errorInfo ?? k(e),
|
|
428
|
+
mutation: M(t),
|
|
425
429
|
queryClient: o,
|
|
426
430
|
persistedQueries: a
|
|
427
431
|
});
|
|
428
432
|
}
|
|
429
|
-
async function
|
|
433
|
+
async function xe(e, t = {}, n) {
|
|
430
434
|
let r = t.source ?? t.category ?? "runtime";
|
|
431
|
-
|
|
435
|
+
h({
|
|
432
436
|
type: "runtime-error",
|
|
433
437
|
detail: d({
|
|
434
438
|
category: t.category ?? "runtime",
|
|
@@ -436,11 +440,11 @@ async function ye(e, t = {}, n) {
|
|
|
436
440
|
...t.detail
|
|
437
441
|
})
|
|
438
442
|
});
|
|
439
|
-
let [i, a] = n ? await Promise.all([
|
|
440
|
-
return
|
|
443
|
+
let [i, a] = n ? await Promise.all([P(), Promise.resolve(N(n))]) : [void 0, void 0];
|
|
444
|
+
return K({
|
|
441
445
|
category: t.category ?? "runtime",
|
|
442
446
|
source: r,
|
|
443
|
-
error: t.errorInfo ??
|
|
447
|
+
error: t.errorInfo ?? k(e),
|
|
444
448
|
react: t.componentStack ? { componentStack: t.componentStack } : void 0,
|
|
445
449
|
queryClient: a,
|
|
446
450
|
persistedQueries: i,
|
|
@@ -450,15 +454,15 @@ async function ye(e, t = {}, n) {
|
|
|
450
454
|
//#endregion
|
|
451
455
|
//#region src/error-report/runtime.ts
|
|
452
456
|
var $;
|
|
453
|
-
function
|
|
457
|
+
function Se(e) {
|
|
454
458
|
$ = e;
|
|
455
459
|
}
|
|
456
|
-
async function
|
|
460
|
+
async function Ce(e, t = {}) {
|
|
457
461
|
if ($) try {
|
|
458
462
|
await $(e, t);
|
|
459
463
|
} catch {}
|
|
460
464
|
}
|
|
461
465
|
//#endregion
|
|
462
|
-
export {
|
|
466
|
+
export { h as addErrorReportBreadcrumb, K as captureErrorReportDraft, be as captureMutationErrorReport, ye as captureQueryErrorReport, xe as captureRuntimeErrorReport, _ as clearErrorReportBreadcrumbs, M as collectMutationDiagnostics, P as collectPersistedQueryDiagnostics, N as collectQueryClientDiagnostics, j as collectQueryDiagnostics, u as createDataShape, l as createDiagnosticValue, k as createErrorInfo, g as getErrorReportBreadcrumbs, L as getErrorReportClientEnvironment, G as getErrorReportDraft, de as getErrorReportDrafts, I as getErrorReportEnvironment, oe as installErrorReportBrowserBreadcrumbs, F as isErrorReportingEnabled, _e as isTransportErrorReportScheduled, Ce as reportRuntimeError, ve as reportTransportError, d as sanitizeDetail, Se as setErrorReportRuntimeErrorReporter, ge as setErrorReportTransportErrorReporter, Q as suppressTransportErrorReport, ue as updateErrorReportDraft };
|
|
463
467
|
|
|
464
468
|
//# sourceMappingURL=index.js.map
|