topbit 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.cn.md +2 -4
- package/README.md +2 -4
- package/images/topbit-middleware.webp +0 -0
- package/images/topbit.png +0 -0
- package/package.json +1 -1
- package/images/topbit-middleware.png +0 -0
package/README.cn.md
CHANGED
|
@@ -131,7 +131,7 @@ GET POST PUT PATCH DELETE OPTIONS TRACE HEAD
|
|
|
131
131
|
|
|
132
132
|
'use strict'
|
|
133
133
|
|
|
134
|
-
const Topbit = require('
|
|
134
|
+
const Topbit = require('topibit')
|
|
135
135
|
|
|
136
136
|
const app = new Topbit({
|
|
137
137
|
debug: true
|
|
@@ -705,14 +705,12 @@ app.use(async (c, next) => {
|
|
|
705
705
|
})
|
|
706
706
|
|
|
707
707
|
//use可以级联: app.use(m1).use(m2)
|
|
708
|
-
//在21.5.4版本以后,不过这个功能其实根本不重要
|
|
709
|
-
//因为有topbit-loader扩展,实现的功能要强大的多。
|
|
710
708
|
|
|
711
709
|
```
|
|
712
710
|
|
|
713
711
|
## topbit完整的流程图示
|
|
714
712
|
|
|
715
|
-

|
|
716
714
|
|
|
717
715
|
|
|
718
716
|
> **需要知道的是,其实在内部,body数据接收和解析也都是中间件,只是刻意安排了顺序,分出了pre和use接口。**
|
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ The first 6 are the most commonly used. For each request type, the router has a
|
|
|
113
113
|
|
|
114
114
|
'use strict'
|
|
115
115
|
|
|
116
|
-
const Topbit = require('
|
|
116
|
+
const Topbit = require('topibit')
|
|
117
117
|
|
|
118
118
|
const app = new Topbit({
|
|
119
119
|
debug: true
|
|
@@ -678,13 +678,11 @@ app.use(async (c, next) => {
|
|
|
678
678
|
})
|
|
679
679
|
|
|
680
680
|
// use can be cascaded: app.use(m1).use(m2)
|
|
681
|
-
// Available after v21.5.4, but this feature is not critical
|
|
682
|
-
// because the topbit-loader extension offers much more powerful functionality.
|
|
683
681
|
```
|
|
684
682
|
|
|
685
683
|
## Topbit Complete Flow Chart
|
|
686
684
|
|
|
687
|
-

|
|
688
686
|
|
|
689
687
|
> **It is important to know that internally, body data reception and parsing are also middleware. The order is deliberately arranged, separating `pre` and `use` interfaces.**
|
|
690
688
|
|
|
Binary file
|
package/images/topbit.png
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|