@andre1502/react-utilities 1.0.5 → 1.0.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/README.md +35 -51
- package/dist/Config/Config.d.ts +12 -1
- package/dist/EnvironmentEnum-CXTWJxNo.js +10 -0
- package/dist/EnvironmentEnum-CXTWJxNo.js.map +1 -0
- package/dist/Utils-CJ7ureSW.js +14 -0
- package/dist/Utils-CJ7ureSW.js.map +1 -0
- package/dist/browser-ponyfill-C-HVh7ck.js +321 -0
- package/dist/browser-ponyfill-C-HVh7ck.js.map +1 -0
- package/dist/chunk-vKJrgz-R.js +16 -0
- package/dist/config-cli-BIF4xuoO.js +1491 -0
- package/dist/config-cli-BIF4xuoO.js.map +1 -0
- package/dist/config-cli.d.ts +1 -1
- package/dist/config-cli.js +3 -222
- package/dist/enums/CurrencySymbolEnum.d.ts +6 -5
- package/dist/enums/DeviceEnum.d.ts +5 -4
- package/dist/enums/EnvironmentEnum.d.ts +6 -5
- package/dist/format-BgweN3o5.js +65549 -0
- package/dist/format-BgweN3o5.js.map +1 -0
- package/dist/format.d.ts +26 -26
- package/dist/format.js +2 -55
- package/dist/hooks-oAipbPQ2.js +78 -0
- package/dist/hooks-oAipbPQ2.js.map +1 -0
- package/dist/hooks.js +2 -86
- package/dist/i18n-D1jKJPI0.js +1941 -0
- package/dist/i18n-D1jKJPI0.js.map +1 -0
- package/dist/i18n.js +4 -28
- package/dist/index-cli.d.ts +0 -1
- package/dist/index-cli.js +3 -28
- package/dist/index-rn.js +6 -39
- package/dist/index.js +7 -61
- package/dist/interfaces/Config/EntryOptions.d.ts +4 -0
- package/dist/sentry-rn-DZwIel7y.js +743 -0
- package/dist/sentry-rn-DZwIel7y.js.map +1 -0
- package/dist/sentry-rn.js +2 -28
- package/dist/sentry.js +39 -26
- package/dist/sentry.js.map +1 -1
- package/dist/utils.js +45 -37
- package/dist/utils.js.map +1 -1
- package/package.json +56 -86
- package/src/Config/Config.ts +48 -1
- package/src/Config/GoogleAuth.ts +1 -1
- package/src/Sentry/React.ts +2 -4
- package/src/Sentry/ReactNative.ts +2 -4
- package/src/config-cli.ts +1 -1
- package/src/enums/CurrencySymbolEnum.ts +8 -5
- package/src/enums/DeviceEnum.ts +6 -4
- package/src/enums/EnvironmentEnum.ts +8 -5
- package/src/format.ts +32 -32
- package/src/index-cli.ts +0 -1
- package/src/interfaces/Config/EntryOptions.ts +4 -0
- package/dist/Config/Config.js +0 -216
- package/dist/Config/Config.js.map +0 -1
- package/dist/Config/GoogleAuth.js +0 -68
- package/dist/Config/GoogleAuth.js.map +0 -1
- package/dist/Config/Locales.js +0 -62
- package/dist/Config/Locales.js.map +0 -1
- package/dist/Config/Output.js +0 -36
- package/dist/Config/Output.js.map +0 -1
- package/dist/Config/Sitemap.js +0 -72
- package/dist/Config/Sitemap.js.map +0 -1
- package/dist/EnvironmentEnum-BjXsfSRZ.js +0 -9
- package/dist/EnvironmentEnum-BjXsfSRZ.js.map +0 -1
- package/dist/EnvironmentEnum-UcQ6Il1O.js +0 -9
- package/dist/EnvironmentEnum-UcQ6Il1O.js.map +0 -1
- package/dist/Format/NumberFormat.js +0 -77
- package/dist/Format/NumberFormat.js.map +0 -1
- package/dist/Format/NumberParser.js +0 -51
- package/dist/Format/NumberParser.js.map +0 -1
- package/dist/Hooks/useDevice.js +0 -47
- package/dist/Hooks/useDevice.js.map +0 -1
- package/dist/Hooks/useSound.js +0 -47
- package/dist/Hooks/useSound.js.map +0 -1
- package/dist/Hooks/useWebSocket.js +0 -120
- package/dist/Hooks/useWebSocket.js.map +0 -1
- package/dist/I18n/I18n.js +0 -134
- package/dist/I18n/I18n.js.map +0 -1
- package/dist/NumberFormat-CvvBWhHc.js +0 -89
- package/dist/NumberFormat-CvvBWhHc.js.map +0 -1
- package/dist/NumberFormat-glmpbk7E.js +0 -94
- package/dist/NumberFormat-glmpbk7E.js.map +0 -1
- package/dist/React-BaJ1KfGF.js +0 -87
- package/dist/React-BaJ1KfGF.js.map +0 -1
- package/dist/React-qUl0CBmE.js +0 -109
- package/dist/React-qUl0CBmE.js.map +0 -1
- package/dist/ReactNative-B4gt8nBr.js +0 -1790
- package/dist/ReactNative-B4gt8nBr.js.map +0 -1
- package/dist/ReactNative-CDMfQFfN.js +0 -1812
- package/dist/ReactNative-CDMfQFfN.js.map +0 -1
- package/dist/Sentry/Build.d.ts +0 -9
- package/dist/Sentry/Build.js +0 -87
- package/dist/Sentry/Build.js.map +0 -1
- package/dist/Sentry/React.js +0 -103
- package/dist/Sentry/React.js.map +0 -1
- package/dist/Sentry/ReactNative.js +0 -113
- package/dist/Sentry/ReactNative.js.map +0 -1
- package/dist/Sentry/Utils.js +0 -24
- package/dist/Sentry/Utils.js.map +0 -1
- package/dist/Utils/Array.js +0 -26
- package/dist/Utils/Array.js.map +0 -1
- package/dist/Utils/Files.js +0 -51
- package/dist/Utils/Files.js.map +0 -1
- package/dist/Utils/Pagination.js +0 -32
- package/dist/Utils/Pagination.js.map +0 -1
- package/dist/Utils/Utils.js +0 -101
- package/dist/Utils/Utils.js.map +0 -1
- package/dist/Utils-BC1fDy39.js +0 -74
- package/dist/Utils-BC1fDy39.js.map +0 -1
- package/dist/Utils-Cq948gfa.js +0 -20
- package/dist/Utils-Cq948gfa.js.map +0 -1
- package/dist/Utils-D7KRF8VU.js +0 -64
- package/dist/Utils-D7KRF8VU.js.map +0 -1
- package/dist/Utils-Dilye04y.js +0 -22
- package/dist/Utils-Dilye04y.js.map +0 -1
- package/dist/config-cli.cjs +0 -500
- package/dist/config-cli.cjs.map +0 -1
- package/dist/config-cli.js.map +0 -1
- package/dist/config-cli.mjs +0 -469
- package/dist/config-cli.mjs.map +0 -1
- package/dist/enums/CurrencySymbolEnum.js +0 -15
- package/dist/enums/CurrencySymbolEnum.js.map +0 -1
- package/dist/enums/DeviceEnum.js +0 -12
- package/dist/enums/DeviceEnum.js.map +0 -1
- package/dist/enums/EnvironmentEnum.js +0 -13
- package/dist/enums/EnvironmentEnum.js.map +0 -1
- package/dist/format.cjs +0 -43
- package/dist/format.cjs.map +0 -1
- package/dist/format.js.map +0 -1
- package/dist/format.mjs +0 -30
- package/dist/format.mjs.map +0 -1
- package/dist/hooks.cjs +0 -13
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/hooks.mjs +0 -4
- package/dist/hooks.mjs.map +0 -1
- package/dist/i18n.cjs +0 -3039
- package/dist/i18n.cjs.map +0 -1
- package/dist/i18n.js.map +0 -1
- package/dist/i18n.mjs +0 -3032
- package/dist/i18n.mjs.map +0 -1
- package/dist/index-cli.cjs +0 -30
- package/dist/index-cli.cjs.map +0 -1
- package/dist/index-cli.js.map +0 -1
- package/dist/index-cli.mjs +0 -14
- package/dist/index-cli.mjs.map +0 -1
- package/dist/index-rn.cjs +0 -57
- package/dist/index-rn.cjs.map +0 -1
- package/dist/index-rn.js.map +0 -1
- package/dist/index-rn.mjs +0 -36
- package/dist/index-rn.mjs.map +0 -1
- package/dist/index.cjs +0 -79
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -40
- package/dist/index.mjs.map +0 -1
- package/dist/interfaces/Config/ConfigOptions.js +0 -6
- package/dist/interfaces/Config/ConfigOptions.js.map +0 -1
- package/dist/interfaces/Config/OutputMap.js +0 -6
- package/dist/interfaces/Config/OutputMap.js.map +0 -1
- package/dist/interfaces/Config/OutputOptions.js +0 -6
- package/dist/interfaces/Config/OutputOptions.js.map +0 -1
- package/dist/interfaces/Config/SitemapMap.js +0 -6
- package/dist/interfaces/Config/SitemapMap.js.map +0 -1
- package/dist/interfaces/Config/StringMap.js +0 -6
- package/dist/interfaces/Config/StringMap.js.map +0 -1
- package/dist/interfaces/Format/FormatOptions.js +0 -6
- package/dist/interfaces/Format/FormatOptions.js.map +0 -1
- package/dist/interfaces/Sentry/InitOptions.js +0 -6
- package/dist/interfaces/Sentry/InitOptions.js.map +0 -1
- package/dist/interfaces/Sentry/InitOptionsRN.js +0 -6
- package/dist/interfaces/Sentry/InitOptionsRN.js.map +0 -1
- package/dist/interfaces/Sentry/SourceMapOptions.d.ts +0 -7
- package/dist/interfaces/Sentry/SourceMapOptions.js +0 -6
- package/dist/interfaces/Sentry/SourceMapOptions.js.map +0 -1
- package/dist/sentry-cli.cjs +0 -119
- package/dist/sentry-cli.cjs.map +0 -1
- package/dist/sentry-cli.d.ts +0 -9
- package/dist/sentry-cli.js +0 -49
- package/dist/sentry-cli.js.map +0 -1
- package/dist/sentry-cli.mjs +0 -98
- package/dist/sentry-cli.mjs.map +0 -1
- package/dist/sentry-rn.cjs +0 -11
- package/dist/sentry-rn.cjs.map +0 -1
- package/dist/sentry-rn.js.map +0 -1
- package/dist/sentry-rn.mjs +0 -4
- package/dist/sentry-rn.mjs.map +0 -1
- package/dist/sentry.cjs +0 -11
- package/dist/sentry.cjs.map +0 -1
- package/dist/sentry.mjs +0 -4
- package/dist/sentry.mjs.map +0 -1
- package/dist/types/Config/OptionType.js +0 -6
- package/dist/types/Config/OptionType.js.map +0 -1
- package/dist/types/Format/OptionType.js +0 -6
- package/dist/types/Format/OptionType.js.map +0 -1
- package/dist/types/Sentry/OptionType.js +0 -6
- package/dist/types/Sentry/OptionType.js.map +0 -1
- package/dist/useWebSocket-B_B6kWXM.js +0 -167
- package/dist/useWebSocket-B_B6kWXM.js.map +0 -1
- package/dist/useWebSocket-YQWaiBz9.js +0 -172
- package/dist/useWebSocket-YQWaiBz9.js.map +0 -1
- package/dist/utils.cjs +0 -59
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.mjs +0 -43
- package/dist/utils.mjs.map +0 -1
- package/src/Sentry/Build.ts +0 -67
- package/src/interfaces/Sentry/SourceMapOptions.ts +0 -7
- package/src/sentry-cli.ts +0 -16
|
@@ -0,0 +1,743 @@
|
|
|
1
|
+
import { t as e } from "./Utils-CJ7ureSW.js";
|
|
2
|
+
import * as t from "@sentry/react-native";
|
|
3
|
+
//#region node_modules/@sentry/core/build/esm/debug-build.js
|
|
4
|
+
var n = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, r = globalThis, i = "10.47.0";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region node_modules/@sentry/core/build/esm/carrier.js
|
|
7
|
+
function a() {
|
|
8
|
+
return o(r), r;
|
|
9
|
+
}
|
|
10
|
+
function o(e) {
|
|
11
|
+
let t = e.__SENTRY__ = e.__SENTRY__ || {};
|
|
12
|
+
return t.version = t.version || "10.47.0", t[i] = t["10.47.0"] || {};
|
|
13
|
+
}
|
|
14
|
+
function s(e, t, n = r) {
|
|
15
|
+
let a = n.__SENTRY__ = n.__SENTRY__ || {}, o = a[i] = a["10.47.0"] || {};
|
|
16
|
+
return o[e] || (o[e] = t());
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region node_modules/@sentry/core/build/esm/utils/debug-logger.js
|
|
20
|
+
var c = [
|
|
21
|
+
"debug",
|
|
22
|
+
"info",
|
|
23
|
+
"warn",
|
|
24
|
+
"error",
|
|
25
|
+
"log",
|
|
26
|
+
"assert",
|
|
27
|
+
"trace"
|
|
28
|
+
], l = "Sentry Logger ", u = {};
|
|
29
|
+
function d(e) {
|
|
30
|
+
if (!("console" in r)) return e();
|
|
31
|
+
let t = r.console, n = {}, i = Object.keys(u);
|
|
32
|
+
i.forEach((e) => {
|
|
33
|
+
let r = u[e];
|
|
34
|
+
n[e] = t[e], t[e] = r;
|
|
35
|
+
});
|
|
36
|
+
try {
|
|
37
|
+
return e();
|
|
38
|
+
} finally {
|
|
39
|
+
i.forEach((e) => {
|
|
40
|
+
t[e] = n[e];
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function ee() {
|
|
45
|
+
g().enabled = !0;
|
|
46
|
+
}
|
|
47
|
+
function f() {
|
|
48
|
+
g().enabled = !1;
|
|
49
|
+
}
|
|
50
|
+
function p() {
|
|
51
|
+
return g().enabled;
|
|
52
|
+
}
|
|
53
|
+
function te(...e) {
|
|
54
|
+
h("log", ...e);
|
|
55
|
+
}
|
|
56
|
+
function ne(...e) {
|
|
57
|
+
h("warn", ...e);
|
|
58
|
+
}
|
|
59
|
+
function m(...e) {
|
|
60
|
+
h("error", ...e);
|
|
61
|
+
}
|
|
62
|
+
function h(e, ...t) {
|
|
63
|
+
n && p() && d(() => {
|
|
64
|
+
r.console[e](`${l}[${e}]:`, ...t);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function g() {
|
|
68
|
+
return n ? s("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 };
|
|
69
|
+
}
|
|
70
|
+
var _ = {
|
|
71
|
+
enable: ee,
|
|
72
|
+
disable: f,
|
|
73
|
+
isEnabled: p,
|
|
74
|
+
log: te,
|
|
75
|
+
warn: ne,
|
|
76
|
+
error: m
|
|
77
|
+
}, v = "<anonymous>";
|
|
78
|
+
function re(e) {
|
|
79
|
+
try {
|
|
80
|
+
return !e || typeof e != "function" ? v : e.name || v;
|
|
81
|
+
} catch {
|
|
82
|
+
return v;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function ie(e) {
|
|
86
|
+
return "__v_isVNode" in e && e.__v_isVNode ? "[VueVNode]" : "[VueViewModel]";
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region node_modules/@sentry/core/build/esm/instrument/handlers.js
|
|
90
|
+
var y = {}, b = {};
|
|
91
|
+
function x(e, t) {
|
|
92
|
+
y[e] = y[e] || [], y[e].push(t);
|
|
93
|
+
}
|
|
94
|
+
function S(e, t) {
|
|
95
|
+
if (!b[e]) {
|
|
96
|
+
b[e] = !0;
|
|
97
|
+
try {
|
|
98
|
+
t();
|
|
99
|
+
} catch (t) {
|
|
100
|
+
n && _.error(`Error while instrumenting ${e}`, t);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function ae(e, t) {
|
|
105
|
+
let r = e && y[e];
|
|
106
|
+
if (r) for (let i of r) try {
|
|
107
|
+
i(t);
|
|
108
|
+
} catch (t) {
|
|
109
|
+
n && _.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${re(i)}\nError:`, t);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region node_modules/@sentry/core/build/esm/utils/is.js
|
|
114
|
+
var oe = Object.prototype.toString;
|
|
115
|
+
function se(e, t) {
|
|
116
|
+
return oe.call(e) === `[object ${t}]`;
|
|
117
|
+
}
|
|
118
|
+
function ce(e) {
|
|
119
|
+
return se(e, "Object");
|
|
120
|
+
}
|
|
121
|
+
function le(e) {
|
|
122
|
+
return !!(e?.then && typeof e.then == "function");
|
|
123
|
+
}
|
|
124
|
+
function ue(e) {
|
|
125
|
+
return !!(typeof e == "object" && e && (e.__isVue || e._isVue || e.__v_isVNode));
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region node_modules/@sentry/core/build/esm/utils/object.js
|
|
129
|
+
function de(e, t, r) {
|
|
130
|
+
if (!(t in e)) return;
|
|
131
|
+
let i = e[t];
|
|
132
|
+
if (typeof i != "function") return;
|
|
133
|
+
let a = r(i);
|
|
134
|
+
typeof a == "function" && fe(a, i);
|
|
135
|
+
try {
|
|
136
|
+
e[t] = a;
|
|
137
|
+
} catch {
|
|
138
|
+
n && _.log(`Failed to replace method "${t}" in object`, e);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function C(e, t, r) {
|
|
142
|
+
try {
|
|
143
|
+
Object.defineProperty(e, t, {
|
|
144
|
+
value: r,
|
|
145
|
+
writable: !0,
|
|
146
|
+
configurable: !0
|
|
147
|
+
});
|
|
148
|
+
} catch {
|
|
149
|
+
n && _.log(`Failed to add non-enumerable property "${t}" to object`, e);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function fe(e, t) {
|
|
153
|
+
try {
|
|
154
|
+
e.prototype = t.prototype = t.prototype || {}, C(e, "__sentry_original__", t);
|
|
155
|
+
} catch {}
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
|
|
159
|
+
var w;
|
|
160
|
+
function T(e) {
|
|
161
|
+
if (w !== void 0) return w ? w(e) : e();
|
|
162
|
+
let t = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"), n = r;
|
|
163
|
+
return t in n && typeof n[t] == "function" ? (w = n[t], w(e)) : (w = null, e());
|
|
164
|
+
}
|
|
165
|
+
function E() {
|
|
166
|
+
return T(() => Math.random());
|
|
167
|
+
}
|
|
168
|
+
function pe() {
|
|
169
|
+
return T(() => Date.now());
|
|
170
|
+
}
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region node_modules/@sentry/core/build/esm/utils/string.js
|
|
173
|
+
function me(e, t = 0) {
|
|
174
|
+
return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`;
|
|
175
|
+
}
|
|
176
|
+
function D(e, t) {
|
|
177
|
+
if (!Array.isArray(e)) return "";
|
|
178
|
+
let n = [];
|
|
179
|
+
for (let t = 0; t < e.length; t++) {
|
|
180
|
+
let r = e[t];
|
|
181
|
+
try {
|
|
182
|
+
ue(r) ? n.push(ie(r)) : n.push(String(r));
|
|
183
|
+
} catch {
|
|
184
|
+
n.push("[value cannot be serialized]");
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return n.join(t);
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region node_modules/@sentry/core/build/esm/utils/misc.js
|
|
191
|
+
function O() {
|
|
192
|
+
let e = r;
|
|
193
|
+
return e.crypto || e.msCrypto;
|
|
194
|
+
}
|
|
195
|
+
var k;
|
|
196
|
+
function A() {
|
|
197
|
+
return E() * 16;
|
|
198
|
+
}
|
|
199
|
+
function j(e = O()) {
|
|
200
|
+
try {
|
|
201
|
+
if (e?.randomUUID) return T(() => e.randomUUID()).replace(/-/g, "");
|
|
202
|
+
} catch {}
|
|
203
|
+
return k ||= "10000000100040008000100000000000", k.replace(/[018]/g, (e) => (e ^ (A() & 15) >> e / 4).toString(16));
|
|
204
|
+
}
|
|
205
|
+
function M(e) {
|
|
206
|
+
return e.exception?.values?.[0];
|
|
207
|
+
}
|
|
208
|
+
function N(e, t) {
|
|
209
|
+
let n = M(e);
|
|
210
|
+
if (!n) return;
|
|
211
|
+
let r = {
|
|
212
|
+
type: "generic",
|
|
213
|
+
handled: !0
|
|
214
|
+
}, i = n.mechanism;
|
|
215
|
+
if (n.mechanism = {
|
|
216
|
+
...r,
|
|
217
|
+
...i,
|
|
218
|
+
...t
|
|
219
|
+
}, t && "data" in t) {
|
|
220
|
+
let e = {
|
|
221
|
+
...i?.data,
|
|
222
|
+
...t.data
|
|
223
|
+
};
|
|
224
|
+
n.mechanism.data = e;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region node_modules/@sentry/core/build/esm/utils/time.js
|
|
229
|
+
var P = 1e3;
|
|
230
|
+
function F() {
|
|
231
|
+
return pe() / P;
|
|
232
|
+
}
|
|
233
|
+
function I() {
|
|
234
|
+
let { performance: e } = r;
|
|
235
|
+
if (!e?.now || !e.timeOrigin) return F;
|
|
236
|
+
let t = e.timeOrigin;
|
|
237
|
+
return () => (t + T(() => e.now())) / P;
|
|
238
|
+
}
|
|
239
|
+
var L;
|
|
240
|
+
function R() {
|
|
241
|
+
return (L ??= I())();
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region node_modules/@sentry/core/build/esm/session.js
|
|
245
|
+
function z(e, t = {}) {
|
|
246
|
+
if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), !e.did && !t.did && (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || R(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = t.sid.length === 32 ? t.sid : j()), t.init !== void 0 && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), typeof t.started == "number" && (e.started = t.started), e.ignoreDuration) e.duration = void 0;
|
|
247
|
+
else if (typeof t.duration == "number") e.duration = t.duration;
|
|
248
|
+
else {
|
|
249
|
+
let t = e.timestamp - e.started;
|
|
250
|
+
e.duration = t >= 0 ? t : 0;
|
|
251
|
+
}
|
|
252
|
+
t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), typeof t.errors == "number" && (e.errors = t.errors), t.status && (e.status = t.status);
|
|
253
|
+
}
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region node_modules/@sentry/core/build/esm/utils/merge.js
|
|
256
|
+
function B(e, t, n = 2) {
|
|
257
|
+
if (!t || typeof t != "object" || n <= 0) return t;
|
|
258
|
+
if (e && Object.keys(t).length === 0) return e;
|
|
259
|
+
let r = { ...e };
|
|
260
|
+
for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = B(r[e], t[e], n - 1));
|
|
261
|
+
return r;
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region node_modules/@sentry/core/build/esm/utils/propagationContext.js
|
|
265
|
+
function V() {
|
|
266
|
+
return j();
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region node_modules/@sentry/core/build/esm/utils/spanOnScope.js
|
|
270
|
+
var H = "_sentrySpan";
|
|
271
|
+
function U(e, t) {
|
|
272
|
+
t ? C(e, H, t) : delete e[H];
|
|
273
|
+
}
|
|
274
|
+
function W(e) {
|
|
275
|
+
return e[H];
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region node_modules/@sentry/core/build/esm/scope.js
|
|
279
|
+
var he = 100, G = class e {
|
|
280
|
+
constructor() {
|
|
281
|
+
this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._attributes = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = {
|
|
282
|
+
traceId: V(),
|
|
283
|
+
sampleRand: E()
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
clone() {
|
|
287
|
+
let t = new e();
|
|
288
|
+
return t._breadcrumbs = [...this._breadcrumbs], t._tags = { ...this._tags }, t._attributes = { ...this._attributes }, t._extra = { ...this._extra }, t._contexts = { ...this._contexts }, this._contexts.flags && (t._contexts.flags = { values: [...this._contexts.flags.values] }), t._user = this._user, t._level = this._level, t._session = this._session, t._transactionName = this._transactionName, t._fingerprint = this._fingerprint, t._eventProcessors = [...this._eventProcessors], t._attachments = [...this._attachments], t._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, t._propagationContext = { ...this._propagationContext }, t._client = this._client, t._lastEventId = this._lastEventId, t._conversationId = this._conversationId, U(t, W(this)), t;
|
|
289
|
+
}
|
|
290
|
+
setClient(e) {
|
|
291
|
+
this._client = e;
|
|
292
|
+
}
|
|
293
|
+
setLastEventId(e) {
|
|
294
|
+
this._lastEventId = e;
|
|
295
|
+
}
|
|
296
|
+
getClient() {
|
|
297
|
+
return this._client;
|
|
298
|
+
}
|
|
299
|
+
lastEventId() {
|
|
300
|
+
return this._lastEventId;
|
|
301
|
+
}
|
|
302
|
+
addScopeListener(e) {
|
|
303
|
+
this._scopeListeners.push(e);
|
|
304
|
+
}
|
|
305
|
+
addEventProcessor(e) {
|
|
306
|
+
return this._eventProcessors.push(e), this;
|
|
307
|
+
}
|
|
308
|
+
setUser(e) {
|
|
309
|
+
return this._user = e || {
|
|
310
|
+
email: void 0,
|
|
311
|
+
id: void 0,
|
|
312
|
+
ip_address: void 0,
|
|
313
|
+
username: void 0
|
|
314
|
+
}, this._session && z(this._session, { user: e }), this._notifyScopeListeners(), this;
|
|
315
|
+
}
|
|
316
|
+
getUser() {
|
|
317
|
+
return this._user;
|
|
318
|
+
}
|
|
319
|
+
setConversationId(e) {
|
|
320
|
+
return this._conversationId = e || void 0, this._notifyScopeListeners(), this;
|
|
321
|
+
}
|
|
322
|
+
setTags(e) {
|
|
323
|
+
return this._tags = {
|
|
324
|
+
...this._tags,
|
|
325
|
+
...e
|
|
326
|
+
}, this._notifyScopeListeners(), this;
|
|
327
|
+
}
|
|
328
|
+
setTag(e, t) {
|
|
329
|
+
return this.setTags({ [e]: t });
|
|
330
|
+
}
|
|
331
|
+
setAttributes(e) {
|
|
332
|
+
return this._attributes = {
|
|
333
|
+
...this._attributes,
|
|
334
|
+
...e
|
|
335
|
+
}, this._notifyScopeListeners(), this;
|
|
336
|
+
}
|
|
337
|
+
setAttribute(e, t) {
|
|
338
|
+
return this.setAttributes({ [e]: t });
|
|
339
|
+
}
|
|
340
|
+
removeAttribute(e) {
|
|
341
|
+
return e in this._attributes && (delete this._attributes[e], this._notifyScopeListeners()), this;
|
|
342
|
+
}
|
|
343
|
+
setExtras(e) {
|
|
344
|
+
return this._extra = {
|
|
345
|
+
...this._extra,
|
|
346
|
+
...e
|
|
347
|
+
}, this._notifyScopeListeners(), this;
|
|
348
|
+
}
|
|
349
|
+
setExtra(e, t) {
|
|
350
|
+
return this._extra = {
|
|
351
|
+
...this._extra,
|
|
352
|
+
[e]: t
|
|
353
|
+
}, this._notifyScopeListeners(), this;
|
|
354
|
+
}
|
|
355
|
+
setFingerprint(e) {
|
|
356
|
+
return this._fingerprint = e, this._notifyScopeListeners(), this;
|
|
357
|
+
}
|
|
358
|
+
setLevel(e) {
|
|
359
|
+
return this._level = e, this._notifyScopeListeners(), this;
|
|
360
|
+
}
|
|
361
|
+
setTransactionName(e) {
|
|
362
|
+
return this._transactionName = e, this._notifyScopeListeners(), this;
|
|
363
|
+
}
|
|
364
|
+
setContext(e, t) {
|
|
365
|
+
return t === null ? delete this._contexts[e] : this._contexts[e] = t, this._notifyScopeListeners(), this;
|
|
366
|
+
}
|
|
367
|
+
setSession(e) {
|
|
368
|
+
return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
|
|
369
|
+
}
|
|
370
|
+
getSession() {
|
|
371
|
+
return this._session;
|
|
372
|
+
}
|
|
373
|
+
update(t) {
|
|
374
|
+
if (!t) return this;
|
|
375
|
+
let n = typeof t == "function" ? t(this) : t, { tags: r, attributes: i, extra: a, user: o, contexts: s, level: c, fingerprint: l = [], propagationContext: u, conversationId: d } = (n instanceof e ? n.getScopeData() : ce(n) ? t : void 0) || {};
|
|
376
|
+
return this._tags = {
|
|
377
|
+
...this._tags,
|
|
378
|
+
...r
|
|
379
|
+
}, this._attributes = {
|
|
380
|
+
...this._attributes,
|
|
381
|
+
...i
|
|
382
|
+
}, this._extra = {
|
|
383
|
+
...this._extra,
|
|
384
|
+
...a
|
|
385
|
+
}, this._contexts = {
|
|
386
|
+
...this._contexts,
|
|
387
|
+
...s
|
|
388
|
+
}, o && Object.keys(o).length && (this._user = o), c && (this._level = c), l.length && (this._fingerprint = l), u && (this._propagationContext = u), d && (this._conversationId = d), this;
|
|
389
|
+
}
|
|
390
|
+
clear() {
|
|
391
|
+
return this._breadcrumbs = [], this._tags = {}, this._attributes = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._session = void 0, this._conversationId = void 0, U(this, void 0), this._attachments = [], this.setPropagationContext({
|
|
392
|
+
traceId: V(),
|
|
393
|
+
sampleRand: E()
|
|
394
|
+
}), this._notifyScopeListeners(), this;
|
|
395
|
+
}
|
|
396
|
+
addBreadcrumb(e, t) {
|
|
397
|
+
let n = typeof t == "number" ? t : he;
|
|
398
|
+
if (n <= 0) return this;
|
|
399
|
+
let r = {
|
|
400
|
+
timestamp: F(),
|
|
401
|
+
...e,
|
|
402
|
+
message: e.message ? me(e.message, 2048) : e.message
|
|
403
|
+
};
|
|
404
|
+
return this._breadcrumbs.push(r), this._breadcrumbs.length > n && (this._breadcrumbs = this._breadcrumbs.slice(-n), this._client?.recordDroppedEvent("buffer_overflow", "log_item")), this._notifyScopeListeners(), this;
|
|
405
|
+
}
|
|
406
|
+
getLastBreadcrumb() {
|
|
407
|
+
return this._breadcrumbs[this._breadcrumbs.length - 1];
|
|
408
|
+
}
|
|
409
|
+
clearBreadcrumbs() {
|
|
410
|
+
return this._breadcrumbs = [], this._notifyScopeListeners(), this;
|
|
411
|
+
}
|
|
412
|
+
addAttachment(e) {
|
|
413
|
+
return this._attachments.push(e), this;
|
|
414
|
+
}
|
|
415
|
+
clearAttachments() {
|
|
416
|
+
return this._attachments = [], this;
|
|
417
|
+
}
|
|
418
|
+
getScopeData() {
|
|
419
|
+
return {
|
|
420
|
+
breadcrumbs: this._breadcrumbs,
|
|
421
|
+
attachments: this._attachments,
|
|
422
|
+
contexts: this._contexts,
|
|
423
|
+
tags: this._tags,
|
|
424
|
+
attributes: this._attributes,
|
|
425
|
+
extra: this._extra,
|
|
426
|
+
user: this._user,
|
|
427
|
+
level: this._level,
|
|
428
|
+
fingerprint: this._fingerprint || [],
|
|
429
|
+
eventProcessors: this._eventProcessors,
|
|
430
|
+
propagationContext: this._propagationContext,
|
|
431
|
+
sdkProcessingMetadata: this._sdkProcessingMetadata,
|
|
432
|
+
transactionName: this._transactionName,
|
|
433
|
+
span: W(this),
|
|
434
|
+
conversationId: this._conversationId
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
setSDKProcessingMetadata(e) {
|
|
438
|
+
return this._sdkProcessingMetadata = B(this._sdkProcessingMetadata, e, 2), this;
|
|
439
|
+
}
|
|
440
|
+
setPropagationContext(e) {
|
|
441
|
+
return this._propagationContext = e, this;
|
|
442
|
+
}
|
|
443
|
+
getPropagationContext() {
|
|
444
|
+
return this._propagationContext;
|
|
445
|
+
}
|
|
446
|
+
captureException(e, t) {
|
|
447
|
+
let r = t?.event_id || j();
|
|
448
|
+
if (!this._client) return n && _.warn("No client configured on scope - will not capture exception!"), r;
|
|
449
|
+
let i = /* @__PURE__ */ Error("Sentry syntheticException");
|
|
450
|
+
return this._client.captureException(e, {
|
|
451
|
+
originalException: e,
|
|
452
|
+
syntheticException: i,
|
|
453
|
+
...t,
|
|
454
|
+
event_id: r
|
|
455
|
+
}, this), r;
|
|
456
|
+
}
|
|
457
|
+
captureMessage(e, t, r) {
|
|
458
|
+
let i = r?.event_id || j();
|
|
459
|
+
if (!this._client) return n && _.warn("No client configured on scope - will not capture message!"), i;
|
|
460
|
+
let a = r?.syntheticException ?? Error(e);
|
|
461
|
+
return this._client.captureMessage(e, t, {
|
|
462
|
+
originalException: e,
|
|
463
|
+
syntheticException: a,
|
|
464
|
+
...r,
|
|
465
|
+
event_id: i
|
|
466
|
+
}, this), i;
|
|
467
|
+
}
|
|
468
|
+
captureEvent(e, t) {
|
|
469
|
+
let r = e.event_id || t?.event_id || j();
|
|
470
|
+
return this._client ? (this._client.captureEvent(e, {
|
|
471
|
+
...t,
|
|
472
|
+
event_id: r
|
|
473
|
+
}, this), r) : (n && _.warn("No client configured on scope - will not capture event!"), r);
|
|
474
|
+
}
|
|
475
|
+
_notifyScopeListeners() {
|
|
476
|
+
this._notifyingListeners ||= (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
|
|
477
|
+
e(this);
|
|
478
|
+
}), !1);
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region node_modules/@sentry/core/build/esm/defaultScopes.js
|
|
483
|
+
function ge() {
|
|
484
|
+
return s("defaultCurrentScope", () => new G());
|
|
485
|
+
}
|
|
486
|
+
function _e() {
|
|
487
|
+
return s("defaultIsolationScope", () => new G());
|
|
488
|
+
}
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js
|
|
491
|
+
var K = (e) => e instanceof Promise && !e[q], q = Symbol("chained PromiseLike"), ve = (e, t, n) => {
|
|
492
|
+
let r = e.then((e) => (t(e), e), (e) => {
|
|
493
|
+
throw n(e), e;
|
|
494
|
+
});
|
|
495
|
+
return K(r) && K(e) ? r : ye(e, r);
|
|
496
|
+
}, ye = (e, t) => {
|
|
497
|
+
let n = !1;
|
|
498
|
+
for (let r in e) {
|
|
499
|
+
if (r in t) continue;
|
|
500
|
+
n = !0;
|
|
501
|
+
let i = e[r];
|
|
502
|
+
typeof i == "function" ? Object.defineProperty(t, r, {
|
|
503
|
+
value: (...t) => i.apply(e, t),
|
|
504
|
+
enumerable: !0,
|
|
505
|
+
configurable: !0,
|
|
506
|
+
writable: !0
|
|
507
|
+
}) : t[r] = i;
|
|
508
|
+
}
|
|
509
|
+
return n && Object.assign(t, { [q]: !0 }), t;
|
|
510
|
+
}, be = class {
|
|
511
|
+
constructor(e, t) {
|
|
512
|
+
let n;
|
|
513
|
+
n = e || new G();
|
|
514
|
+
let r;
|
|
515
|
+
r = t || new G(), this._stack = [{ scope: n }], this._isolationScope = r;
|
|
516
|
+
}
|
|
517
|
+
withScope(e) {
|
|
518
|
+
let t = this._pushScope(), n;
|
|
519
|
+
try {
|
|
520
|
+
n = e(t);
|
|
521
|
+
} catch (e) {
|
|
522
|
+
throw this._popScope(), e;
|
|
523
|
+
}
|
|
524
|
+
return le(n) ? ve(n, () => this._popScope(), () => this._popScope()) : (this._popScope(), n);
|
|
525
|
+
}
|
|
526
|
+
getClient() {
|
|
527
|
+
return this.getStackTop().client;
|
|
528
|
+
}
|
|
529
|
+
getScope() {
|
|
530
|
+
return this.getStackTop().scope;
|
|
531
|
+
}
|
|
532
|
+
getIsolationScope() {
|
|
533
|
+
return this._isolationScope;
|
|
534
|
+
}
|
|
535
|
+
getStackTop() {
|
|
536
|
+
return this._stack[this._stack.length - 1];
|
|
537
|
+
}
|
|
538
|
+
_pushScope() {
|
|
539
|
+
let e = this.getScope().clone();
|
|
540
|
+
return this._stack.push({
|
|
541
|
+
client: this.getClient(),
|
|
542
|
+
scope: e
|
|
543
|
+
}), e;
|
|
544
|
+
}
|
|
545
|
+
_popScope() {
|
|
546
|
+
return this._stack.length <= 1 ? !1 : !!this._stack.pop();
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
function J() {
|
|
550
|
+
let e = o(a());
|
|
551
|
+
return e.stack = e.stack || new be(ge(), _e());
|
|
552
|
+
}
|
|
553
|
+
function xe(e) {
|
|
554
|
+
return J().withScope(e);
|
|
555
|
+
}
|
|
556
|
+
function Se(e, t) {
|
|
557
|
+
let n = J();
|
|
558
|
+
return n.withScope(() => (n.getStackTop().scope = e, t(e)));
|
|
559
|
+
}
|
|
560
|
+
function Y(e) {
|
|
561
|
+
return J().withScope(() => e(J().getIsolationScope()));
|
|
562
|
+
}
|
|
563
|
+
function Ce() {
|
|
564
|
+
return {
|
|
565
|
+
withIsolationScope: Y,
|
|
566
|
+
withScope: xe,
|
|
567
|
+
withSetScope: Se,
|
|
568
|
+
withSetIsolationScope: (e, t) => Y(t),
|
|
569
|
+
getCurrentScope: () => J().getScope(),
|
|
570
|
+
getIsolationScope: () => J().getIsolationScope()
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
//#endregion
|
|
574
|
+
//#region node_modules/@sentry/core/build/esm/asyncContext/index.js
|
|
575
|
+
function X(e) {
|
|
576
|
+
let t = o(e);
|
|
577
|
+
return t.acs ? t.acs : Ce();
|
|
578
|
+
}
|
|
579
|
+
//#endregion
|
|
580
|
+
//#region node_modules/@sentry/core/build/esm/currentScopes.js
|
|
581
|
+
function Z() {
|
|
582
|
+
return X(a()).getCurrentScope();
|
|
583
|
+
}
|
|
584
|
+
function we(...e) {
|
|
585
|
+
let t = X(a());
|
|
586
|
+
if (e.length === 2) {
|
|
587
|
+
let [n, r] = e;
|
|
588
|
+
return n ? t.withSetScope(n, r) : t.withScope(r);
|
|
589
|
+
}
|
|
590
|
+
return t.withScope(e[0]);
|
|
591
|
+
}
|
|
592
|
+
function Te() {
|
|
593
|
+
return Z().getClient();
|
|
594
|
+
}
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region node_modules/@sentry/core/build/esm/utils/prepareEvent.js
|
|
597
|
+
function Ee(e) {
|
|
598
|
+
if (e) return De(e) || Q(e) ? { captureContext: e } : e;
|
|
599
|
+
}
|
|
600
|
+
function De(e) {
|
|
601
|
+
return e instanceof G || typeof e == "function";
|
|
602
|
+
}
|
|
603
|
+
var Oe = [
|
|
604
|
+
"user",
|
|
605
|
+
"level",
|
|
606
|
+
"extra",
|
|
607
|
+
"contexts",
|
|
608
|
+
"tags",
|
|
609
|
+
"fingerprint",
|
|
610
|
+
"propagationContext"
|
|
611
|
+
];
|
|
612
|
+
function Q(e) {
|
|
613
|
+
return Object.keys(e).some((e) => Oe.includes(e));
|
|
614
|
+
}
|
|
615
|
+
//#endregion
|
|
616
|
+
//#region node_modules/@sentry/core/build/esm/exports.js
|
|
617
|
+
function ke(e, t) {
|
|
618
|
+
return Z().captureException(e, Ee(t));
|
|
619
|
+
}
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region node_modules/@sentry/core/build/esm/integration.js
|
|
622
|
+
function Ae(e) {
|
|
623
|
+
return e;
|
|
624
|
+
}
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region node_modules/@sentry/core/build/esm/instrument/console.js
|
|
627
|
+
function je(e) {
|
|
628
|
+
let t = "console";
|
|
629
|
+
x(t, e), S(t, Me);
|
|
630
|
+
}
|
|
631
|
+
function Me() {
|
|
632
|
+
"console" in r && c.forEach(function(e) {
|
|
633
|
+
e in r.console && de(r.console, e, function(t) {
|
|
634
|
+
return u[e] = t, function(...t) {
|
|
635
|
+
ae("console", {
|
|
636
|
+
args: t,
|
|
637
|
+
level: e
|
|
638
|
+
}), u[e]?.apply(r.console, t);
|
|
639
|
+
};
|
|
640
|
+
});
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
//#endregion
|
|
644
|
+
//#region node_modules/@sentry/core/build/esm/utils/severity.js
|
|
645
|
+
function $(e) {
|
|
646
|
+
return e === "warn" ? "warning" : [
|
|
647
|
+
"fatal",
|
|
648
|
+
"error",
|
|
649
|
+
"warning",
|
|
650
|
+
"log",
|
|
651
|
+
"info",
|
|
652
|
+
"debug"
|
|
653
|
+
].includes(e) ? e : "log";
|
|
654
|
+
}
|
|
655
|
+
//#endregion
|
|
656
|
+
//#region node_modules/@sentry/core/build/esm/integrations/captureconsole.js
|
|
657
|
+
var Ne = "CaptureConsole", Pe = Ae(((e = {}) => {
|
|
658
|
+
let t = e.levels || c, n = e.handled ?? !0;
|
|
659
|
+
return {
|
|
660
|
+
name: Ne,
|
|
661
|
+
setup(e) {
|
|
662
|
+
"console" in r && je(({ args: r, level: i }) => {
|
|
663
|
+
Te() !== e || !t.includes(i) || Fe(r, i, n);
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
}));
|
|
668
|
+
function Fe(e, t, n) {
|
|
669
|
+
let r = $(t), i = /* @__PURE__ */ Error(), a = {
|
|
670
|
+
level: $(t),
|
|
671
|
+
extra: { arguments: e }
|
|
672
|
+
};
|
|
673
|
+
we((o) => {
|
|
674
|
+
if (o.addEventProcessor((e) => (e.logger = "console", N(e, {
|
|
675
|
+
handled: n,
|
|
676
|
+
type: "auto.core.capture_console"
|
|
677
|
+
}), e)), t === "assert") {
|
|
678
|
+
if (!e[0]) {
|
|
679
|
+
let t = `Assertion failed: ${D(e.slice(1), " ") || "console.assert"}`;
|
|
680
|
+
o.setExtra("arguments", e.slice(1)), o.captureMessage(t, r, {
|
|
681
|
+
captureContext: a,
|
|
682
|
+
syntheticException: i
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
return;
|
|
686
|
+
}
|
|
687
|
+
let s = e.find((e) => e instanceof Error);
|
|
688
|
+
if (s) {
|
|
689
|
+
ke(s, a);
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
let c = D(e, " ");
|
|
693
|
+
o.captureMessage(c, r, {
|
|
694
|
+
captureContext: a,
|
|
695
|
+
syntheticException: i
|
|
696
|
+
});
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
//#endregion
|
|
700
|
+
//#region src/Sentry/ReactNative.ts
|
|
701
|
+
var Ie = (e) => {
|
|
702
|
+
let n = e?.requiredEnvForSendToSentry?.includes(e.env), r = [/StallTracking/];
|
|
703
|
+
e?.ignoreErrorsOptions && (r = r.concat(e.ignoreErrorsOptions)), e?.options?.ignoreErrors && (r = r.concat(e.options.ignoreErrors), delete e.options.ignoreErrors);
|
|
704
|
+
let i = [];
|
|
705
|
+
e?.httpClientIntegrationOptions?.failedRequestStatusCodes && e?.httpClientIntegrationOptions?.failedRequestTargets && i.push(t.httpClientIntegration({
|
|
706
|
+
failedRequestStatusCodes: e.httpClientIntegrationOptions.failedRequestStatusCodes,
|
|
707
|
+
failedRequestTargets: e.httpClientIntegrationOptions.failedRequestTargets
|
|
708
|
+
})), e?.captureConsoleIntegrationOptions?.levels && i.push(Pe({ levels: e.captureConsoleIntegrationOptions.levels })), e?.options?.hasOwnProperty("integrations") ? e.options.integrations = [...e.options.integrations, ...i] : (e.options = e.options || {}, e.options.integrations = i);
|
|
709
|
+
let a = {
|
|
710
|
+
dsn: e.dsn,
|
|
711
|
+
debug: e.debug,
|
|
712
|
+
environment: e.env,
|
|
713
|
+
ignoreErrors: r,
|
|
714
|
+
sampleRate: .7,
|
|
715
|
+
maxBreadcrumbs: 50,
|
|
716
|
+
attachScreenshot: !0,
|
|
717
|
+
enableCaptureFailedRequests: !0,
|
|
718
|
+
tracesSampleRate: .7,
|
|
719
|
+
enableNative: !0,
|
|
720
|
+
autoInitializeNativeSdk: !0,
|
|
721
|
+
enableNativeCrashHandling: !0,
|
|
722
|
+
enableNativeNagger: !0,
|
|
723
|
+
enableAutoSessionTracking: !0,
|
|
724
|
+
enableNdkScopeSync: !0,
|
|
725
|
+
attachThreads: !0,
|
|
726
|
+
enableAutoPerformanceTracing: !0,
|
|
727
|
+
enableWatchdogTerminationTracking: !0,
|
|
728
|
+
enableAppHangTracking: !0,
|
|
729
|
+
appHangTimeoutInterval: 5,
|
|
730
|
+
sendDefaultPii: !0,
|
|
731
|
+
beforeSend: (e) => e?.message?.includes("StallTracking") || !n ? null : e
|
|
732
|
+
};
|
|
733
|
+
e?.release && (a.release = e.release), e?.beforeSend && (a.beforeSend = e.beforeSend), e?.options && (a = {
|
|
734
|
+
...a,
|
|
735
|
+
...e.options
|
|
736
|
+
}), t.init(a);
|
|
737
|
+
}, Le = (n, r, i) => {
|
|
738
|
+
e(t, n, r, i);
|
|
739
|
+
};
|
|
740
|
+
//#endregion
|
|
741
|
+
export { Le as n, Ie as t };
|
|
742
|
+
|
|
743
|
+
//# sourceMappingURL=sentry-rn-DZwIel7y.js.map
|