@aws-sdk/core 3.921.0 → 3.926.0
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.
package/dist-cjs/index.js
CHANGED
|
@@ -1469,7 +1469,14 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1469
1469
|
Code: errorData.Code,
|
|
1470
1470
|
Message: message,
|
|
1471
1471
|
};
|
|
1472
|
-
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) =>
|
|
1472
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => {
|
|
1473
|
+
try {
|
|
1474
|
+
return registry.getSchema(errorName);
|
|
1475
|
+
}
|
|
1476
|
+
catch (e) {
|
|
1477
|
+
return registry.find((schema$1) => schema.NormalizedSchema.of(schema$1).getMergedTraits().awsQueryError?.[0] === errorName);
|
|
1478
|
+
}
|
|
1479
|
+
});
|
|
1473
1480
|
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
1474
1481
|
const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
1475
1482
|
const exception = new ErrorCtor(message);
|
|
@@ -1139,7 +1139,14 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1139
1139
|
Code: errorData.Code,
|
|
1140
1140
|
Message: message,
|
|
1141
1141
|
};
|
|
1142
|
-
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) =>
|
|
1142
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => {
|
|
1143
|
+
try {
|
|
1144
|
+
return registry.getSchema(errorName);
|
|
1145
|
+
}
|
|
1146
|
+
catch (e) {
|
|
1147
|
+
return registry.find((schema$1) => schema.NormalizedSchema.of(schema$1).getMergedTraits().awsQueryError?.[0] === errorName);
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1143
1150
|
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
1144
1151
|
const ErrorCtor = schema.TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
1145
1152
|
const exception = new ErrorCtor(message);
|
|
@@ -95,7 +95,14 @@ export class AwsQueryProtocol extends RpcProtocol {
|
|
|
95
95
|
Code: errorData.Code,
|
|
96
96
|
Message: message,
|
|
97
97
|
};
|
|
98
|
-
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) =>
|
|
98
|
+
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => {
|
|
99
|
+
try {
|
|
100
|
+
return registry.getSchema(errorName);
|
|
101
|
+
}
|
|
102
|
+
catch (e) {
|
|
103
|
+
return registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
99
106
|
const ns = NormalizedSchema.of(errorSchema);
|
|
100
107
|
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error;
|
|
101
108
|
const exception = new ErrorCtor(message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.926.0",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"license": "Apache-2.0",
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@aws-sdk/types": "3.
|
|
84
|
+
"@aws-sdk/types": "3.922.0",
|
|
85
85
|
"@aws-sdk/xml-builder": "3.921.0",
|
|
86
86
|
"@smithy/core": "^3.17.2",
|
|
87
87
|
"@smithy/node-config-provider": "^4.3.4",
|