moost 0.3.24 → 0.3.26
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.cjs +5 -0
- package/dist/index.mjs +6 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -701,6 +701,11 @@ class Moost {
|
|
|
701
701
|
const infactOpts = { provide, customData: { pipes } };
|
|
702
702
|
if (isControllerConsructor &&
|
|
703
703
|
(classMeta?.injectable === 'SINGLETON' || classMeta?.injectable === true)) {
|
|
704
|
+
eventCore.createEventContext({
|
|
705
|
+
event: { type: 'init' },
|
|
706
|
+
options: {},
|
|
707
|
+
});
|
|
708
|
+
setControllerContext(this, 'bindController');
|
|
704
709
|
instance = (await infact.get(controller, infactOpts));
|
|
705
710
|
}
|
|
706
711
|
else if (!isControllerConsructor) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEventId, useEventContext, useEventLogger, useRouteParams } from '@wooksjs/event-core';
|
|
1
|
+
import { useEventId, useEventContext, useEventLogger, useRouteParams, createEventContext } from '@wooksjs/event-core';
|
|
2
2
|
export { EventLogger, useEventContext, useEventLogger } from '@wooksjs/event-core';
|
|
3
3
|
import { Infact, createProvideRegistry } from '@prostojs/infact';
|
|
4
4
|
export { createProvideRegistry } from '@prostojs/infact';
|
|
@@ -701,6 +701,11 @@ class Moost {
|
|
|
701
701
|
const infactOpts = { provide, customData: { pipes } };
|
|
702
702
|
if (isControllerConsructor &&
|
|
703
703
|
(classMeta?.injectable === 'SINGLETON' || classMeta?.injectable === true)) {
|
|
704
|
+
createEventContext({
|
|
705
|
+
event: { type: 'init' },
|
|
706
|
+
options: {},
|
|
707
|
+
});
|
|
708
|
+
setControllerContext(this, 'bindController');
|
|
704
709
|
instance = (await infact.get(controller, infactOpts));
|
|
705
710
|
}
|
|
706
711
|
else if (!isControllerConsructor) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moost",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "moost",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@prostojs/infact": "^0.1.13",
|
|
35
35
|
"@prostojs/mate": "^0.3.0",
|
|
36
36
|
"@prostojs/logger": "^0.4.0",
|
|
37
|
-
"@wooksjs/event-core": "^0.4.
|
|
38
|
-
"wooks": "^0.4.
|
|
37
|
+
"@wooksjs/event-core": "^0.4.30",
|
|
38
|
+
"wooks": "^0.4.30"
|
|
39
39
|
},
|
|
40
40
|
"author": "Artem Maltsev",
|
|
41
41
|
"license": "MIT",
|