@eggjs/eventbus-decorator 3.5.0 → 3.7.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.
@@ -6,7 +6,10 @@ export type EventName = string | symbol;
6
6
  */
7
7
  export interface EventBus extends Pick<TypedEventEmitter<Events>, 'emit'> {
8
8
  cork(corkId: string): any;
9
- uncork(corkId: string): any;
9
+ /**
10
+ * @return true if uncorked
11
+ */
12
+ uncork(corkId: string): boolean;
10
13
  }
11
14
  export declare const CORK_ID: unique symbol;
12
15
  export interface ContextEventBus extends EventBus {
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CORK_ID = void 0;
4
4
  exports.CORK_ID = Symbol.for('eventBus#corkId');
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRCdXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvRXZlbnRCdXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBZWEsUUFBQSxPQUFPLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDIn0=
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRCdXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvRXZlbnRCdXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBbUJhLFFBQUEsT0FBTyxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsaUJBQWlCLENBQUMsQ0FBQyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/eventbus-decorator",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "description": "tegg eventbus decorator",
5
5
  "keywords": [
6
6
  "egg",
@@ -34,8 +34,8 @@
34
34
  "directory": "core/eventbus-decorator"
35
35
  },
36
36
  "dependencies": {
37
- "@eggjs/core-decorator": "^3.5.0",
38
- "@eggjs/tegg-common-util": "^3.2.3",
37
+ "@eggjs/core-decorator": "^3.7.0",
38
+ "@eggjs/tegg-common-util": "^3.7.0",
39
39
  "typed-emitter": "^1.3.1"
40
40
  },
41
41
  "engines": {
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "gitHead": "eead7467030e46fb5349fe60acd5c2f0f317de0f"
56
+ "gitHead": "c09aba3d398f0ac93f087c82947f736489a064c9"
57
57
  }