@adaas/a-utils 0.1.23 → 0.1.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaas/a-utils",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "A-Utils is a set of utilities that are used across the ADAAS ecosystem. This package is designed to be a collection of utilities that are used across the ADAAS ecosystem.",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.cjs",
@@ -478,8 +478,6 @@ export class A_Command<
478
478
  await new Promise<void>(async (resolve, reject) => {
479
479
 
480
480
  try {
481
-
482
-
483
481
  const onBeforeExecuteFeature = new A_Feature({
484
482
  name: A_CommandFeatures.onBeforeExecute,
485
483
  component: this,
@@ -509,6 +507,15 @@ export class A_Command<
509
507
  resolve();
510
508
  });
511
509
 
510
+ this.on(A_CommandEvent.onFail, () => {
511
+
512
+ onBeforeExecuteFeature.interrupt();
513
+ onExecuteFeature.interrupt();
514
+ onAfterExecuteFeature.interrupt();
515
+
516
+ reject(this.error);
517
+ });
518
+
512
519
 
513
520
  await onBeforeExecuteFeature.process(this.scope);
514
521