@midwayjs/koa 4.0.0-beta.8 → 4.0.0-beta.9
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/dist/framework.js +7 -1
- package/package.json +7 -7
package/dist/framework.js
CHANGED
|
@@ -115,7 +115,13 @@ let MidwayKoaFramework = class MidwayKoaFramework extends core_1.BaseFramework {
|
|
|
115
115
|
return c[str];
|
|
116
116
|
if (self.configurationOptions.queryParseMode) {
|
|
117
117
|
// use qs module to parse query
|
|
118
|
-
|
|
118
|
+
const parseOptions = {
|
|
119
|
+
...self.configurationOptions.queryParseOptions,
|
|
120
|
+
...(self.configurationOptions.queryParseMode === 'first'
|
|
121
|
+
? { duplicates: 'first' }
|
|
122
|
+
: {}),
|
|
123
|
+
};
|
|
124
|
+
c[str] = qs.parse(str, parseOptions);
|
|
119
125
|
}
|
|
120
126
|
else {
|
|
121
127
|
// use querystring to parse query by default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/koa",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.9",
|
|
4
4
|
"description": "Midway Web Framework for KOA",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/core": "^4.0.0-beta.
|
|
28
|
-
"@midwayjs/mock": "^4.0.0-beta.
|
|
27
|
+
"@midwayjs/core": "^4.0.0-beta.9",
|
|
28
|
+
"@midwayjs/mock": "^4.0.0-beta.9",
|
|
29
29
|
"@types/koa-router": "7.4.9",
|
|
30
30
|
"axios": "1.12.0",
|
|
31
|
-
"fs-extra": "11.3.
|
|
31
|
+
"fs-extra": "11.3.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@koa/router": "^12.0.0",
|
|
35
35
|
"@midwayjs/cookies": "^1.3.0",
|
|
36
|
-
"@midwayjs/session": "^4.0.0-beta.
|
|
36
|
+
"@midwayjs/session": "^4.0.0-beta.9",
|
|
37
37
|
"@types/koa": "3.0.0",
|
|
38
38
|
"@types/qs": "6.9.18",
|
|
39
39
|
"koa": "3.0.3",
|
|
40
40
|
"koa-bodyparser": "4.4.1",
|
|
41
|
-
"qs": "6.14.
|
|
41
|
+
"qs": "6.14.1"
|
|
42
42
|
},
|
|
43
43
|
"author": "Harry Chen <czy88840616@gmail.com>",
|
|
44
44
|
"repository": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=20"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "771e83974ef9f3d78c296e4ee0c8c68db44f6b31"
|
|
52
52
|
}
|