@midwayjs/view 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/configuration.js +3 -5
- package/package.json +5 -5
package/dist/configuration.js
CHANGED
|
@@ -29,9 +29,7 @@ let ViewConfiguration = class ViewConfiguration {
|
|
|
29
29
|
render: {
|
|
30
30
|
value: async function (...args) {
|
|
31
31
|
const contextView = await this.requestContext.getAsync(contextView_1.ContextView);
|
|
32
|
-
|
|
33
|
-
this.body = body;
|
|
34
|
-
});
|
|
32
|
+
this.body = await contextView.render(...args);
|
|
35
33
|
},
|
|
36
34
|
},
|
|
37
35
|
/**
|
|
@@ -41,7 +39,7 @@ let ViewConfiguration = class ViewConfiguration {
|
|
|
41
39
|
renderView: {
|
|
42
40
|
value: async function (...args) {
|
|
43
41
|
const contextView = await this.requestContext.getAsync(contextView_1.ContextView);
|
|
44
|
-
return contextView.render(...args);
|
|
42
|
+
return await contextView.render(...args);
|
|
45
43
|
},
|
|
46
44
|
},
|
|
47
45
|
/**
|
|
@@ -51,7 +49,7 @@ let ViewConfiguration = class ViewConfiguration {
|
|
|
51
49
|
renderString: {
|
|
52
50
|
value: async function (...args) {
|
|
53
51
|
const contextView = await this.requestContext.getAsync(contextView_1.ContextView);
|
|
54
|
-
return contextView.renderString(...args);
|
|
52
|
+
return await contextView.renderString(...args);
|
|
55
53
|
},
|
|
56
54
|
},
|
|
57
55
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/view",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.9",
|
|
4
4
|
"description": "Midway Component for render view",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@midwayjs/core": "^4.0.0-beta.
|
|
31
|
-
"@midwayjs/koa": "^4.0.0-beta.
|
|
32
|
-
"@midwayjs/mock": "^4.0.0-beta.
|
|
30
|
+
"@midwayjs/core": "^4.0.0-beta.9",
|
|
31
|
+
"@midwayjs/koa": "^4.0.0-beta.9",
|
|
32
|
+
"@midwayjs/mock": "^4.0.0-beta.9"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "771e83974ef9f3d78c296e4ee0c8c68db44f6b31"
|
|
35
35
|
}
|