@smithy/core
Advanced tools
@@ -319,2 +319,5 @@ 'use strict'; | ||
| } | ||
| else if (nonHttpBindingMembers.discardResponseBody) { | ||
| await collectBody(response.body, context); | ||
| } | ||
| dataObject.$metadata = this.deserializeMetadata(response); | ||
@@ -331,2 +334,3 @@ return dataObject; | ||
| } | ||
| let discardResponseBody = true; | ||
| const deserializer = this.deserializer; | ||
@@ -338,2 +342,3 @@ const ns = schema.NormalizedSchema.of(schema$1); | ||
| if (memberTraits.httpPayload) { | ||
| discardResponseBody = false; | ||
| const isStreaming = memberSchema.isStreaming(); | ||
@@ -402,2 +407,3 @@ if (isStreaming) { | ||
| } | ||
| nonHttpBindingMembers.discardResponseBody = discardResponseBody; | ||
| return nonHttpBindingMembers; | ||
@@ -404,0 +410,0 @@ } |
@@ -178,2 +178,5 @@ import { NormalizedSchema, translateTraits } from "@smithy/core/schema"; | ||
| } | ||
| else if (nonHttpBindingMembers.discardResponseBody) { | ||
| await collectBody(response.body, context); | ||
| } | ||
| dataObject.$metadata = this.deserializeMetadata(response); | ||
@@ -190,2 +193,3 @@ return dataObject; | ||
| } | ||
| let discardResponseBody = true; | ||
| const deserializer = this.deserializer; | ||
@@ -197,2 +201,3 @@ const ns = NormalizedSchema.of(schema); | ||
| if (memberTraits.httpPayload) { | ||
| discardResponseBody = false; | ||
| const isStreaming = memberSchema.isStreaming(); | ||
@@ -261,4 +266,5 @@ if (isStreaming) { | ||
| } | ||
| nonHttpBindingMembers.discardResponseBody = discardResponseBody; | ||
| return nonHttpBindingMembers; | ||
| } | ||
| } |
@@ -21,4 +21,8 @@ import { NormalizedSchema } from "@smithy/core/schema"; | ||
| */ | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>; | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>; | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[] & { | ||
| discardResponseBody?: boolean; | ||
| }>; | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[] & { | ||
| discardResponseBody?: boolean; | ||
| }>; | ||
| } |
@@ -21,4 +21,8 @@ import { NormalizedSchema } from "@smithy/core/schema"; | ||
| */ | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>; | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>; | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[] & { | ||
| discardResponseBody?: boolean; | ||
| }>; | ||
| protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[] & { | ||
| discardResponseBody?: boolean; | ||
| }>; | ||
| } |
+1
-1
| { | ||
| "name": "@smithy/core", | ||
| "version": "3.18.4", | ||
| "version": "3.18.5", | ||
| "scripts": { | ||
@@ -5,0 +5,0 @@ "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
445556
0.17%11085
0.18%0
-100%