@ued2345/octopus-util
Advanced tools
Comparing version 1.1.6-4 to 1.1.6-5
{ | ||
"name": "@ued2345/octopus-util", | ||
"version": "1.1.6-4", | ||
"version": "1.1.6-5", | ||
"description": "ued2345 utils", | ||
@@ -5,0 +5,0 @@ "main": "dist/octopus-util.min.js", |
@@ -26,2 +26,4 @@ ### 技术选型 | ||
│ │ └── jsBrige.ts // export jsbridge方法 | ||
│ ├── monitor | ||
│ │ └── catchError.ts // 错误收集上报 | ||
│ ├── vue-plugin | ||
@@ -74,3 +76,5 @@ │ │ │── directives // vue全局指令 | ||
getCookie: (name) => {}, | ||
delCookie: (name) => {} | ||
delCookie: (name) => {}, | ||
VuePlugin, // vue工具(内含insert方法) | ||
CatchError, // 错误收集 | ||
} | ||
@@ -115,2 +119,15 @@ ``` | ||
}) | ||
/** | ||
* 上报数据格式(data) | ||
* data = { | ||
* type: string; // 错误类型:ERROR_RUNTIME, ERROR_LOAD__TYPE(SCRIPT, LINK,IMG, AUDIO, VIDEO), ERROR_VUE, ERROR_REJECT | ||
* level: number; // error : 1 warning: 2 info: 3 | ||
* message: string; // 错误详情 | ||
* url: string; // 错误文件url或当前url | ||
* col?: number; | ||
* row?: number; | ||
* } | ||
**/ | ||
``` | ||
@@ -117,0 +134,0 @@ * 相关配置说明 |
@@ -12,3 +12,3 @@ /** | ||
* errorInfo = { | ||
* type: ERROR_RUNTIME, ERROR_LOAD, ERROR_TRY | ||
* type: ERROR_RUNTIME, ERROR_LOAD | ||
* level: error = 1, info = 3, warning = 2, | ||
@@ -19,4 +19,2 @@ * message: string // 错误详情包括stack | ||
* row: | ||
* stack: | ||
* page: 当前页面 | ||
* } | ||
@@ -33,3 +31,2 @@ * | ||
row?: number; | ||
page?: string; | ||
} | ||
@@ -65,7 +62,7 @@ | ||
enum LOAD_ERROR_TYPE { | ||
SCRIP = 'ERROR_SCRIPT', | ||
LINK = 'ERROR_STYLE', | ||
IMG = 'ERROR_IMAGE', | ||
AUDIO = 'ERROR_AUDIO', | ||
VIDEO = 'ERROR_VIDEO', | ||
SCRIP = 'ERROR_LOAD_SCRIPT', | ||
LINK = 'ERROR_LOAD_STYLE', | ||
IMG = 'ERROR_LOAD_IMAGE', | ||
AUDIO = 'ERROR_LOAD_AUDIO', | ||
VIDEO = 'ERROR_LOAD_VIDEO', | ||
} | ||
@@ -72,0 +69,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38086
209
721