@cadenza.io/core 3.9.0 → 3.9.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.mjs CHANGED
@@ -3237,11 +3237,11 @@ var Cadenza = class {
3237
3237
  throw new Error("Task or Routine name must be a non-empty string.");
3238
3238
  }
3239
3239
  }
3240
- static runTask(task, context) {
3241
- this.runner.run(task, context);
3240
+ static run(task, context) {
3241
+ this.runner?.run(task, context);
3242
3242
  }
3243
- static runRoutine(routine, context) {
3244
- this.runner.run(routine, context);
3243
+ static emit(event, data = {}) {
3244
+ this.broker?.emit(event, data);
3245
3245
  }
3246
3246
  /**
3247
3247
  * Creates a standard Task and registers it in the GraphRegistry.