@cocreate/utils 1.18.1 → 1.18.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 +14 -0
- package/package.json +2 -2
- package/src/utils.js +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.18.3](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.18.2...v1.18.3) (2023-02-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump dependencies ([1ff96fd](https://github.com/CoCreate-app/CoCreate-utils/commit/1ff96fd4e36d067b083547c95c0e0f8b5286230c))
|
|
7
|
+
|
|
8
|
+
## [1.18.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.18.1...v1.18.2) (2023-02-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* improved serchData function ([9ccdeb2](https://github.com/CoCreate-app/CoCreate-utils/commit/9ccdeb20be86e87e50fea2f37cb5d019ca6636bc))
|
|
14
|
+
|
|
1
15
|
## [1.18.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.18.0...v1.18.1) (2023-01-31)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/utils",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.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",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/docs": "^1.5.
|
|
63
|
+
"@cocreate/docs": "^1.5.13"
|
|
64
64
|
}
|
|
65
65
|
}
|
package/src/utils.js
CHANGED
|
@@ -336,10 +336,10 @@
|
|
|
336
336
|
case 'includes':
|
|
337
337
|
if (dataValue.includes(queryValue))
|
|
338
338
|
queryStatus = true
|
|
339
|
-
if (queryValue === "" && logicalOperator === 'and') {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
339
|
+
// if (queryValue === "" && logicalOperator === 'and') {
|
|
340
|
+
// if (dataValue !== "")
|
|
341
|
+
// queryStatus = false
|
|
342
|
+
// }
|
|
343
343
|
break;
|
|
344
344
|
case '$eq':
|
|
345
345
|
if (dataValue == queryValue)
|
|
@@ -448,11 +448,11 @@
|
|
|
448
448
|
if (value.indexOf(searchString) > -1)
|
|
449
449
|
status = true;
|
|
450
450
|
|
|
451
|
-
if (
|
|
451
|
+
if (status)
|
|
452
452
|
return true;
|
|
453
|
-
|
|
454
|
-
if (search[i].operator == 'and' && !status)
|
|
453
|
+
else if (search[i].operator == 'and')
|
|
455
454
|
return false;
|
|
455
|
+
|
|
456
456
|
|
|
457
457
|
}
|
|
458
458
|
}
|