@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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -159,7 +159,7 @@ var SignalBroker = class _SignalBroker {
|
|
|
159
159
|
execute(signal, context) {
|
|
160
160
|
var _a, _b, _c;
|
|
161
161
|
const isMeta = signal.startsWith("meta.");
|
|
162
|
-
const isSubMeta = signal.startsWith("sub_meta.");
|
|
162
|
+
const isSubMeta = signal.startsWith("sub_meta.") || context.__isSubMeta;
|
|
163
163
|
const isMetric = (_a = context.__signalEmission) == null ? void 0 : _a.isMetric;
|
|
164
164
|
if (!isSubMeta && (!isMeta || this.debug)) {
|
|
165
165
|
const emittedAt = Date.now();
|
|
@@ -177,9 +177,9 @@ var SignalBroker = class _SignalBroker {
|
|
|
177
177
|
} else {
|
|
178
178
|
delete context.__signalEmission;
|
|
179
179
|
}
|
|
180
|
-
if (this.debug && (!isMetric || this.verbose)) {
|
|
180
|
+
if (this.debug && (!isMetric && !isSubMeta || this.verbose)) {
|
|
181
181
|
console.log(
|
|
182
|
-
`EMITTING
|
|
182
|
+
`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)}`
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
185
|
let executed;
|