@midwayjs/mock 3.7.3 → 3.8.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.
Files changed (2) hide show
  1. package/dist/creator.js +1 -1
  2. package/package.json +5 -5
package/dist/creator.js CHANGED
@@ -213,7 +213,7 @@ async function createFunctionApp(baseDir = process.cwd(), options = {}, customFr
213
213
  }
214
214
  const ctx = await framework.wrapHttpRequest(req);
215
215
  // create event and invoke
216
- const result = await framework.getTriggerFunction(ctx, url.pathname, {
216
+ const result = await framework.invokeTriggerFunction(ctx, url.pathname, {
217
217
  isHttpFunction: true,
218
218
  originEvent: req,
219
219
  originContext: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "3.7.3",
3
+ "version": "3.8.0",
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.7.0",
30
+ "@midwayjs/core": "^3.8.0",
31
31
  "@midwayjs/logger": "^2.15.0",
32
32
  "@types/amqplib": "0.8.2",
33
33
  "amqplib": "0.10.3",
@@ -37,7 +37,7 @@
37
37
  "ws": "8.10.0"
38
38
  },
39
39
  "dependencies": {
40
- "@midwayjs/async-hooks-context-manager": "^3.7.0",
40
+ "@midwayjs/async-hooks-context-manager": "^3.8.0",
41
41
  "@types/superagent": "4.1.14",
42
42
  "@types/supertest": "2.0.12",
43
43
  "fs-extra": "10.0.1",
@@ -48,7 +48,7 @@
48
48
  "author": "Harry Chen <czy88840616@gmail.com>",
49
49
  "repository": {
50
50
  "type": "git",
51
- "url": "http://github.com/midwayjs/midway.git"
51
+ "url": "https://github.com/midwayjs/midway.git"
52
52
  },
53
- "gitHead": "8e6c830bca52818e0086873b542423d16e609aef"
53
+ "gitHead": "5c640c7182923587139f9f9c0aecf50585798e1e"
54
54
  }