Skip to content

Commit

Permalink
Merge pull request #26 from cloudgraphdev/beta
Browse files Browse the repository at this point in the history
Release 0.21.1
  • Loading branch information
tyler-dunkel authored Jul 12, 2022
2 parents 975f505 + 5c0754f commit cf8c1b1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [0.21.1-beta.1](https://github.com/cloudgraphdev/sdk/compare/0.21.0...0.21.1-beta.1) (2022-07-12)


### Bug Fixes

* Added validations for null arrays ([32ad697](https://github.com/cloudgraphdev/sdk/commit/32ad697c8206590e4b036d34dea678c8992610b6))

## [0.21.1-alpha.1](https://github.com/cloudgraphdev/sdk/compare/0.21.0...0.21.1-alpha.1) (2022-07-12)


### Bug Fixes

* Added validations for null arrays ([32ad697](https://github.com/cloudgraphdev/sdk/commit/32ad697c8206590e4b036d34dea678c8992610b6))

# [0.21.0](https://github.com/cloudgraphdev/sdk/compare/0.20.0...0.21.0) (2022-07-06)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudgraph/sdk",
"version": "0.21.0",
"version": "0.21.1-beta.1",
"description": "SDK for cloud graph providers and cli",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/rules-engine/evaluators/json-evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
array_all: async (array = [], conditions: Condition, data) => {
// an AND, but with every resource item
const baseElementPath = data.elementPath
for (let i = 0; i < array.length; i++) {
for (let i = 0; i < array?.length; i++) {
if (
!(await this.evaluateCondition(conditions, {
...data,
Expand All @@ -100,7 +100,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
array_any: async (array = [], conditions, data) => {
// an OR, but with every resource item
const baseElementPath = data.elementPath
for (let i = 0; i < array.length; i++) {
for (let i = 0; i < array?.length; i++) {
if (
await this.evaluateCondition(conditions as Condition, {
...data,
Expand Down

0 comments on commit cf8c1b1

Please sign in to comment.