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.
@@ -793,7 +793,7 @@ var BaseTrace = /** @class */ (function () {
793
793
  //
794
794
  this.userAgent = navigator.userAgent;
795
795
  //
796
- this.browserType = BrowserType.MOBILE;
796
+ this.browserType = BrowserType.PC;
797
797
  // fingerprintId
798
798
  this.fpId = '';
799
799
  // user id
@@ -810,7 +810,6 @@ var BaseTrace = /** @class */ (function () {
810
810
  };
811
811
  // 存储错误资源数据
812
812
  this.resources = [];
813
- this.result = {};
814
813
  // 记录用户行为
815
814
  this.breadcrumb = [];
816
815
  // 最大存储用户行为
@@ -828,7 +827,8 @@ var BaseTrace = /** @class */ (function () {
828
827
  this.dsn = options.dsn || '';
829
828
  this.appId = options.appId;
830
829
  this.debug = !!options.debug;
831
- this.sendMethod = options.sendMethod || SendMethod.IMG;
830
+ this.sendMethod = options.sendMethod || SendMethod.LTS;
831
+ this.browserType = options.browserType || BrowserType.PC;
832
832
  this.ltsConfig = options.ltsConfig;
833
833
  this.perfData = {
834
834
  id: generateUniqueId$1()
@@ -1246,5 +1246,5 @@ var traceLogAPI = {
1246
1246
  };
1247
1247
 
1248
1248
  export default traceLogAPI;
1249
- export { init, getInstance, SendMethod, BaseTrace };
1249
+ export { init, getInstance, SendMethod, BaseTrace, BrowserType };
1250
1250
  //# sourceMappingURL=jason-trace-log.esm.js.map