@ticatec/common-express-server 0.3.1 → 0.3.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/lib/ProcessorManager.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const log4js_1 = __importDefault(require("log4js"));
|
|
3
7
|
class ProcessorManager {
|
|
4
8
|
constructor() {
|
|
9
|
+
this.logger = log4js_1.default.getLogger("ProcessorManager");
|
|
5
10
|
this.map = new Map();
|
|
6
11
|
}
|
|
7
12
|
static getInstance() {
|
|
@@ -17,6 +22,7 @@ class ProcessorManager {
|
|
|
17
22
|
*/
|
|
18
23
|
register(Constructor, args) {
|
|
19
24
|
let constructorName = Constructor.name;
|
|
25
|
+
this.logger.info(`Registering processor ${constructorName}`);
|
|
20
26
|
let processor = this.map.get(constructorName);
|
|
21
27
|
if (!processor) {
|
|
22
28
|
processor = new Constructor(args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessorManager.js","sourceRoot":"src/","sources":["ProcessorManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProcessorManager.js","sourceRoot":"src/","sources":["ProcessorManager.ts"],"names":[],"mappings":";;;;;AACA,oDAA4B;AAE5B,MAAqB,gBAAgB;IAMjC;QAFQ,WAAM,GAAG,gBAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAGlD,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,EAAgC,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,WAAW;QACd,OAAO,gBAAgB,CAAC,QAAQ,CAAC;IACrC,CAAC;IAED,GAAG,CAAC,IAAY;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,WAAuD,EAAE,IAAU;QACxE,IAAI,eAAe,GAAG,WAAW,CAAC,IAAI,CAAC;QACvC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,eAAe,EAAE,CAAC,CAAC;QAC7D,IAAI,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,EAAE,CAAC;YACb,SAAS,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAA;YACjC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;;AA9Bc,yBAAQ,GAAqB,IAAI,gBAAgB,EAAE,AAA3C,CAA4C;kBAFlD,gBAAgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ticatec/common-express-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "A comprehensive TypeScript library providing common classes, controllers, and middleware for building scalable Express.js applications with multi-tenant support.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|