New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

collection-web-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collection-web-plugin

主要支持无痕埋点及异常收集

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

collection-web-plugin

此插件用于记录前端菜单点击、按钮点击、异常

collection-web-plugin

#Function 1.默认收集菜单、按钮(符合选择器的)、异常 (可以通过closeAutoTypes参数关闭)

2.默认收集Hash模式. (可以通过routerMode修改)

Usage

import { init, getDefaultParams, getBrowserMainInfo } from 'collection-web-plugin'
//初始化
const taskQueueIns = init({ projectName: '管理系统' ,  actionCssSelector: '.k-button'})
taskQueueIns.add({
  ...getDefaultParams('custom'),
  extra: JSON.stringify({ remark: '这是个自定义备注', ...getBrowserMainInfo() })
})
//1.collectionWebPlugin.umd.min.js.
//2初始化
const { init } = window.collectionWebPlugin || {}
//初始化
init &&  init({ projectName: '管理系统' ,  actionCssSelector: '.k-button'})

Notice

1.集成到项目切换路由需要把当前的菜单名设置到document.title

Keywords

无痕埋点

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts