jason-trace-log 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/jason-trace-log.esm.js +4 -4
- package/dist/jason-trace-log.esm.js.map +1 -1
- package/dist/jason-trace-log.umd.js +4 -5
- package/dist/jason-trace-log.umd.js.map +1 -1
- package/dist/lib/baseTrace.js +3 -3
- package/dist/lib/baseTrace.js.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/types/baseTrace.d.ts +2 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -330,7 +330,6 @@
|
|
|
330
330
|
// 浏览器
|
|
331
331
|
TraceClientTypes["BROWSER_H5"] = "browser";
|
|
332
332
|
})(TraceClientTypes || (TraceClientTypes = {}));
|
|
333
|
-
var BrowserType;
|
|
334
333
|
(function (BrowserType) {
|
|
335
334
|
// 手机端浏览器
|
|
336
335
|
BrowserType["MOBILE"] = "mobile";
|
|
@@ -340,7 +339,7 @@
|
|
|
340
339
|
BrowserType["WEBVIEW"] = "webview";
|
|
341
340
|
// 小程序
|
|
342
341
|
BrowserType["MINI_PROGRAM"] = "miniProgram";
|
|
343
|
-
})(BrowserType || (BrowserType = {}));
|
|
342
|
+
})(exports.BrowserType || (exports.BrowserType = {}));
|
|
344
343
|
var TraceLevelType;
|
|
345
344
|
(function (TraceLevelType) {
|
|
346
345
|
// 告警级别
|
|
@@ -798,7 +797,7 @@
|
|
|
798
797
|
//
|
|
799
798
|
this.userAgent = navigator.userAgent;
|
|
800
799
|
//
|
|
801
|
-
this.browserType = BrowserType.
|
|
800
|
+
this.browserType = exports.BrowserType.PC;
|
|
802
801
|
// fingerprintId
|
|
803
802
|
this.fpId = '';
|
|
804
803
|
// user id
|
|
@@ -815,7 +814,6 @@
|
|
|
815
814
|
};
|
|
816
815
|
// 存储错误资源数据
|
|
817
816
|
this.resources = [];
|
|
818
|
-
this.result = {};
|
|
819
817
|
// 记录用户行为
|
|
820
818
|
this.breadcrumb = [];
|
|
821
819
|
// 最大存储用户行为
|
|
@@ -833,7 +831,8 @@
|
|
|
833
831
|
this.dsn = options.dsn || '';
|
|
834
832
|
this.appId = options.appId;
|
|
835
833
|
this.debug = !!options.debug;
|
|
836
|
-
this.sendMethod = options.sendMethod || exports.SendMethod.
|
|
834
|
+
this.sendMethod = options.sendMethod || exports.SendMethod.LTS;
|
|
835
|
+
this.browserType = options.browserType || exports.BrowserType.PC;
|
|
837
836
|
this.ltsConfig = options.ltsConfig;
|
|
838
837
|
this.perfData = {
|
|
839
838
|
id: generateUniqueId$1()
|