sobey-monitor-sdk 1.1.13 → 1.1.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/index.d.ts CHANGED
@@ -163,7 +163,7 @@ interface BaseData {
163
163
  /**
164
164
  * 错误数据类型
165
165
  */
166
- type ErrorType = 'js_error' | 'promise_error' | 'resource_error' | 'http_error' | 'white_screen' | 'vue_error' | 'react_error';
166
+ type ErrorType = 'js_error' | 'promise_error' | 'resource_error' | 'http_error' | 'business_error' | 'white_screen' | 'vue_error' | 'react_error';
167
167
  /**
168
168
  * 错误数据
169
169
  */
package/dist/index.esm.js CHANGED
@@ -1092,7 +1092,7 @@ function reportHttpError(httpInfo, isBusinessError = false) {
1092
1092
  ? `Business Error ${httpInfo.method} ${httpInfo.url}`
1093
1093
  : `HTTP ${httpInfo.status} ${httpInfo.method} ${httpInfo.url}`;
1094
1094
  const errorData = {
1095
- type: 'http_error',
1095
+ type: isBusinessError ? 'business_error' : 'http_error',
1096
1096
  message,
1097
1097
  httpInfo,
1098
1098
  };