@cocreate/utils 1.33.5 → 1.33.6
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 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.33.6](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.5...v1.33.6) (2024-02-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* date comaprison ([f4b2994](https://github.com/CoCreate-app/CoCreate-utils/commit/f4b2994b96a15bcf8216b164b4cc13ce8eec897e))
|
|
7
|
+
|
|
1
8
|
## [1.33.5](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.33.4...v1.33.5) (2024-02-17)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -618,6 +618,10 @@
|
|
|
618
618
|
return queryMatch({ [property]: getValueFromObject(dataValue, property) }, { [property]: query[key][property] })
|
|
619
619
|
} else {
|
|
620
620
|
let queryValue = query[key][property]
|
|
621
|
+
if (isValidDate(queryValue) && isValidDate(dataValue)) {
|
|
622
|
+
queryValue = new Date(queryValue)
|
|
623
|
+
dataValue = new Date(dataValue)
|
|
624
|
+
}
|
|
621
625
|
let queryStatus = false
|
|
622
626
|
switch (property) {
|
|
623
627
|
case '$eq':
|