vis-util 5.0.4 → 5.0.5

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.
@@ -4,8 +4,8 @@
4
4
  *
5
5
  * utilitie collection for visjs
6
6
  *
7
- * @version 5.0.4
8
- * @date 2023-09-13T20:29:32.256Z
7
+ * @version 5.0.5
8
+ * @date 2023-10-03T18:47:58.061Z
9
9
  *
10
10
  * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11
11
  * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
@@ -3179,6 +3179,10 @@
3179
3179
  }
3180
3180
  var a = values[0];
3181
3181
  var b = values[1];
3182
+ if (a instanceof Date && b instanceof Date) {
3183
+ a.setTime(b.getTime());
3184
+ return a;
3185
+ }
3182
3186
  var _iterator = _createForOfIteratorHelper$2(_Reflect$ownKeys(b)),
3183
3187
  _step;
3184
3188
  try {
@@ -3213,6 +3217,9 @@
3213
3217
  return clone(value);
3214
3218
  });
3215
3219
  } else if (_typeof(a) === "object" && a !== null) {
3220
+ if (a instanceof Date) {
3221
+ return new Date(a.getTime());
3222
+ }
3216
3223
  return deepObjectAssignNonentry({}, a);
3217
3224
  } else {
3218
3225
  return a;