@midwayjs/web 3.0.0-beta.5 → 3.0.0-beta.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * class transformer method missing ([#1387](https://github.com/midwayjs/midway/issues/1387)) ([074e839](https://github.com/midwayjs/midway/commit/074e8393598dc95e2742f735df75a2191c5fe25d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
7
18
 
8
19
  **Note:** Version bump only for package @midwayjs/web
@@ -141,6 +141,7 @@ let MidwayWebFramework = class MidwayWebFramework extends core_1.BaseFramework {
141
141
  return decorator_1.MidwayFrameworkType.WEB;
142
142
  }
143
143
  async run() {
144
+ var _a;
144
145
  // load controller
145
146
  await this.loadMidwayController();
146
147
  // restore use method
@@ -173,9 +174,10 @@ let MidwayWebFramework = class MidwayWebFramework extends core_1.BaseFramework {
173
174
  // register httpServer to applicationContext
174
175
  this.getApplicationContext().registerObject(core_1.HTTP_SERVER_KEY, this.server);
175
176
  const eggConfig = this.configService.getConfiguration('egg');
176
- if (this.configService.getConfiguration('egg')) {
177
+ if (!this.isClusterMode && eggConfig) {
178
+ const customPort = (_a = process.env.MIDWAY_HTTP_PORT) !== null && _a !== void 0 ? _a : eggConfig.port;
177
179
  new Promise(resolve => {
178
- const args = [eggConfig.port];
180
+ const args = [customPort];
179
181
  if (eggConfig.hostname) {
180
182
  args.push(eggConfig.hostname);
181
183
  }
@@ -183,6 +185,7 @@ let MidwayWebFramework = class MidwayWebFramework extends core_1.BaseFramework {
183
185
  resolve();
184
186
  });
185
187
  this.server.listen(...args);
188
+ process.env.MIDWAY_HTTP_PORT = String(customPort);
186
189
  });
187
190
  }
188
191
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/web",
3
- "version": "3.0.0-beta.5",
3
+ "version": "3.0.0-beta.6",
4
4
  "description": "Midway Web Framework for Egg.js",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@midwayjs/decorator": "^3.0.0-beta.5",
31
- "@midwayjs/mock": "^3.0.0-beta.5",
30
+ "@midwayjs/decorator": "^3.0.0-beta.6",
31
+ "@midwayjs/mock": "^3.0.0-beta.6",
32
32
  "dayjs": "^1.10.7",
33
33
  "egg-logger": "^2.4.2",
34
34
  "egg-mock": "^3.26.0",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@eggjs/router": "^2.0.0",
46
- "@midwayjs/core": "^3.0.0-beta.5",
47
- "@midwayjs/logger": "^3.0.0-beta.5",
46
+ "@midwayjs/core": "^3.0.0-beta.6",
47
+ "@midwayjs/logger": "^3.0.0-beta.6",
48
48
  "egg": "^2.28.0",
49
49
  "extend2": "^1.0.0",
50
50
  "find-up": "^5.0.0",
@@ -58,5 +58,5 @@
58
58
  "engines": {
59
59
  "node": ">=12"
60
60
  },
61
- "gitHead": "ab0bf05ae6d13f6435db2f7223202be61d585a1b"
61
+ "gitHead": "e4595d30b369e36bef21b36f2b3737d8bc2f802d"
62
62
  }