@smithy/core 3.23.6 → 3.23.8
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.
|
@@ -929,24 +929,18 @@ class CborShapeDeserializer extends protocols.SerdeContext {
|
|
|
929
929
|
if (ns.isListSchema()) {
|
|
930
930
|
const newArray = [];
|
|
931
931
|
const memberSchema = ns.getValueSchema();
|
|
932
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
933
932
|
for (const item of value) {
|
|
934
933
|
const itemValue = this.readValue(memberSchema, item);
|
|
935
|
-
|
|
936
|
-
newArray.push(itemValue);
|
|
937
|
-
}
|
|
934
|
+
newArray.push(itemValue);
|
|
938
935
|
}
|
|
939
936
|
return newArray;
|
|
940
937
|
}
|
|
941
938
|
const newObject = {};
|
|
942
939
|
if (ns.isMapSchema()) {
|
|
943
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
944
940
|
const targetSchema = ns.getValueSchema();
|
|
945
941
|
for (const key of Object.keys(value)) {
|
|
946
942
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
947
|
-
|
|
948
|
-
newObject[key] = itemValue;
|
|
949
|
-
}
|
|
943
|
+
newObject[key] = itemValue;
|
|
950
944
|
}
|
|
951
945
|
}
|
|
952
946
|
else if (ns.isStructSchema()) {
|
|
@@ -154,24 +154,18 @@ export class CborShapeDeserializer extends SerdeContext {
|
|
|
154
154
|
if (ns.isListSchema()) {
|
|
155
155
|
const newArray = [];
|
|
156
156
|
const memberSchema = ns.getValueSchema();
|
|
157
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
158
157
|
for (const item of value) {
|
|
159
158
|
const itemValue = this.readValue(memberSchema, item);
|
|
160
|
-
|
|
161
|
-
newArray.push(itemValue);
|
|
162
|
-
}
|
|
159
|
+
newArray.push(itemValue);
|
|
163
160
|
}
|
|
164
161
|
return newArray;
|
|
165
162
|
}
|
|
166
163
|
const newObject = {};
|
|
167
164
|
if (ns.isMapSchema()) {
|
|
168
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
169
165
|
const targetSchema = ns.getValueSchema();
|
|
170
166
|
for (const key of Object.keys(value)) {
|
|
171
167
|
const itemValue = this.readValue(targetSchema, value[key]);
|
|
172
|
-
|
|
173
|
-
newObject[key] = itemValue;
|
|
174
|
-
}
|
|
168
|
+
newObject[key] = itemValue;
|
|
175
169
|
}
|
|
176
170
|
}
|
|
177
171
|
else if (ns.isStructSchema()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.8",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -79,22 +79,22 @@
|
|
|
79
79
|
"license": "Apache-2.0",
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@smithy/middleware-serde": "^4.2.
|
|
83
|
-
"@smithy/protocol-http": "^5.3.
|
|
82
|
+
"@smithy/middleware-serde": "^4.2.12",
|
|
83
|
+
"@smithy/protocol-http": "^5.3.11",
|
|
84
84
|
"@smithy/types": "^4.13.0",
|
|
85
|
-
"@smithy/util-base64": "^4.3.
|
|
86
|
-
"@smithy/util-body-length-browser": "^4.2.
|
|
87
|
-
"@smithy/util-middleware": "^4.2.
|
|
88
|
-
"@smithy/util-stream": "^4.5.
|
|
89
|
-
"@smithy/util-utf8": "^4.2.
|
|
90
|
-
"@smithy/uuid": "^1.1.
|
|
85
|
+
"@smithy/util-base64": "^4.3.2",
|
|
86
|
+
"@smithy/util-body-length-browser": "^4.2.2",
|
|
87
|
+
"@smithy/util-middleware": "^4.2.11",
|
|
88
|
+
"@smithy/util-stream": "^4.5.17",
|
|
89
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
90
|
+
"@smithy/uuid": "^1.1.2",
|
|
91
91
|
"tslib": "^2.6.2"
|
|
92
92
|
},
|
|
93
93
|
"engines": {
|
|
94
94
|
"node": ">=18.0.0"
|
|
95
95
|
},
|
|
96
96
|
"typesVersions": {
|
|
97
|
-
"<4.
|
|
97
|
+
"<4.5": {
|
|
98
98
|
"dist-types/*": [
|
|
99
99
|
"dist-types/ts3.4/*"
|
|
100
100
|
]
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"directory": "packages/core"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
123
|
+
"@smithy/eventstream-serde-node": "^4.2.11",
|
|
124
124
|
"@types/node": "^18.11.9",
|
|
125
125
|
"concurrently": "7.0.0",
|
|
126
126
|
"downlevel-dts": "0.10.1",
|