@aws-sdk/core
Advanced tools
@@ -54,2 +54,13 @@ import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols"; | ||
| const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown"; | ||
| if (dataObject.Error && typeof dataObject.Error === "object") { | ||
| for (const key of Object.keys(dataObject.Error)) { | ||
| dataObject[key] = dataObject.Error[key]; | ||
| if (key.toLowerCase() === "message") { | ||
| dataObject.message = dataObject.Error[key]; | ||
| } | ||
| } | ||
| } | ||
| if (dataObject.RequestId && !metadata.requestId) { | ||
| metadata.requestId = dataObject.RequestId; | ||
| } | ||
| const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata); | ||
@@ -56,0 +67,0 @@ const ns = NormalizedSchema.of(errorSchema); |
+3
-3
| { | ||
| "name": "@aws-sdk/core", | ||
| "version": "3.973.6", | ||
| "version": "3.973.7", | ||
| "description": "Core functions & classes shared by multiple AWS SDK clients.", | ||
@@ -86,3 +86,3 @@ "scripts": { | ||
| "@aws-sdk/xml-builder": "^3.972.4", | ||
| "@smithy/core": "^3.22.0", | ||
| "@smithy/core": "^3.22.1", | ||
| "@smithy/node-config-provider": "^4.3.8", | ||
@@ -92,3 +92,3 @@ "@smithy/property-provider": "^4.2.8", | ||
| "@smithy/signature-v4": "^5.3.8", | ||
| "@smithy/smithy-client": "^4.11.1", | ||
| "@smithy/smithy-client": "^4.11.2", | ||
| "@smithy/types": "^4.12.0", | ||
@@ -95,0 +95,0 @@ "@smithy/util-base64": "^4.3.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
362129
0.4%8642
0.38%Updated