@midwayjs/view-nunjucks 3.19.0 → 4.0.0-alpha.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.
@@ -20,11 +20,12 @@ let ViewNunjucksConfiguration = class ViewNunjucksConfiguration {
20
20
  this.viewManager.use('nunjucks', view_1.NunjucksView);
21
21
  }
22
22
  };
23
+ exports.ViewNunjucksConfiguration = ViewNunjucksConfiguration;
23
24
  __decorate([
24
25
  (0, core_1.Inject)(),
25
26
  __metadata("design:type", View.ViewManager)
26
27
  ], ViewNunjucksConfiguration.prototype, "viewManager", void 0);
27
- ViewNunjucksConfiguration = __decorate([
28
+ exports.ViewNunjucksConfiguration = ViewNunjucksConfiguration = __decorate([
28
29
  (0, core_1.Configuration)({
29
30
  namespace: 'view-nunjucks',
30
31
  importConfigs: [
@@ -36,5 +37,4 @@ ViewNunjucksConfiguration = __decorate([
36
37
  imports: [View],
37
38
  })
38
39
  ], ViewNunjucksConfiguration);
39
- exports.ViewNunjucksConfiguration = ViewNunjucksConfiguration;
40
40
  //# sourceMappingURL=configuration.js.map
package/dist/engine.js CHANGED
@@ -65,12 +65,13 @@ let NunjucksEnvironment = class NunjucksEnvironment {
65
65
  return this.nunjucksEnvironment.addGlobal(name, value);
66
66
  }
67
67
  };
68
+ exports.NunjucksEnvironment = NunjucksEnvironment;
68
69
  __decorate([
69
- (0, core_1.App)(),
70
+ (0, core_1.MainApp)(),
70
71
  __metadata("design:type", Object)
71
72
  ], NunjucksEnvironment.prototype, "app", void 0);
72
73
  __decorate([
73
- (0, core_1.Config)(core_1.ALL),
74
+ (0, core_1.Config)(core_1.ALL_VALUE_KEY),
74
75
  __metadata("design:type", Object)
75
76
  ], NunjucksEnvironment.prototype, "globalConfig", void 0);
76
77
  __decorate([
@@ -79,9 +80,8 @@ __decorate([
79
80
  __metadata("design:paramtypes", []),
80
81
  __metadata("design:returntype", Promise)
81
82
  ], NunjucksEnvironment.prototype, "init", null);
82
- NunjucksEnvironment = __decorate([
83
+ exports.NunjucksEnvironment = NunjucksEnvironment = __decorate([
83
84
  (0, core_1.Provide)(),
84
85
  (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
85
86
  ], NunjucksEnvironment);
86
- exports.NunjucksEnvironment = NunjucksEnvironment;
87
87
  //# sourceMappingURL=engine.js.map
package/dist/view.js CHANGED
@@ -34,12 +34,12 @@ let NunjucksView = class NunjucksView {
34
34
  });
35
35
  }
36
36
  };
37
+ exports.NunjucksView = NunjucksView;
37
38
  __decorate([
38
39
  (0, core_1.Inject)(),
39
40
  __metadata("design:type", engine_1.NunjucksEnvironment)
40
41
  ], NunjucksView.prototype, "nunjucks", void 0);
41
- NunjucksView = __decorate([
42
+ exports.NunjucksView = NunjucksView = __decorate([
42
43
  (0, core_1.Provide)()
43
44
  ], NunjucksView);
44
- exports.NunjucksView = NunjucksView;
45
45
  //# sourceMappingURL=view.js.map
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@midwayjs/view-nunjucks",
3
- "version": "3.19.0",
3
+ "version": "4.0.0-alpha.1",
4
4
  "description": "Midway Component for nunjucks render",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
10
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
9
+ "test": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand",
10
+ "cov": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand --coverage --forceExit",
11
11
  "ci": "npm run test"
12
12
  },
13
13
  "keywords": [
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@midwayjs/view": "^3.19.0",
31
+ "@midwayjs/view": "^4.0.0-alpha.1",
32
32
  "nunjucks": "^3.2.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@midwayjs/core": "^3.19.0",
36
- "@midwayjs/koa": "^3.19.0",
37
- "@midwayjs/mock": "^3.19.0"
35
+ "@midwayjs/core": "^4.0.0-alpha.1",
36
+ "@midwayjs/koa": "^4.0.0-alpha.1",
37
+ "@midwayjs/mock": "^4.0.0-alpha.1"
38
38
  },
39
- "gitHead": "437e92d9375b0e375f83aa363f3e6a60187c7109"
39
+ "gitHead": "14bb4da91805a1cf52f190c0d37a74b395dd6372"
40
40
  }