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
@@ -3174,6 +3174,10 @@ function deepObjectAssignNonentry() {
3174
3174
  }
3175
3175
  var a = values[0];
3176
3176
  var b = values[1];
3177
+ if (a instanceof Date && b instanceof Date) {
3178
+ a.setTime(b.getTime());
3179
+ return a;
3180
+ }
3177
3181
  var _iterator = _createForOfIteratorHelper$2(_Reflect$ownKeys(b)),
3178
3182
  _step;
3179
3183
  try {
@@ -3208,6 +3212,9 @@ function clone(a) {
3208
3212
  return clone(value);
3209
3213
  });
3210
3214
  } else if (_typeof(a) === "object" && a !== null) {
3215
+ if (a instanceof Date) {
3216
+ return new Date(a.getTime());
3217
+ }
3211
3218
  return deepObjectAssignNonentry({}, a);
3212
3219
  } else {
3213
3220
  return a;