@ohbug/browser 2.5.0 → 2.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.
- package/README.md +2 -2
- package/dist/index.d.mts +72 -63
- package/dist/index.mjs +603 -788
- package/dist/index.mjs.map +1 -0
- package/package.json +19 -20
- package/dist/index.d.ts +0 -81
- package/dist/index.js +0 -885
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,81 +1,90 @@
|
|
|
1
|
-
import { OhbugClient, OhbugConfig
|
|
1
|
+
import { OhbugBaseDetail, OhbugClient, OhbugConfig } from "@ohbug/types";
|
|
2
2
|
|
|
3
|
+
//#region src/client.d.ts
|
|
3
4
|
interface OhbugBrowserClient {
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
bufferedAmount: number;
|
|
70
|
+
};
|
|
71
|
+
res: {
|
|
72
|
+
status: number;
|
|
73
|
+
statusText?: string;
|
|
74
|
+
};
|
|
79
75
|
}
|
|
80
|
-
|
|
81
|
-
|
|
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
|