@legalplace/conditions-runner 1.1.0 → 1.1.2
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/DataPopulator.js +2 -2
- package/package.json +3 -3
- package/src/DataPopulator.ts +2 -2
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.2](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/conditions-runner@1.1.1...@legalplace/conditions-runner@1.1.2) (2022-01-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @legalplace/conditions-runner
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.1.1](https://git.legalplace.eu/legalplace/monorepo/compare/@legalplace/conditions-runner@1.1.0...@legalplace/conditions-runner@1.1.1) (2021-12-16)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* add failsafe to value definition api[#4498](https://git.legalplace.eu/legalplace/monorepo/issues/4498) ([b1f071e](https://git.legalplace.eu/legalplace/monorepo/commits/b1f071e0d9c65c4740ec5c7693dd5fb558b4985c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# 1.1.0 (2021-12-15)
|
|
7
26
|
|
|
8
27
|
|
package/dist/DataPopulator.js
CHANGED
|
@@ -93,7 +93,7 @@ class DataPopulator {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
getVariableValues(variableId) {
|
|
96
|
-
const value = this.ovc.variables[variableId];
|
|
96
|
+
const value = this.ovc.variables[variableId] || [];
|
|
97
97
|
if (this.id === undefined || this.index === undefined) {
|
|
98
98
|
return value;
|
|
99
99
|
}
|
|
@@ -121,7 +121,7 @@ class DataPopulator {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
getOptionInputs(optionId) {
|
|
124
|
-
const inputs = this.ovc.options[optionId];
|
|
124
|
+
const inputs = this.ovc.options[optionId] || [];
|
|
125
125
|
if (this.id === undefined || this.index === undefined) {
|
|
126
126
|
return inputs;
|
|
127
127
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legalplace/conditions-runner",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Package containing method to execute conditions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/ConditionsRunner.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@legalplace/referencesparser": "^1.7.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@legalplace/types": "^1.
|
|
28
|
+
"@legalplace/types": "^1.2.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "01cf27820ea257e8d07330d90609784e100a6a4b"
|
|
31
31
|
}
|
package/src/DataPopulator.ts
CHANGED
|
@@ -167,7 +167,7 @@ class DataPopulator {
|
|
|
167
167
|
* @param variableId Variable's id
|
|
168
168
|
*/
|
|
169
169
|
private getVariableValues(variableId: number): Readonly<(string | number)[]> {
|
|
170
|
-
const value = this.ovc.variables[variableId];
|
|
170
|
+
const value = this.ovc.variables[variableId] || [];
|
|
171
171
|
if (this.id === undefined || this.index === undefined) {
|
|
172
172
|
return value;
|
|
173
173
|
}
|
|
@@ -226,7 +226,7 @@ class DataPopulator {
|
|
|
226
226
|
* @param optionId Option's id
|
|
227
227
|
*/
|
|
228
228
|
private getOptionInputs(optionId: number): Readonly<boolean[]> {
|
|
229
|
-
const inputs = this.ovc.options[optionId];
|
|
229
|
+
const inputs = this.ovc.options[optionId] || [];
|
|
230
230
|
if (this.id === undefined || this.index === undefined) {
|
|
231
231
|
return inputs;
|
|
232
232
|
}
|