@cadenza.io/core 3.0.0 → 3.0.1

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.js CHANGED
@@ -196,7 +196,7 @@ var SignalBroker = class _SignalBroker {
196
196
  execute(signal, context) {
197
197
  var _a, _b, _c;
198
198
  const isMeta = signal.startsWith("meta.");
199
- const isSubMeta = signal.startsWith("sub_meta.");
199
+ const isSubMeta = signal.startsWith("sub_meta.") || context.__isSubMeta;
200
200
  const isMetric = (_a = context.__signalEmission) == null ? void 0 : _a.isMetric;
201
201
  if (!isSubMeta && (!isMeta || this.debug)) {
202
202
  const emittedAt = Date.now();
@@ -214,9 +214,9 @@ var SignalBroker = class _SignalBroker {
214
214
  } else {
215
215
  delete context.__signalEmission;
216
216
  }
217
- if (this.debug && (!isMetric || this.verbose)) {
217
+ if (this.debug && (!isMetric && !isSubMeta || this.verbose)) {
218
218
  console.log(
219
- `EMITTING signal ${signal} to listeners ${(_c = (_b = this.signalObservers.get(signal)) == null ? void 0 : _b.tasks.size) != null ? _c : 0} with context ${JSON.stringify(context)}`
219
+ `EMITTING ${signal} to listeners ${(_c = (_b = this.signalObservers.get(signal)) == null ? void 0 : _b.tasks.size) != null ? _c : 0} with context ${this.verbose ? JSON.stringify(context) : JSON.stringify(context).slice(0, 100)}`
220
220
  );
221
221
  }
222
222
  let executed;