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 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('titibit')
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
- ![](images/topbit-middleware.png)
713
+ ![](images/topbit-middleware.webp)
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('titibit')
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
- ![](images/topbit-middleware.png)
685
+ ![](images/topbit-middleware.webp)
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "topbit",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "A Server-side web framework support http/1.1 and http/2",
5
5
  "main": "src/topbit.js",
6
6
  "directories": {
Binary file