@midwayjs/decorator 3.0.0-beta.1 → 3.0.0-beta.2

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.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * middleware decorator missing ([#1366](https://github.com/midwayjs/midway/issues/1366)) ([5f9a8c1](https://github.com/midwayjs/midway/commit/5f9a8c1f7cdd940f785f6c9871fb67b9738de940))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
7
18
 
8
19
 
@@ -7,4 +7,5 @@ export * from './configuration';
7
7
  export * from './objectDef';
8
8
  export * from './framework';
9
9
  export * from './catch';
10
+ export * from './middleware';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -19,4 +19,5 @@ __exportStar(require("./configuration"), exports);
19
19
  __exportStar(require("./objectDef"), exports);
20
20
  __exportStar(require("./framework"), exports);
21
21
  __exportStar(require("./catch"), exports);
22
+ __exportStar(require("./middleware"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { ScopeEnum } from '../../index';
2
2
  export declare function Init(): MethodDecorator;
3
3
  export declare function Destroy(): MethodDecorator;
4
- export declare function Scope(scope?: ScopeEnum): ClassDecorator;
4
+ export declare function Scope(scope: ScopeEnum): ClassDecorator;
5
5
  //# sourceMappingURL=objectDef.d.ts.map
@@ -16,7 +16,7 @@ function Destroy() {
16
16
  };
17
17
  }
18
18
  exports.Destroy = Destroy;
19
- function Scope(scope = index_1.ScopeEnum.Singleton) {
19
+ function Scope(scope) {
20
20
  return function (target) {
21
21
  (0, index_1.saveObjectDefinition)(target, { scope });
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/decorator",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.2",
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": "72e4d20c678e65a5440c4e9a6d3b70046daa497c"
40
+ "gitHead": "7f07de960da1155a9f7df554e1789c7a97bdd3fe"
41
41
  }