chore: Update dist

This commit is contained in:
GitHub Actions
2026-03-24 03:48:37 +00:00
parent 118f2eabc7
commit 21cbb61e80
2 changed files with 56 additions and 28 deletions
+4 -4
View File
@@ -869,7 +869,7 @@ The following npm packages may be included in this product:
- @smithy/invalid-dependency@4.2.12 - @smithy/invalid-dependency@4.2.12
- @smithy/middleware-serde@4.2.15 - @smithy/middleware-serde@4.2.15
- @smithy/protocol-http@5.3.12 - @smithy/protocol-http@5.3.12
- @smithy/smithy-client@4.12.6 - @smithy/smithy-client@4.12.7
- @smithy/types@4.13.1 - @smithy/types@4.13.1
These packages each contain the following license: These packages each contain the following license:
@@ -1267,7 +1267,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm package may be included in this product: The following npm package may be included in this product:
- @aws-sdk/core@3.973.20 - @aws-sdk/core@3.973.24
This package contains the following license: This package contains the following license:
@@ -1687,7 +1687,7 @@ Apache License
The following npm packages may be included in this product: The following npm packages may be included in this product:
- @aws-sdk/credential-provider-env@3.972.18 - @aws-sdk/credential-provider-env@3.972.22
- @aws-sdk/credential-provider-ini@3.972.20 - @aws-sdk/credential-provider-ini@3.972.20
- @aws-sdk/credential-provider-node@3.972.21 - @aws-sdk/credential-provider-node@3.972.21
- @aws-sdk/region-config-resolver@3.972.8 - @aws-sdk/region-config-resolver@3.972.8
@@ -1704,7 +1704,7 @@ The following npm packages may be included in this product:
- @smithy/is-array-buffer@2.2.0 - @smithy/is-array-buffer@2.2.0
- @smithy/is-array-buffer@4.2.2 - @smithy/is-array-buffer@4.2.2
- @smithy/middleware-content-length@4.2.12 - @smithy/middleware-content-length@4.2.12
- @smithy/middleware-endpoint@4.4.26 - @smithy/middleware-endpoint@4.4.27
- @smithy/middleware-stack@4.2.12 - @smithy/middleware-stack@4.2.12
- @smithy/node-http-handler@4.5.0 - @smithy/node-http-handler@4.5.0
- @smithy/property-provider@4.2.12 - @smithy/property-provider@4.2.12
Generated Vendored
+52 -24
View File
@@ -31865,6 +31865,7 @@ var init_ProtocolLib = __esm({
import_smithy_client = __toESM(require_dist_cjs25()); import_smithy_client = __toESM(require_dist_cjs25());
ProtocolLib = class { ProtocolLib = class {
queryCompat; queryCompat;
errorRegistry;
constructor(queryCompat = false) { constructor(queryCompat = false) {
this.queryCompat = queryCompat; this.queryCompat = queryCompat;
} }
@@ -31896,30 +31897,46 @@ var init_ProtocolLib = __esm({
} }
} }
async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) { async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
let namespace = defaultNamespace;
let errorName = errorIdentifier; let errorName = errorIdentifier;
if (errorIdentifier.includes("#")) { if (errorIdentifier.includes("#")) {
[namespace, errorName] = errorIdentifier.split("#"); [, errorName] = errorIdentifier.split("#");
} }
const errorMetadata = { const errorMetadata = {
$metadata: metadata, $metadata: metadata,
$fault: response.statusCode < 500 ? "client" : "server" $fault: response.statusCode < 500 ? "client" : "server"
}; };
const registry = TypeRegistry.for(namespace); if (!this.errorRegistry) {
throw new Error("@aws-sdk/core/protocols - error handler not initialized.");
}
try { try {
const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier); const errorSchema = getErrorSchema?.(this.errorRegistry, errorName) ?? this.errorRegistry.getSchema(errorIdentifier);
return { errorSchema, errorMetadata }; return { errorSchema, errorMetadata };
} catch (e5) { } catch (e5) {
dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError"; dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
const synthetic = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace); const synthetic = this.errorRegistry;
const baseExceptionSchema = synthetic.getBaseException(); const baseExceptionSchema = synthetic.getBaseException();
if (baseExceptionSchema) { if (baseExceptionSchema) {
const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error; const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject); throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
} }
throw this.decorateServiceException(Object.assign(new Error(errorName), errorMetadata), dataObject); const d5 = dataObject;
const message = d5?.message ?? d5?.Message ?? d5?.Error?.Message ?? d5?.Error?.message;
throw this.decorateServiceException(Object.assign(new Error(message), {
name: errorName
}, errorMetadata), dataObject);
} }
} }
compose(composite, errorIdentifier, defaultNamespace) {
let namespace = defaultNamespace;
if (errorIdentifier.includes("#")) {
[namespace] = errorIdentifier.split("#");
}
const staticRegistry = TypeRegistry.for(namespace);
const defaultSyntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace);
composite.copyFrom(staticRegistry);
composite.copyFrom(defaultSyntheticRegistry);
this.errorRegistry = composite;
}
decorateServiceException(exception, additions = {}) { decorateServiceException(exception, additions = {}) {
if (this.queryCompat) { if (this.queryCompat) {
const msg = exception.Message ?? additions.Message; const msg = exception.Message ?? additions.Message;
@@ -31990,8 +32007,8 @@ var init_AwsSmithyRpcV2CborProtocol = __esm({
AwsSmithyRpcV2CborProtocol = class extends SmithyRpcV2CborProtocol { AwsSmithyRpcV2CborProtocol = class extends SmithyRpcV2CborProtocol {
awsQueryCompatible; awsQueryCompatible;
mixin; mixin;
constructor({ defaultNamespace, awsQueryCompatible }) { constructor({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5, awsQueryCompatible }) {
super({ defaultNamespace }); super({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5 });
this.awsQueryCompatible = !!awsQueryCompatible; this.awsQueryCompatible = !!awsQueryCompatible;
this.mixin = new ProtocolLib(this.awsQueryCompatible); this.mixin = new ProtocolLib(this.awsQueryCompatible);
} }
@@ -32013,10 +32030,11 @@ var init_AwsSmithyRpcV2CborProtocol = __esm({
} }
return loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown"; return loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
})(); })();
this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : void 0); const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : void 0);
const ns = NormalizedSchema.of(errorSchema); const ns = NormalizedSchema.of(errorSchema);
const message = dataObject.message ?? dataObject.Message ?? "Unknown"; const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error; const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
const exception = new ErrorCtor(message); const exception = new ErrorCtor(message);
const output = {}; const output = {};
for (const [name, member2] of ns.structIterator()) { for (const [name, member2] of ns.structIterator()) {
@@ -32661,9 +32679,10 @@ var init_AwsJsonRpcProtocol = __esm({
codec; codec;
mixin; mixin;
awsQueryCompatible; awsQueryCompatible;
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec }) { constructor({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5, serviceTarget, awsQueryCompatible, jsonCodec }) {
super({ super({
defaultNamespace defaultNamespace,
errorTypeRegistries: errorTypeRegistries5
}); });
this.serviceTarget = serviceTarget; this.serviceTarget = serviceTarget;
this.codec = jsonCodec ?? new JsonCodec({ this.codec = jsonCodec ?? new JsonCodec({
@@ -32703,10 +32722,11 @@ var init_AwsJsonRpcProtocol = __esm({
this.mixin.setQueryCompatError(dataObject, response); this.mixin.setQueryCompatError(dataObject, response);
} }
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : void 0); const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : void 0);
const ns = NormalizedSchema.of(errorSchema); const ns = NormalizedSchema.of(errorSchema);
const message = dataObject.message ?? dataObject.Message ?? "Unknown"; const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error; const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
const exception = new ErrorCtor(message); const exception = new ErrorCtor(message);
const output = {}; const output = {};
for (const [name, member2] of ns.structIterator()) { for (const [name, member2] of ns.structIterator()) {
@@ -32732,9 +32752,10 @@ var init_AwsJson1_0Protocol = __esm({
"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js"() { "node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js"() {
init_AwsJsonRpcProtocol(); init_AwsJsonRpcProtocol();
AwsJson1_0Protocol = class extends AwsJsonRpcProtocol { AwsJson1_0Protocol = class extends AwsJsonRpcProtocol {
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec }) { constructor({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5, serviceTarget, awsQueryCompatible, jsonCodec }) {
super({ super({
defaultNamespace, defaultNamespace,
errorTypeRegistries: errorTypeRegistries5,
serviceTarget, serviceTarget,
awsQueryCompatible, awsQueryCompatible,
jsonCodec jsonCodec
@@ -32759,9 +32780,10 @@ var init_AwsJson1_1Protocol = __esm({
"node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js"() { "node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js"() {
init_AwsJsonRpcProtocol(); init_AwsJsonRpcProtocol();
AwsJson1_1Protocol = class extends AwsJsonRpcProtocol { AwsJson1_1Protocol = class extends AwsJsonRpcProtocol {
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec }) { constructor({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5, serviceTarget, awsQueryCompatible, jsonCodec }) {
super({ super({
defaultNamespace, defaultNamespace,
errorTypeRegistries: errorTypeRegistries5,
serviceTarget, serviceTarget,
awsQueryCompatible, awsQueryCompatible,
jsonCodec jsonCodec
@@ -32794,9 +32816,10 @@ var init_AwsRestJsonProtocol = __esm({
deserializer; deserializer;
codec; codec;
mixin = new ProtocolLib(); mixin = new ProtocolLib();
constructor({ defaultNamespace }) { constructor({ defaultNamespace, errorTypeRegistries: errorTypeRegistries5 }) {
super({ super({
defaultNamespace defaultNamespace,
errorTypeRegistries: errorTypeRegistries5
}); });
const settings = { const settings = {
timestampFormat: { timestampFormat: {
@@ -32846,10 +32869,11 @@ var init_AwsRestJsonProtocol = __esm({
} }
async handleError(operationSchema, context, response, dataObject, metadata) { async handleError(operationSchema, context, response, dataObject, metadata) {
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata); const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
const ns = NormalizedSchema.of(errorSchema); const ns = NormalizedSchema.of(errorSchema);
const message = dataObject.message ?? dataObject.Message ?? "Unknown"; const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error; const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
const exception = new ErrorCtor(message); const exception = new ErrorCtor(message);
await this.deserializeHttpMessage(errorSchema, context, response, dataObject); await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
const output = {}; const output = {};
@@ -34690,7 +34714,8 @@ var init_AwsQueryProtocol = __esm({
mixin = new ProtocolLib(); mixin = new ProtocolLib();
constructor(options) { constructor(options) {
super({ super({
defaultNamespace: options.defaultNamespace defaultNamespace: options.defaultNamespace,
errorTypeRegistries: options.errorTypeRegistries
}); });
this.options = options; this.options = options;
const settings = { const settings = {
@@ -34767,6 +34792,7 @@ var init_AwsQueryProtocol = __esm({
} }
async handleError(operationSchema, context, response, dataObject, metadata) { async handleError(operationSchema, context, response, dataObject, metadata) {
const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown"; const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
const errorData = this.loadQueryError(dataObject) ?? {}; const errorData = this.loadQueryError(dataObject) ?? {};
const message = this.loadQueryErrorMessage(dataObject); const message = this.loadQueryErrorMessage(dataObject);
errorData.message = message; errorData.message = message;
@@ -34777,7 +34803,7 @@ var init_AwsQueryProtocol = __esm({
}; };
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError); const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
const ns = NormalizedSchema.of(errorSchema); const ns = NormalizedSchema.of(errorSchema);
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error; const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
const exception = new ErrorCtor(message); const exception = new ErrorCtor(message);
const output = { const output = {
Type: errorData.Error.Type, Type: errorData.Error.Type,
@@ -35235,6 +35261,7 @@ var init_AwsRestXmlProtocol = __esm({
this.codec = new XmlCodec(settings); this.codec = new XmlCodec(settings);
this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
this.compositeErrorRegistry;
} }
getPayloadCodec() { getPayloadCodec() {
return this.codec; return this.codec;
@@ -35261,6 +35288,7 @@ var init_AwsRestXmlProtocol = __esm({
} }
async handleError(operationSchema, context, response, dataObject, metadata) { async handleError(operationSchema, context, response, dataObject, metadata) {
const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown"; const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
if (dataObject.Error && typeof dataObject.Error === "object") { if (dataObject.Error && typeof dataObject.Error === "object") {
for (const key of Object.keys(dataObject.Error)) { for (const key of Object.keys(dataObject.Error)) {
dataObject[key] = dataObject.Error[key]; dataObject[key] = dataObject.Error[key];
@@ -35274,8 +35302,8 @@ var init_AwsRestXmlProtocol = __esm({
} }
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata); const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
const ns = NormalizedSchema.of(errorSchema); const ns = NormalizedSchema.of(errorSchema);
const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown"; const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "UnknownError";
const ErrorCtor = TypeRegistry.for(errorSchema[1]).getErrorCtor(errorSchema) ?? Error; const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
const exception = new ErrorCtor(message); const exception = new ErrorCtor(message);
await this.deserializeHttpMessage(errorSchema, context, response, dataObject); await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
const output = {}; const output = {};