@legalplace/conditions-runner 1.1.6 → 1.1.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.
- package/CHANGELOG.md +19 -0
- package/dist/ConditionsRunner.js +2 -1
- package/package.json +3 -3
- package/src/ConditionsRunner.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.1.8 (2022-07-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @legalplace/conditions-runner
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.1.7](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/conditions-runner@1.1.6...@legalplace/conditions-runner@1.1.7) (2022-03-31)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* fix memoization ([9bb1195](https://git.legalplace.eu/legalplace/monorepo/commits/9bb11953add7a48d8d8668f355e68a9d6f747a20)), closes [api#5210](https://git.legalplace.eu/legalplace/monorepo/issues/5210)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.1.6](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/conditions-runner@1.1.5...@legalplace/conditions-runner@1.1.6) (2022-03-08)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @legalplace/conditions-runner
|
package/dist/ConditionsRunner.js
CHANGED
|
@@ -61,8 +61,9 @@ class ConditionsRunner {
|
|
|
61
61
|
}
|
|
62
62
|
executeCondition(condition, id, index, conditionType) {
|
|
63
63
|
const memoizedKey = this.buildMemoizeKey(condition, id, index, conditionType);
|
|
64
|
-
if (this.executeConditionMemo[memoizedKey])
|
|
64
|
+
if (this.executeConditionMemo[memoizedKey] !== undefined) {
|
|
65
65
|
return this.executeConditionMemo[memoizedKey];
|
|
66
|
+
}
|
|
66
67
|
let currentData;
|
|
67
68
|
if (conditionType === "options" || conditionType === "optionValidator") {
|
|
68
69
|
currentData = new DataPopulator_1.default(this, this.references, this.ovc, condition.dataMap, id, index).getData();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/conditions-runner",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Package containing method to execute conditions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/ConditionsRunner.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@legalplace/referencesparser": "^1.7.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@legalplace/types": "^1.3.
|
|
29
|
+
"@legalplace/types": "^1.3.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "55e54f08ad7466e6091e34dc7d2c93124a21f676"
|
|
32
32
|
}
|
package/src/ConditionsRunner.ts
CHANGED
|
@@ -131,8 +131,9 @@ class ConditionsRunner {
|
|
|
131
131
|
index,
|
|
132
132
|
conditionType
|
|
133
133
|
);
|
|
134
|
-
if (this.executeConditionMemo[memoizedKey])
|
|
134
|
+
if (this.executeConditionMemo[memoizedKey] !== undefined) {
|
|
135
135
|
return this.executeConditionMemo[memoizedKey];
|
|
136
|
+
}
|
|
136
137
|
|
|
137
138
|
// Populating Data
|
|
138
139
|
let currentData;
|