@easydata/crud 1.4.12 → 1.4.13

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.
@@ -1047,13 +1047,22 @@ var AggregationSettings = /** @class */ (function () {
1047
1047
  };
1048
1048
  //returns true if value1 == value2
1049
1049
  AggregationSettings.prototype.strictCompare = function (value1, value2) {
1050
- return value1 === value2;
1050
+ if (value1 instanceof Date) {
1051
+ return value1.getTime() === value2.getTime();
1052
+ }
1053
+ else
1054
+ return value1 === value2;
1051
1055
  };
1052
1056
  //makes a case insensative comparision of two values and return true if there are equal
1053
1057
  AggregationSettings.prototype.caseInsensitiveCompare = function (value1, value2) {
1054
- var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
1055
- var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
1056
- return val1 === val2;
1058
+ if (value1 instanceof Date) {
1059
+ return value1.getTime() === value2.getTime();
1060
+ }
1061
+ else {
1062
+ var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
1063
+ var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
1064
+ return val1 === val2;
1065
+ }
1057
1066
  };
1058
1067
  return AggregationSettings;
1059
1068
  }());