@adaas/a-concept 0.1.40 → 0.1.41
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/global/A-Feature/A-Feature.class.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaas/a-concept",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"description": "A-Concept is a framework to build new Applications within or outside the ADAAS ecosystem. This framework is designed to be modular structure regardless environment and program goal.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -403,7 +403,7 @@ export class A_Feature<T extends A_TYPES__FeatureAvailableComponents = A_TYPES__
|
|
|
403
403
|
* @returns
|
|
404
404
|
*/
|
|
405
405
|
async completed(): Promise<void> {
|
|
406
|
-
if(this.isDone) return;
|
|
406
|
+
if (this.isDone) return;
|
|
407
407
|
|
|
408
408
|
|
|
409
409
|
this._state = A_TYPES__FeatureState.COMPLETED;
|
|
@@ -417,7 +417,7 @@ export class A_Feature<T extends A_TYPES__FeatureAvailableComponents = A_TYPES__
|
|
|
417
417
|
* @param error
|
|
418
418
|
*/
|
|
419
419
|
async failed(error: A_FeatureError) {
|
|
420
|
-
if(this.isDone) return;
|
|
420
|
+
if (this.isDone) return;
|
|
421
421
|
|
|
422
422
|
this._state = A_TYPES__FeatureState.FAILED;
|
|
423
423
|
|
|
@@ -439,6 +439,8 @@ export class A_Feature<T extends A_TYPES__FeatureAvailableComponents = A_TYPES__
|
|
|
439
439
|
*/
|
|
440
440
|
reason?: string | A_StageError | Error
|
|
441
441
|
) {
|
|
442
|
+
if (this.isDone) return;
|
|
443
|
+
|
|
442
444
|
switch (true) {
|
|
443
445
|
case A_TypeGuards.isString(reason):
|
|
444
446
|
this._error = new A_FeatureError(A_FeatureError.Interruption, reason);
|