File tree 3 files changed +17
-3
lines changed
src/rules-engine/evaluators
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 0.21.1-beta.1] ( https://github.com/cloudgraphdev/sdk/compare/0.21.0...0.21.1-beta.1 ) (2022-07-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Added validations for null arrays ([ 32ad697] ( https://github.com/cloudgraphdev/sdk/commit/32ad697c8206590e4b036d34dea678c8992610b6 ) )
7
+
8
+ ## [ 0.21.1-alpha.1] ( https://github.com/cloudgraphdev/sdk/compare/0.21.0...0.21.1-alpha.1 ) (2022-07-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Added validations for null arrays ([ 32ad697] ( https://github.com/cloudgraphdev/sdk/commit/32ad697c8206590e4b036d34dea678c8992610b6 ) )
14
+
1
15
# [ 0.21.0] ( https://github.com/cloudgraphdev/sdk/compare/0.20.0...0.21.0 ) (2022-07-06)
2
16
3
17
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @cloudgraph/sdk" ,
3
- "version" : " 0.21.0 " ,
3
+ "version" : " 0.21.1-beta.1 " ,
4
4
"description" : " SDK for cloud graph providers and cli" ,
5
5
"main" : " dist/src/index.js" ,
6
6
"types" : " dist/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
86
86
array_all : async ( array = [ ] , conditions : Condition , data ) => {
87
87
// an AND, but with every resource item
88
88
const baseElementPath = data . elementPath
89
- for ( let i = 0 ; i < array . length ; i ++ ) {
89
+ for ( let i = 0 ; i < array ? .length ; i ++ ) {
90
90
if (
91
91
! ( await this . evaluateCondition ( conditions , {
92
92
...data ,
@@ -100,7 +100,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
100
100
array_any : async ( array = [ ] , conditions , data ) => {
101
101
// an OR, but with every resource item
102
102
const baseElementPath = data . elementPath
103
- for ( let i = 0 ; i < array . length ; i ++ ) {
103
+ for ( let i = 0 ; i < array ? .length ; i ++ ) {
104
104
if (
105
105
await this . evaluateCondition ( conditions as Condition , {
106
106
...data ,
You can’t perform that action at this time.
0 commit comments