@digitraffic/common 2026.1.14-1-node24 → 2026.1.15-1-node24
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.
|
@@ -58,8 +58,12 @@ export class StackCheckingAspect {
|
|
|
58
58
|
Annotations.of(node).addWarning(annotationMessage);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
+
isDigitrafficStack(node) {
|
|
62
|
+
return node instanceof DigitrafficStack;
|
|
63
|
+
}
|
|
61
64
|
checkStack(node) {
|
|
62
|
-
|
|
65
|
+
// Fix Invalid 'instanceof' check: 'nodeToCheck' has type that is not related to 'DigitrafficStack'
|
|
66
|
+
if (this.isDigitrafficStack(node)) {
|
|
63
67
|
if ((node.stackName.includes("Test") || node.stackName.includes("Tst")) &&
|
|
64
68
|
node.configuration.production) {
|
|
65
69
|
this.addAnnotation(node, ResourceType.stackName, "Production is set for Test-stack");
|