@midwayjs/koa 3.17.0 → 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
@@ -195,6 +195,7 @@ let MidwayKoaFramework = class MidwayKoaFramework extends core_1.BaseFramework {
195
195
  serverOptions.key = core_1.PathFileUtil.getFileContentSync(serverOptions.key);
196
196
  serverOptions.cert = core_1.PathFileUtil.getFileContentSync(serverOptions.cert);
197
197
  serverOptions.ca = core_1.PathFileUtil.getFileContentSync(serverOptions.ca);
198
+ process.env.MIDWAY_HTTP_SSL = 'true';
198
199
  if (serverOptions.http2) {
199
200
  this.server = require('http2').createSecureServer(serverOptions, this.app.callback());
200
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/koa",
3
- "version": "3.17.0",
3
+ "version": "3.18.0",
4
4
  "description": "Midway Web Framework for KOA",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -24,15 +24,15 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@midwayjs/mock": "^3.17.0",
27
+ "@midwayjs/mock": "^3.18.0",
28
28
  "@types/koa-router": "7.4.8",
29
29
  "fs-extra": "11.2.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "@koa/router": "^12.0.0",
33
33
  "@midwayjs/cookies": "^1.0.2",
34
- "@midwayjs/core": "^3.17.0",
35
- "@midwayjs/session": "^3.17.0",
34
+ "@midwayjs/core": "^3.18.0",
35
+ "@midwayjs/session": "^3.18.0",
36
36
  "@types/koa": "2.15.0",
37
37
  "@types/qs": "6.9.15",
38
38
  "koa": "2.15.3",
@@ -47,5 +47,5 @@
47
47
  "engines": {
48
48
  "node": ">=12"
49
49
  },
50
- "gitHead": "21faf25ae7277f28d61f8416d1acd5a786a2c353"
50
+ "gitHead": "5e6180ba0fabe1acc6df112c68855129a534e941"
51
51
  }