@hawk.so/types 0.1.32-rc.4 → 0.1.32-rc.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawk.so/types",
3
- "version": "0.1.32-rc.4",
3
+ "version": "0.1.32-rc.5",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -6,18 +6,19 @@ import type {
6
6
  PhpAddons,
7
7
  NodeJSAddons,
8
8
  GoAddons,
9
- PythonAddons
9
+ PythonAddons,
10
+ DefaultAddons
10
11
  } from '../base/event/addons';
11
12
 
12
13
  /**
13
14
  * Type that represents all supported Catcher message types for events
14
15
  */
15
- type ErrorsCatcherType = 'errors/javascript' | 'errors/php' | 'errors/nodejs' | 'errors/go' | 'errors/python';
16
+ export type ErrorsCatcherType = 'errors/javascript' | 'errors/php' | 'errors/nodejs' | 'errors/go' | 'errors/python' | 'errors/default';
16
17
 
17
18
  /**
18
19
  * Type that represents all supported Catcher message types for performance
19
20
  */
20
- type MetricsCatcherType = 'performance';
21
+ export type MetricsCatcherType = 'performance';
21
22
 
22
23
  /**
23
24
  * Union type that represents all supported Catcher message types
@@ -33,6 +34,7 @@ export type CatcherMessagePayload<Type extends CatcherMessageType> = {
33
34
  'errors/nodejs': EventData<NodeJSAddons>;
34
35
  'errors/go': EventData<GoAddons>;
35
36
  'errors/python': EventData<PythonAddons>;
37
+ 'errors/default': EventData<DefaultAddons>;
36
38
  'performance': PerformanceData;
37
39
  }[Type];
38
40