@tsed/event-emitter 6.102.6 → 6.102.8-rc.3

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/lib/cjs/index.js CHANGED
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
+ /**
3
+ * @file Automatically generated by barrelsby.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const tslib_1 = require("tslib");
4
7
  (0, tslib_1.__exportStar)(require("./EventEmitterModule"), exports);
8
+ (0, tslib_1.__exportStar)(require("./decorators/onAny"), exports);
9
+ (0, tslib_1.__exportStar)(require("./decorators/onEvent"), exports);
10
+ (0, tslib_1.__exportStar)(require("./interfaces/EventEmitterStore"), exports);
11
+ (0, tslib_1.__exportStar)(require("./interfaces/interfaces"), exports);
5
12
  (0, tslib_1.__exportStar)(require("./services/EventEmitterFactory"), exports);
6
- (0, tslib_1.__exportStar)(require("./decorators"), exports);
7
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAmBA,oEAAqC;AACrC,8EAA+C;AAC/C,4DAA6B","sourcesContent":["import {ConstructorOptions} from \"eventemitter2\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n eventEmitter?: {\n /**\n * Enable Event Emitter. Default `false`.\n */\n enabled?: boolean;\n /**\n * Disable event table displayed in the logger. Default `false`.\n */\n disableSummary?: boolean;\n } & ConstructorOptions;\n }\n }\n}\n\nexport * from \"./EventEmitterModule\";\nexport * from \"./services/EventEmitterFactory\";\nexport * from \"./decorators\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAAqC;AACrC,kEAAmC;AACnC,oEAAqC;AACrC,8EAA+C;AAC/C,uEAAwC;AACxC,8EAA+C","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./EventEmitterModule\";\nexport * from \"./decorators/onAny\";\nexport * from \"./decorators/onEvent\";\nexport * from \"./interfaces/EventEmitterStore\";\nexport * from \"./interfaces/interfaces\";\nexport * from \"./services/EventEmitterFactory\";\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/interfaces/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {ConstructorOptions} from \"eventemitter2\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n eventEmitter?: {\n /**\n * Enable Event Emitter. Default `false`.\n */\n enabled?: boolean;\n /**\n * Disable event table displayed in the logger. Default `false`.\n */\n disableSummary?: boolean;\n } & ConstructorOptions;\n }\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { $log, Logger } from "@tsed/common";
3
3
  import { Constant, Inject, InjectorService, Module } from "@tsed/di";
