@syncfusion/ej2-base 28.2.5 → 28.2.12

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.
@@ -83,6 +83,9 @@ function setValue(nameSpace, value, obj) {
83
83
  let key;
84
84
  for (i = 0; i < length; i++) {
85
85
  key = keys[parseInt(i.toString(), 10)];
86
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
87
+ continue;
88
+ }
86
89
  if (i + 1 === length) {
87
90
  fromObj[`${key}`] = value === undefined ? {} : value;
88
91
  }
@@ -1725,6 +1728,7 @@ var IntlBase;
1725
1728
  const spaceGrouping = integerPart.replace(/ $/g, '').indexOf(' ') !== -1;
1726
1729
  cOptions.useGrouping = integerPart.indexOf(',') !== -1 || spaceGrouping;
1727
1730
  integerPart = integerPart.replace(/,/g, '');
1731
+ integerPart = (/\s$/.test(integerPart)) ? integerPart.replace(/ /g, '') : integerPart;
1728
1732
  const fractionPart = pattern[7];
1729
1733
  if (integerPart.indexOf('0') !== -1) {
1730
1734
  cOptions.minimumIntegerDigits = integerPart.length - integerPart.indexOf('0');