
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@zhike/sa-hoc-wrapper
Advanced tools
基于神策的业务高阶组件 暂时只在题库项目中使用
npm i @zhike/sa-hoc-wrapper
import { saWrapper } from '@zhike/sa-hoc-wrapper';
@saWrapper({
eventName: 'ti-practice-ielts'
})
class extends Component{
getTrackTimerProperties(){
return {
name: '测试',
}
}
}
# 开启服务
npm start
# 编译打包
npm run build
# 更新版本号
npm version major|minor|patch
# 发布
npm publish --access public
配置参数
{
"eventName": "ti-practice-ielts",
"durationType": "min",
}
// 返回神策打点属性
getTrackTimerProperties(){
return {
name: '1',
age: '18',
}
}
默认会将当前包裹组件的 componentDidmount 和 compoentwillunmount 之间的时间 duration 自动上传
FAQs
We found that @zhike/sa-hoc-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.