@hawk.so/types 0.5.0 → 0.5.2
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,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsonNode } from '../../utils/index.ts';
|
|
2
2
|
/**
|
|
3
3
|
* Breadcrumb severity level
|
|
4
4
|
*/
|
|
@@ -52,5 +52,5 @@ export interface Breadcrumb {
|
|
|
52
52
|
/**
|
|
53
53
|
* Arbitrary key-value data associated with the breadcrumb
|
|
54
54
|
*/
|
|
55
|
-
data?: Record<string,
|
|
55
|
+
data?: Record<string, JsonNode>;
|
|
56
56
|
}
|
|
@@ -2,6 +2,7 @@ import type { BacktraceFrame } from './backtraceFrame.ts';
|
|
|
2
2
|
import type { AffectedUser } from './affectedUser.ts';
|
|
3
3
|
import type { EventAddons } from './addons/index.ts';
|
|
4
4
|
import type { Json } from '../../utils/index.ts';
|
|
5
|
+
import type { Breadcrumb } from './breadcrumb.ts';
|
|
5
6
|
/**
|
|
6
7
|
* Information about event (Payload of the event)
|
|
7
8
|
* That object will be sent as 'payload' from the Collector to the workers
|
|
@@ -20,6 +21,10 @@ export interface EventData<Addons extends EventAddons> {
|
|
|
20
21
|
* From the latest call to the earliest
|
|
21
22
|
*/
|
|
22
23
|
backtrace?: BacktraceFrame[];
|
|
24
|
+
/**
|
|
25
|
+
* Breadcrumbs - events that occurred before the error
|
|
26
|
+
*/
|
|
27
|
+
breadcrumbs?: Breadcrumb[];
|
|
23
28
|
/**
|
|
24
29
|
* Catcher-specific information
|
|
25
30
|
*/
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsonNode } from '../../utils/index.ts';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Breadcrumb severity level
|
|
@@ -66,5 +66,5 @@ export interface Breadcrumb {
|
|
|
66
66
|
/**
|
|
67
67
|
* Arbitrary key-value data associated with the breadcrumb
|
|
68
68
|
*/
|
|
69
|
-
data?: Record<string,
|
|
69
|
+
data?: Record<string, JsonNode>;
|
|
70
70
|
}
|
package/src/base/event/event.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { BacktraceFrame } from './backtraceFrame.ts';
|
|
|
2
2
|
import type { AffectedUser } from './affectedUser.ts';
|
|
3
3
|
import type { EventAddons } from './addons/index.ts';
|
|
4
4
|
import type { Json } from '../../utils/index.ts';
|
|
5
|
+
import type { Breadcrumb } from './breadcrumb.ts';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Information about event (Payload of the event)
|
|
@@ -24,6 +25,11 @@ export interface EventData<Addons extends EventAddons> {
|
|
|
24
25
|
*/
|
|
25
26
|
backtrace?: BacktraceFrame[];
|
|
26
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Breadcrumbs - events that occurred before the error
|
|
30
|
+
*/
|
|
31
|
+
breadcrumbs?: Breadcrumb[];
|
|
32
|
+
|
|
27
33
|
/**
|
|
28
34
|
* Catcher-specific information
|
|
29
35
|
*/
|