@ohbug/browser 1.0.18 → 2.0.0
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 -3
- package/dist/index.d.ts +70 -6
- package/dist/index.js +674 -0
- package/dist/index.mjs +653 -0
- package/package.json +20 -21
- package/src/capture/action/captureClick.ts +35 -0
- package/src/capture/action/captureUrlChange.ts +100 -0
- package/src/capture/console/captureConsole.ts +45 -0
- package/src/capture/index.ts +64 -0
- package/src/capture/network/captureAjaxError.ts +81 -0
- package/src/capture/network/captureFetchError.ts +69 -0
- package/src/capture/network/captureWebSocketError.ts +51 -0
- package/src/capture/script/captureUncaughtError.ts +20 -0
- package/src/capture/script/captureUnhandledrejectionError.ts +20 -0
- package/src/client.ts +46 -0
- package/src/destroy.ts +22 -0
- package/src/device.ts +19 -0
- package/src/dispatch/index.ts +2 -0
- package/src/dispatch/networkDispatcher.ts +29 -0
- package/src/dispatch/scriptDispatcher.ts +30 -0
- package/src/extension.ts +12 -0
- package/src/handle/ajaxErrorHandler.ts +26 -0
- package/src/handle/fetchErrorHandler.ts +25 -0
- package/src/handle/index.ts +16 -0
- package/src/handle/resourceErrorHandler.ts +41 -0
- package/src/handle/uncaughtErrorHandler.ts +37 -0
- package/src/handle/unhandledrejectionErrorHandler.ts +21 -0
- package/src/handle/unknownErrorHandler.ts +18 -0
- package/src/handle/websocketErrorHandler.ts +23 -0
- package/src/index.ts +13 -0
- package/src/notifier.ts +42 -0
- package/src/version.ts +1 -0
- package/dist/capture/action/captureClick.d.ts +0 -3
- package/dist/capture/action/captureClick.d.ts.map +0 -1
- package/dist/capture/action/captureUrlChange.d.ts +0 -3
- package/dist/capture/action/captureUrlChange.d.ts.map +0 -1
- package/dist/capture/console/captureConsole.d.ts +0 -3
- package/dist/capture/console/captureConsole.d.ts.map +0 -1
- package/dist/capture/index.d.ts +0 -10
- package/dist/capture/index.d.ts.map +0 -1
- package/dist/capture/network/captureAjaxError.d.ts +0 -6
- package/dist/capture/network/captureAjaxError.d.ts.map +0 -1
- package/dist/capture/network/captureFetchError.d.ts +0 -6
- package/dist/capture/network/captureFetchError.d.ts.map +0 -1
- package/dist/capture/network/captureWebSocketError.d.ts +0 -5
- package/dist/capture/network/captureWebSocketError.d.ts.map +0 -1
- package/dist/capture/script/captureUncaughtError.d.ts +0 -6
- package/dist/capture/script/captureUncaughtError.d.ts.map +0 -1
- package/dist/capture/script/captureUnhandledrejectionError.d.ts +0 -6
- package/dist/capture/script/captureUnhandledrejectionError.d.ts.map +0 -1
- package/dist/client.d.ts +0 -8
- package/dist/client.d.ts.map +0 -1
- package/dist/destroy.d.ts +0 -2
- package/dist/destroy.d.ts.map +0 -1
- package/dist/device.d.ts +0 -3
- package/dist/device.d.ts.map +0 -1
- package/dist/dispatch/index.d.ts +0 -3
- package/dist/dispatch/index.d.ts.map +0 -1
- package/dist/dispatch/networkDispatcher.d.ts +0 -2
- package/dist/dispatch/networkDispatcher.d.ts.map +0 -1
- package/dist/dispatch/scriptDispatcher.d.ts +0 -2
- package/dist/dispatch/scriptDispatcher.d.ts.map +0 -1
- package/dist/extension.d.ts +0 -2
- package/dist/extension.d.ts.map +0 -1
- package/dist/handle/ajaxErrorHandler.d.ts +0 -15
- package/dist/handle/ajaxErrorHandler.d.ts.map +0 -1
- package/dist/handle/fetchErrorHandler.d.ts +0 -14
- package/dist/handle/fetchErrorHandler.d.ts.map +0 -1
- package/dist/handle/index.d.ts +0 -15
- package/dist/handle/index.d.ts.map +0 -1
- package/dist/handle/resourceErrorHandler.d.ts +0 -13
- package/dist/handle/resourceErrorHandler.d.ts.map +0 -1
- package/dist/handle/uncaughtErrorHandler.d.ts +0 -10
- package/dist/handle/uncaughtErrorHandler.d.ts.map +0 -1
- package/dist/handle/unhandledrejectionErrorHandler.d.ts +0 -6
- package/dist/handle/unhandledrejectionErrorHandler.d.ts.map +0 -1
- package/dist/handle/unknownErrorHandler.d.ts +0 -5
- package/dist/handle/unknownErrorHandler.d.ts.map +0 -1
- package/dist/handle/websocketErrorHandler.d.ts +0 -12
- package/dist/handle/websocketErrorHandler.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/notifier.d.ts +0 -3
- package/dist/notifier.d.ts.map +0 -1
- package/dist/ohbug-browser.es.js +0 -1530
- package/dist/ohbug-browser.es.min.js +0 -58
- package/dist/ohbug-browser.umd.js +0 -1542
- package/dist/ohbug-browser.umd.min.js +0 -58
- package/dist/types.d.ts +0 -10
- package/dist/types.d.ts.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { getOhbugObject } from '@ohbug/utils'
|
|
2
|
+
import type { OhbugBaseDetail } from '@ohbug/types'
|
|
3
|
+
import { EventTypes } from '@ohbug/core'
|
|
4
|
+
|
|
5
|
+
export interface FetchErrorDetail extends OhbugBaseDetail {
|
|
6
|
+
req: {
|
|
7
|
+
url: string
|
|
8
|
+
method: string
|
|
9
|
+
data: string
|
|
10
|
+
}
|
|
11
|
+
res: {
|
|
12
|
+
status: number
|
|
13
|
+
statusText: string
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function fetchErrorHandler(detail: FetchErrorDetail) {
|
|
18
|
+
const { client } = getOhbugObject<Window>()
|
|
19
|
+
const event = client.createEvent<FetchErrorDetail>({
|
|
20
|
+
category: 'error',
|
|
21
|
+
type: EventTypes.FETCH_ERROR,
|
|
22
|
+
detail,
|
|
23
|
+
})
|
|
24
|
+
client.notify(event)
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// script
|
|
2
|
+
export { uncaughtErrorHandler } from './uncaughtErrorHandler'
|
|
3
|
+
export { resourceErrorHandler } from './resourceErrorHandler'
|
|
4
|
+
export { unhandledrejectionErrorHandler } from './unhandledrejectionErrorHandler'
|
|
5
|
+
export { unknownErrorHandler } from './unknownErrorHandler'
|
|
6
|
+
export type { UncaughtErrorDetail } from './uncaughtErrorHandler'
|
|
7
|
+
export type { ResourceErrorDetail } from './resourceErrorHandler'
|
|
8
|
+
export type { UnhandledrejectionErrorDetail } from './unhandledrejectionErrorHandler'
|
|
9
|
+
export type { UnknownErrorDetail } from './unknownErrorHandler'
|
|
10
|
+
// network
|
|
11
|
+
export { ajaxErrorHandler } from './ajaxErrorHandler'
|
|
12
|
+
export { fetchErrorHandler } from './fetchErrorHandler'
|
|
13
|
+
export { websocketErrorHandler } from './websocketErrorHandler'
|
|
14
|
+
export type { AjaxErrorDetail } from './ajaxErrorHandler'
|
|
15
|
+
export type { FetchErrorDetail } from './fetchErrorHandler'
|
|
16
|
+
export type { WebsocketErrorDetail } from './websocketErrorHandler'
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getOhbugObject, getSelector } from '@ohbug/utils'
|
|
2
|
+
import type { OhbugBaseDetail } from '@ohbug/types'
|
|
3
|
+
import { EventTypes } from '@ohbug/core'
|
|
4
|
+
|
|
5
|
+
export interface ResourceErrorDetail extends OhbugBaseDetail {
|
|
6
|
+
outerHTML: string
|
|
7
|
+
src: string
|
|
8
|
+
tagName: string
|
|
9
|
+
id: string
|
|
10
|
+
className: string
|
|
11
|
+
name: string
|
|
12
|
+
// https://developer.mozilla.org/zh-CN/docs/Web/API/Node/nodeType
|
|
13
|
+
nodeType: number
|
|
14
|
+
selector: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function resourceErrorHandler(error: ErrorEvent) {
|
|
18
|
+
const target = (error.target || error.srcElement) as any
|
|
19
|
+
const { outerHTML } = target
|
|
20
|
+
|
|
21
|
+
const selector = getSelector(error)
|
|
22
|
+
|
|
23
|
+
const detail: ResourceErrorDetail = {
|
|
24
|
+
outerHTML,
|
|
25
|
+
src: target && target.src,
|
|
26
|
+
tagName: target && target.tagName,
|
|
27
|
+
id: target && target.id,
|
|
28
|
+
className: target && target.className,
|
|
29
|
+
name: target && target.name,
|
|
30
|
+
// https://developer.mozilla.org/zh-CN/docs/Web/API/Node/nodeType
|
|
31
|
+
nodeType: target && target.nodeType,
|
|
32
|
+
selector,
|
|
33
|
+
}
|
|
34
|
+
const { client } = getOhbugObject<Window>()
|
|
35
|
+
const event = client.createEvent<ResourceErrorDetail>({
|
|
36
|
+
category: 'error',
|
|
37
|
+
type: EventTypes.RESOURCE_ERROR,
|
|
38
|
+
detail,
|
|
39
|
+
})
|
|
40
|
+
client.notify(event)
|
|
41
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getOhbugObject } from '@ohbug/utils'
|
|
2
|
+
import type { OhbugBaseDetail } from '@ohbug/types'
|
|
3
|
+
import { EventTypes } from '@ohbug/core'
|
|
4
|
+
|
|
5
|
+
export interface UncaughtErrorDetail extends OhbugBaseDetail {
|
|
6
|
+
name: string
|
|
7
|
+
filename: string
|
|
8
|
+
lineno: number
|
|
9
|
+
colno: number
|
|
10
|
+
stack: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function uncaughtErrorHandler(error: ErrorEvent) {
|
|
14
|
+
const {
|
|
15
|
+
message,
|
|
16
|
+
filename,
|
|
17
|
+
lineno,
|
|
18
|
+
colno,
|
|
19
|
+
error: { stack, name },
|
|
20
|
+
} = error
|
|
21
|
+
|
|
22
|
+
const detail: UncaughtErrorDetail = {
|
|
23
|
+
name,
|
|
24
|
+
message,
|
|
25
|
+
filename,
|
|
26
|
+
lineno,
|
|
27
|
+
colno,
|
|
28
|
+
stack,
|
|
29
|
+
}
|
|
30
|
+
const { client } = getOhbugObject<Window>()
|
|
31
|
+
const event = client.createEvent<UncaughtErrorDetail>({
|
|
32
|
+
category: 'error',
|
|
33
|
+
type: EventTypes.UNCAUGHT_ERROR,
|
|
34
|
+
detail,
|
|
35
|
+
})
|
|
36
|
+
client.notify(event)
|
|
37
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getOhbugObject } from '@ohbug/utils'
|
|
2
|
+
import type { OhbugBaseDetail } from '@ohbug/types'
|
|
3
|
+
import { EventTypes } from '@ohbug/core'
|
|
4
|
+
|
|
5
|
+
export interface UnhandledrejectionErrorDetail extends OhbugBaseDetail {
|
|
6
|
+
stack: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function unhandledrejectionErrorHandler(error: PromiseRejectionEvent) {
|
|
10
|
+
const detail: UnhandledrejectionErrorDetail = {
|
|
11
|
+
message: error.reason.message || error.reason,
|
|
12
|
+
stack: error.reason.stack,
|
|
13
|
+
}
|
|
14
|
+
const { client } = getOhbugObject<Window>()
|
|
15
|
+
const event = client.createEvent<UnhandledrejectionErrorDetail>({
|
|
16
|
+
category: 'error',
|
|
17
|
+
type: EventTypes.UNHANDLEDREJECTION_ERROR,
|
|
18
|
+
detail,
|
|
19
|
+
})
|
|
20
|
+
client.notify(event)
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getOhbugObject } from '@ohbug/utils'
|
|
2
|
+
import type { OhbugBaseDetail } from '@ohbug/types'
|
|
3
|
+
import { EventTypes } from '@ohbug/core'
|
|
4
|
+
|
|
5
|
+
export interface UnknownErrorDetail extends OhbugBaseDetail {}
|
|
6
|
+
|
|
7
|
+
export function unknownErrorHandler(error: any) {
|
|
8
|
+
const detail: UnknownErrorDetail = error.message
|
|
9
|
+
? error
|
|
10
|
+
: { message: error }
|
|
11
|
+
const { client } = getOhbugObject<Window>()
|
|
12
|
+
const event = client.createEvent<UnknownErrorDetail>({
|
|
13
|
+
category: 'error',
|
|
14
|
+
type: EventTypes.UNKNOWN_ERROR,
|
|
15
|
+
detail,
|
|
16
|
+
})
|
|
17
|
+
client.notify(event)
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { getOhbugObject } from '@ohbug/utils'
|
|
2
|
+
import type { OhbugBaseDetail } from '@ohbug/types'
|
|
3
|
+
import { EventTypes } from '@ohbug/core'
|
|
4
|
+
|
|
5
|
+
export interface WebsocketErrorDetail extends OhbugBaseDetail {
|
|
6
|
+
url: string
|
|
7
|
+
timeStamp: number
|
|
8
|
+
readyState: number
|
|
9
|
+
protocol: string
|
|
10
|
+
extensions: string
|
|
11
|
+
binaryType: string
|
|
12
|
+
bufferedAmount: number
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function websocketErrorHandler(detail: WebsocketErrorDetail) {
|
|
16
|
+
const { client } = getOhbugObject<Window>()
|
|
17
|
+
const event = client.createEvent<WebsocketErrorDetail>({
|
|
18
|
+
category: 'error',
|
|
19
|
+
type: EventTypes.WEBSOCKET_ERROR,
|
|
20
|
+
detail,
|
|
21
|
+
})
|
|
22
|
+
client.notify(event)
|
|
23
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BrowserClient } from './client'
|
|
2
|
+
|
|
3
|
+
export type {
|
|
4
|
+
UncaughtErrorDetail,
|
|
5
|
+
ResourceErrorDetail,
|
|
6
|
+
UnhandledrejectionErrorDetail,
|
|
7
|
+
UnknownErrorDetail,
|
|
8
|
+
AjaxErrorDetail,
|
|
9
|
+
FetchErrorDetail,
|
|
10
|
+
WebsocketErrorDetail,
|
|
11
|
+
} from './handle'
|
|
12
|
+
|
|
13
|
+
export default BrowserClient
|
package/src/notifier.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { OhbugEventWithMethods } from '@ohbug/types'
|
|
2
|
+
|
|
3
|
+
import { getOhbugObject } from '@ohbug/utils'
|
|
4
|
+
|
|
5
|
+
const getCircularReplacer = () => {
|
|
6
|
+
const seen = new WeakSet()
|
|
7
|
+
return (_: any, value: any) => {
|
|
8
|
+
if (typeof value === 'object' && value !== null) {
|
|
9
|
+
if (seen.has(value))
|
|
10
|
+
return
|
|
11
|
+
|
|
12
|
+
seen.add(value)
|
|
13
|
+
}
|
|
14
|
+
return value
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function notifier<D>(event: OhbugEventWithMethods<D>) {
|
|
19
|
+
const { client } = getOhbugObject<Window>()
|
|
20
|
+
const url = client.__config.endpoint!
|
|
21
|
+
|
|
22
|
+
return new Promise((resolve, reject) => {
|
|
23
|
+
const json = JSON.stringify(event, getCircularReplacer())
|
|
24
|
+
if (navigator.sendBeacon) {
|
|
25
|
+
const result = navigator.sendBeacon(url, json)
|
|
26
|
+
resolve(result)
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const xhr = new XMLHttpRequest()
|
|
30
|
+
xhr.onreadystatechange = () => {
|
|
31
|
+
if (xhr.readyState === XMLHttpRequest.DONE) {
|
|
32
|
+
if (xhr.status >= 200 && xhr.status < 300)
|
|
33
|
+
return resolve(xhr.response)
|
|
34
|
+
reject(xhr)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
xhr.open('POST', url)
|
|
38
|
+
xhr.setRequestHeader('Content-Type', 'application/json;charset=UTF-8')
|
|
39
|
+
xhr.send(json)
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
}
|
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const version = '__VERSION__'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureClick.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/action/captureClick.ts"],"names":[],"mappings":"AA4BA,wBAAgB,YAAY,SAE3B;AAED,wBAAgB,kBAAkB,SAEjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureUrlChange.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/action/captureUrlChange.ts"],"names":[],"mappings":"AAwFA,wBAAgB,gBAAgB,SAK/B;AAED,wBAAgB,sBAAsB,SAOrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureConsole.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/console/captureConsole.ts"],"names":[],"mappings":"AAoBA,wBAAgB,cAAc,SAkB7B;AAED,wBAAgB,oBAAoB,SAMnC"}
|
package/dist/capture/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { captureConsole, removeCaptureConsole } from './console/captureConsole';
|
|
2
|
-
export declare function captureAction(): void;
|
|
3
|
-
export declare function removeCaptureAction(): void;
|
|
4
|
-
export { captureConsole, removeCaptureConsole };
|
|
5
|
-
export declare function captureNetwork(): void;
|
|
6
|
-
export declare function removeCaptureNetwork(): void;
|
|
7
|
-
export declare function captureScript(): void;
|
|
8
|
-
export declare function removeCaptureScript(): void;
|
|
9
|
-
export declare function handleCapture(): void;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/capture/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAmB/E,wBAAgB,aAAa,SAG5B;AACD,wBAAgB,mBAAmB,SAGlC;AAED,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,CAAA;AAE/C,wBAAgB,cAAc,SAI7B;AACD,wBAAgB,oBAAoB,SAGnC;AAED,wBAAgB,aAAa,SAU5B;AACD,wBAAgB,mBAAmB,SAGlC;AAED,wBAAgB,aAAa,SAK5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureAjaxError.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/network/captureAjaxError.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,wBAAgB,gBAAgB,SA2D/B;AAED,wBAAgB,sBAAsB,SAMrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureFetchError.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/network/captureFetchError.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,wBAAgB,iBAAiB,SAyChC;AAED,wBAAgB,uBAAuB,SAItC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureWebSocketError.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/network/captureWebSocketError.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,wBAAgB,qBAAqB,SA0CpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureUncaughtError.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/script/captureUncaughtError.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,wBAAgB,oBAAoB,SAEnC;AAED,wBAAgB,0BAA0B,SAEzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captureUnhandledrejectionError.d.ts","sourceRoot":"","sources":["../../../../../packages/ohbug-browser/src/capture/script/captureUnhandledrejectionError.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,wBAAgB,8BAA8B,SAE7C;AAED,wBAAgB,oCAAoC,SAEnD"}
|
package/dist/client.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { OhbugClient, OhbugConfig } from '@ohbug/types';
|
|
2
|
-
interface OhbugBrowserClient {
|
|
3
|
-
_client: OhbugClient | null;
|
|
4
|
-
init: (config: OhbugConfig) => OhbugClient;
|
|
5
|
-
}
|
|
6
|
-
export declare const BrowserClient: OhbugBrowserClient;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY,MAAM,cAAc,CAAA;AAUtE,UAAU,kBAAkB;IAC1B,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;IAC3B,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,CAAA;CAC3C;AAsBD,eAAO,MAAM,aAAa,EAAE,kBAW3B,CAAA"}
|
package/dist/destroy.d.ts
DELETED
package/dist/destroy.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"destroy.d.ts","sourceRoot":"","sources":["../src/destroy.ts"],"names":[],"mappings":"AAUA,wBAAgB,aAAa,SAW5B"}
|
package/dist/device.d.ts
DELETED
package/dist/device.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,cAAc,CAAA;AAE/D,eAAO,MAAM,SAAS,EAAE,cAgBvB,CAAA"}
|
package/dist/dispatch/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/dispatch/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"networkDispatcher.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/dispatch/networkDispatcher.ts"],"names":[],"mappings":"AAUA,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,QAkB1D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scriptDispatcher.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/dispatch/scriptDispatcher.ts"],"names":[],"mappings":"AAOA,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,UAAU,GAAG,qBAAqB,QAoBrE"}
|
package/dist/extension.d.ts
DELETED
package/dist/extension.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,4CAMpB,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { OhbugBaseDetail } from '@ohbug/types';
|
|
2
|
-
export interface AjaxErrorDetail extends OhbugBaseDetail {
|
|
3
|
-
req: {
|
|
4
|
-
url: string;
|
|
5
|
-
method: string;
|
|
6
|
-
data: string | {};
|
|
7
|
-
};
|
|
8
|
-
res: {
|
|
9
|
-
response: string;
|
|
10
|
-
status: number;
|
|
11
|
-
statusText: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare function ajaxErrorHandler(detail: AjaxErrorDetail): void;
|
|
15
|
-
//# sourceMappingURL=ajaxErrorHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ajaxErrorHandler.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/ajaxErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,GAAG,EAAE;QACH,GAAG,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,GAAG,EAAE,CAAA;KAClB,CAAA;IACD,GAAG,EAAE;QACH,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,eAAe,QAQvD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { OhbugBaseDetail } from '@ohbug/types';
|
|
2
|
-
export interface FetchErrorDetail extends OhbugBaseDetail {
|
|
3
|
-
req: {
|
|
4
|
-
url: string;
|
|
5
|
-
method: string;
|
|
6
|
-
data: string;
|
|
7
|
-
};
|
|
8
|
-
res: {
|
|
9
|
-
status: number;
|
|
10
|
-
statusText: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export declare function fetchErrorHandler(detail: FetchErrorDetail): void;
|
|
14
|
-
//# sourceMappingURL=fetchErrorHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchErrorHandler.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/fetchErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,GAAG,EAAE;QACH,GAAG,EAAE,MAAM,CAAA;QACX,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,GAAG,EAAE;QACH,MAAM,EAAE,MAAM,CAAA;QACd,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,QAQzD"}
|
package/dist/handle/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { uncaughtErrorHandler } from './uncaughtErrorHandler';
|
|
2
|
-
export { resourceErrorHandler } from './resourceErrorHandler';
|
|
3
|
-
export { unhandledrejectionErrorHandler } from './unhandledrejectionErrorHandler';
|
|
4
|
-
export { unknownErrorHandler } from './unknownErrorHandler';
|
|
5
|
-
export type { UncaughtErrorDetail } from './uncaughtErrorHandler';
|
|
6
|
-
export type { ResourceErrorDetail } from './resourceErrorHandler';
|
|
7
|
-
export type { UnhandledrejectionErrorDetail } from './unhandledrejectionErrorHandler';
|
|
8
|
-
export type { UnknownErrorDetail } from './unknownErrorHandler';
|
|
9
|
-
export { ajaxErrorHandler } from './ajaxErrorHandler';
|
|
10
|
-
export { fetchErrorHandler } from './fetchErrorHandler';
|
|
11
|
-
export { websocketErrorHandler } from './websocketErrorHandler';
|
|
12
|
-
export type { AjaxErrorDetail } from './ajaxErrorHandler';
|
|
13
|
-
export type { FetchErrorDetail } from './fetchErrorHandler';
|
|
14
|
-
export type { WebsocketErrorDetail } from './websocketErrorHandler';
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,YAAY,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAA;AACrF,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { OhbugBaseDetail } from '@ohbug/types';
|
|
2
|
-
export interface ResourceErrorDetail extends OhbugBaseDetail {
|
|
3
|
-
outerHTML: string;
|
|
4
|
-
src: string;
|
|
5
|
-
tagName: string;
|
|
6
|
-
id: string;
|
|
7
|
-
className: string;
|
|
8
|
-
name: string;
|
|
9
|
-
nodeType: number;
|
|
10
|
-
selector: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function resourceErrorHandler(error: ErrorEvent): void;
|
|
13
|
-
//# sourceMappingURL=resourceErrorHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resourceErrorHandler.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/resourceErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IAEZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,QAwBrD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { OhbugBaseDetail } from '@ohbug/types';
|
|
2
|
-
export interface UncaughtErrorDetail extends OhbugBaseDetail {
|
|
3
|
-
name: string;
|
|
4
|
-
filename: string;
|
|
5
|
-
lineno: number;
|
|
6
|
-
colno: number;
|
|
7
|
-
stack: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function uncaughtErrorHandler(error: ErrorEvent): void;
|
|
10
|
-
//# sourceMappingURL=uncaughtErrorHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uncaughtErrorHandler.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/uncaughtErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,QAwBrD"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { OhbugBaseDetail } from '@ohbug/types';
|
|
2
|
-
export interface UnhandledrejectionErrorDetail extends OhbugBaseDetail {
|
|
3
|
-
stack: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function unhandledrejectionErrorHandler(error: PromiseRejectionEvent): void;
|
|
6
|
-
//# sourceMappingURL=unhandledrejectionErrorHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unhandledrejectionErrorHandler.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/unhandledrejectionErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,MAAM,WAAW,6BAA8B,SAAQ,eAAe;IACpE,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,qBAAqB,QAY1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unknownErrorHandler.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/unknownErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,MAAM,WAAW,kBAAmB,SAAQ,eAAe;CAAG;AAE9D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,QAa7C"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { OhbugBaseDetail } from '@ohbug/types';
|
|
2
|
-
export interface WebsocketErrorDetail extends OhbugBaseDetail {
|
|
3
|
-
url: string;
|
|
4
|
-
timeStamp: number;
|
|
5
|
-
readyState: number;
|
|
6
|
-
protocol: string;
|
|
7
|
-
extensions: string;
|
|
8
|
-
binaryType: string;
|
|
9
|
-
bufferedAmount: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function websocketErrorHandler(detail: WebsocketErrorDetail): void;
|
|
12
|
-
//# sourceMappingURL=websocketErrorHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"websocketErrorHandler.d.ts","sourceRoot":"","sources":["../../../../packages/ohbug-browser/src/handle/websocketErrorHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAMnD,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,oBAAoB,QAQjE"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAEhC,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,KAAK,EAAE,CAAA;AACzC,eAAe,aAAa,CAAA"}
|
package/dist/notifier.d.ts
DELETED
package/dist/notifier.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["../src/notifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAIzD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,oBAuB1D"}
|