@cocreate/events 1.19.1 → 1.19.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 +7 -0
- package/package.json +1 -1
- package/src/index.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.19.2](https://github.com/CoCreate-app/CoCreate-events/compare/v1.19.1...v1.19.2) (2024-02-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* condition "false" ([9bbd374](https://github.com/CoCreate-app/CoCreate-events/commit/9bbd374254ec8a421493618a5a9ad4e45e9b2830))
|
|
7
|
+
|
|
1
8
|
## [1.19.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.19.0...v1.19.1) (2024-02-05)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -544,7 +544,10 @@ function checkCondition(condition, value) {
|
|
|
544
544
|
const operatorMatch = condition.match(/(<=|>=|<|>)(.+)/);
|
|
545
545
|
if (operatorMatch)
|
|
546
546
|
condition = operatorMatch[2].trim()
|
|
547
|
-
|
|
547
|
+
|
|
548
|
+
// TODO: why parse updated conditin to boolean false
|
|
549
|
+
if (condition !== 'false')
|
|
550
|
+
condition = parseCondition(condition);
|
|
548
551
|
let result;
|
|
549
552
|
|
|
550
553
|
if (Array.isArray(value) && !(typeof condition === 'object')) {
|