@midwayjs/faas 3.10.5 → 3.10.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.
@@ -1,2 +1,3 @@
1
- export declare const Event: () => ParameterDecorator;
1
+ import { PipeUnionTransform } from '@midwayjs/core';
2
+ export declare const Event: (pipes?: PipeUnionTransform[]) => ParameterDecorator;
2
3
  //# sourceMappingURL=decorator.d.ts.map
package/dist/decorator.js CHANGED
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Event = void 0;
4
4
  const core_1 = require("@midwayjs/core");
5
5
  // 实现装饰器
6
- const Event = () => {
6
+ const Event = (pipes) => {
7
7
  return (0, core_1.createRequestParamDecorator)(ctx => {
8
8
  return ctx.originEvent && ctx.originContext ? ctx.originEvent : ctx;
9
- });
9
+ }, pipes);
10
10
  };
11
11
  exports.Event = Event;
12
12
  //# sourceMappingURL=decorator.js.map
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@midwayjs/faas",
3
- "version": "3.10.5",
3
+ "version": "3.10.7",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "dependencies": {
7
- "@midwayjs/core": "^3.10.5",
7
+ "@midwayjs/core": "^3.10.7",
8
8
  "@midwayjs/faas-typings": "^3.6.0",
9
9
  "@midwayjs/logger": "^2.15.0",
10
10
  "@midwayjs/serverless-http-parser": "^3.10.0",
11
11
  "@midwayjs/simple-lock": "^1.1.4"
12
12
  },
13
13
  "devDependencies": {
14
- "@midwayjs/mock": "^3.10.5",
15
- "@midwayjs/serverless-fc-starter": "^3.10.5",
14
+ "@midwayjs/mock": "^3.10.7",
15
+ "@midwayjs/serverless-fc-starter": "^3.10.7",
16
16
  "@midwayjs/serverless-scf-starter": "^3.10.0",
17
17
  "mm": "3.2.1"
18
18
  },
@@ -45,5 +45,5 @@
45
45
  "url": "git@github.com:midwayjs/midway.git"
46
46
  },
47
47
  "license": "MIT",
48
- "gitHead": "954706740b76dfabac9993a3cd6f4a504969a554"
48
+ "gitHead": "63bb5a11574dc6cae158c5de51fa5c5d5d482545"
49
49
  }