@easyquery/core 7.2.3-rc01 → 7.2.3-rc03

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.
@@ -2355,13 +2355,22 @@ var AggregationSettings = /** @class */ (function () {
2355
2355
  };
2356
2356
  //returns true if value1 == value2
2357
2357
  AggregationSettings.prototype.strictCompare = function (value1, value2) {
2358
- return value1 === value2;
2358
+ if (value1 instanceof Date) {
2359
+ return value1.getTime() === value2.getTime();
2360
+ }
2361
+ else
2362
+ return value1 === value2;
2359
2363
  };
2360
2364
  //makes a case insensative comparision of two values and return true if there are equal
2361
2365
  AggregationSettings.prototype.caseInsensitiveCompare = function (value1, value2) {
2362
- var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
2363
- var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
2364
- return val1 === val2;
2366
+ if (value1 instanceof Date) {
2367
+ return value1.getTime() === value2.getTime();
2368
+ }
2369
+ else {
2370
+ var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
2371
+ var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
2372
+ return val1 === val2;
2373
+ }
2365
2374
  };
2366
2375
  return AggregationSettings;
2367
2376
  }());