@cadenza.io/core 1.11.0 → 1.11.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 +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -174,6 +174,11 @@ var SignalBroker = class _SignalBroker {
|
|
|
174
174
|
} else {
|
|
175
175
|
delete context.__signalEmission;
|
|
176
176
|
}
|
|
177
|
+
if (this.debug) {
|
|
178
|
+
console.log(
|
|
179
|
+
`Emitting signal ${signal} with context ${JSON.stringify(context)}`
|
|
180
|
+
);
|
|
181
|
+
}
|
|
177
182
|
let executed;
|
|
178
183
|
executed = this.executeListener(signal, context);
|
|
179
184
|
if (!isSubMeta) {
|
|
@@ -182,12 +187,6 @@ var SignalBroker = class _SignalBroker {
|
|
|
182
187
|
const parent = parts.slice(0, i).join(".");
|
|
183
188
|
executed = executed || this.executeListener(parent + ".*", context);
|
|
184
189
|
}
|
|
185
|
-
if (this.debug) {
|
|
186
|
-
console.log(
|
|
187
|
-
`Emitted signal ${signal} with context ${JSON.stringify(context)}`,
|
|
188
|
-
executed ? "\u2705" : "\u274C"
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
190
|
}
|
|
192
191
|
return executed;
|
|
193
192
|
}
|