backend v4 half
This commit is contained in:
Generated
Vendored
+8
-9
@@ -787,9 +787,8 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
|
||||
readSchema(_schema, value) {
|
||||
const ns = import_schema5.NormalizedSchema.of(_schema);
|
||||
const traits = ns.getMergedTraits();
|
||||
const schema = ns.getSchema();
|
||||
if (ns.isListSchema() && !Array.isArray(value)) {
|
||||
return this.readSchema(schema, [value]);
|
||||
return this.readSchema(ns, [value]);
|
||||
}
|
||||
if (value == null) {
|
||||
return value;
|
||||
@@ -845,14 +844,14 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
|
||||
return value;
|
||||
}
|
||||
throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
|
||||
} else {
|
||||
if (ns.isListSchema()) {
|
||||
return [];
|
||||
} else if (ns.isMapSchema() || ns.isStructSchema()) {
|
||||
return {};
|
||||
}
|
||||
return this.stringDeserializer.read(ns, value);
|
||||
}
|
||||
if (ns.isListSchema()) {
|
||||
return [];
|
||||
}
|
||||
if (ns.isMapSchema() || ns.isStructSchema()) {
|
||||
return {};
|
||||
}
|
||||
return this.stringDeserializer.read(ns, value);
|
||||
}
|
||||
parseXml(xml) {
|
||||
if (xml.length) {
|
||||
|
||||
Generated
Vendored
+7
-10
@@ -43,9 +43,8 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
|
||||
readSchema(_schema, value) {
|
||||
const ns = NormalizedSchema.of(_schema);
|
||||
const traits = ns.getMergedTraits();
|
||||
const schema = ns.getSchema();
|
||||
if (ns.isListSchema() && !Array.isArray(value)) {
|
||||
return this.readSchema(schema, [value]);
|
||||
return this.readSchema(ns, [value]);
|
||||
}
|
||||
if (value == null) {
|
||||
return value;
|
||||
@@ -105,15 +104,13 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
|
||||
}
|
||||
throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`);
|
||||
}
|
||||
else {
|
||||
if (ns.isListSchema()) {
|
||||
return [];
|
||||
}
|
||||
else if (ns.isMapSchema() || ns.isStructSchema()) {
|
||||
return {};
|
||||
}
|
||||
return this.stringDeserializer.read(ns, value);
|
||||
if (ns.isListSchema()) {
|
||||
return [];
|
||||
}
|
||||
if (ns.isMapSchema() || ns.isStructSchema()) {
|
||||
return {};
|
||||
}
|
||||
return this.stringDeserializer.read(ns, value);
|
||||
}
|
||||
parseXml(xml) {
|
||||
if (xml.length) {
|
||||
|
||||
Generated
Vendored
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types";
|
||||
import type { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types";
|
||||
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
||||
import { XmlSettings } from "./XmlCodec";
|
||||
import type { XmlSettings } from "./XmlCodec";
|
||||
/**
|
||||
* @alpha
|
||||
*/
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@aws-sdk/core",
|
||||
"version": "3.840.0",
|
||||
"version": "3.846.0",
|
||||
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
||||
"scripts": {
|
||||
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
||||
@@ -83,18 +83,18 @@
|
||||
"dependencies": {
|
||||
"@aws-sdk/types": "3.840.0",
|
||||
"@aws-sdk/xml-builder": "3.821.0",
|
||||
"@smithy/core": "^3.6.0",
|
||||
"@smithy/core": "^3.7.0",
|
||||
"@smithy/node-config-provider": "^4.1.3",
|
||||
"@smithy/property-provider": "^4.0.4",
|
||||
"@smithy/protocol-http": "^5.1.2",
|
||||
"@smithy/signature-v4": "^5.1.2",
|
||||
"@smithy/smithy-client": "^4.4.5",
|
||||
"@smithy/smithy-client": "^4.4.7",
|
||||
"@smithy/types": "^4.3.1",
|
||||
"@smithy/util-base64": "^4.0.0",
|
||||
"@smithy/util-body-length-browser": "^4.0.0",
|
||||
"@smithy/util-middleware": "^4.0.4",
|
||||
"@smithy/util-utf8": "^4.0.0",
|
||||
"fast-xml-parser": "4.4.1",
|
||||
"fast-xml-parser": "5.2.5",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user