@eggjs/eventbus-decorator 1.3.0 → 1.4.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.
- package/dist/index.js +6 -2
- package/dist/src/EventBus.d.ts +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -13,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
17
|
__exportStar(require("./src/EventBus"), exports);
|
|
14
18
|
__exportStar(require("./src/Event"), exports);
|
|
15
19
|
__exportStar(require("./src/EventInfoUtil"), exports);
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaURBQStCO0FBQy9CLDhDQUE0QjtBQUM1QixzREFBb0MifQ==
|
package/dist/src/EventBus.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import TypedEventEmitter, { Arguments } from 'typed-emitter';
|
|
2
2
|
import { Events } from '@eggjs/tegg';
|
|
3
|
-
export
|
|
3
|
+
export type EventName = string | symbol;
|
|
4
4
|
/**
|
|
5
5
|
* use `emit` to emit a event
|
|
6
6
|
*/
|
|
7
7
|
export interface EventBus extends Pick<TypedEventEmitter<Events>, 'emit'> {
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type EventKeys = keyof Events;
|
|
10
10
|
/**
|
|
11
11
|
* use to ensure event will happen
|
|
12
12
|
* Can not inject for now, only use for unittest
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/eventbus-decorator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "tegg eventbus decorator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"directory": "core/eventbus-decorator"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@eggjs/core-decorator": "^1.
|
|
39
|
-
"@eggjs/tegg-common-util": "^1.
|
|
38
|
+
"@eggjs/core-decorator": "^1.4.0",
|
|
39
|
+
"@eggjs/tegg-common-util": "^1.2.0",
|
|
40
40
|
"typed-emitter": "^1.3.1"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "6bd085c1c265921d31110811f4d707875dc7acea"
|
|
52
52
|
}
|