@ohbug/core 2.0.0 → 2.0.3

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/src/types.ts DELETED
@@ -1,27 +0,0 @@
1
- export const enum EventTypes {
2
- // error
3
- UNCAUGHT_ERROR = 'uncaughtError', // 意料之外的错误
4
- RESOURCE_ERROR = 'resourceError', // 资源加载错误
5
- UNHANDLEDREJECTION_ERROR = 'unhandledrejectionError', // unhandledrejection 错误,可能包含 Promise, react render 等错误
6
- AJAX_ERROR = 'ajaxError', // ajax 错误
7
- FETCH_ERROR = 'fetchError', // fetch 错误
8
- WEBSOCKET_ERROR = 'websocketError', // websocket 错误
9
- UNKNOWN_ERROR = 'unknownError', // 未知错误
10
- // message
11
- MESSAGE = 'message', // 主动上报的信息
12
- // feedback
13
- FEEDBACK = 'feedback', // 反馈
14
- // view
15
- VIEW = 'view', // 用于计算 PV/UV
16
- // react
17
- REACT = 'react',
18
- // vue
19
- VUE = 'vue',
20
- // angular
21
- ANGULAR = 'angular',
22
- // miniapp
23
- MINIAPP_ERROR = 'miniappError',
24
- MINIAPP_UNHANDLEDREJECTION_ERROR = 'miniappUnhandledrejectionError',
25
- MINIAPP_PAGENOTFOUND_ERROR = 'miniappPagenotfoundError',
26
- MINIAPP_MEMORYWARNING_ERROR = 'miniappMemorywarningError',
27
- }