4
- import { EventEmitterService } from "./services/EventEmitterFactory";
4
+ import { EventEmitterService } from "./services/EventEmitterFactory.js";
5
5
  let EventEmitterModule = class EventEmitterModule {
6
6
  async $afterListen() {
7
7
  if (this.loadEventEmitter) {
package/lib/esm/index.js CHANGED
@@ -1,4 +1,10 @@
1
- export * from "./EventEmitterModule";
2
- export * from "./services/EventEmitterFactory";
3
- export * from "./decorators";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./EventEmitterModule.js";
5
+ export * from "./decorators/onAny.js";
6
+ export * from "./decorators/onEvent.js";
7
+ export * from "./interfaces/EventEmitterStore.js";
8
+ export * from "./interfaces/interfaces.js";
9
+ export * from "./services/EventEmitterFactory.js";
4
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAmBA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,cAAc,CAAC","sourcesContent":["import {ConstructorOptions} from \"eventemitter2\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n eventEmitter?: {\n /**\n * Enable Event Emitter. Default `false`.\n */\n enabled?: boolean;\n /**\n * Disable event table displayed in the logger. Default `false`.\n */\n disableSummary?: boolean;\n } & ConstructorOptions;\n }\n }\n}\n\nexport * from \"./EventEmitterModule\";\nexport * from \"./services/EventEmitterFactory\";\nexport * from \"./decorators\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./EventEmitterModule\";\nexport * from \"./decorators/onAny\";\nexport * from \"./decorators/onEvent\";\nexport * from \"./interfaces/EventEmitterStore\";\nexport * from \"./interfaces/interfaces\";\nexport * from \"./services/EventEmitterFactory\";\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/interfaces/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import {ConstructorOptions} from \"eventemitter2\";\n\ndeclare global {\n namespace TsED {\n interface Configuration {\n eventEmitter?: {\n /**\n * Enable Event Emitter. Default `false`.\n */\n enabled?: boolean;\n /**\n * Disable event table displayed in the logger. Default `false`.\n */\n disableSummary?: boolean;\n } & ConstructorOptions;\n }\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,20 +1,9 @@
1
- import { ConstructorOptions } from "eventemitter2";
2
- declare global {
3
- namespace TsED {
4
- interface Configuration {
5
- eventEmitter?: {
6
- /**
7
- * Enable Event Emitter. Default `false`.
8
- */
9
- enabled?: boolean;
10
- /**
11
- * Disable event table displayed in the logger. Default `false`.
12
- */
13
- disableSummary?: boolean;
14
- } & ConstructorOptions;
15
- }
16
- }
17
- }
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
18
4
  export * from "./EventEmitterModule";
5
+ export * from "./decorators/onAny";
6
+ export * from "./decorators/onEvent";
7
+ export * from "./interfaces/EventEmitterStore";
8
+ export * from "./interfaces/interfaces";
19
9
  export * from "./services/EventEmitterFactory";
20
- export * from "./decorators";
@@ -0,0 +1,17 @@
1
+ import { ConstructorOptions } from "eventemitter2";
2
+ declare global {
3
+ namespace TsED {
4
+ interface Configuration {
5
+ eventEmitter?: {
6
+ /**
7
+ * Enable Event Emitter. Default `false`.
8
+ */
9
+ enabled?: boolean;
10
+ /**
11
+ * Disable event table displayed in the logger. Default `false`.
12
+ */
13
+ disableSummary?: boolean;
14
+ } & ConstructorOptions;
15
+ }
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@tsed/event-emitter",
3
- "version": "6.102.6",
3
+ "version": "6.102.8-rc.3",
4
4
  "description": "EventEmitter package for Ts.ED framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
7
+ "module": "./lib/esm/index.js",
7
8
  "typings": "./lib/types/index.d.ts",
8
9
  "exports": {
9
10
  "types": "./lib/types/index.d.ts",
@@ -12,9 +13,10 @@
12
13
  "default": "./lib/esm/index.js"
13
14
  },
14
15
  "scripts": {
15
- "build": "yarn run build:esm && yarn run build:cjs",
16
+ "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
16
17
  "build:cjs": "tsc --build tsconfig.compile.json",
17
18
  "build:esm": "tsc --build tsconfig.compile.esm.json",
19
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
18
20
  "test": "cross-env NODE_ENV=test nyc mocha"
19
21
  },
20
22
  "dependencies": {
@@ -22,9 +24,9 @@
22
24
  },
23
25
  "private": false,
24
26
  "devDependencies": {
25
- "@tsed/common": "6.102.6",
26
- "@tsed/core": "6.102.6",
27
- "@tsed/di": "6.102.6",
27
+ "@tsed/common": "6.102.8-rc.3",
28
+ "@tsed/core": "6.102.8-rc.3",
29
+ "@tsed/di": "6.102.8-rc.3",
28
30
  "eventemitter2": "^6.4.4"
29
31
  },
30
32
  "peerDependencies": {
@@ -34,7 +36,10 @@
34
36
  "bugs": {
35
37
  "url": "https://github.com/tsedio/tsed/issues"
36
38
  },
37
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/third-parties/event-emitter",
39
+ "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/third-parties/event-emitter",
38
40
  "author": "Romain Lenzotti",
39
- "license": "MIT"
41
+ "license": "MIT",
42
+ "publishConfig": {
43
+ "tag": "rc"
44
+ }
40
45
  }
package/src/index.ts CHANGED
@@ -1,22 +1,10 @@
1
- import {ConstructorOptions} from "eventemitter2";
2
-
3
- declare global {
4
- namespace TsED {
5
- interface Configuration {
6
- eventEmitter?: {
7
- /**
8
- * Enable Event Emitter. Default `false`.
9
- */
10
- enabled?: boolean;
11
- /**
12
- * Disable event table displayed in the logger. Default `false`.
13
- */
14
- disableSummary?: boolean;
15
- } & ConstructorOptions;
16
- }
17
- }
18
- }
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
19
4
 
20
5
  export * from "./EventEmitterModule";
6
+ export * from "./decorators/onAny";
7
+ export * from "./decorators/onEvent";
8
+ export * from "./interfaces/EventEmitterStore";
9
+ export * from "./interfaces/interfaces";
21
10
  export * from "./services/EventEmitterFactory";
22
- export * from "./decorators";
@@ -0,0 +1,18 @@
1
+ import {ConstructorOptions} from "eventemitter2";
2
+
3
+ declare global {
4
+ namespace TsED {
5
+ interface Configuration {
6
+ eventEmitter?: {
7
+ /**
8
+ * Enable Event Emitter. Default `false`.
9
+ */
10
+ enabled?: boolean;
11
+ /**
12
+ * Disable event table displayed in the logger. Default `false`.
13
+ */
14
+ disableSummary?: boolean;
15
+ } & ConstructorOptions;
16
+ }
17
+ }
18
+ }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./onEvent"), exports);
5
- (0, tslib_1.__exportStar)(require("./onAny"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;AAAA,yDAA0B;AAC1B,uDAAwB","sourcesContent":["export * from \"./onEvent\";\nexport * from \"./onAny\";\n"]}
@@ -1,3 +0,0 @@
1
- export * from "./onEvent";
2
- export * from "./onAny";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC","sourcesContent":["export * from \"./onEvent\";\nexport * from \"./onAny\";\n"]}
@@ -1,2 +0,0 @@
1
- export * from "./onEvent";
2
- export * from "./onAny";
@@ -1,2 +0,0 @@
1
- export * from "./onEvent";
2
- export * from "./onAny";