@cocreate/utils 1.27.1 → 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 CHANGED
@@ -1,3 +1,17 @@
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
+
8
+ ## [1.27.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.27.1...v1.27.2) (2023-11-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies for latest features ([6e2cd90](https://github.com/CoCreate-app/CoCreate-utils/commit/6e2cd900c2fbdeb22b235830814446521f34d6a4))
14
+
1
15
  ## [1.27.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.27.0...v1.27.1) (2023-11-09)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/utils",
3
- "version": "1.27.1",
3
+ "version": "1.27.3",
4
4
  "description": "A simple utils component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "utils",
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
- queryStatus = true
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