@appland/scanner 1.59.2 → 1.60.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@appland/scanner-v1.60.0](https://github.com/applandinc/appmap-js/compare/@appland/scanner-v1.59.2...@appland/scanner-v1.60.0) (2022-06-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * pass down impactDomain from Rule to Finding ([8755041](https://github.com/applandinc/appmap-js/commit/875504183a8517fec316b5f188d269de053ceef8))
7
+
1
8
  # [@appland/scanner-v1.59.2](https://github.com/applandinc/appmap-js/compare/@appland/scanner-v1.59.1...@appland/scanner-v1.59.2) (2022-06-29)
2
9
 
3
10
 
package/built/check.js CHANGED
@@ -14,6 +14,8 @@ class Check {
14
14
  this.excludeScope = [];
15
15
  this.includeEvent = [];
16
16
  this.excludeEvent = [];
17
+ //TODO: Create Default value for impact domain
18
+ this.impactDomain = rule.impactDomain;
17
19
  }
18
20
  filterScope(event, appMapIndex) {
19
21
  if (this.includeScope.length > 0 && !this.includeScope.every((fn) => fn(event, appMapIndex))) {
@@ -6,6 +6,9 @@ class CheckInstance {
6
6
  this.check = check;
7
7
  this.ruleLogic = check.rule.build(check.options || {});
8
8
  }
9
+ get checkImpactDomain() {
10
+ return this.check.impactDomain;
11
+ }
9
12
  get checkId() {
10
13
  return this.check.id;
11
14
  }
@@ -137,6 +137,7 @@ class RuleChecker {
137
137
  groupMessage,
138
138
  occurranceCount,
139
139
  relatedEvents: relatedEvents.sort((event) => event.id),
140
+ impactDomain: checkInstance.checkImpactDomain,
140
141
  };
141
142
  };
142
143
  const matchResult = yield checkInstance.ruleLogic.matcher(event, appMapIndex, checkInstance.filterEvent.bind(checkInstance));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appland/scanner",
3
- "version": "1.59.2",
3
+ "version": "1.60.0",
4
4
  "description": "",
5
5
  "bin": "built/cli.js",
6
6
  "files": [