@omegup/msync 0.1.42 → 0.1.43

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/index.esm.js CHANGED
@@ -277,6 +277,8 @@ const $pushDict = (key, value) => $accumulator(function () {
277
277
  const equal = (a, b) => {
278
278
  if (!a || !b)
279
279
  return a === b;
280
+ if (a instanceof Date)
281
+ return b instanceof Date && a.getTime() === b.getTime();
280
282
  if ([a, b].some(a => Object.getPrototypeOf(a) != Object.prototype))
281
283
  return a.valueOf() === b.valueOf();
282
284
  const keys = Object.keys(a);
package/index.js CHANGED
@@ -279,6 +279,8 @@ const $pushDict = (key, value) => $accumulator(function () {
279
279
  const equal = (a, b) => {
280
280
  if (!a || !b)
281
281
  return a === b;
282
+ if (a instanceof Date)
283
+ return b instanceof Date && a.getTime() === b.getTime();
282
284
  if ([a, b].some(a => Object.getPrototypeOf(a) != Object.prototype))
283
285
  return a.valueOf() === b.valueOf();
284
286
  const keys = Object.keys(a);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "index.esm.js",
4
4
  "typings": "index.d.ts",
5
5
  "name": "@omegup/msync",
6
- "version": "0.1.42",
6
+ "version": "0.1.43",
7
7
  "dependencies": {
8
8
  "dayjs": "^1.11.9",
9
9
  "dotenv": "^16.3.1",