@midwayjs/decorator 3.0.0-beta.4 → 3.0.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * [@match](https://github.com/match) empty args ([#1384](https://github.com/midwayjs/midway/issues/1384)) ([6f90fc9](https://github.com/midwayjs/midway/commit/6f90fc993ff01e078288ff664833c61c02dede51))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
7
18
 
8
19
 
@@ -1,4 +1,4 @@
1
1
  export declare function Catch(catchTarget?: any | any[]): (target: any) => void;
2
- export declare type MatchPattern<T = any> = ((ctx: T) => boolean) | string | string[];
3
- export declare function Match(matchPattern: MatchPattern): (target: any) => void;
2
+ export declare type MatchPattern<CtxOrReq = any, Res = any> = ((ctxOrReq: CtxOrReq, res: Res) => boolean) | string | string[] | boolean;
3
+ export declare function Match(matchPattern?: MatchPattern): (target: any) => void;
4
4
  //# sourceMappingURL=filter.d.ts.map
@@ -17,7 +17,7 @@ function Catch(catchTarget) {
17
17
  };
18
18
  }
19
19
  exports.Catch = Catch;
20
- function Match(matchPattern) {
20
+ function Match(matchPattern = true) {
21
21
  return function (target) {
22
22
  (0, decoratorManager_1.saveClassMetadata)(constant_1.MATCH_KEY, {
23
23
  matchPattern,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/decorator",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "definition decorator for midway project",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "02e2144e302f807770b512b0d89da3145b1cbf2e"
40
+ "gitHead": "ab0bf05ae6d13f6435db2f7223202be61d585a1b"
41
41
  }