@smithy/core 3.5.2 → 3.5.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.
@@ -136,7 +136,13 @@ var HttpProtocol = class {
136
136
  cfId: output.headers["x-amz-cf-id"]
137
137
  };
138
138
  }
139
- async deserializeHttpMessage(schema, context, response, dataObject) {
139
+ async deserializeHttpMessage(schema, context, response, arg4, arg5) {
140
+ let dataObject;
141
+ if (arg4 instanceof Set) {
142
+ dataObject = arg5;
143
+ } else {
144
+ dataObject = arg4;
145
+ }
140
146
  const deserializer = this.deserializer;
141
147
  const ns = import_schema.NormalizedSchema.of(schema);
142
148
  const nonHttpBindingMembers = [];
@@ -75,7 +75,14 @@ export class HttpProtocol {
75
75
  cfId: output.headers["x-amz-cf-id"],
76
76
  };
77
77
  }
78
- async deserializeHttpMessage(schema, context, response, dataObject) {
78
+ async deserializeHttpMessage(schema, context, response, arg4, arg5) {
79
+ let dataObject;
80
+ if (arg4 instanceof Set) {
81
+ dataObject = arg5;
82
+ }
83
+ else {
84
+ dataObject = arg4;
85
+ }
79
86
  const deserializer = this.deserializer;
80
87
  const ns = NormalizedSchema.of(schema);
81
88
  const nonHttpBindingMembers = [];
@@ -25,5 +25,9 @@ export declare abstract class HttpProtocol implements ClientProtocol<IHttpReques
25
25
  protected setHostPrefix<Input extends object>(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void;
26
26
  protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
27
27
  protected deserializeMetadata(output: IHttpResponse): ResponseMetadata;
28
+ /**
29
+ * @deprecated use signature without headerBindings.
30
+ */
31
+ protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>;
28
32
  protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>;
29
33
  }
@@ -25,5 +25,9 @@ export declare abstract class HttpProtocol implements ClientProtocol<IHttpReques
25
25
  protected setHostPrefix<Input extends object>(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void;
26
26
  protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
27
27
  protected deserializeMetadata(output: IHttpResponse): ResponseMetadata;
28
+ /**
29
+ * @deprecated use signature without headerBindings.
30
+ */
31
+ protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>;
28
32
  protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>;
29
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.5.2",
3
+ "version": "3.5.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",