@ohbug/browser 2.5.1 → 2.5.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/README.md CHANGED
@@ -14,7 +14,7 @@ pnpm instal @ohbug/browser
14
14
  ## Usage
15
15
 
16
16
  ```javascript
17
- import Ohbug from '@ohbug/browser'
17
+ import Ohbug from "@ohbug/browser";
18
18
 
19
- Ohbug.setup({ apiKey: 'YOUR_API_KEY' })
19
+ Ohbug.setup({ apiKey: "YOUR_API_KEY" });
20
20
  ```
package/dist/index.d.mts CHANGED
@@ -1,81 +1,90 @@
1
- import { OhbugClient, OhbugConfig, OhbugBaseDetail } from '@ohbug/types';
1
+ import { OhbugBaseDetail, OhbugClient, OhbugConfig } from "@ohbug/types";
2
2
 
3
+ //#region src/client.d.ts
3
4
  interface OhbugBrowserClient {
4
- __client: OhbugClient | null;
5
- setup: (config: OhbugConfig) => OhbugClient;
5
+ __client: OhbugClient | null;
6
+ setup: (config: OhbugConfig) => OhbugClient;
6
7
  }
7
8
  declare const BrowserClient: OhbugBrowserClient;
8
-
9
+ //#endregion
10
+ //#region src/handle/uncaughtErrorHandler.d.ts
9
11
  interface UncaughtErrorDetail extends OhbugBaseDetail {
10
- name: string;
11
- filename?: string;
12
- lineno?: number;
13
- colno?: number;
14
- stack: string;
12
+ name: string;
13
+ filename?: string;
14
+ lineno?: number;
15
+ colno?: number;
16
+ stack: string;
15
17
  }
16
-
18
+ //#endregion
19
+ //#region src/handle/resourceErrorHandler.d.ts
17
20
  interface ResourceErrorDetail extends OhbugBaseDetail {
18
- src: string;
19
- tagName: string;
20
- id: string;
21
- className: string;
22
- name: string;
23
- nodeType: number;
24
- selector: string;
21
+ src: string;
22
+ tagName: string;
23
+ id: string;
24
+ className: string;
25
+ name: string;
26
+ nodeType: number;
27
+ selector: string;
25
28
  }
26
-
29
+ //#endregion
30
+ //#region src/handle/unhandledrejectionErrorHandler.d.ts
27
31
  interface UnhandledrejectionErrorDetail extends OhbugBaseDetail {
28
- name: string;
29
- filename?: string;
30
- lineno?: number;
31
- colno?: number;
32
- stack: string;
32
+ name: string;
33
+ filename?: string;
34
+ lineno?: number;
35
+ colno?: number;
36
+ stack: string;
33
37
  }
34
-
38
+ //#endregion
39
+ //#region src/handle/unknownErrorHandler.d.ts
35
40
  interface UnknownErrorDetail extends OhbugBaseDetail {
36
- name: string;
37
- filename?: string;
38
- lineno?: number;
39
- colno?: number;
40
- stack: string;
41
+ name: string;
42
+ filename?: string;
43
+ lineno?: number;
44
+ colno?: number;
45
+ stack: string;
41
46
  }
42
-
47
+ //#endregion
48
+ //#region src/handle/ajaxErrorHandler.d.ts
43
49
  interface AjaxErrorDetail extends OhbugBaseDetail {
44
- req: {
45
- url: string;
46
- method: string;
47
- data?: string;
48
- params?: string;
49
- };
50
- res: {
51
- response: string;
52
- status: number;
53
- statusText?: string;
54
- };
50
+ req: {
51
+ url: string;
52
+ method: string;
53
+ data?: string;
54
+ params?: string;
55
+ };
56
+ res: {
57
+ response: string;
58
+ status: number;
59
+ statusText?: string;
60
+ };
55
61
  }
56
-
62
+ //#endregion
63
+ //#region src/handle/fetchErrorHandler.d.ts
57
64
  interface FetchErrorDetail extends OhbugBaseDetail {
58
- req: {
59
- url: string;
60
- method: string;
61
- data?: string;
62
- params?: string;
63
- };
64
- res: {
65
- status: number;
66
- statusText?: string;
67
- };
68
- }
69
-
70
- interface WebsocketErrorDetail extends OhbugBaseDetail {
65
+ req: {
71
66
  url: string;
67
+ method: string;
68
+ data?: string;
72
69
  params?: string;
73
- timeStamp: number;
74
- readyState: number;
75
- protocol: string;
76
- extensions: string;
77
- binaryType: string;
78
- bufferedAmount: number;
70
+ };
71
+ res: {
72
+ status: number;
73
+ statusText?: string;
74
+ };
79
75
  }
80
-
81
- export { AjaxErrorDetail, FetchErrorDetail, ResourceErrorDetail, UncaughtErrorDetail, UnhandledrejectionErrorDetail, UnknownErrorDetail, WebsocketErrorDetail, BrowserClient as default };
76
+ //#endregion
77
+ //#region src/handle/websocketErrorHandler.d.ts
78
+ interface WebsocketErrorDetail extends OhbugBaseDetail {
79
+ url: string;
80
+ params?: string;
81
+ timeStamp: number;
82
+ readyState: number;
83
+ protocol: string;
84
+ extensions: string;
85
+ binaryType: string;
86
+ bufferedAmount: number;
87
+ }
88
+ //#endregion
89
+ export { type AjaxErrorDetail, type FetchErrorDetail, type ResourceErrorDetail, type UncaughtErrorDetail, type UnhandledrejectionErrorDetail, type UnknownErrorDetail, type WebsocketErrorDetail, BrowserClient as default };
90
+ //# sourceMappingURL=index.d.mts.map