@midwayjs/koa 3.20.13 → 3.20.16

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 CHANGED
@@ -228,9 +228,9 @@ let MidwayKoaFramework = class MidwayKoaFramework extends core_1.BaseFramework {
228
228
  this.configurationOptions.listenOptions.port;
229
229
  if (customPort === 0 || customPort === '0') {
230
230
  customPort = await (0, utils_1.getFreePort)();
231
- this.configurationOptions.listenOptions.port = customPort;
232
231
  this.logger.info(`Midway koa is listening on port ${customPort} (auto assigned)`);
233
232
  }
233
+ this.configurationOptions.listenOptions.port = Number(customPort);
234
234
  if (this.configurationOptions.listenOptions.port) {
235
235
  new Promise(resolve => {
236
236
  // 使用 ListenOptions 对象启动服务器
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/koa",
3
- "version": "3.20.13",
3
+ "version": "3.20.16",
4
4
  "description": "Midway Web Framework for KOA",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -48,5 +48,5 @@
48
48
  "engines": {
49
49
  "node": ">=12"
50
50
  },
51
- "gitHead": "f76931e4b5bd99c498d27a84c00f2114db81c8a3"
51
+ "gitHead": "54b937490d350566074f2d65b6bef8ab38a0892e"
52
52
  }