@midwayjs/mock 3.0.4 → 3.0.9

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
@@ -123,7 +123,7 @@ async function createFunctionApp(baseDir = process.cwd(), options, customFramewo
123
123
  options.imports.unshift(serverlessModule);
124
124
  }
125
125
  else {
126
- options = {};
126
+ options = options || {};
127
127
  options.imports = [serverlessModule];
128
128
  }
129
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "3.0.4",
3
+ "version": "3.0.9",
4
4
  "description": "create your test app from midway framework",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@midwayjs/core": "^3.0.4",
30
- "@midwayjs/decorator": "^3.0.4",
29
+ "@midwayjs/core": "^3.0.9",
30
+ "@midwayjs/decorator": "^3.0.7",
31
31
  "@midwayjs/logger": "^2.15.0",
32
32
  "@types/amqplib": "0.8.2",
33
33
  "amqplib": "0.8.0",
@@ -45,5 +45,5 @@
45
45
  "type": "git",
46
46
  "url": "http://github.com/midwayjs/midway.git"
47
47
  },
48
- "gitHead": "c2a37dd026c7bf3e855f4498691f572ef61396e3"
48
+ "gitHead": "6fbf54fb8840844c229d2cf11b30128c67cbeaf1"
49
49
  }