moost 0.5.7 → 0.5.8

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 CHANGED
@@ -691,10 +691,10 @@ function InjectEventLogger(topic) {
691
691
  return Resolve(() => eventCore.useEventLogger(topic));
692
692
  }
693
693
  function InjectMoostLogger(topic) {
694
- return Resolve(async () => {
695
- const { instantiate, getControllerMeta } = useControllerContext();
694
+ return Resolve(async (metas) => {
695
+ const { instantiate } = useControllerContext();
696
696
  const moostApp = await instantiate(Moost);
697
- const meta = getControllerMeta();
697
+ const meta = metas.classMeta;
698
698
  return moostApp.getLogger(meta?.loggerTopic || topic || meta?.id);
699
699
  });
700
700
  }
package/dist/index.mjs CHANGED
@@ -693,10 +693,10 @@ function InjectEventLogger(topic) {
693
693
  return Resolve(() => useEventLogger(topic));
694
694
  }
695
695
  function InjectMoostLogger(topic) {
696
- return Resolve(async () => {
697
- const { instantiate, getControllerMeta } = useControllerContext();
696
+ return Resolve(async (metas) => {
697
+ const { instantiate } = useControllerContext();
698
698
  const moostApp = await instantiate(Moost);
699
- const meta = getControllerMeta();
699
+ const meta = metas.classMeta;
700
700
  return moostApp.getLogger(meta?.loggerTopic || topic || meta?.id);
701
701
  });
702
702
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moost",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "moost",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",