q-koa 13.8.3 → 13.8.4
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/core/app.js +0 -2
- package/core/middlewares.js +0 -3
- package/package.json +1 -2
package/core/app.js
CHANGED
|
@@ -54,7 +54,6 @@ const {
|
|
|
54
54
|
miBody,
|
|
55
55
|
miXmlBody,
|
|
56
56
|
miCompress,
|
|
57
|
-
miBodyParser,
|
|
58
57
|
miWebsocket,
|
|
59
58
|
miLimit,
|
|
60
59
|
} = require('./middlewares')
|
|
@@ -120,7 +119,6 @@ class APP {
|
|
|
120
119
|
// miRestc(config),
|
|
121
120
|
miBody(config.koaBody),
|
|
122
121
|
miXmlBody(config.xmlBody),
|
|
123
|
-
miBodyParser(config.bodyParser),
|
|
124
122
|
|
|
125
123
|
miCompress(),
|
|
126
124
|
// miProxy(),
|
package/core/middlewares.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
const bodyParser = require('koa-bodyparser')
|
|
2
1
|
const compress = require('koa-compress')
|
|
3
2
|
const respond = require('koa-respond')
|
|
4
3
|
const koaBody = require('koa-body')
|
|
@@ -112,8 +111,6 @@ exports.miBody = (config) =>
|
|
|
112
111
|
|
|
113
112
|
exports.miCompress = (config) => compress(config)
|
|
114
113
|
|
|
115
|
-
exports.miBodyParser = (config) => bodyParser(config)
|
|
116
|
-
|
|
117
114
|
exports.miWebsocket = (config) => websocket(config)
|
|
118
115
|
|
|
119
116
|
exports.miLimit = (config) => ratelimit(config)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "q-koa",
|
|
3
|
-
"version": "13.8.
|
|
3
|
+
"version": "13.8.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"jsonwebtoken": "^8.5.1",
|
|
34
34
|
"koa": "^2.13.0",
|
|
35
35
|
"koa-body": "^4.1.1",
|
|
36
|
-
"koa-bodyparser": "^4.3.0",
|
|
37
36
|
"koa-compress": "^3.0.0",
|
|
38
37
|
"koa-easy-ws": "^1.1.3",
|
|
39
38
|
"koa-ratelimit": "^5.0.1",
|