@midwayjs/koa 3.20.13 → 3.20.15

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.15",
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": "a603d2348d6141f8f723901498f03a162a037708"
52
52
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2013 - Now midwayjs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.