@midwayjs/mock 3.14.4 → 3.14.7

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 (3) hide show
  1. package/app.js +2 -1
  2. package/function.js +2 -2
  3. package/package.json +2 -2
package/app.js CHANGED
@@ -14,7 +14,8 @@ const { join } = require('path');
14
14
  // kill(15) default
15
15
  process.once('SIGTERM', onSignal);
16
16
 
17
- const app = await createApp({
17
+ let app = undefined;
18
+ app = await createApp({
18
19
  appDir: process.cwd(),
19
20
  baseDir: join(process.cwd(), 'dist'),
20
21
  ...args,
package/function.js CHANGED
@@ -13,8 +13,8 @@ const { join } = require('path');
13
13
  process.once('SIGQUIT', onSignal);
14
14
  // kill(15) default
15
15
  process.once('SIGTERM', onSignal);
16
-
17
- const app = await createFunctionApp({
16
+ let app = undefined;
17
+ app = await createFunctionApp({
18
18
  appDir: process.cwd(),
19
19
  baseDir: join(process.cwd(), 'dist'),
20
20
  ...args,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "3.14.4",
3
+ "version": "3.14.7",
4
4
  "description": "create your test app from midway framework",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "type": "git",
52
52
  "url": "https://github.com/midwayjs/midway.git"
53
53
  },
54
- "gitHead": "72aacdfd87ef730f100690557de48dcbd4d806a7"
54
+ "gitHead": "148356ccd4b97404dde43d4a06edd51da039828a"
55
55
  }