@pristine-ts/core 0.0.376 → 0.0.378
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/lib/cjs/dispatchers/event.dispatcher.js +3 -4
- package/dist/lib/cjs/dispatchers/event.dispatcher.js.map +1 -1
- package/dist/lib/cjs/interceptors/event-logging.interceptor.js +4 -4
- package/dist/lib/cjs/interceptors/event-logging.interceptor.js.map +1 -1
- package/dist/lib/esm/dispatchers/event.dispatcher.js +3 -4
- package/dist/lib/esm/dispatchers/event.dispatcher.js.map +1 -1
- package/dist/lib/esm/interceptors/event-logging.interceptor.js +4 -4
- package/dist/lib/esm/interceptors/event-logging.interceptor.js.map +1 -1
- package/package.json +7 -7
|
@@ -24,7 +24,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
exports.EventDispatcher = void 0;
|
|
25
25
|
const tsyringe_1 = require("tsyringe");
|
|
26
26
|
const common_1 = require("@pristine-ts/common");
|
|
27
|
-
const core_module_keyname_1 = require("../core.module.keyname");
|
|
28
27
|
const event_dispatcher_no_event_handlers_error_1 = require("../errors/event-dispatcher-no-event-handlers.error");
|
|
29
28
|
/**
|
|
30
29
|
* This class receives all the event handlers and listeners that were registered and calls them if they support the event.
|
|
@@ -60,7 +59,7 @@ let EventDispatcher = class EventDispatcher {
|
|
|
60
59
|
eventHandlers: this.eventHandlers,
|
|
61
60
|
eventHandlerNames: this.eventHandlers.map(eventHandler => eventHandler.constructor.name),
|
|
62
61
|
}
|
|
63
|
-
}
|
|
62
|
+
});
|
|
64
63
|
// Notify the EventListeners that an event exists. The difference between a Handler and a Listener, is that a handler is
|
|
65
64
|
// expected to return an EventResponse, while a listener doesn't return anything. An EventListener simply does passive listening.
|
|
66
65
|
const eventListenerPromises = [];
|
|
@@ -81,7 +80,7 @@ let EventDispatcher = class EventDispatcher {
|
|
|
81
80
|
event,
|
|
82
81
|
eventHandler: eventHandler,
|
|
83
82
|
}
|
|
84
|
-
}
|
|
83
|
+
});
|
|
85
84
|
supportingEventHandlers.push(eventHandler);
|
|
86
85
|
break;
|
|
87
86
|
}
|
|
@@ -95,7 +94,7 @@ let EventDispatcher = class EventDispatcher {
|
|
|
95
94
|
event,
|
|
96
95
|
eventHandler: eventHandler,
|
|
97
96
|
}
|
|
98
|
-
}
|
|
97
|
+
});
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
if (supportingEventHandlers.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.dispatcher.js","sourceRoot":"","sources":["../../../../src/dispatchers/event.dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyD;AACzD,gDAAkE;
|
|
1
|
+
{"version":3,"file":"event.dispatcher.js","sourceRoot":"","sources":["../../../../src/dispatchers/event.dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyD;AACzD,gDAAkE;AASlE,iHAAuG;AAEvG;;GAEG;AAGI,IAAM,eAAe,GAArB,MAAM,eAAe;IAExB;;;;;OAKG;IACH,YAAsF,aAAgD,EAC/C,cAAwC,EAC5D,UAA+B;QAFZ,kBAAa,GAAb,aAAa,CAAmC;QAC/C,mBAAc,GAAd,cAAc,CAA0B;QAC5D,eAAU,GAAV,UAAU,CAAqB;QAE9F,IAAI,CAAC,aAAa,CAAC,IAAI,CAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,eAAC,OAAA,CAAC,MAAA,CAAC,CAAC,QAAQ,mCAAI,CAAC,CAAC,GAAG,CAAC,MAAA,CAAC,CAAC,QAAQ,mCAAI,CAAC,CAAC,CAAA,EAAA,CAAC,CAAA;IAC7E,CAAC;IAED;;;;;;OAMG;IACG,QAAQ,CAAC,KAAiB;;YAC5B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,qCAAqC,EAAE;gBACzD,UAAU,EAAE;oBACR,SAAS,EAAE,KAAK,CAAC,IAAI;i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
@@ -30,7 +30,7 @@ let EventLoggingInterceptor = class EventLoggingInterceptor {
|
|
|
30
30
|
event,
|
|
31
31
|
executionContextInterface
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
});
|
|
34
34
|
return Promise.resolve(event);
|
|
35
35
|
}
|
|
36
36
|
postMappingIntercept(event) {
|
|
@@ -38,7 +38,7 @@ let EventLoggingInterceptor = class EventLoggingInterceptor {
|
|
|
38
38
|
extra: {
|
|
39
39
|
event,
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
});
|
|
42
42
|
return Promise.resolve(event);
|
|
43
43
|
}
|
|
44
44
|
preResponseMappingIntercept(eventResponse) {
|
|
@@ -46,7 +46,7 @@ let EventLoggingInterceptor = class EventLoggingInterceptor {
|
|
|
46
46
|
extra: {
|
|
47
47
|
eventResponse,
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
});
|
|
50
50
|
return Promise.resolve(eventResponse);
|
|
51
51
|
}
|
|
52
52
|
postResponseMappingIntercept(eventResponse) {
|
|
@@ -54,7 +54,7 @@ let EventLoggingInterceptor = class EventLoggingInterceptor {
|
|
|
54
54
|
extra: {
|
|
55
55
|
eventResponse,
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
});
|
|
58
58
|
return Promise.resolve(eventResponse);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-logging.interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/event-logging.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gDAAgF;AAChF,uCAA4C;AAC5C,gEAAyD;AAMzD;;;GAGG;AAII,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAChC,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED,mBAAmB,CAAC,KAAa,EAAE,yBAAyD;QACxF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,mFAAmF,EAAE;YACtG,KAAK,EAAE;gBACH,KAAK;gBACL,yBAAyB;aAC5B;SACJ,
|
|
1
|
+
{"version":3,"file":"event-logging.interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/event-logging.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gDAAgF;AAChF,uCAA4C;AAC5C,gEAAyD;AAMzD;;;GAGG;AAII,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAChC,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED,mBAAmB,CAAC,KAAa,EAAE,yBAAyD;QACxF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,mFAAmF,EAAE;YACtG,KAAK,EAAE;gBACH,KAAK;gBACL,yBAAyB;aAC5B;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,oBAAoB,CAAC,KAAiB;QAClC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,8EAA8E,EAAE;YACjG,KAAK,EAAE;gBACH,KAAK;aACR;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,2BAA2B,CAAC,aAAsC;QAC9D,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,6FAA6F,EAAE;YAChH,KAAK,EAAE;gBACH,aAAa;aAChB;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,4BAA4B,CAAC,aAAqB;QAC9C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,sEAAsE,EAAE;YACzF,KAAK,EAAE;gBACH,aAAa;aAChB;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AA5CY,0DAAuB;kCAAvB,uBAAuB;IAHnC,IAAA,qBAAU,GAAE;IACZ,IAAA,qBAAY,EAAC,uCAAiB,CAAC;IAC/B,IAAA,YAAG,EAAC,iCAAwB,CAAC,gBAAgB,CAAC;IAE9B,WAAA,IAAA,iBAAM,EAAC,qBAAqB,CAAC,CAAA;;GADjC,uBAAuB,CA4CnC"}
|
|
@@ -21,7 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
};
|
|
22
22
|
import { injectable, injectAll, inject } from "tsyringe";
|
|
23
23
|
import { ServiceDefinitionTagEnum, tag } from "@pristine-ts/common";
|
|
24
|
-
import { CoreModuleKeyname } from "../core.module.keyname";
|
|
25
24
|
import { EventDispatcherNoEventHandlersError } from "../errors/event-dispatcher-no-event-handlers.error";
|
|
26
25
|
/**
|
|
27
26
|
* This class receives all the event handlers and listeners that were registered and calls them if they support the event.
|
|
@@ -57,7 +56,7 @@ let EventDispatcher = class EventDispatcher {
|
|
|
57
56
|
eventHandlers: this.eventHandlers,
|
|
58
57
|
eventHandlerNames: this.eventHandlers.map(eventHandler => eventHandler.constructor.name),
|
|
59
58
|
}
|
|
60
|
-
}
|
|
59
|
+
});
|
|
61
60
|
// Notify the EventListeners that an event exists. The difference between a Handler and a Listener, is that a handler is
|
|
62
61
|
// expected to return an EventResponse, while a listener doesn't return anything. An EventListener simply does passive listening.
|
|
63
62
|
const eventListenerPromises = [];
|
|
@@ -78,7 +77,7 @@ let EventDispatcher = class EventDispatcher {
|
|
|
78
77
|
event,
|
|
79
78
|
eventHandler: eventHandler,
|
|
80
79
|
}
|
|
81
|
-
}
|
|
80
|
+
});
|
|
82
81
|
supportingEventHandlers.push(eventHandler);
|
|
83
82
|
break;
|
|
84
83
|
}
|
|
@@ -92,7 +91,7 @@ let EventDispatcher = class EventDispatcher {
|
|
|
92
91
|
event,
|
|
93
92
|
eventHandler: eventHandler,
|
|
94
93
|
}
|
|
95
|
-
}
|
|
94
|
+
});
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
if (supportingEventHandlers.length === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.dispatcher.js","sourceRoot":"","sources":["../../../../src/dispatchers/event.dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAC,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"event.dispatcher.js","sourceRoot":"","sources":["../../../../src/dispatchers/event.dispatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAC,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AASlE,OAAO,EAAC,mCAAmC,EAAC,MAAM,oDAAoD,CAAC;AAEvG;;GAEG;AAGI,IAAM,eAAe,GAArB,MAAM,eAAe;IAExB;;;;;OAKG;IACH,YAAsF,aAAgD,EAC/C,cAAwC,EAC5D,UAA+B;QAFZ,kBAAa,GAAb,aAAa,CAAmC;QAC/C,mBAAc,GAAd,cAAc,CAA0B;QAC5D,eAAU,GAAV,UAAU,CAAqB;QAE9F,IAAI,CAAC,aAAa,CAAC,IAAI,CAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,eAAC,OAAA,CAAC,MAAA,CAAC,CAAC,QAAQ,mCAAI,CAAC,CAAC,GAAG,CAAC,MAAA,CAAC,CAAC,QAAQ,mCAAI,CAAC,CAAC,CAAA,EAAA,CAAC,CAAA;IAC7E,CAAC;IAED;;;;;;OAMG;IACG,QAAQ,CAAC,KAAiB;;YAC5B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,qCAAqC,EAAE;gBACzD,UAAU,EAAE;oBACR,SAAS,EAAE,KAAK,CAAC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oggingInterceptor {
|
|
|
27
27
|
event,
|
|
28
28
|
executionContextInterface
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
});
|
|
31
31
|
return Promise.resolve(event);
|
|
32
32
|
}
|
|
33
33
|
postMappingIntercept(event) {
|
|
@@ -35,7 +35,7 @@ let EventLoggingInterceptor = class EventLoggingInterceptor {
|
|
|
35
35
|
extra: {
|
|
36
36
|
event,
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
});
|
|
39
39
|
return Promise.resolve(event);
|
|
40
40
|
}
|
|
41
41
|
preResponseMappingIntercept(eventResponse) {
|
|
@@ -43,7 +43,7 @@ let EventLoggingInterceptor = class EventLoggingInterceptor {
|
|
|
43
43
|
extra: {
|
|
44
44
|
eventResponse,
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
});
|
|
47
47
|
return Promise.resolve(eventResponse);
|
|
48
48
|
}
|
|
49
49
|
postResponseMappingIntercept(eventResponse) {
|
|
@@ -51,7 +51,7 @@ let EventLoggingInterceptor = class EventLoggingInterceptor {
|
|
|
51
51
|
extra: {
|
|
52
52
|
eventResponse,
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
});
|
|
55
55
|
return Promise.resolve(eventResponse);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-logging.interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/event-logging.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAC,YAAY,EAAE,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAMzD;;;GAGG;AAII,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAChC,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED,mBAAmB,CAAC,KAAa,EAAE,yBAAyD;QACxF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,mFAAmF,EAAE;YACtG,KAAK,EAAE;gBACH,KAAK;gBACL,yBAAyB;aAC5B;SACJ,
|
|
1
|
+
{"version":3,"file":"event-logging.interceptor.js","sourceRoot":"","sources":["../../../../src/interceptors/event-logging.interceptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAC,YAAY,EAAE,wBAAwB,EAAE,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAMzD;;;GAGG;AAII,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAChC,YAA4D,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAC3F,CAAC;IAED,mBAAmB,CAAC,KAAa,EAAE,yBAAyD;QACxF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,mFAAmF,EAAE;YACtG,KAAK,EAAE;gBACH,KAAK;gBACL,yBAAyB;aAC5B;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,oBAAoB,CAAC,KAAiB;QAClC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,8EAA8E,EAAE;YACjG,KAAK,EAAE;gBACH,KAAK;aACR;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,2BAA2B,CAAC,aAAsC;QAC9D,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,6FAA6F,EAAE;YAChH,KAAK,EAAE;gBACH,aAAa;aAChB;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED,4BAA4B,CAAC,aAAqB;QAC9C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,sEAAsE,EAAE;YACzF,KAAK,EAAE;gBACH,aAAa;aAChB;SACJ,CAAC,CAAA;QAEF,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AA5CY,uBAAuB;IAHnC,UAAU,EAAE;IACZ,YAAY,CAAC,iBAAiB,CAAC;IAC/B,GAAG,CAAC,wBAAwB,CAAC,gBAAgB,CAAC;IAE9B,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;;GADjC,uBAAuB,CA4CnC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.378",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/core.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/core.module.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@pristine-ts/common": "^0.0.
|
|
24
|
-
"@pristine-ts/configuration": "^0.0.
|
|
25
|
-
"@pristine-ts/logging": "^0.0.
|
|
26
|
-
"@pristine-ts/security": "^0.0.
|
|
27
|
-
"@pristine-ts/telemetry": "^0.0.
|
|
23
|
+
"@pristine-ts/common": "^0.0.378",
|
|
24
|
+
"@pristine-ts/configuration": "^0.0.378",
|
|
25
|
+
"@pristine-ts/logging": "^0.0.378",
|
|
26
|
+
"@pristine-ts/security": "^0.0.378",
|
|
27
|
+
"@pristine-ts/telemetry": "^0.0.378",
|
|
28
28
|
"uuid": "^9.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"src/*.{js,ts}"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c94af8b2bcfacc932c50c5e1aa7e2ea66a9bd27f"
|
|
68
68
|
}
|