@arthurreira/analytics 0.14.0 → 0.15.0
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/af-analytics.umd.js +2 -8
- package/dist/client.d.ts +0 -3
- package/dist/client.js +0 -9
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/package.json +1 -1
package/dist/af-analytics.umd.js
CHANGED
|
@@ -221,14 +221,11 @@ var AfAnalytics = (() => {
|
|
|
221
221
|
);
|
|
222
222
|
window.addEventListener("error", (e) => {
|
|
223
223
|
enqueue((id) => {
|
|
224
|
-
var _a, _b, _c, _d
|
|
224
|
+
var _a, _b, _c, _d;
|
|
225
225
|
return trackException(apiUrl, apiKey, id, {
|
|
226
226
|
exception_type: (_b = (_a = e.error) == null ? void 0 : _a.name) != null ? _b : "Error",
|
|
227
227
|
exception_message: e.message,
|
|
228
|
-
|
|
229
|
-
exception_lineno: (_d = e.lineno) != null ? _d : null,
|
|
230
|
-
exception_colno: (_e = e.colno) != null ? _e : null,
|
|
231
|
-
stack_trace: (_g = (_f = e.error) == null ? void 0 : _f.stack) != null ? _g : null
|
|
228
|
+
stack_trace: (_d = (_c = e.error) == null ? void 0 : _c.stack) != null ? _d : null
|
|
232
229
|
});
|
|
233
230
|
});
|
|
234
231
|
});
|
|
@@ -239,9 +236,6 @@ var AfAnalytics = (() => {
|
|
|
239
236
|
return trackException(apiUrl, apiKey, id, {
|
|
240
237
|
exception_type: (_a = reason == null ? void 0 : reason.name) != null ? _a : "UnhandledRejection",
|
|
241
238
|
exception_message: (_b = reason == null ? void 0 : reason.message) != null ? _b : String(reason),
|
|
242
|
-
exception_filename: null,
|
|
243
|
-
exception_lineno: null,
|
|
244
|
-
exception_colno: null,
|
|
245
239
|
stack_trace: (_c = reason == null ? void 0 : reason.stack) != null ? _c : null
|
|
246
240
|
});
|
|
247
241
|
});
|
package/dist/client.d.ts
CHANGED
|
@@ -8,9 +8,6 @@ declare function Analytics({ apiKey, apiUrl, wsUrl }: AnalyticsProps): null;
|
|
|
8
8
|
interface ExceptionFields {
|
|
9
9
|
exception_type: string;
|
|
10
10
|
exception_message: string;
|
|
11
|
-
exception_filename: string | null;
|
|
12
|
-
exception_lineno: number | null;
|
|
13
|
-
exception_colno: number | null;
|
|
14
11
|
stack_trace: string | null;
|
|
15
12
|
}
|
|
16
13
|
|
package/dist/client.js
CHANGED
|
@@ -119,9 +119,6 @@ async function trackError(apiUrl, apiKey, sessionId, path, error) {
|
|
|
119
119
|
await trackException(apiUrl, apiKey, sessionId, path, {
|
|
120
120
|
exception_type: error.name ?? "Error",
|
|
121
121
|
exception_message: error.message,
|
|
122
|
-
exception_filename: null,
|
|
123
|
-
exception_lineno: null,
|
|
124
|
-
exception_colno: null,
|
|
125
122
|
stack_trace: error.stack ?? null
|
|
126
123
|
});
|
|
127
124
|
}
|
|
@@ -339,9 +336,6 @@ function Analytics({ apiKey, apiUrl, wsUrl }) {
|
|
|
339
336
|
const handler = (e) => trackException2({
|
|
340
337
|
exception_type: e.error?.name ?? "Error",
|
|
341
338
|
exception_message: e.message,
|
|
342
|
-
exception_filename: e.filename ?? null,
|
|
343
|
-
exception_lineno: e.lineno ?? null,
|
|
344
|
-
exception_colno: e.colno ?? null,
|
|
345
339
|
stack_trace: e.error?.stack ?? null
|
|
346
340
|
});
|
|
347
341
|
window.addEventListener("error", handler);
|
|
@@ -354,9 +348,6 @@ function Analytics({ apiKey, apiUrl, wsUrl }) {
|
|
|
354
348
|
trackException2({
|
|
355
349
|
exception_type: reason?.name ?? "UnhandledRejection",
|
|
356
350
|
exception_message: reason?.message ?? String(reason),
|
|
357
|
-
exception_filename: null,
|
|
358
|
-
exception_lineno: null,
|
|
359
|
-
exception_colno: null,
|
|
360
351
|
stack_trace: reason?.stack ?? null
|
|
361
352
|
});
|
|
362
353
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,6 @@ declare function trackSearch(apiUrl: string, apiKey: string, sessionId: string,
|
|
|
7
7
|
interface ExceptionFields {
|
|
8
8
|
exception_type: string;
|
|
9
9
|
exception_message: string;
|
|
10
|
-
exception_filename: string | null;
|
|
11
|
-
exception_lineno: number | null;
|
|
12
|
-
exception_colno: number | null;
|
|
13
10
|
stack_trace: string | null;
|
|
14
11
|
}
|
|
15
12
|
declare function trackException(apiUrl: string, apiKey: string, sessionId: string, path: string, fields: ExceptionFields): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -110,9 +110,6 @@ async function trackError(apiUrl, apiKey, sessionId, path, error) {
|
|
|
110
110
|
await trackException(apiUrl, apiKey, sessionId, path, {
|
|
111
111
|
exception_type: error.name ?? "Error",
|
|
112
112
|
exception_message: error.message,
|
|
113
|
-
exception_filename: null,
|
|
114
|
-
exception_lineno: null,
|
|
115
|
-
exception_colno: null,
|
|
116
113
|
stack_trace: error.stack ?? null
|
|
117
114
|
});
|
|
118
115
|
}
|
package/package.json
CHANGED