@progress/kendo-charts 2.4.0-dev.202406100726 → 2.4.0

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,11 @@ var OBJECT = "object";
4
4
  var UNDEFINED = "undefined";
5
5
 
6
6
  function deepExtendOne(destination, source) {
7
-
8
7
  for (var property in source) {
8
+ if (property === '__proto__' || property === 'constructor') {
9
+ continue;
10
+ }
11
+
9
12
  var propValue = source[property];
10
13
  var propType = typeof propValue;
11
14
 
@@ -17,7 +20,6 @@ function deepExtendOne(destination, source) {
17
20
  }
18
21
 
19
22
  if (propInit && propInit !== Array) {
20
-
21
23
  if (propValue instanceof Date) {
22
24
  destination[property] = new Date(propValue.getTime());
23
25
  } else if (isFunction(propValue.clone)) {
@@ -49,4 +51,4 @@ export default function deepExtend(destination) {
49
51
  }
50
52
 
51
53
  return destination;
52
- }
54
+ }
@@ -4,8 +4,11 @@ const OBJECT = "object";
4
4
  const UNDEFINED = "undefined";
5
5
 
6
6
  function deepExtendOne(destination, source) {
7
-
8
7
  for (let property in source) {
8
+ if (property === '__proto__' || property === 'constructor') {
9
+ continue;
10
+ }
11
+
9
12
  let propValue = source[property];
10
13
  let propType = typeof propValue;
11
14
 
@@ -17,7 +20,6 @@ function deepExtendOne(destination, source) {
17
20
  }
18
21
 
19
22
  if (propInit && propInit !== Array) {
20
-
21
23
  if (propValue instanceof Date) {
22
24
  destination[property] = new Date(propValue.getTime());
23
25
  } else if (isFunction(propValue.clone)) {
@@ -47,4 +49,4 @@ export default function deepExtend(destination) {
47
49
  }
48
50
 
49
51
  return destination;
50
- }
52
+ }