@smithy/core
Advanced tools
@@ -932,8 +932,5 @@ 'use strict'; | ||
| const memberSchema = ns.getValueSchema(); | ||
| const sparse = !!ns.getMergedTraits().sparse; | ||
| for (const item of value) { | ||
| const itemValue = this.readValue(memberSchema, item); | ||
| if (itemValue != null || sparse) { | ||
| newArray.push(itemValue); | ||
| } | ||
| newArray.push(itemValue); | ||
| } | ||
@@ -944,9 +941,6 @@ return newArray; | ||
| if (ns.isMapSchema()) { | ||
| const sparse = !!ns.getMergedTraits().sparse; | ||
| const targetSchema = ns.getValueSchema(); | ||
| for (const key of Object.keys(value)) { | ||
| const itemValue = this.readValue(targetSchema, value[key]); | ||
| if (itemValue != null || sparse) { | ||
| newObject[key] = itemValue; | ||
| } | ||
| newObject[key] = itemValue; | ||
| } | ||
@@ -953,0 +947,0 @@ } |
@@ -157,8 +157,5 @@ import { SerdeContext } from "@smithy/core/protocols"; | ||
| const memberSchema = ns.getValueSchema(); | ||
| const sparse = !!ns.getMergedTraits().sparse; | ||
| for (const item of value) { | ||
| const itemValue = this.readValue(memberSchema, item); | ||
| if (itemValue != null || sparse) { | ||
| newArray.push(itemValue); | ||
| } | ||
| newArray.push(itemValue); | ||
| } | ||
@@ -169,9 +166,6 @@ return newArray; | ||
| if (ns.isMapSchema()) { | ||
| const sparse = !!ns.getMergedTraits().sparse; | ||
| const targetSchema = ns.getValueSchema(); | ||
| for (const key of Object.keys(value)) { | ||
| const itemValue = this.readValue(targetSchema, value[key]); | ||
| if (itemValue != null || sparse) { | ||
| newObject[key] = itemValue; | ||
| } | ||
| newObject[key] = itemValue; | ||
| } | ||
@@ -178,0 +172,0 @@ } |
+2
-2
| { | ||
| "name": "@smithy/core", | ||
| "version": "3.23.6", | ||
| "version": "3.23.7", | ||
| "scripts": { | ||
@@ -88,3 +88,3 @@ "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", | ||
| "@smithy/util-middleware": "^4.2.10", | ||
| "@smithy/util-stream": "^4.5.15", | ||
| "@smithy/util-stream": "^4.5.16", | ||
| "@smithy/util-utf8": "^4.2.1", | ||
@@ -91,0 +91,0 @@ "@smithy/uuid": "^1.1.1", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
457745
-0.12%11423
-0.1%Updated