Skip to content

Commit dde392c

Browse files
authored
Merge pull request #25 from cloudgraphdev/alpha
Beta release
2 parents 26c0893 + dd730df commit dde392c

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## [0.21.1-alpha.1](https://github.com/cloudgraphdev/sdk/compare/0.21.0...0.21.1-alpha.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.0](https://github.com/cloudgraphdev/sdk/compare/0.20.0...0.21.0) (2022-07-06)
9+
10+
11+
### Bug Fixes
12+
13+
* adapt CLI to pass data instead of queries ([dbaa7ce](https://github.com/cloudgraphdev/sdk/commit/dbaa7ced67870863792cedaaf80b965c6d11cbf0))
14+
* remove node-jq implementation ([c614842](https://github.com/cloudgraphdev/sdk/commit/c6148429e056cd64cc3055f861b597e2dbcdbb09))
15+
* Rollback missing resources status feature ([5eb10e9](https://github.com/cloudgraphdev/sdk/commit/5eb10e9c610e92ec608acbac1fdefb4a84ea109c))
16+
17+
18+
### Features
19+
20+
* adapt CLI to pass data instead of queries ([1d73587](https://github.com/cloudgraphdev/sdk/commit/1d735872a6703e3880b26df8ee8d33982d56c3f1))
21+
* Added unit tests ([0d14267](https://github.com/cloudgraphdev/sdk/commit/0d14267c357307b8812d4d35faa2a50bc73437a7))
22+
* Extend rule engine to include missing checks when the resource does not exist ([79f8dd3](https://github.com/cloudgraphdev/sdk/commit/79f8dd3c9ffa149c431feb09f9b087a8b92e5250))
23+
* Move getLinkedData method to utils folder ([171d937](https://github.com/cloudgraphdev/sdk/commit/171d937ba7d4f1b6b9c0f878bd58288724ba138e))
24+
* remove unused storageEngine param ([a9a4ccb](https://github.com/cloudgraphdev/sdk/commit/a9a4ccb3613e7cf3dbc08a1e74bddef9d082fbc4))
25+
126
# [0.21.0-beta.1](https://github.com/cloudgraphdev/sdk/compare/0.20.0...0.21.0-beta.1) (2022-07-06)
227

328

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudgraph/sdk",
3-
"version": "0.21.0-beta.1",
3+
"version": "0.21.1-alpha.1",
44
"description": "SDK for cloud graph providers and cli",
55
"main": "dist/src/index.js",
66
"types": "dist/src/index.d.ts",

src/rules-engine/evaluators/json-evaluator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
8686
array_all: async (array = [], conditions: Condition, data) => {
8787
// an AND, but with every resource item
8888
const baseElementPath = data.elementPath
89-
for (let i = 0; i < array.length; i++) {
89+
for (let i = 0; i < array?.length; i++) {
9090
if (
9191
!(await this.evaluateCondition(conditions, {
9292
...data,
@@ -100,7 +100,7 @@ export default class JsonEvaluator implements RuleEvaluator<JsonRule> {
100100
array_any: async (array = [], conditions, data) => {
101101
// an OR, but with every resource item
102102
const baseElementPath = data.elementPath
103-
for (let i = 0; i < array.length; i++) {
103+
for (let i = 0; i < array?.length; i++) {
104104
if (
105105
await this.evaluateCondition(conditions as Condition, {
106106
...data,

0 commit comments

Comments
 (0)