moost 0.6.1 → 0.6.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/dist/index.cjs CHANGED
@@ -202,7 +202,8 @@ const scopeVarsMap = /* @__PURE__ */ new Map();
202
202
  let logger;
203
203
  try {
204
204
  const ctxLogger = event === "error" ? getDefaultLogger(INFACT_BANNER) : (0, __wooksjs_event_core.useLogger)();
205
- logger = typeof ctxLogger.topic === "function" ? ctxLogger.topic(INFACT_BANNER) : ctxLogger;
205
+ const withTopic = ctxLogger;
206
+ logger = typeof withTopic.topic === "function" ? withTopic.topic(INFACT_BANNER) : ctxLogger;
206
207
  } catch (error) {
207
208
  logger = getDefaultLogger(INFACT_BANNER);
208
209
  }
package/dist/index.d.ts CHANGED
@@ -580,7 +580,7 @@ interface TMoostEventHandlerOptions<T> {
580
580
  handlerType: string;
581
581
  }
582
582
  /** Composable returning the moost scope ID for the current event. Generates on first call, caches for subsequent calls. */
583
- declare const useScopeId: (ctx?: _wooksjs_event_core.EventContext) => string;
583
+ declare const useScopeId: _wooksjs_event_core.WookComposable<string>;
584
584
  /** Registers a DI scope for the given ID and returns an unscope function. */
585
585
  declare function registerEventScope(scopeId: string): () => void;
586
586
  /**
package/dist/index.mjs CHANGED
@@ -179,7 +179,8 @@ const scopeVarsMap = /* @__PURE__ */ new Map();
179
179
  let logger;
180
180
  try {
181
181
  const ctxLogger = event === "error" ? getDefaultLogger(INFACT_BANNER) : useLogger$1();
182
- logger = typeof ctxLogger.topic === "function" ? ctxLogger.topic(INFACT_BANNER) : ctxLogger;
182
+ const withTopic = ctxLogger;
183
+ logger = typeof withTopic.topic === "function" ? withTopic.topic(INFACT_BANNER) : ctxLogger;
183
184
  } catch (error) {
184
185
  logger = getDefaultLogger(INFACT_BANNER);
185
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moost",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "moost",
5
5
  "keywords": [
6
6
  "composables",
@@ -46,15 +46,15 @@
46
46
  "@prostojs/infact": "^0.4.1",
47
47
  "@prostojs/logger": "^0.4.3",
48
48
  "@prostojs/mate": "^0.4.0",
49
- "@wooksjs/event-core": "^0.7.3",
49
+ "@wooksjs/event-core": "^0.7.7",
50
50
  "hookable": "^5.5.3",
51
- "wooks": "^0.7.3"
51
+ "wooks": "^0.7.7"
52
52
  },
53
53
  "devDependencies": {
54
- "@wooksjs/event-http": "^0.7.3",
55
- "@wooksjs/http-body": "^0.7.3",
54
+ "@wooksjs/event-http": "^0.7.7",
55
+ "@wooksjs/http-body": "^0.7.7",
56
56
  "vitest": "3.2.4",
57
- "@moostjs/event-http": "^0.6.1"
57
+ "@moostjs/event-http": "^0.6.3"
58
58
  },
59
59
  "scripts": {
60
60
  "pub": "pnpm publish --access public",