jason-trace-log 1.1.2 → 1.1.4

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.
@@ -1032,7 +1032,10 @@ var BaseTrace = /** @class */ (function () {
1032
1032
  message: event.message,
1033
1033
  time: getTimestamp(),
1034
1034
  type: TraceDataTypes.RESOURCE,
1035
- stack: null
1035
+ stack: null,
1036
+ extra: {
1037
+ url: url
1038
+ }
1036
1039
  };
1037
1040
  this.resources.push(traceData);
1038
1041
  this.breadcrumb.push({
@@ -1088,7 +1091,7 @@ var BaseTrace = /** @class */ (function () {
1088
1091
  this.debug && console.log('onGlobalError');
1089
1092
  window.addEventListener('error', function (event) {
1090
1093
  _t.saveError(event);
1091
- }, true);
1094
+ });
1092
1095
  // 单独处理 Promise 异常
1093
1096
  window.addEventListener('unhandledrejection', function (event) {
1094
1097
  _this.debug && console.log('[unhandledrejection] event: ', event);
@@ -1268,5 +1271,5 @@ var traceLogSdk = {
1268
1271
  };
1269
1272
 
1270
1273
  export default traceLogSdk;
1271
- export { init, getInstance, SendMethod, BrowserType };
1274
+ export { init, getInstance, SendMethod, BaseTrace, BrowserType };
1272
1275
  //# sourceMappingURL=jason-trace-log.esm.js.map