@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.
@@ -7,6 +7,7 @@ export declare class StackCheckingAspect implements IAspect {
7
7
  visit(node: IConstruct): void;
8
8
  private isWhitelisted;
9
9
  private addAnnotation;
10
+ private isDigitrafficStack;
10
11
  private checkStack;
11
12
  private checkFunction;
12
13
  private checkTags;
@@ -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
- if (node instanceof DigitrafficStack) {
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitraffic/common",
3
- "version": "2026.1.14-1-node24",
3
+ "version": "2026.1.15-1-node24",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "repository": {