@eggjs/tegg-eventbus-runtime 3.1.0 → 3.2.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.
@@ -1,5 +1,6 @@
1
1
  import { EventBus, Events, EventWaiter, EventName } from '@eggjs/eventbus-decorator';
2
2
  import { EggContext } from '@eggjs/tegg-runtime';
3
+ import type { EggLogger } from 'egg';
3
4
  type Array<T> = [T] extends [(...args: infer U) => any] ? U : [T] extends [void] ? [] : [T];
4
5
  export interface Event {
5
6
  name: EventName;
@@ -18,7 +19,7 @@ export declare class SingletonEventBus implements EventBus, EventWaiter {
18
19
  private readonly singletonLogger;
19
20
  private corkIdSequence;
20
21
  private readonly corkedEvents;
21
- get logger(): import("egg-logger").EggLogger;
22
+ get logger(): EggLogger;
22
23
  /**
23
24
  * only use for ensure event will happen
24
25
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/tegg-eventbus-runtime",
3
- "version": "3.1.0",
3
+ "version": "3.2.2",
4
4
  "description": "tegg eventbus runtime",
5
5
  "keywords": [
6
6
  "egg",
@@ -19,12 +19,11 @@
19
19
  ],
20
20
  "typings": "dist/index.d.ts",
21
21
  "scripts": {
22
- "clean": "tsc -b --clean",
22
+ "test": "cross-env NODE_ENV=test NODE_OPTIONS='--no-deprecation' mocha",
23
+ "clean": "tsc -b --clean && rm -rf dist",
23
24
  "tsc": "npm run clean && tsc -p ./tsconfig.json",
24
25
  "tsc:pub": "npm run clean && tsc -p ./tsconfig.pub.json",
25
- "prepublishOnly": "npm run tsc:pub",
26
- "ci": "npm run lint && npm run cov",
27
- "autod": "autod"
26
+ "prepublishOnly": "npm run tsc:pub"
28
27
  },
29
28
  "author": "killagu <killa123@126.com>",
30
29
  "license": "MIT",
@@ -38,20 +37,19 @@
38
37
  "directory": "core/eventbus-runtime"
39
38
  },
40
39
  "dependencies": {
41
- "@eggjs/core-decorator": "^3.1.0",
42
- "@eggjs/eventbus-decorator": "^3.1.0",
40
+ "@eggjs/core-decorator": "^3.2.2",
41
+ "@eggjs/eventbus-decorator": "^3.2.2",
42
+ "@eggjs/tegg-common-util": "^3.2.2",
43
+ "@eggjs/tegg-runtime": "^3.2.2",
43
44
  "await-event": "^2.1.0",
44
- "await-first": "^1.0.0",
45
- "typed-emitter": "^1.3.1"
45
+ "await-first": "^1.0.0"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=14.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@eggjs/tegg-common-util": "^1.2.3",
52
- "@eggjs/tegg-loader": "^3.1.0",
53
- "@eggjs/tegg-metadata": "^3.1.0",
54
- "@eggjs/tegg-runtime": "^3.1.0",
51
+ "@eggjs/tegg-loader": "^3.2.2",
52
+ "@eggjs/tegg-metadata": "^3.2.2",
55
53
  "coffee": "^5.4.0",
56
54
  "egg": "^3.9.1",
57
55
  "mm": "^3.2.0",
@@ -60,5 +58,5 @@
60
58
  "publishConfig": {
61
59
  "access": "public"
62
60
  },
63
- "gitHead": "19ff0ca1dc6286fc54445c30ccff64b582c59fd0"
61
+ "gitHead": "1db4e5320a0ea19b450df7d99ab7939f3ad48f6e"
64
62
  }