Skip to content

Commit 3eb1d3b

Browse files
committed
docs: adjust md
1 parent f1cb78a commit 3eb1d3b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default wv
7272
## 自定义指标的收集
7373

7474
在真实的业务中,我们收集的指标经常会包含一些跟业务相关的指标,譬如,自定义首屏时间时,需要等页面上首屏接口请求完成,页面图片全部渲染完成才算首屏渲染完成的时间。
75-
面对这样的业务场景,@mito/web-performance也是具备自定义的能力。 在初始化的时候,增加customPaintMetrics属性,然后就可以调用wv.customCompletedPaint方法来自定义页面渲染的完成时间。
75+
面对这样的业务场景,@zyf2e/monitor-web-performance也是具备自定义的能力。 在初始化的时候,增加customPaintMetrics属性,然后就可以调用wv.customCompletedPaint方法来自定义页面渲染的完成时间。
7676

7777
```javascript
7878
// performance.js
@@ -128,7 +128,7 @@ const home = () => {
128128

129129
## SDK的兼容性
130130

131-
因为@mito/web-performance 中使用到了PerformanceObserver对象,所以在safari浏览器中不支持FP、FCP、LCP、FID指标的收集。
131+
因为@zyf2e/monitor-web-performance 中使用到了PerformanceObserver对象,所以在safari浏览器中不支持FP、FCP、LCP、FID指标的收集。
132132

133133
## API文档
134134
https://github.com/clouDr-f2e/mitojs/tree/dev/packages/web-performance

docs/wx-mini-performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const wxPerformance = new MITO.WxPerformance({
6262

6363
## 兼容性
6464

65-
因为@mito/mini-performance 中使用到了wx.getPerformance()。所以小程序基础库 2.11.0 开始支持,低版本需做兼容处理。
65+
因为@zyf2e/monitor-mini-performance 中使用到了wx.getPerformance()。所以小程序基础库 2.11.0 开始支持,低版本需做兼容处理。
6666

6767
## API文档
6868
https://github.com/clouDr-f2e/mitojs/tree/dev/packages/mini-performance

packages/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @zyf2e/monitor-core
22

3-
`@mitojs`提供一系列的核心类与函数
3+
`@zyf2e/monitor`提供一系列的核心类与函数
44

55
### Breadcrumb
66
收集用户行为

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const name = path.basename(packageDir)
2727
// const pathResolve = (p) => path.resolve(packageDir, p)
2828

2929
// major name
30-
const M = '@mitojs'
30+
const M = '@zyf2e/monitor'
3131
const packageDirs = fs.readdirSync(packagesDir)
3232
const paths = {}
3333
packageDirs.forEach((dir) => {
@@ -40,7 +40,7 @@ packageDirs.forEach((dir) => {
4040
const common = {
4141
input: `${packageDir}/src/index.ts`,
4242
output: {
43-
banner: `/* ${M}/${name} version ' + ${masterVersion} */`,
43+
banner: `/* ${M}-${name} version ' + ${masterVersion} */`,
4444
footer: '/* follow me on Github! @cjinhuo */'
4545
},
4646
external: [...Object.keys(paths)],

0 commit comments

Comments
 (0)