
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
@umengfe/mini-apm
Advanced tools
npm install @umengfe/mini-apm --save
ESM
import { init } from '@umengfe/mini-apm/wx.esm.js';
init({
appKey:'appkey',
pageFilter: { mode: 'ignore', rules: [] },
});
初始化方法,调用示意
import { init } from '@umengfe/mini-apm/wx.esm.js';
init({
appKey:'appkey',
pageFilter: {
mode: 'ignore',
rules: ['page/index'],
},
});
非必须参数,用于根据页面地址判断是否过滤日志,包含如下属性
| 属性 | 含义 | 默认 | 类型 |
|---|---|---|---|
| mode | 匹配模式,当值为 ignore,表示黑名单模式,命中规则的不上报 、当值为 match,表示白名单模式命中规则的不上报 | ignore | 枚举值 ignore|match |
| rules | 匹配规则集合,当类型为 string 时,表示包含当页面 url 包含该字符串时命中规则;当类型为 Funtion,该函数返回 true 表示命中规则,false 表示未命中规则;当类型为数组时,表示规则集合,规则之间为或的关系,只要任意一个规则命中,则规则集命中。 | [],该默认值表示黑名单为空,日志全部上报 | string | RegExp | Function | Array<string | RegExp | Function> |
FAQs
mini-apm
The npm package @umengfe/mini-apm receives a total of 15 weekly downloads. As such, @umengfe/mini-apm popularity was classified as not popular.
We found that @umengfe/mini-apm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.