@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 { Json } from '../../utils/index.ts';
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, Json>;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawk.so/types",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -1,4 +1,4 @@
1
- import type { Json } from '../../utils/index.ts';
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, Json>;
69
+ data?: Record<string, JsonNode>;
70
70
  }
@@ -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
  */