@cocreate/utils 1.12.2 → 1.12.4
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 +1 -1
- package/src/utils.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.12.4](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.12.3...v1.12.4) (2022-11-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* search - if operator or and no match found return false ([27dc82d](https://github.com/CoCreate-app/CoCreate-utils/commit/27dc82d6ea56983fa46736fba0f4cab3f31a4ea0))
|
|
7
|
+
|
|
8
|
+
## [1.12.3](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.12.2...v1.12.3) (2022-11-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([b13d826](https://github.com/CoCreate-app/CoCreate-utils/commit/b13d8265de4a93a23c2fa9f2c8d31860cffa7846))
|
|
14
|
+
|
|
1
15
|
## [1.12.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.12.1...v1.12.2) (2022-11-27)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/utils.js
CHANGED
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
function searchData(data, searches) {
|
|
316
316
|
const search = searches['value']
|
|
317
317
|
const operator = searches['type']
|
|
318
|
-
|
|
318
|
+
|
|
319
319
|
for (var key in data) {
|
|
320
320
|
let value = data[key];
|
|
321
321
|
let status = false;
|
|
@@ -348,9 +348,11 @@
|
|
|
348
348
|
if (operator == 'and' && !status) {
|
|
349
349
|
return false;
|
|
350
350
|
}
|
|
351
|
-
}
|
|
352
351
|
|
|
352
|
+
}
|
|
353
353
|
}
|
|
354
|
+
if (search.length && operator == 'or')
|
|
355
|
+
return false
|
|
354
356
|
|
|
355
357
|
}
|
|
356
358
|
|