@midwayjs/express 3.17.1 → 3.18.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/framework.js CHANGED
@@ -123,6 +123,7 @@ let MidwayExpressFramework = class MidwayExpressFramework extends core_1.BaseFra
123
123
  serverOptions.key = core_1.PathFileUtil.getFileContentSync(serverOptions.key);
124
124
  serverOptions.cert = core_1.PathFileUtil.getFileContentSync(serverOptions.cert);
125
125
  serverOptions.ca = core_1.PathFileUtil.getFileContentSync(serverOptions.ca);
126
+ process.env.MIDWAY_HTTP_SSL = 'true';
126
127
  if (serverOptions.http2) {
127
128
  this.server = require('http2').createSecureServer(serverOptions, this.app);
128
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/express",
3
- "version": "3.17.1",
3
+ "version": "3.18.0",
4
4
  "description": "Midway Web Framework for Express",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -24,17 +24,17 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@midwayjs/mock": "^3.17.1",
27
+ "@midwayjs/mock": "^3.18.0",
28
28
  "@types/body-parser": "1.19.5",
29
29
  "@types/express": "4.17.21",
30
30
  "fs-extra": "11.2.0"
31
31
  },
32
32
  "dependencies": {
33
- "@midwayjs/core": "^3.17.1",
34
- "@midwayjs/express-session": "^3.17.1",
35
- "body-parser": "1.20.2",
33
+ "@midwayjs/core": "^3.18.0",
34
+ "@midwayjs/express-session": "^3.18.0",
35
+ "body-parser": "1.20.3",
36
36
  "cookie-parser": "^1.4.6",
37
- "express": "4.19.2"
37
+ "express": "4.20.0"
38
38
  },
39
39
  "author": "Harry Chen <czy88840616@gmail.com>",
40
40
  "repository": {
@@ -44,5 +44,5 @@
44
44
  "engines": {
45
45
  "node": ">=12"
46
46
  },
47
- "gitHead": "824d8474a425b342fcd4480649c83677f846afb9"
47
+ "gitHead": "5e6180ba0fabe1acc6df112c68855129a534e941"
48
48
  }