@eggjs/eventbus-decorator 3.5.0 → 3.5.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/dist/src/EventBus.d.ts +4 -1
- package/dist/src/EventBus.js +1 -1
- package/package.json +2 -2
package/dist/src/EventBus.d.ts
CHANGED
|
@@ -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
|
-
|
|
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 {
|
package/dist/src/EventBus.js
CHANGED
|
@@ -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,
|
|
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.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "tegg eventbus decorator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "961a1e12f78050b620edf8fe1a2c9a34ded2ff83"
|
|
57
57
|
}
|