@smithy/core 3.25.1 → 3.26.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.
@@ -940,7 +940,7 @@ const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeAr
940
940
  const getValueFromTextNode = (obj) => {
941
941
  const textNodeName = "#text";
942
942
  for (const key in obj) {
943
- if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) {
943
+ if (Object.prototype.hasOwnProperty.call(obj, key) && obj[key][textNodeName] !== undefined) {
944
944
  obj[key] = obj[key][textNodeName];
945
945
  }
946
946
  else if (typeof obj[key] === "object" && obj[key] !== null) {