Skip to content

Commit ba7c605

Browse files
committed
docs: code error
1 parent 4fab96b commit ba7c605

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README-zh_CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ node network devtools正是为了解决这个问题,它一个允许您使用ch
3434
- [x] show stack
3535
- [x] click to jump
3636
- [x] base
37-
- [ ] Sourcemap
38-
- [ ] WebSocket
39-
- [ ] messages
40-
- [ ] payload
41-
- [ ] ...
37+
- [x] Sourcemap
38+
- [x] WebSocket
39+
- [x] messages
40+
- [x] payload
41+
- [x] headers
4242
- [ ] Compatibility
4343
- [x] commonjs
4444
- [x] esmodule

apps/web/docs/options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `RegisterOptions` interface is used to configure the registration options fo
99
Here is an example of using `RegisterOptions`:
1010

1111
```typescript
12-
import { RegisterOptions } from 'packages/network-debugger/src/common'
12+
import { RegisterOptions, register } from 'node-network-devtools'
1313

1414
const options: RegisterOptions = {
1515
port: 5270,
@@ -22,7 +22,7 @@ const options: RegisterOptions = {
2222
}
2323

2424
// Use options to register the network debugger
25-
registerNetworkDebugger(options)
25+
register(options)
2626
```
2727

2828
### port

apps/web/docs/zh/options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
以下是一个使用 `RegisterOptions` 的示例:
1010

1111
```typescript
12-
import { RegisterOptions } from 'packages/network-debugger/src/common'
12+
import { RegisterOptions, register } from 'node-network-devtools'
1313

1414
const options: RegisterOptions = {
1515
port: 5270,
@@ -22,7 +22,7 @@ const options: RegisterOptions = {
2222
}
2323

2424
// 使用 options 进行网络调试器的注册
25-
registerNetworkDebugger(options)
25+
register(options)
2626
```
2727

2828
### port

0 commit comments

Comments
 (0)