Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ued2345/octopus-util

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ued2345/octopus-util - npm Package Compare versions

Comparing version 1.1.6-4 to 1.1.6-5

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc