@cocreate/utils 1.27.2 → 1.27.3
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +13 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.27.3](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.27.2...v1.27.3) (2023-11-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* improved handeling of logical operators ([e020f59](https://github.com/CoCreate-app/CoCreate-utils/commit/e020f59f508e5f8d155972cf852b7ef810703cc8))
|
|
7
|
+
|
|
1
8
|
## [1.27.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.27.1...v1.27.2) (2023-11-12)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -478,8 +478,8 @@
|
|
|
478
478
|
queryStatus = true
|
|
479
479
|
break;
|
|
480
480
|
case '$ne':
|
|
481
|
-
if (dataValue != queryValue)
|
|
482
|
-
|
|
481
|
+
// if (dataValue != queryValue)
|
|
482
|
+
queryStatus = (dataValue != queryValue)
|
|
483
483
|
break;
|
|
484
484
|
case '$lt':
|
|
485
485
|
if (dataValue < queryValue)
|
|
@@ -521,20 +521,19 @@
|
|
|
521
521
|
queryStatus = true
|
|
522
522
|
break;
|
|
523
523
|
}
|
|
524
|
-
if (queryStatus == true) {
|
|
525
|
-
queryResult = true
|
|
526
|
-
break;
|
|
527
|
-
}
|
|
528
524
|
|
|
525
|
+
switch (logicalOperator) {
|
|
526
|
+
case 'and':
|
|
527
|
+
if (queryStatus == false)
|
|
528
|
+
return false
|
|
529
|
+
break;
|
|
530
|
+
// case 'or':
|
|
531
|
+
// if (queryStatus == true)
|
|
532
|
+
// queryResult = queryStatus
|
|
533
|
+
// break;
|
|
534
|
+
}
|
|
535
|
+
queryResult = queryStatus
|
|
529
536
|
}
|
|
530
|
-
switch (logicalOperator) {
|
|
531
|
-
case 'and':
|
|
532
|
-
if (queryStatus == false)
|
|
533
|
-
return false
|
|
534
|
-
break;
|
|
535
|
-
}
|
|
536
|
-
// if (logicalOperator == 'and' && queryStatus == false)
|
|
537
|
-
// return false
|
|
538
537
|
}
|
|
539
538
|
}
|
|
540
539
|
|