@budibase/shared-core 3.2.38 → 3.2.40
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/dist/index.js +17 -1
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -22542,7 +22542,23 @@ function runQuery(docs, query) {
|
|
|
22542
22542
|
if (docValue && typeof docValue === "object" && typeof testValue === "string") {
|
|
22543
22543
|
return docValue._id === testValue;
|
|
22544
22544
|
}
|
|
22545
|
-
|
|
22545
|
+
if (docValue === testValue) {
|
|
22546
|
+
return true;
|
|
22547
|
+
}
|
|
22548
|
+
if (docValue == null && testValue != null) {
|
|
22549
|
+
return false;
|
|
22550
|
+
}
|
|
22551
|
+
if (docValue != null && testValue == null) {
|
|
22552
|
+
return false;
|
|
22553
|
+
}
|
|
22554
|
+
const leftDate = (0, import_dayjs.default)(docValue);
|
|
22555
|
+
if (leftDate.isValid()) {
|
|
22556
|
+
const rightDate = (0, import_dayjs.default)(testValue);
|
|
22557
|
+
if (rightDate.isValid()) {
|
|
22558
|
+
return leftDate.isSame(rightDate);
|
|
22559
|
+
}
|
|
22560
|
+
}
|
|
22561
|
+
return false;
|
|
22546
22562
|
};
|
|
22547
22563
|
const not = (f) => (...args) => !f(...args);
|
|
22548
22564
|
const equalMatch = match("equal" /* EQUAL */, _valueMatches);
|