@snapfail/protocol 0.0.5 → 0.0.6
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/index.js
CHANGED
|
@@ -4004,7 +4004,8 @@ var StackFrameSchema = exports_external.object({
|
|
|
4004
4004
|
file: exports_external.string(),
|
|
4005
4005
|
line: exports_external.number().optional(),
|
|
4006
4006
|
col: exports_external.number().optional(),
|
|
4007
|
-
fn: exports_external.string().optional()
|
|
4007
|
+
fn: exports_external.string().optional(),
|
|
4008
|
+
codeSnippet: exports_external.string().optional()
|
|
4008
4009
|
});
|
|
4009
4010
|
var NetworkEntrySchema = exports_external.object({
|
|
4010
4011
|
method: exports_external.string(),
|
|
@@ -9,16 +9,19 @@ export declare const CollectPayloadSchema: z.ZodObject<{
|
|
|
9
9
|
line: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
col: z.ZodOptional<z.ZodNumber>;
|
|
11
11
|
fn: z.ZodOptional<z.ZodString>;
|
|
12
|
+
codeSnippet: z.ZodOptional<z.ZodString>;
|
|
12
13
|
}, "strip", z.ZodTypeAny, {
|
|
13
14
|
file: string;
|
|
14
15
|
line?: number | undefined;
|
|
15
16
|
col?: number | undefined;
|
|
16
17
|
fn?: string | undefined;
|
|
18
|
+
codeSnippet?: string | undefined;
|
|
17
19
|
}, {
|
|
18
20
|
file: string;
|
|
19
21
|
line?: number | undefined;
|
|
20
22
|
col?: number | undefined;
|
|
21
23
|
fn?: string | undefined;
|
|
24
|
+
codeSnippet?: string | undefined;
|
|
22
25
|
}>, "many">;
|
|
23
26
|
}, "strip", z.ZodTypeAny, {
|
|
24
27
|
message: string;
|
|
@@ -28,6 +31,7 @@ export declare const CollectPayloadSchema: z.ZodObject<{
|
|
|
28
31
|
line?: number | undefined;
|
|
29
32
|
col?: number | undefined;
|
|
30
33
|
fn?: string | undefined;
|
|
34
|
+
codeSnippet?: string | undefined;
|
|
31
35
|
}[];
|
|
32
36
|
}, {
|
|
33
37
|
message: string;
|
|
@@ -37,6 +41,7 @@ export declare const CollectPayloadSchema: z.ZodObject<{
|
|
|
37
41
|
line?: number | undefined;
|
|
38
42
|
col?: number | undefined;
|
|
39
43
|
fn?: string | undefined;
|
|
44
|
+
codeSnippet?: string | undefined;
|
|
40
45
|
}[];
|
|
41
46
|
}>;
|
|
42
47
|
environment: z.ZodObject<{
|
|
@@ -201,6 +206,7 @@ export declare const CollectPayloadSchema: z.ZodObject<{
|
|
|
201
206
|
line?: number | undefined;
|
|
202
207
|
col?: number | undefined;
|
|
203
208
|
fn?: string | undefined;
|
|
209
|
+
codeSnippet?: string | undefined;
|
|
204
210
|
}[];
|
|
205
211
|
};
|
|
206
212
|
projectKey: string;
|
|
@@ -262,6 +268,7 @@ export declare const CollectPayloadSchema: z.ZodObject<{
|
|
|
262
268
|
line?: number | undefined;
|
|
263
269
|
col?: number | undefined;
|
|
264
270
|
fn?: string | undefined;
|
|
271
|
+
codeSnippet?: string | undefined;
|
|
265
272
|
}[];
|
|
266
273
|
};
|
|
267
274
|
projectKey: string;
|
|
@@ -59,16 +59,19 @@ export declare const IncidentSampleSchema: z.ZodObject<{
|
|
|
59
59
|
line: z.ZodOptional<z.ZodNumber>;
|
|
60
60
|
col: z.ZodOptional<z.ZodNumber>;
|
|
61
61
|
fn: z.ZodOptional<z.ZodString>;
|
|
62
|
+
codeSnippet: z.ZodOptional<z.ZodString>;
|
|
62
63
|
}, "strip", z.ZodTypeAny, {
|
|
63
64
|
file: string;
|
|
64
65
|
line?: number | undefined;
|
|
65
66
|
col?: number | undefined;
|
|
66
67
|
fn?: string | undefined;
|
|
68
|
+
codeSnippet?: string | undefined;
|
|
67
69
|
}, {
|
|
68
70
|
file: string;
|
|
69
71
|
line?: number | undefined;
|
|
70
72
|
col?: number | undefined;
|
|
71
73
|
fn?: string | undefined;
|
|
74
|
+
codeSnippet?: string | undefined;
|
|
72
75
|
}>, "many">;
|
|
73
76
|
consoleEntries: z.ZodArray<z.ZodObject<{
|
|
74
77
|
level: z.ZodEnum<["log", "warn", "error"]>;
|
|
@@ -219,6 +222,7 @@ export declare const IncidentSampleSchema: z.ZodObject<{
|
|
|
219
222
|
line?: number | undefined;
|
|
220
223
|
col?: number | undefined;
|
|
221
224
|
fn?: string | undefined;
|
|
225
|
+
codeSnippet?: string | undefined;
|
|
222
226
|
}[];
|
|
223
227
|
consoleEntries: {
|
|
224
228
|
level: "error" | "log" | "warn";
|
|
@@ -278,6 +282,7 @@ export declare const IncidentSampleSchema: z.ZodObject<{
|
|
|
278
282
|
line?: number | undefined;
|
|
279
283
|
col?: number | undefined;
|
|
280
284
|
fn?: string | undefined;
|
|
285
|
+
codeSnippet?: string | undefined;
|
|
281
286
|
}[];
|
|
282
287
|
consoleEntries: {
|
|
283
288
|
level: "error" | "log" | "warn";
|
|
@@ -54,16 +54,19 @@ export declare const StackFrameSchema: z.ZodObject<{
|
|
|
54
54
|
line: z.ZodOptional<z.ZodNumber>;
|
|
55
55
|
col: z.ZodOptional<z.ZodNumber>;
|
|
56
56
|
fn: z.ZodOptional<z.ZodString>;
|
|
57
|
+
codeSnippet: z.ZodOptional<z.ZodString>;
|
|
57
58
|
}, "strip", z.ZodTypeAny, {
|
|
58
59
|
file: string;
|
|
59
60
|
line?: number | undefined;
|
|
60
61
|
col?: number | undefined;
|
|
61
62
|
fn?: string | undefined;
|
|
63
|
+
codeSnippet?: string | undefined;
|
|
62
64
|
}, {
|
|
63
65
|
file: string;
|
|
64
66
|
line?: number | undefined;
|
|
65
67
|
col?: number | undefined;
|
|
66
68
|
fn?: string | undefined;
|
|
69
|
+
codeSnippet?: string | undefined;
|
|
67
70
|
}>;
|
|
68
71
|
export declare const NetworkEntrySchema: z.ZodObject<{
|
|
69
72
|
method: z.ZodString;
|