chengyi-frondend-monitor-sdk 1.0.13 → 1.0.14
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/dist/errorHandler.d.ts +2 -1
- package/dist/index.cjs.js +31 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.esm.js +31 -19
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/networkMonitor.d.ts +2 -1
- package/dist/resourceMonitor.d.ts +2 -1
- package/dist/sender.d.ts +5 -1
- package/package.json +1 -1
package/dist/sender.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HeaderInfo } from './index';
|
|
1
2
|
/**
|
|
2
3
|
* 发送错误数据到指定URL
|
|
3
4
|
*
|
|
@@ -8,4 +9,7 @@
|
|
|
8
9
|
* 优先使用navigator.sendBeacon方法发送数据,如果浏览器不支持则回退到fetch API。
|
|
9
10
|
* sendBeacon方法在页面卸载时也能可靠地发送数据。
|
|
10
11
|
*/
|
|
11
|
-
export declare const sendErrorData: (errorData: Record<string, any>,
|
|
12
|
+
export declare const sendErrorData: (errorData: Record<string, any>, config: {
|
|
13
|
+
reportUrl: string;
|
|
14
|
+
headers: HeaderInfo;
|
|
15
|
+
}, immediate?: boolean) => void;
|