@midwayjs/mock 3.10.3 → 3.10.5

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.
Files changed (2) hide show
  1. package/dist/creator.js +1 -1
  2. package/package.json +4 -4
package/dist/creator.js CHANGED
@@ -225,7 +225,7 @@ async function createFunctionApp(baseDir = process.cwd(), options = {}, customFr
225
225
  const faasConfig = (_b = configService.getConfiguration('faas')) !== null && _b !== void 0 ? _b : {};
226
226
  const customPort = (_d = (_c = process.env.MIDWAY_HTTP_PORT) !== null && _c !== void 0 ? _c : faasConfig['port']) !== null && _d !== void 0 ? _d : options['port'];
227
227
  if (options.starter.callback2) {
228
- app.callback2 = options.starter.callback2;
228
+ app.callback2 = options.starter.callback2.bind(options.starter);
229
229
  }
230
230
  else {
231
231
  app.callback2 = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "3.10.3",
3
+ "version": "3.10.5",
4
4
  "description": "create your test app from midway framework",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
- "@midwayjs/core": "^3.10.3",
30
+ "@midwayjs/core": "^3.10.5",
31
31
  "@midwayjs/logger": "^2.15.0",
32
32
  "@types/amqplib": "0.10.1",
33
33
  "amqplib": "0.10.3",
@@ -37,7 +37,7 @@
37
37
  "ws": "8.12.0"
38
38
  },
39
39
  "dependencies": {
40
- "@midwayjs/async-hooks-context-manager": "^3.10.3",
40
+ "@midwayjs/async-hooks-context-manager": "^3.10.5",
41
41
  "@types/superagent": "4.1.14",
42
42
  "@types/supertest": "2.0.12",
43
43
  "js-yaml": "4.1.0",
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "https://github.com/midwayjs/midway.git"
51
51
  },
52
- "gitHead": "de41ae38b72167c2a652d6eae5cfd8026c32c214"
52
+ "gitHead": "954706740b76dfabac9993a3cd6f4a504969a554"
53
53
  }