@smithy/core 3.23.1 → 3.23.3
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.
|
@@ -236,6 +236,9 @@ class EventStreamSerde {
|
|
|
236
236
|
serializer.write(eventSchema, event[unionMember]);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
+
else if (eventSchema.isUnitSchema()) {
|
|
240
|
+
serializer.write(eventSchema, {});
|
|
241
|
+
}
|
|
239
242
|
else {
|
|
240
243
|
throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
|
|
241
244
|
}
|
|
@@ -233,6 +233,9 @@ export class EventStreamSerde {
|
|
|
233
233
|
serializer.write(eventSchema, event[unionMember]);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
+
else if (eventSchema.isUnitSchema()) {
|
|
237
|
+
serializer.write(eventSchema, {});
|
|
238
|
+
}
|
|
236
239
|
else {
|
|
237
240
|
throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
|
|
238
241
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.3",
|
|
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",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@smithy/util-base64": "^4.3.0",
|
|
86
86
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
87
87
|
"@smithy/util-middleware": "^4.2.8",
|
|
88
|
-
"@smithy/util-stream": "^4.5.
|
|
88
|
+
"@smithy/util-stream": "^4.5.13",
|
|
89
89
|
"@smithy/util-utf8": "^4.2.0",
|
|
90
90
|
"@smithy/uuid": "^1.1.0",
|
|
91
91
|
"tslib": "^2.6.2"
|