@midwayjs/view-ejs 3.5.3 → 3.6.0
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 -3
- package/dist/view.js +4 -4
- package/index.d.ts +1 -0
- package/package.json +6 -7
package/dist/configuration.js
CHANGED
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ViewEJSConfiguration = void 0;
|
|
13
|
-
const
|
|
13
|
+
const core_1 = require("@midwayjs/core");
|
|
14
14
|
const View = require("@midwayjs/view");
|
|
15
15
|
const DefaultConfig = require("./config/config.default");
|
|
16
16
|
const LocalConfig = require("./config/config.local");
|
|
@@ -21,11 +21,11 @@ let ViewEJSConfiguration = class ViewEJSConfiguration {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
__decorate([
|
|
24
|
-
(0,
|
|
24
|
+
(0, core_1.Inject)(),
|
|
25
25
|
__metadata("design:type", View.ViewManager)
|
|
26
26
|
], ViewEJSConfiguration.prototype, "viewManager", void 0);
|
|
27
27
|
ViewEJSConfiguration = __decorate([
|
|
28
|
-
(0,
|
|
28
|
+
(0, core_1.Configuration)({
|
|
29
29
|
namespace: 'view-ejs',
|
|
30
30
|
importConfigs: [
|
|
31
31
|
{
|
package/dist/view.js
CHANGED
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.EjsView = void 0;
|
|
13
13
|
const ejs = require("ejs");
|
|
14
14
|
const view_1 = require("@midwayjs/view");
|
|
15
|
-
const
|
|
15
|
+
const core_1 = require("@midwayjs/core");
|
|
16
16
|
let EjsView = class EjsView {
|
|
17
17
|
async renderFile(filename, locals, config) {
|
|
18
18
|
return new Promise((resolve, reject) => {
|
|
@@ -50,15 +50,15 @@ let EjsView = class EjsView {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
__decorate([
|
|
53
|
-
(0,
|
|
53
|
+
(0, core_1.Config)('ejs'),
|
|
54
54
|
__metadata("design:type", Object)
|
|
55
55
|
], EjsView.prototype, "ejsConfig", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0,
|
|
57
|
+
(0, core_1.Inject)(),
|
|
58
58
|
__metadata("design:type", view_1.ViewManager)
|
|
59
59
|
], EjsView.prototype, "viewManager", void 0);
|
|
60
60
|
EjsView = __decorate([
|
|
61
|
-
(0,
|
|
61
|
+
(0, core_1.Provide)()
|
|
62
62
|
], EjsView);
|
|
63
63
|
exports.EjsView = EjsView;
|
|
64
64
|
//# sourceMappingURL=view.js.map
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/view-ejs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Midway Component for ejs render",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@midwayjs/view": "^3.
|
|
31
|
+
"@midwayjs/view": "^3.6.0",
|
|
32
32
|
"ejs": "3.1.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@midwayjs/core": "^3.
|
|
36
|
-
"@midwayjs/
|
|
37
|
-
"@midwayjs/
|
|
38
|
-
"@midwayjs/mock": "^3.5.3"
|
|
35
|
+
"@midwayjs/core": "^3.6.0",
|
|
36
|
+
"@midwayjs/koa": "^3.6.0",
|
|
37
|
+
"@midwayjs/mock": "^3.6.0"
|
|
39
38
|
},
|
|
40
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "22643b0e8519766bb7c68b975930199fc136336e"
|
|
41
40
|
}
|