@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.
- package/dist-cjs/submodules/cbor/index.js +518 -371
- package/dist-cjs/submodules/client/index.js +1 -1
- package/dist-es/submodules/cbor/cbor-decode.js +326 -269
- package/dist-es/submodules/cbor/cbor-encode.js +192 -103
- package/dist-es/submodules/cbor/cbor.js +4 -2
- package/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +1 -1
- package/dist-types/submodules/cbor/cbor-decode.d.ts +4 -0
- package/dist-types/submodules/cbor/cbor-encode.d.ts +8 -4
- package/package.json +1 -1
|
@@ -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 (
|
|
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) {
|