hoffmation-base 3.2.1-alpha.7 → 3.2.1-alpha.8
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.
|
@@ -25,7 +25,7 @@ class BaseCommand {
|
|
|
25
25
|
if (this.overrideCommandSource !== undefined) {
|
|
26
26
|
return this.overrideCommandSource === enums_1.CommandSource.Automatic;
|
|
27
27
|
}
|
|
28
|
-
if (this.source
|
|
28
|
+
if (typeof this.source === 'object') {
|
|
29
29
|
return this.source.isAutomaticAction;
|
|
30
30
|
}
|
|
31
31
|
return this.source === enums_1.CommandSource.Automatic;
|
|
@@ -36,7 +36,7 @@ class BaseCommand {
|
|
|
36
36
|
this.overrideCommandSource === enums_1.CommandSource.API ||
|
|
37
37
|
this.overrideCommandSource === enums_1.CommandSource.Force);
|
|
38
38
|
}
|
|
39
|
-
if (this.source
|
|
39
|
+
if (typeof this.source === 'object') {
|
|
40
40
|
return this.source.isForceAction;
|
|
41
41
|
}
|
|
42
42
|
return (this.source === enums_1.CommandSource.Manual || this.source === enums_1.CommandSource.API || this.source === enums_1.CommandSource.Force);
|
|
@@ -45,7 +45,7 @@ class BaseCommand {
|
|
|
45
45
|
if (this.overrideCommandSource !== undefined) {
|
|
46
46
|
return this.overrideCommandSource === enums_1.CommandSource.Manual || this.overrideCommandSource === enums_1.CommandSource.API;
|
|
47
47
|
}
|
|
48
|
-
if (this.source
|
|
48
|
+
if (typeof this.source === 'object') {
|
|
49
49
|
return this.source.isManual;
|
|
50
50
|
}
|
|
51
51
|
return this.source === enums_1.CommandSource.Manual || this.source === enums_1.CommandSource.API;
|
|
@@ -54,7 +54,7 @@ class BaseCommand {
|
|
|
54
54
|
if (this.overrideCommandSource !== undefined) {
|
|
55
55
|
return this.overrideCommandSource === enums_1.CommandSource.Initial;
|
|
56
56
|
}
|
|
57
|
-
if (this.source
|
|
57
|
+
if (typeof this.source === 'object') {
|
|
58
58
|
return this.source.isInitial;
|
|
59
59
|
}
|
|
60
60
|
return this.source === enums_1.CommandSource.Initial;
|
|
@@ -67,7 +67,7 @@ class BaseCommand {
|
|
|
67
67
|
if (this.ignoreReason !== undefined) {
|
|
68
68
|
ownPart += ` ignored due to: "${this.ignoreReason}"`;
|
|
69
69
|
}
|
|
70
|
-
if (this.source
|
|
70
|
+
if (typeof this.source === 'object') {
|
|
71
71
|
return `${this.source.reasonTrace} -> ${ownPart}`;
|
|
72
72
|
}
|
|
73
73
|
return `CommandType("${enums_1.CommandSource[this.source]}") stack => ${ownPart}`;
|
|
@@ -76,7 +76,7 @@ class BaseCommand {
|
|
|
76
76
|
if (this.type === type) {
|
|
77
77
|
return true;
|
|
78
78
|
}
|
|
79
|
-
if (this.source
|
|
79
|
+
if (typeof this.source === 'object') {
|
|
80
80
|
return this.source.containsType(type);
|
|
81
81
|
}
|
|
82
82
|
return false;
|